:root {
  --bg: #f3efe7;
  --card: rgba(255, 255, 255, 0.72);
  --text: #f4f7ff;
  --muted: #d4dbee;
  --accent: #1f3a8a;
  --line: rgba(23, 28, 42, 0.16);
  --hero-image: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2200&q=80");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: #0e1424;
  color: var(--text);
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-bottom: 40px;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(8, 12, 20, 0.74), rgba(8, 12, 20, 0.74)),
    var(--hero-image) center center / cover no-repeat;
  transform: scale(1.02);
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 15%, rgba(39, 79, 221, 0.22), transparent 38%),
    radial-gradient(circle at 82% 80%, rgba(30, 63, 170, 0.24), transparent 44%),
    linear-gradient(rgba(5, 8, 15, 0.22), rgba(5, 8, 15, 0.22));
}

.hero {
  position: relative;
  min-height: 78vh;
  padding: 32px clamp(16px, 4vw, 56px);
  overflow: hidden;
  background: rgba(10, 15, 28, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
  display: none;
}

.hero-overlay {
  display: none;
}

.hero-grid,
.quiz {
  position: relative;
  z-index: 1;
}

.brand-banner {
  position: sticky;
  top: 8px;
  width: min(1180px, calc(100% - 24px));
  margin: 8px auto 6px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 22, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
}

.brand-logo {
  width: 190px;
  max-width: 45vw;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(17, 21, 31, 0.15);
}

.brand-info {
  color: #f4f7ff;
  line-height: 1.32;
}

.brand-info p {
  margin: 2px 0;
  font-weight: 700;
}

.brand-name {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.brand-info a {
  color: #9bc2ff;
  text-decoration: none;
}

.brand-info a:hover {
  text-decoration: underline;
}

.brand-links {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f4f8ff;
  border: 1px solid rgba(155, 194, 255, 0.45);
  background: rgba(52, 92, 184, 0.24);
  text-decoration: none;
}

.brand-links a:hover {
  background: rgba(72, 117, 219, 0.4);
  text-decoration: none;
}

.brand-address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #dbe6ff;
  font-weight: 600;
}

.brand-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: 0.95;
  flex: 0 0 auto;
}

.brand-link-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px) auto;
  gap: 18px;
  align-items: start;
}

.step-label {
  margin: 0 0 8px;
  font-weight: 700;
  opacity: 0.95;
}

