:root {
  --bg: #f4f8fd;
  --surface: rgba(255,255,255,0.8);
  --surface-solid: #ffffff;
  --text: #10213a;
  --muted: #617089;
  --line: rgba(16, 33, 58, 0.1);
  --primary: #2a6df4;
  --primary-2: #62b6ff;
  --dark: #0b1730;
  --shadow: 0 18px 60px rgba(19, 40, 74, 0.12);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
  --container-wide: 1440px;
  --container-hero: 1520px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--muted); line-height: 1.7; }
h1,h2,h3 { margin: 0; line-height: 1.1; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.container--wide { width: min(var(--container-wide), calc(100% - 40px)); }
.container--hero { width: min(var(--container-hero), calc(100% - 40px)); }

.topbar {
  background: #eaf3ff;
  border-bottom: 1px solid rgba(42,109,244,0.08);
  color: #40618f;
  font-size: 13px;
}
.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(16,33,58,0.08);
}
.header__inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(20px, 2vw, 36px);
}
.brand img { width: 220px; }
.nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 1.8vw, 34px);
  font-size: 15px;
  color: #2d4266;
}
.nav a:hover { color: var(--primary); }
.header__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__phone { font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 0;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(42,109,244,0.26);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(42,109,244,0.32); }
.btn--ghost {
  background: rgba(255,255,255,0.14);
  color: white;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: none;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--light { background: white; color: var(--primary); box-shadow: none; }

.burger {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 42px;
  height: 42px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(16,33,58,0.08);
}
.mobile-menu.active { display: grid; gap: 12px; }

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: clip;
  color: white;
  isolation: isolate;
}
.hero__bg,
.hero__overlay {
  position: absolute;
  inset: 0;
}
.hero__bg {
  background: url("hero.jpg") center center / cover no-repeat;
  filter: saturate(1.03) contrast(1.02);
}
.hero__overlay {
  background:
    radial-gradient(circle at top left, rgba(98,182,255,0.18), transparent 28%),
    linear-gradient(90deg, rgba(8,16,35,0.88) 0%, rgba(8,16,35,0.68) 40%, rgba(8,16,35,0.18) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 88px 0 96px; }
.hero__copy { max-width: 920px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 430px);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}
.hero h1 span {
  background: linear-gradient(135deg, #8bd1ff, #ffffff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 760px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 38px;
}
.hero__facts div {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}
.hero__facts strong { display: block; font-size: 20px; }
.hero__facts span { color: rgba(255,255,255,0.72); font-size: 14px; }

.glass {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(4, 12, 28, 0.22);
}
.lead-card {
  border-radius: 28px;
  padding: 24px;
}
.lead-card__eyebrow,
.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 700;
}
.lead-card__head h2 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 22px;
}
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 8px; }
.lead-form span { font-size: 14px; color: rgba(255,255,255,0.82); }
.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.88);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
}
.lead-note { font-size: 12px; color: rgba(255,255,255,0.68); }

