/* ==========================================================
   AiR · GEO landing
   Токены сняты с airws.ru
   ========================================================== */
:root {
  --blue: #166ae9;
  --blue-hover: #0f58c7;
  --blue-light: #73b0ff;
  --sky: #35aae6;
  --tint: #c7ddff;
  --soft: #f5faff;
  --ink: #30373c;
  --ink-deep: #263038;
  --text: #505050;
  --muted: #737880;
  --line: #d4d6d7;
  --white: #fff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px -24px rgba(22, 106, 233, .35);
  --font: "SF UI Display", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: none;               /* как на airws.ru: секции на всю ширину */
  --gutter: clamp(24px, 4.9vw, 96px); /* 71px @1440, ~94px @1920 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
a, button, summary, label, input, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(22,106,233,.15); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { color: var(--text); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, min(4.8vw, 8.6vh), 96px); line-height: 1.08; font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.3vw, 60px); line-height: 1.15; font-weight: 900; letter-spacing: -.015em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 800; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 7.6vw, 150px) 0; position: relative; }
.section__sub { font-size: clamp(17px, 1.15vw, 21px); max-width: 860px; margin: 18px 0 0; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink);
  padding: 8px 16px; border-radius: 100px; background: var(--soft); border: 1px solid var(--tint);
}
.eyebrow--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(22,106,233,.18); }
.eyebrow--light .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.hl { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 100px;
  font: 700 15px/1 var(--font); text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; border: 1px solid var(--blue);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--outline { background: rgba(255,255,255,.5); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.round-cta { display: inline-flex; align-items: center; gap: 22px; text-decoration: none; color: var(--text); }
.round-cta__circle {
  width: clamp(80px, 11vh, 104px); height: clamp(80px, 11vh, 104px); flex: none; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .3s, background .2s;
}
.round-cta:hover .round-cta__circle { transform: scale(1.06) rotate(-8deg); background: var(--blue-hover); }
.round-cta__label { font-size: 19px; font-weight: 700; line-height: 1.25; }
.round-cta__label small { font-size: 14px; font-weight: 500; color: var(--muted); }

.link-cta {
  font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--blue);
  text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; letter-spacing: .03em;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(38,48,56,.25); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ink); letter-spacing: .02em; }
.nav { display: flex; gap: 28px; margin-left: 24px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.header__contacts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--tint); transition: background .2s, color .2s;
}
.icon-btn--tg { color: var(--sky); }
.icon-btn--max { color: #7b4cf5; }
.icon-btn:hover { background: var(--soft); }
.phone { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; margin: 0 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; align-items: center; padding: clamp(24px, 4vh, 56px) 0 clamp(40px, 7vh, 96px); overflow: hidden; }
.hero__wave { position: absolute; inset: -40px -10% auto; width: 120%; height: 760px; color: var(--soft); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(400px, .75fr); gap: clamp(40px, 5vw, 120px); align-items: center; }
.hero__grid .ai-demo { justify-self: end; width: 100%; max-width: 600px; }
.hero__text h1 { margin: clamp(14px, 2.4vh, 28px) 0; }
.hero__lead { font-size: clamp(17px, min(1.3vw, 2.3vh), 23px); line-height: 1.55; max-width: 680px; margin: 0; }
.hero__actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; margin-top: clamp(22px, 4vh, 44px); }
.hero__trust { list-style: none; padding: 0; margin: clamp(22px, 4.4vh, 48px) 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.hero__trust li { font-size: 15px; color: var(--muted); }
.hero__trust b { display: block; font-size: 26px; font-weight: 900; color: var(--ink); }

/* AI demo */
.ai-demo {
  position: relative; background: #fff; border-radius: 28px; padding: 22px;
  border: 1px solid #e3ecf9; box-shadow: 0 40px 80px -40px rgba(22,106,233,.45), 0 0 0 10px rgba(199,221,255,.35);
}
.ai-demo__tabs { display: flex; gap: 6px; background: var(--soft); padding: 5px; border-radius: 100px; }
.ai-demo__tabs button {
  flex: 1; border: 0; background: transparent; border-radius: 100px; padding: 10px 8px;
  font: 700 13px/1 var(--font); color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.ai-demo__tabs button.is-active { background: #fff; color: var(--blue); box-shadow: 0 4px 12px -6px rgba(22,106,233,.4); }
.ai-demo__body { min-height: clamp(300px, 44vh, 380px); padding: 20px 4px 8px; }
.ai-msg { font-size: 15px; line-height: 1.5; }
.ai-msg--user {
  margin-left: auto; max-width: 88%; width: fit-content; background: var(--blue); color: #fff;
  padding: 12px 16px; border-radius: 18px 18px 4px 18px;
}
.caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.caret.is-done { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.ai-msg--bot { margin-top: 18px; color: var(--ink); animation: fadeUp .4s ease both; }
.ai-intro { margin: 0 0 10px; }
.ai-list { margin: 0; padding: 0; list-style: none; counter-reset: ai; display: grid; gap: 8px; }
.ai-list li {
  counter-increment: ai; position: relative; padding: 10px 12px 10px 40px; border-radius: 12px;
  background: #f7f8fa; font-size: 14px; animation: fadeUp .35s ease both;
}
.ai-list li::before {
  content: counter(ai); position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: #e4e7eb; color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.ai-list li b { color: var(--ink-deep); }
.ai-list li.is-you { background: linear-gradient(90deg, rgba(22,106,233,.12), rgba(115,176,255,.08)); outline: 1.5px solid var(--blue); }
.ai-list li.is-you::before { background: var(--blue); color: #fff; }
.ai-list li.is-you b { color: var(--blue); }
.ai-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ai-sources span { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--soft); color: var(--muted); border: 1px solid #e3ecf9; }
.ai-demo__badge {
  position: absolute; left: -24px; bottom: -22px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-deep); color: #fff; font-size: 13px; font-weight: 700; padding: 12px 18px; border-radius: 100px;
  box-shadow: 0 16px 30px -14px rgba(38,48,56,.6);
}
.ai-demo__badge svg { color: #6ee7a8; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Problem ---------- */
.problem { background: var(--soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat { background: #fff; border-radius: var(--radius); padding: 32px; }
.stat__num, .plan__price, .bar b, .hero__trust b { font-variant-numeric: tabular-nums; }
.stat__num { font-size: clamp(48px, 5vw, 72px); font-weight: 900; color: var(--blue); line-height: 1; letter-spacing: -.03em; }
.stat p { margin: 14px 0 0; font-size: 16px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.compare__col { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid #e6edf6; }
.compare__col--geo { background: var(--ink-deep); color: #c9d3dc; border-color: var(--ink-deep); }
.compare__col--geo h3 { color: #fff; }
.compare__tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 6px 12px; border-radius: 100px; background: var(--soft); color: var(--muted); margin-bottom: 16px; }
.compare__col--geo .compare__tag { background: var(--blue); color: #fff; }
.compare ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.compare li::marker { color: var(--blue-light); }

/* ---------- Audit (lead magnet) ---------- */
.audit {
  background: radial-gradient(1200px 500px at 85% 0%, #2c7cf5 0%, transparent 60%), var(--blue);
  color: #dfeaff; overflow: hidden;
}
.audit h2 { color: #fff; margin: 22px 0 28px; }
.audit__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks b { color: var(--ink); }
.checks--light { gap: 16px; font-size: 17px; }
.checks--light li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23166ae9' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.checks--light b { color: #fff; }

/* ---------- Forms ---------- */
.form--card { background: #fff; border-radius: 28px; padding: 36px; box-shadow: 0 40px 80px -40px rgba(15,40,90,.5); color: var(--text); display: grid; gap: 16px; position: relative; }
.form--card h3 { font-size: 24px; font-weight: 900; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; }
.field input, .field select {
  width: 100%; height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  padding: 0 16px; font: 500 16px var(--font); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,106,233,.12); }
.field input.is-invalid { border-color: #e7362d; box-shadow: 0 0 0 4px rgba(231,54,45,.1); }
.field--radios { display: flex; flex-wrap: wrap; gap: 8px; }
.field--radios legend { width: 100%; margin-bottom: 6px; }
.field--radios label { cursor: pointer; position: relative; }
.field--radios input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field--radios span {
  display: inline-block; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s;
}
.field--radios input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.field--radios input:focus-visible + span { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--muted); }
.consent input { margin-top: 2px; accent-color: var(--blue); flex: none; width: 16px; height: 16px; }
.consent a { color: var(--blue); }
.form__note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.form__error { margin: 0; font-size: 14px; color: #c62a22; text-align: center; }
.field__error { font-size: 13px; color: #c62a22; min-height: 0; }
.field__error:empty { display: none; }
.field__error--consent { margin-top: -8px; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; margin-right: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 100px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.form__success {
  position: absolute; inset: 0; border-radius: inherit; background: #fff; display: grid; place-content: center;
  text-align: center; padding: 36px; font-size: 17px; color: var(--ink); animation: fadeUp .3s ease;
}
.form__success:not([hidden])::before {
  content: ""; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/36px no-repeat;
}
.form__success b { font-size: 24px; font-weight: 900; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: st; }
.step { counter-increment: st; position: relative; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid #e6edf6; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tint); }
.step::before { content: "0" counter(st); font-size: 56px; font-weight: 900; color: var(--soft); position: absolute; right: 24px; top: 14px; line-height: 1; -webkit-text-stroke: 1px var(--tint); }
.step__when { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; max-width: 80%; }
.step p { margin: 0 0 20px; font-size: 15px; }
.step__res { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink); padding-top: 16px; border-top: 1px dashed var(--line); }

/* ---------- Why ---------- */
.why { background: var(--soft); }
.why h2 { max-width: 1100px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 30px 26px; }
.why-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 22px; }
.why-card h3 { margin-bottom: 10px; }
.why-card p { margin: 0; font-size: 15px; }

/* ---------- Cases ---------- */
.cases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.case { border-radius: var(--radius); padding: 32px; border: 1px solid #e6edf6; background: linear-gradient(180deg, #fff, var(--soft)); }
.case__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 100px; background: var(--blue); color: #fff; }
.chip--ghost { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.case h3 { font-size: 24px; font-weight: 900; margin-bottom: 22px; }
.bars { display: grid; gap: 10px; margin-bottom: 22px; }
.bar { display: grid; grid-template-columns: 56px 1fr 48px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.bar b { font-size: 18px; color: var(--ink); text-align: right; }
.bar__track { height: 12px; border-radius: 100px; background: #e9eef5; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-light)); transform: scaleX(0); transform-origin: left center; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.bar__fill--before { background: #9aa3ad; }
.case.is-visible .bar__fill { transform: scaleX(1); }
.case__kpi { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.case__kpi li { padding-left: 18px; position: relative; }
.case__kpi li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.case__kpi b { color: var(--ink); }

/* ---------- Prices ---------- */
.prices { background: var(--soft); }
.prices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; border: 1px solid #e6edf6; }
.plan--featured { background: var(--ink-deep); color: #c9d3dc; border-color: var(--ink-deep); transform: translateY(-12px); box-shadow: 0 40px 80px -40px rgba(38,48,56,.7); }
.plan__badge { position: absolute; top: -14px; left: 32px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 7px 14px; border-radius: 100px; }
.plan__name { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.plan--featured .plan__name { color: var(--blue-light); }
.plan__price { font-size: clamp(32px, 3.4vw, 44px); font-weight: 900; color: var(--ink); margin: 10px 0 6px; letter-spacing: -.02em; white-space: nowrap; }
.plan--featured .plan__price { color: #fff; }
.plan__price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__for { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.plan .checks { font-size: 15px; margin-bottom: 32px; flex: 1; }
.plan--featured .checks b { color: #fff; }
.plan--featured .btn--primary:hover { background: #fff; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 140px); align-items: start; }
.faq h2 { position: sticky; top: 120px; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid #e3e8ee; border-radius: 20px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--tint); box-shadow: 0 16px 40px -28px rgba(22,106,233,.5); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-weight: 700; font-size: 17px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23166ae9' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 26px 24px; font-size: 15.5px; }

/* ---------- Lead ---------- */
.lead { background: var(--ink-deep); color: #b9c4ce; }
.lead h2 { color: #fff; margin-bottom: 20px; }
.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lead__text p { font-size: 18px; margin: 0; }
.lead__contacts { display: grid; gap: 6px; margin-top: 32px; }
.lead__contacts a { color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; width: fit-content; }
.lead__contacts a:hover { color: var(--blue-light); }

/* ---------- Footer ---------- */
.footer { background: #1d252c; color: #b9c4ce; padding: 48px 0 56px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__muted { color: #7c8893; margin: 14px 0 0; }
.logo--light span { color: #b9c4ce; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (min-width: 1680px) {
  .cases__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .compare__col, .step, .why-card, .case { padding: 40px; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1160px) {
  .nav { display: none; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  /* узкие окна и планшеты: первый экран в одну колонку, чтобы заголовок не дробился */
  .hero { padding: 40px 0 90px; min-height: 0; display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__grid .ai-demo { justify-self: stretch; max-width: 720px; }
  h1 { font-size: clamp(36px, 6.4vw, 64px); }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .section { padding: 80px 0; }
  .hero__grid .ai-demo { max-width: none; }
  .hero__grid, .audit__grid, .lead__grid, .faq__grid { grid-template-columns: 1fr; gap: 48px; }
  .faq h2 { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .prices__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .plan--featured { transform: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .ai-demo__badge { left: 16px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; padding-bottom: 76px; }
  html { scroll-padding-top: 76px; scroll-padding-bottom: 90px; }
  .section { padding: 64px 0; }
  .section__sub { font-size: 16px; }
  .header__inner { height: 64px; gap: 12px; }
  .logo span, .phone, .link-cta, .icon-btn--max { display: none; }
  .hero { padding-top: 24px; }
  .hero__text h1 { margin: 18px 0; }
  .hero__lead { font-size: 17px; }
  .hero__actions { gap: 20px; margin-top: 28px; }
  .round-cta__circle { width: 76px; height: 76px; }
  .round-cta__label { font-size: 17px; }
  .hero__actions .btn { display: none; }
  .hero__trust { gap: 20px; margin-top: 32px; }
  .hero__trust b { font-size: 22px; }
  .ai-demo { padding: 14px; border-radius: 22px; }
  .ai-demo__body { min-height: 380px; }
  .stats, .compare, .steps, .why__grid, .cases__grid { grid-template-columns: 1fr; }
  .stats { margin-top: 36px; gap: 14px; }
  .stat, .compare__col, .step, .case, .why-card { padding: 24px; }
  .form--card { padding: 24px 20px; }
  .plan { padding: 30px 22px; }
  .plan__price { font-size: 38px; }
  .bar { grid-template-columns: 48px 1fr 44px; }
  .faq summary { font-size: 16px; padding: 18px 56px 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .lead__contacts a { font-size: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px); box-shadow: 0 -8px 24px -12px rgba(38,48,56,.3);
    transform: translateY(110%); transition: transform .3s;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { flex: 1; }
  .mobile-bar__phone { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); display: grid; place-items: center; }
}

/* ==========================================================
   Лендинг «Контекстная реклама»
   ========================================================== */
/* Демо поисковой выдачи */
.ai-demo--search .ai-msg--user {
  margin: 0; max-width: none; width: 100%; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border: 2px solid #ffcc00; border-radius: 14px; padding: 12px 16px;
}
.ai-search-ico { flex: none; color: var(--muted); }
.ai-demo--search .ai-intro { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.ai-demo--search .ai-list li { padding: 12px 14px; background: #fff; border: 1px solid #edf0f3; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ai-demo--search .ai-list li::before { display: none; }
.ai-demo--search .ai-list li b { display: block; font-size: 16px; color: #1a0dab; margin: 2px 0; }
.ai-demo--search .ai-list li.is-you { background: linear-gradient(90deg, rgba(22,106,233,.08), rgba(115,176,255,.04)); outline: 2px solid var(--blue); border-color: transparent; }
.ai-demo--search .ai-list li.is-you b { color: var(--blue); }
.ai-url { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #2e7d32; }
.ai-url::before { content: "Реклама"; font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.ai-demo--search .ai-sources span { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }

/* Ошибки рекламы */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.pain { background: #fff; border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.pain__bad { font-size: 19px; font-weight: 800; color: var(--ink); padding-left: 34px; position: relative; line-height: 1.3; }
.pain__bad::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: #fde8e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23d23a31' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pain p { margin: 14px 0 20px; font-size: 15px; }
.pain__fix { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--ink); padding-left: 30px; position: relative; }
.pain__fix::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.audit__note { margin: 28px 0 0; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; max-width: 560px; }

/* Кейсы с главной цифрой */
.kases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.kase { grid-column: span 2; border-radius: var(--radius); padding: 32px; border: 1px solid #e6edf6; background: linear-gradient(180deg, #fff, var(--soft)); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.kase--wide { grid-column: span 3; }
.kase:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tint); }
.kase h3 { font-size: 22px; font-weight: 900; margin-bottom: 18px; }
.kase__hero { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.kase__hero span:last-child { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.kase__num { font-size: clamp(48px, 4.4vw, 76px); font-weight: 900; color: var(--blue); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; flex: none; }
.kase__kpi { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 18px; }
.kase__kpi dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kase__kpi dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.kase__did { margin: 0 0 18px; font-size: 15px; }
.kase__link { margin-top: auto; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--blue); text-decoration: none; width: fit-content; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.kase__link:hover { color: var(--blue-hover); }

/* Калькулятор */
.calc-sec { background: var(--soft); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 140px); align-items: center; }
.calc { background: #fff; border-radius: 28px; padding: clamp(24px, 2.6vw, 44px); box-shadow: 0 40px 80px -48px rgba(22,106,233,.5); display: grid; gap: 26px; }
.calc__row { display: grid; gap: 12px; }
.calc__label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.calc__label b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px; cursor: pointer;
  background: linear-gradient(90deg, var(--blue) var(--p, 50%), #e4e9f0 var(--p, 50%));
}
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 12px -4px rgba(22,106,233,.6); }
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.calc input[type="range"]:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 6px; }
.calc__result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px; border-radius: 20px; background: var(--soft); text-align: center; }
.calc__result span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.calc__result b { display: block; margin-top: 4px; font-size: clamp(22px, 2vw, 30px); font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__main b { color: var(--blue); font-size: clamp(30px, 2.8vw, 44px); }

@media (max-width: 1160px) {
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kase, .kase--wide { grid-column: span 3; }
}
@media (max-width: 960px) {
  .calc__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .pains, .kases { grid-template-columns: 1fr; }
  .kase, .kase--wide { grid-column: auto; padding: 24px; }
  .pain { padding: 24px; }
  .calc__result { padding: 16px 10px; }
  .calc__label { font-size: 14px; }
}

/* Невысокие окна ноутбуков (панели браузера съедают ~110px) */
@media (min-width: 961px) and (max-height: 680px) {
  .eyebrow { padding: 6px 14px; font-size: 12px; }
  .hero__trust { margin-top: 18px; gap: 28px; }
  .hero__trust b { font-size: 22px; }
  .hero__trust li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .case .bar__fill { transform: none; }
}