h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0;
  max-width: 860px;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.subtitle {
  color: var(--muted);
  max-width: 680px;
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.trust-row {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  border: 1px solid rgba(31, 37, 56, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9a57;
}

.bonus-card {
  background: linear-gradient(120deg, #f7de9e, #ebc874);
  color: #1b1b1b;
  border-radius: 14px;
  padding: 14px 18px 15px;
  min-width: 180px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  align-self: start;
}

.bonus-divider {
  height: 1px;
  margin: 10px 0 8px;
  background: rgba(0, 0, 0, 0.16);
}

.bonus-note {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.bonus-title {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bonus-value {
  margin: 5px 0;
  font-size: 2rem;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
}

.bonus-caption {
  margin: 0;
  font-size: 0.85rem;
}

.quiz {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 42, 0.68);
  border-radius: 20px;
  padding: 18px 18px 20px;
  backdrop-filter: blur(5px);
  box-shadow: 0 18px 40px rgba(28, 30, 38, 0.18);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  align-self: stretch;
  min-height: 310px;
  max-height: 310px;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(18, 22, 34, 0.22);
  box-shadow: 0 12px 24px rgba(30, 33, 43, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-gallery .gallery-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  max-height: 100%;
}

.hero-gallery .gallery-thumb {
  min-height: 0;
  max-height: 100%;
}

.progress {
  height: 7px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress span {
  display: block;
  height: 100%;
  width: 33.33%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f3a8a, #2f5bd8);
  transition: width 0.24s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.06rem, 2vw, 1.5rem);
  margin: 0 0 14px;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 22, 34, 0.15);
  border-radius: 12px;
  color: #1d2030;
  padding: 13px;
  font-size: 1rem;
  outline: none;
}

input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: rgba(31, 58, 138, 0.6);
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.12);
}

input::placeholder {
  color: rgba(28, 32, 45, 0.5);
}

.chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip input:checked + span {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

input[type="range"] {
  width: 100%;
}

.budget-result {
  font-weight: 700;
  margin-bottom: 0;
}

.controls {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 58, 138, 0.28);
}

.ghost {
  background: transparent;
  color: #1b1d24;
  border: 1px solid rgba(17, 22, 34, 0.2);
}

.lead {
  max-width: 820px;
  margin: 0;
  padding: 20px 16px 22px;
  background: rgba(17, 24, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(2, 5, 13, 0.34);
  padding-bottom: 22px;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lead-modal.open {
  display: flex;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(2px);
}

.lead-modal-content {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 8px));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.lead-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

.lead-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.full {
  width: 100%;
  margin-top: 4px;
}

.status-message {
  margin: 4px 2px 0;
  min-height: 22px;
  font-weight: 600;
}

.legal {
  color: rgba(214, 223, 247, 0.72);
  font-size: 0.78rem;
  margin: 12px 0 0;
}

.stats,
.showcase,
.mosaic,
.steps,
.team {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
}

.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  background: rgba(9, 14, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(6px);
}

.team-content h2 {
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.team-content p {
  margin: 0;
  color: #eef3ff;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.team-photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.team-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats article {
  background: rgba(17, 24, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(2, 5, 13, 0.26);
}

.stats-value {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.4rem;
  color: #1f3a8a;
}

.stats-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  background: rgba(17, 24, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  min-height: 300px;
}

.showcase-content {
  padding: 8px 8px 8px 4px;
}

.showcase-content h2 {
  margin-bottom: 10px;
}

.showcase-content p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-weight: 600;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #2f9a57;
  font-weight: 800;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mosaic img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(19, 24, 36, 0.2);
  box-shadow: 0 10px 20px rgba(21, 24, 33, 0.12);
}

.steps {
  background: rgba(17, 24, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 16px;
}

.steps h2 {
  margin-bottom: 14px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.steps-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.steps-grid span {
  font-family: "Unbounded", sans-serif;
  color: #1f3a8a;
  font-size: 0.92rem;
}

.steps-grid h3 {
  margin: 6px 0 8px;
  font-size: 1.03rem;
}

.steps-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  body {
    background: #0e1424;
  }

  .page::before {
    background:
      linear-gradient(rgba(8, 12, 20, 0.78), rgba(8, 12, 20, 0.78)),
      var(--hero-image) 62% center / cover no-repeat;
    transform: none;
  }

  .page {
    padding-bottom: 24px;
  }

  .brand-banner {
    top: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: calc(100% - 16px);
    padding: 8px;
    border-radius: 10px;
    margin: 6px auto;
  }

  .brand-logo {
    width: 82px;
    max-width: 82px;
    border-radius: 8px;
  }

  .brand-info {
    line-height: 1.18;
  }

  .brand-info p {
    margin: 1px 0;
    font-size: 0.62rem;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .brand-links {
    margin-top: 4px;
    gap: 6px;
  }

  .brand-links a {
    padding: 2px 7px;
    font-size: 0.64rem;
    gap: 4px;
  }

  .brand-address {
    font-size: 0.62rem;
  }

  .brand-link-icon {
    width: 12px;
    height: 12px;
    font-size: 0.62rem;
  }

  .hero {
    min-height: auto;
    padding: 16px 12px 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  h1 {
    font-size: 1.62rem;
    line-height: 1.15;
    max-width: 100%;
  }

  .subtitle {
    margin-top: 10px;
    font-size: 0.95rem;
  }

  .trust-row {
    margin-top: 12px;
    gap: 6px;
  }

  .trust-row span {
    font-size: 0.72rem;
    padding: 6px 9px;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
    min-height: auto;
    max-height: none;
  }

  .hero-gallery .gallery-main {
    grid-column: 1 / -1;
    grid-row: auto;
    max-height: 150px;
  }

  .hero-gallery .gallery-thumb {
    min-height: 0;
    max-height: 88px;
  }

  .bonus-card {
    min-width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .bonus-value {
    font-size: 1.5rem;
  }

  .quiz {
    margin-top: 12px;
    border-radius: 14px;
    padding: 12px;
  }

  h2 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  input[type="text"],
  input[type="tel"] {
    padding: 12px;
    font-size: 0.95rem;
  }

  .chip span {
    padding: 9px 11px;
    font-size: 0.86rem;
  }

  .controls {
    justify-content: stretch;
    gap: 8px;
  }

  .controls button {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .lead {
    padding: 14px 12px 16px;
  }

  .lead-modal {
    padding: 10px;
  }

  .lead-modal-content {
    width: min(860px, calc(100% - 2px));
  }

  .lead-form {
    gap: 10px;
  }

  .agree {
    font-size: 0.76rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 8px;
    width: calc(100% - 24px);
  }

  .team {
    width: calc(100% - 24px);
    border-radius: 14px;
    padding: 10px;
  }

  .team-content p {
    font-size: 0.84rem;
  }

  .showcase {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    padding: 10px;
    border-radius: 14px;
    gap: 10px;
  }

  .showcase-image img {
    min-height: 190px;
    border-radius: 10px;
  }

  .showcase-content {
    padding: 2px;
  }

  .showcase-content p,
  .feature-list li,
  .steps-grid p,
  .stats-label {
    font-size: 0.84rem;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 24px);
    gap: 8px;
  }

  .mosaic img {
    height: 118px;
    border-radius: 10px;
  }

  .steps {
    width: calc(100% - 24px);
    border-radius: 14px;
    padding: 12px 10px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .steps-grid article {
    padding: 10px;
    border-radius: 10px;
  }

  .steps-grid h3 {
    font-size: 0.95rem;
  }

  .legal {
    margin-top: 8px;
    font-size: 0.72rem;
  }
}
