/* ===== Автошкола МАСТЕР — лендинг «Вариант A: Chat-first» (боевой) ===== */
:root{
  --blue-900:#15347a;--blue-700:#1c4ec0;--blue-600:#2563eb;--blue-800:#143a8e;
  --teal:#1aa194;--teal-d:#0f8276;--orange:#f5811f;--orange-d:#e06d0c;
  --ink:#1d2740;--muted:#5b6b86;--line:#e6ebf3;--bg:#eef2f8;
  --radius:20px;--shadow:0 18px 40px -22px rgba(20,40,90,.35);--shadow-sm:0 8px 22px -14px rgba(20,40,90,.3);
}
*{box-sizing:border-box}
html,body{overflow-x:hidden;max-width:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;line-height:1.5}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
.container{width:100%;max-width:1180px;margin-inline:auto;padding-inline:24px}

/* ---------- HERO (chat-first) ---------- */
.hero{position:relative;background:linear-gradient(120deg,#143a8e 0%,#1c4ec0 52%,#2667e0 100%);color:#fff;padding:24px 0 92px;overflow:hidden;border-bottom-left-radius:36px;border-bottom-right-radius:36px}
.skyline{position:absolute;left:0;right:0;bottom:0;width:100%;opacity:.16;pointer-events:none}
.glow{position:absolute;border-radius:50%;filter:blur(70px);opacity:.5;pointer-events:none}
.glow.a{width:420px;height:420px;background:#2f7bff;top:-120px;right:-60px}
.glow.b{width:360px;height:360px;background:#19c2b0;bottom:-160px;left:-80px;opacity:.35}
.hero .container{position:relative;z-index:2}

.brandbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:40px}
.logo-plate{display:inline-flex;align-items:center;background:linear-gradient(180deg,#fff 0%,#eef2f8 100%);padding:11px 20px;border-radius:15px;border:1px solid rgba(255,255,255,.65);box-shadow:0 14px 26px -10px rgba(6,18,52,.55),inset 0 2px 0 rgba(255,255,255,.95)}
.logo-plate img{height:46px;width:auto}
.brand-tag{border-left:2px solid rgba(255,255,255,.35);padding-left:16px;font-size:14px;color:#dbe6ff;max-width:240px;line-height:1.35}
.brandbar .spacer{flex:1}
.where{font-size:13.5px;color:#cdddff;display:flex;align-items:center;gap:7px}
.where svg{width:16px;height:16px}

.hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:28px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:9px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);padding:7px 14px;border-radius:999px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#dceaff;margin-bottom:20px}
.eyebrow .pulse{width:9px;height:9px;border-radius:50%;background:#5ff0a8;box-shadow:0 0 0 0 rgba(95,240,168,.7);animation:pulse 2.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(95,240,168,.6)}70%{box-shadow:0 0 0 10px rgba(95,240,168,0)}100%{box-shadow:0 0 0 0 rgba(95,240,168,0)}}
.hero-text h1{font-size:clamp(32px,4.6vw,52px);line-height:1.06;margin:0 0 16px;font-weight:800}
.hero-text h1 .accent{color:#9dc2ff}
.hero-text .lead{font-size:clamp(15px,1.7vw,18px);color:#dbe6fb;max-width:480px;margin:0 0 26px}

/* большой запуск чата — главный элемент */
.ask{background:#fff;border-radius:18px;padding:10px 10px 10px 22px;display:flex;align-items:center;gap:14px;box-shadow:0 26px 50px -20px rgba(6,18,52,.6);max-width:520px;cursor:text;transition:transform .15s,box-shadow .15s}
.ask:hover{transform:translateY(-2px);box-shadow:0 30px 56px -20px rgba(6,18,52,.7)}
.ask .ph{flex:1;color:#9aa7bd;font-size:16.5px}
.ask .send{display:inline-flex;align-items:center;gap:9px;background:linear-gradient(135deg,#1aa194,#0f8276);color:#fff;border:none;font-weight:800;font-size:15.5px;padding:14px 22px;border-radius:13px;cursor:pointer;white-space:nowrap}
.ask .send svg{width:19px;height:19px}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;max-width:520px}
.chip{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.26);color:#eaf1ff;font-size:14px;padding:9px 15px;border-radius:999px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s}
.chip:hover{background:rgba(255,255,255,.22)}
.chip svg{width:15px;height:15px;opacity:.85}

/* робот-аватар ассистента */
.assistant{justify-self:end;position:relative;width:100%;align-self:center}
.scene{position:relative;width:100%;padding-top:30px}
.scene .ground{position:absolute;left:50%;bottom:34px;transform:translateX(-50%);width:82%;height:40px;background:radial-gradient(ellipse at center,rgba(6,18,52,.55),rgba(6,18,52,0) 70%);filter:blur(3px);z-index:1}
.scene .halo{position:absolute;left:0;bottom:8%;width:52%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 50% 45%,rgba(26,161,148,.55),rgba(26,161,148,0) 60%);z-index:1}
.scene .car{position:relative;display:block;width:94%;margin-left:auto;z-index:2;filter:drop-shadow(0 20px 26px rgba(0,0,0,.32))}
.scene .bot{position:absolute;left:-7%;bottom:-4%;width:43%;z-index:3;filter:drop-shadow(0 18px 20px rgba(0,0,0,.34))}
.scene .bubble{position:absolute;left:4%;top:-2px;z-index:4;background:#fff;color:var(--ink);font-weight:700;font-size:13.5px;padding:10px 14px;border-radius:14px;box-shadow:var(--shadow-sm);white-space:nowrap}
.scene .bubble:before{content:"";position:absolute;bottom:-7px;left:20px;border:7px solid transparent;border-top-color:#fff;border-bottom:0}
.status{margin-top:14px;font-size:13.5px;color:#cdddff;display:flex;align-items:center;justify-content:center;gap:8px}
.status .d{width:8px;height:8px;border-radius:50%;background:#5ff0a8}

/* ---------- О ЧЁМ СПРОСИТЬ ---------- */
.topics{margin-top:-58px;position:relative;z-index:3}
.topics .panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px 28px 28px}
.topics .ph-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.topics .ph-head .dot{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#1aa194,#0f8276);display:grid;place-items:center;color:#fff;flex:none}
.topics .ph-head .dot svg{width:21px;height:21px}
.topics h2{font-size:clamp(18px,2.2vw,21px);margin:0;font-weight:800}
.topics .sub{color:var(--muted);font-size:14.5px;margin:4px 0 20px 50px}
.topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.topic{border:1px solid var(--line);border-radius:14px;padding:16px 16px 18px;background:#fbfcff;display:flex;flex-direction:column;gap:9px;transition:.15s;cursor:pointer}
.topic:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:#cfe0fb}
.topic .ti{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex:none}
.topic .ti svg{width:21px;height:21px}
.ti.b{background:#e7eefc;color:#2563eb}.ti.t{background:#e7f6f3;color:#0f8276}.ti.o{background:#fdeede;color:#e06d0c}.ti.p{background:#efe9fb;color:#6b46c1}
.topic h4{margin:0;font-size:15.5px;font-weight:800}
.topic p{margin:0;font-size:13px;color:var(--muted)}
.topic .go{margin-top:auto;padding-top:8px;font-size:13px;font-weight:700;color:#0f8276;display:flex;align-items:center;gap:6px}
.topic .go svg{width:15px;height:15px}

/* ---------- ВТОРИЧНЫЕ СПОСОБЫ ---------- */
.alt{padding:36px 0 8px}
.alt-head{text-align:center;margin-bottom:22px}
.alt-head .tag{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.alt-head h2{font-size:clamp(20px,2.6vw,24px);margin:6px 0 0;font-weight:800}
.alt-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.alt-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:24px 24px 22px;display:flex;gap:18px;align-items:center}
.alt-card .num{width:50px;height:50px;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:19px;flex:none}
.alt-card.blue .num{background:linear-gradient(135deg,#2563eb,#1742a8)}
.alt-card.orange .num{background:linear-gradient(135deg,#f5811f,#e06d0c)}
.alt-card h3{margin:0 0 5px;font-size:18.5px;font-weight:800}
.alt-card.blue h3{color:#1742a8}.alt-card.orange h3{color:#e06d0c}
.alt-card p{margin:0 0 12px;font-size:14px;color:var(--muted)}
.alt-card .lnk{font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:7px}
.alt-card.blue .lnk{color:#2563eb}.alt-card.orange .lnk{color:#e06d0c}
.alt-card .lnk svg{width:16px;height:16px}
.alt-card .carimg{position:absolute;right:-30px;bottom:-18px;width:190px;opacity:.14;pointer-events:none}

/* ---------- МЕНЕДЖЕР (fallback) ---------- */
.manager{padding:30px 0 46px}
.manager .panel{position:relative;overflow:hidden;background:linear-gradient(120deg,#0f8276 0%,#138a7d 60%,#1aa194 100%);color:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:30px 34px;display:flex;align-items:center;gap:22px}
.manager .txt{flex:1}
.manager h3{margin:0 0 6px;font-size:22px;font-weight:800}
.manager p{margin:0 0 16px;color:#d6f3ee;font-size:15px;max-width:460px}
.contact-list{display:flex;flex-wrap:wrap;gap:12px 26px}
.cline{display:flex;align-items:center;gap:11px;font-size:15.5px}
.cline .ci{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.16);display:grid;place-items:center;flex:none}
.cline .ci svg{width:19px;height:19px}
.cline .ci.ci-max{background:transparent;padding:0}
.cline .ci.ci-max svg{width:36px;height:36px}
.cline.phone .val{font-weight:800;font-size:18px}
.cline .val{color:#fff}
.manager .operator{width:170px;flex:none;align-self:flex-end;filter:drop-shadow(0 10px 18px rgba(0,0,0,.25))}

/* ---------- ФУТЕР ---------- */
.footer-strip{background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:10px;padding:20px;color:#2563eb;font-weight:700;font-size:16px;text-align:center}
.footer-strip svg{width:22px;height:22px;flex:none}
.copyright{text-align:center;color:#9aa7bd;font-size:13px;padding:18px}

/* ---------- АДАПТИВ ---------- */
@media (max-width:900px){
  .hero{padding-bottom:74px}
  .hero-grid{grid-template-columns:1fr;gap:18px}
  .assistant{justify-self:center;max-width:480px;width:100%;margin-top:6px}
  .where{display:none}
  .topics{margin-top:-46px}
  .topic-grid{grid-template-columns:repeat(2,1fr)}
  .manager .panel{flex-direction:column;align-items:flex-start;gap:14px}
  .manager .operator{align-self:center;width:150px}
}
@media (max-width:560px){
  .container{padding-inline:18px}
  .brand-tag{max-width:none}
  .ask{flex-wrap:wrap;padding:14px;gap:12px}
  .ask .ph{flex-basis:100%}
  .ask .send{width:100%;justify-content:center}
  .chips,.ask{max-width:none}
  .topic-grid{grid-template-columns:1fr}
  .alt-grid{grid-template-columns:1fr}
  .alt-card .carimg{display:none}
  .topics .sub{margin-left:0}
  .scene .bubble{white-space:normal;max-width:62%;font-size:12.5px}
  .contact-list{gap:10px 18px}
}