.section { padding: 96px 0; }
.section--pullup { padding-top: 0; margin-top: -56px; position: relative; z-index: 5; }
.section--alt { background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%); }
.section--dark {
  background: linear-gradient(180deg, #0b1730 0%, #10213f 100%);
  color: white;
}
.section-head {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.section-head__eyebrow--light { color: #8dc6ff; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.metric-card,
.service-card,
.price-card,
.step-card,
.problem-card,
.review-card {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(16,33,58,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 24px;
  backdrop-filter: blur(10px);
}
.metric-card strong,
.service-card h3,
.price-card h3,
.step-card h3,
.problem-card h3,
.review-card strong,
.footer h3 { font-size: 20px; margin-bottom: 10px; }

.services-grid,
.pricing-grid,
.problem-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.service-card,
.price-card,
.problem-card,
.review-card { padding: 28px; }
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(42,109,244,0.14), rgba(98,182,255,0.18));
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 20px;
}
.service-card ul,
.price-card ul { padding-left: 20px; margin: 18px 0 0; color: var(--muted); line-height: 1.7; }

.price-card--accent {
  background: linear-gradient(180deg, #fff 0%, #edf5ff 100%);
  border-color: rgba(42,109,244,0.16);
}
.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.price-card h3 { font-size: 36px; letter-spacing: -0.05em; }

.process { display: grid; gap: 30px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}
.step-card { padding: 28px; }
.step-card span {
  display: inline-block;
  font-size: 14px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.trust { display: grid; gap: 38px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.trust-grid article {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}
.trust-grid strong { display: block; font-size: 20px; margin-bottom: 10px; }
.trust-grid p { color: rgba(255,255,255,0.72); }

.region-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}
.region-copy {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.region-copy p + p { margin-top: 16px; }
.region-copy .btn { margin-top: 24px; }
.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.region-chips span {
  padding: 14px 18px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(42,109,244,0.12);
  box-shadow: var(--shadow);
  color: #2d4266;
  font-weight: 600;
}

.problem-grid,
.reviews-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.review-card span { display: block; margin-top: 8px; color: var(--primary); font-size: 14px; }

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-list details {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(16,33,58,0.08);
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 26px; color: var(--primary); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list p { margin-top: 14px; }

.cta-band {
  background: linear-gradient(135deg, #2a6df4 0%, #5cb3ff 100%);
  color: white;
}
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 12px; letter-spacing: -0.04em; }
.cta-band p, .cta-band .section-head__eyebrow { color: rgba(255,255,255,0.84); }

.footer {
  background: #091121;
  color: white;
  padding: 52px 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer p, .footer a { color: rgba(255,255,255,0.72); }
.footer__logo { width: 220px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .95; }

@media (max-width: 1100px) {
  .container--wide, .container--hero { width: min(var(--container), calc(100% - 32px)); }
  .nav, .header__cta { display: none; }
  .burger { display: block; justify-self: end; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .hero__grid,
  .region-layout,
  .cta-band__inner,
  .footer__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 24px; }
  .metrics, .services-grid, .pricing-grid, .steps, .trust-grid, .problem-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .container--wide, .container--hero { width: min(var(--container), calc(100% - 32px)); }
  .topbar__inner { justify-content: center; padding: 10px 0; }
  .brand img { width: 180px; }
  .hero { min-height: auto; }
  .hero__content { padding: 54px 0 72px; }
  .hero h1 { font-size: 38px; }
  .hero__lead { font-size: 16px; }
  .hero__facts,
  .metrics,
  .services-grid,
  .pricing-grid,
  .steps,
  .trust-grid,
  .problem-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section--pullup { margin-top: -32px; }
  .service-card,
  .price-card,
  .problem-card,
  .review-card,
  .metric-card,
  .step-card,
  .region-copy,
  .lead-card { padding: 22px; }
  .cta-band__inner { align-items: flex-start; }
}


.lead-form.is-loading .btn { opacity: .75; pointer-events: none; }
.lead-form__status { min-height: 24px; font-size: 13px; color: rgba(255,255,255,0.82); }
.lead-form__status.is-error { color: #ffd5d5; }

.footer__site-name {
  margin: 0 0 18px;
  font-weight: 700;
  color: #fff !important;
}

.footer__messengers {
  display: flex;
  gap: 12px;
  margin: 20px 0 18px !important;
}

.messenger {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.messenger:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
}

.messenger svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.messenger--max span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
}


/* --- header messengers + improved bottom CTA --- */
.header__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header__phone {
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header__messengers {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.messenger--sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.messenger--sm svg {
  width: 16px;
  height: 16px;
}

.messenger--sm.messenger--max span {
  font-size: 9px;
  letter-spacing: .08em;
  font-weight: 800;
}

.btn--header {
  min-width: 176px;
  padding: 0 22px;
}

.cta-band__inner {
  align-items: center;
  gap: 32px;
}

.cta-band__inner > .btn.btn--light {
  min-width: 240px;
  min-height: 60px;
  padding: 0 34px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: #12315d;
  box-shadow: 0 18px 44px rgba(10, 25, 52, 0.18);
  border: 1px solid rgba(18, 49, 93, 0.08);
}

.cta-band__inner > .btn.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(10, 25, 52, 0.22);
}

@media (max-width: 1100px) {
  .header__messengers {
    display: none;
  }

  .btn--header {
    min-width: auto;
  }
}

@media (max-width: 720px) {
  .cta-band__inner > .btn.btn--light {
    width: 100%;
    min-width: 0;
  }
}


/* --- FIX: синие иконки в шапке --- */
.header__messengers .messenger {
  background: rgba(42,109,244,0.08);
  border: 1px solid rgba(42,109,244,0.18);
}

.header__messengers .messenger svg {
  fill: #2a6df4;
}

.header__messengers .messenger--max span {
  color: #2a6df4;
}

.header__messengers .messenger:hover {
  background: rgba(42,109,244,0.16);
  border-color: rgba(42,109,244,0.32);
}


/* --- центрирование иконок строго под номером --- */
.header__contacts {
  align-items: center !important;
}

.header__phone {
  text-align: center;
}

.header__messengers {
  justify-content: center !important;
}


/* --- site badge возле названия сайта в футере --- */
.footer__site-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.footer__site-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42,109,244,0.22), rgba(98,182,255,0.16));
  border: 1px solid rgba(98,182,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.footer__site-icon svg {
  width: 20px;
  height: 20px;
  fill: #8dc6ff;
}

.footer__site-name {
  margin: 0 !important;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .footer__site-badge {
    padding: 9px 12px;
    gap: 10px;
  }

  .footer__site-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .footer__site-icon svg {
    width: 18px;
    height: 18px;
  }
}



/* COOKIE BADGE */
.cookie-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15,25,45,0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  transition: opacity .2s ease;
  max-width: 320px;
}

.cookie-badge a {
  color: #8dc6ff;
  text-decoration: underline;
}

.cookie-badge__btn {
  border: 0;
  background: #2a6df4;
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.cookie-badge__btn:hover {
  background: #1f5ce0;
}


/* --- fix: опускаем hero картинку ниже --- */
.hero {
  background-position: center 60% !important;
}

/* на очень широких экранах ещё чуть ниже */
@media (min-width: 1600px) {
  .hero {
    background-position: center 65% !important;
  }
}

/* на мобиле не трогаем сильно */
@media (max-width: 720px) {
  .hero {
    background-position: center 55% !important;
  }
}


/* --- premium hero banner effect --- */
.hero {
  min-height: 780px;
}

.hero__bg {
  background-position: center 58% !important;
  transform: scale(1.03);
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(8,16,35,0.72) 0px, rgba(8,16,35,0.50) 92px, rgba(8,16,35,0.18) 180px),
    radial-gradient(circle at top left, rgba(98,182,255,0.16), transparent 28%),
    linear-gradient(90deg, rgba(8,16,35,0.88) 0%, rgba(8,16,35,0.68) 40%, rgba(8,16,35,0.18) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247,251,255,0) 0%, #f7fbff 100%);
  z-index: 1;
}

.hero__content {
  padding-top: 112px;
}

@media (min-width: 1600px) {
  .hero__bg {
    background-position: center 62% !important;
  }

  .hero__content {
    padding-top: 122px;
  }
}

@media (max-width: 1100px) {
  .hero__bg {
    background-position: center 54% !important;
    transform: scale(1.01);
  }

  .hero__content {
    padding-top: 96px;
  }

  .hero::after {
    height: 110px;
  }
}

@media (max-width: 720px) {
  .hero__bg {
    background-position: center 50% !important;
    transform: none;
  }

  .hero__content {
    padding-top: 88px;
  }

  .hero::after {
    height: 84px;
  }
}




/* --- FIX: mobile overflow (hero) --- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .lead-card {
    width: 100%;
    max-width: 100%;
  }
}

/* дополнительная защита от вылезания */
html, body {
  overflow-x: hidden;
}


/* --- iPhone overflow hard fix --- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body * {
  max-width: 100%;
}

@media (max-width: 900px) {
  .hero__grid,
  .region-layout,
  .cta-band__inner,
  .footer__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .lead-card,
  .hero__copy,
  .region-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero__facts {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .container,
  .container--wide,
  .container--hero {
    width: calc(100% - 24px) !important;
  }

  .hero__content {
    padding: 72px 0 64px !important;
  }

  .hero h1 {
    font-size: 34px !important;
    word-break: break-word;
  }

  .hero__lead,
  .lead-card__head h2,
  .section-head h2,
  .cta-band h2 {
    overflow-wrap: anywhere;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .cta-band .btn,
  .btn--header {
    width: 100%;
    min-width: 0 !important;
  }

  .cookie-badge {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: none !important;
    width: auto !important;
    padding: 12px 14px !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }

  .cookie-badge__text {
    min-width: 0;
    flex: 1 1 auto;
  }

  .cookie-badge__btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}


