/* ============ БАЗА (стиль: минимализм, воздух, одна акцентная деталь) ============ */
:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-dark: #101013;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: #d2d2d7;
  --radius: 18px;
  --font: -apple-system, 'SF Pro Display', 'Segoe UI', system-ui, Roboto, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }
.section { padding: 130px 0; }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section__title { font-size: clamp(34px, 5vw, 56px); margin-bottom: 22px; }
.section__sub { font-size: 19px; color: var(--ink-soft); max-width: 620px; margin-bottom: 60px; }
.section__sub--center { margin-left: auto; margin-right: auto; text-align: center; }
.section--dark .section__sub { color: #a1a1a6; }

/* ============ ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ (Apple-стиль) ============ */
/* Контент виден по умолчанию; прячем для анимации только при активном JS */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ КНОПКИ И ССЫЛКИ ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-family: inherit; font-weight: 500; border-radius: 980px; transition: background .25s ease, transform .12s ease; }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 15px 34px; font-size: 17px; }
.btn:not(.btn--sm):not(.btn--lg) { padding: 11px 24px; font-size: 15px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost:active { transform: scale(0.97); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.link-arrow { color: var(--accent); font-size: 17px; font-weight: 500; align-self: flex-start; }
.link-arrow::after { content: " →"; transition: transform .2s; display: inline-block; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============ ШАПКА ============ */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); transition: border-color .3s; }
.header__inner { display: flex; align-items: center; gap: 36px; height: 56px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo__mark { border-radius: 8px; }
.logo__text { font-size: 21px; font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; gap: 30px; font-size: 14px; }
.nav a { color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__contacts { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.header__phone { font-size: 14px; color: var(--ink-soft); }
.header__phone:hover { color: var(--ink); }
.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); display: block; }

/* ============ HERO ============ */
.hero { padding: 120px 0 90px; text-align: center; }
.hero__eyebrow { font-size: 17px; color: var(--ink-soft); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7.5vw, 84px); letter-spacing: -0.03em; margin-bottom: 26px; }
.hero__sub { font-size: 21px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 38px; }
.hero__cta { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 70px; }
.hero__art { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.12); }
.hero__svg { width: 100%; height: auto; display: block; }
.hero__lens { transform-box: fill-box; transform-origin: 600px 250px; animation: lensFloat 6s ease-in-out infinite; }
@keyframes lensFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Заглушки под РЕАЛЬНЫЕ фото (кейсы, менеджеры) */
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; background: linear-gradient(160deg, #eaeaef 0%, #dedee4 100%); color: #86868b; border-radius: var(--radius); font-size: 14px; min-height: 180px; }
.photo-slot::before { content: ""; width: 46px; height: 46px; background: no-repeat center/contain; opacity: .5; }
.photo-slot--car::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l2-5a2 2 0 0 1 2-1h10a2 2 0 0 1 2 1l2 5v5h-3M6 18H3v-5'/%3E%3Ccircle cx='7.5' cy='16.5' r='1.5'/%3E%3Ccircle cx='16.5' cy='16.5' r='1.5'/%3E%3C/svg%3E"); }
.photo-slot--video::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 9l5 3-5 3z' fill='%2386868b'/%3E%3C/svg%3E"); }

/* ============ ЦИФРЫ ============ */
.numbers { border-top: 1px solid var(--bg-gray); border-bottom: 1px solid var(--bg-gray); }
.numbers__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 22px; }
.num { text-align: center; }
.num strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.num span { font-size: 14px; color: var(--ink-soft); }

/* ============ СТРАНЫ ============ */
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.country-card { background: var(--bg-gray); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
.country-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.10); }
.country-art { line-height: 0; }
.country-art svg { width: 100%; height: auto; }
.country-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.country-card h3 { font-size: 24px; }
.country-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }

/* ============ МАНИФЕСТ ============ */
.manifesto { background: var(--bg-dark); color: #f5f5f7; padding: 150px 0; text-align: center; }
.manifesto__text { font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.manifesto__sign { margin-top: 30px; color: #6e6e73; font-size: 16px; }

/* ============ ПРОВЕРКА ============ */
.inspect { display: grid; gap: 90px; }
.inspect__row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.inspect__row--reverse .inspect__text { order: 2; }
.inspect__row--reverse .inspect__art { order: 1; }
.inspect__label { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.inspect__text h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.inspect__text p:last-child { color: var(--ink-soft); font-size: 17px; }
.inspect__art svg { width: 100%; height: auto; border-radius: var(--radius); }

/* ============ КАРТА МАРШРУТОВ ============ */
.route { margin-top: 20px; }
.route__svg { width: 100%; height: auto; }
.route__arcs path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.route__svg.in .route__arcs path { animation: drawArc 1.6s cubic-bezier(.22,.61,.36,1) forwards; }
.route__arcs path:nth-child(2) { animation-delay: .2s; }
.route__arcs path:nth-child(3) { animation-delay: .4s; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }

/* ============ КЕЙСЫ ============ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.10); }
.case-card .photo-slot { border-radius: 0; min-height: 230px; }
.case-card__body { padding: 26px; display: grid; gap: 8px; }
.case-card h3 { font-size: 20px; }
.case-card__meta { color: var(--ink-soft); font-size: 14px; }
.case-card__price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.case-card__price span { display: block; font-size: 14px; font-weight: 500; color: #1a8917; }

/* ============ ЦЕНА ============ */
.price { text-align: center; }
.price__formula { font-size: clamp(20px, 3vw, 30px); color: var(--ink-soft); margin: 10px 0 26px; }
.price__formula strong { color: var(--ink); }
.price__note { font-size: 17px; color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

/* ============ ПРОЦЕСС ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 36px; margin-top: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.step__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ============ МЕНЕДЖЕРЫ ============ */
.managers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.manager { padding: 40px 24px; background: var(--bg-gray); border-radius: var(--radius); }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.avatar svg { width: 46px; height: 46px; fill: none; stroke: #b0b6bf; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.manager h3 { font-size: 21px; margin-bottom: 4px; }
.manager p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }

/* ============ ФОРМЫ ============ */
.leadmagnet { text-align: center; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; max-width: 720px; margin: 0 auto; }
.lead-form input { padding: 15px 20px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; font-family: inherit; background: var(--bg); color: var(--ink); width: 100%; }
.lead-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.section--dark .lead-form input { background: #1c1c21; border-color: #3a3a3f; color: #f5f5f7; }
.consent { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.section--dark .consent { color: #6e6e73; }

/* ============ КВИЗ ============ */
.quiz { background: var(--bg-gray); border-radius: 24px; padding: 48px; }
.quiz__step { display: none; }
.quiz__step--active { display: block; animation: quizIn .4s ease; }
@keyframes quizIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.quiz__step h3 { font-size: 24px; margin-bottom: 28px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quiz__options label { background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 18px 20px; cursor: pointer; transition: border-color .2s; display: flex; align-items: center; gap: 12px; font-size: 16px; }
.quiz__options label:hover { border-color: var(--line); }
.quiz__options input { accent-color: var(--accent); width: 18px; height: 18px; }
.quiz__options label:has(input:checked) { border-color: var(--accent); }
.quiz__final { display: grid; gap: 14px; }
.quiz__final input[type="text"], .quiz__final input[type="tel"] { padding: 15px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-family: inherit; }
.quiz__final input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.quiz__channels { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz__channels label { background: var(--bg); border: 1.5px solid transparent; border-radius: 980px; padding: 10px 20px; cursor: pointer; font-size: 14px; display: flex; gap: 8px; align-items: center; transition: border-color .2s; }
.quiz__channels label:has(input:checked) { border-color: var(--accent); }
.quiz__channels input { accent-color: var(--accent); }
.quiz__nav { display: flex; align-items: center; gap: 20px; margin-top: 34px; }
.quiz__progress { flex: 1; height: 4px; background: var(--line); border-radius: 100px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; background: var(--accent); border-radius: 100px; transition: width .3s; }

/* ============ FAQ ============ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; font-weight: 600; font-size: 19px; padding: 26px 40px 26px 0; list-style: none; position: relative; letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--ink-soft); transition: transform .25s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--ink-soft); padding-bottom: 28px; font-size: 16px; max-width: 660px; }

/* ============ ФИНАЛЬНЫЙ CTA ============ */
.final__inner { text-align: center; }
.final__alt { margin-top: 34px; color: var(--ink-soft); font-size: 15px; }
.final__alt a { color: var(--accent); }

/* ============ ФУТЕР ============ */
.footer { background: var(--bg-gray); color: var(--ink-soft); padding: 60px 0 30px; font-size: 13.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.logo--footer { margin-bottom: 12px; color: var(--ink); }
.footer h4 { color: var(--ink); margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.footer ul { display: grid; gap: 9px; }
.footer a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; flex-wrap: wrap; font-size: 12px; color: #86868b; }

/* ============ ПЛАВАЮЩИЕ КНОПКИ ============ */
.float-buttons { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 12px; z-index: 90; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .2s; }
.float-btn:hover { transform: scale(1.08); }
.float-btn:active { transform: scale(0.96); }
.float-btn--wa { background: #25d366; }
.float-btn--tg { background: #229ed9; }

/* ============ АДАПТИВ ============ */
@media (max-width: 992px) {
  .section { padding: 90px 0; }
  .countries, .cases, .managers { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .inspect__row { grid-template-columns: 1fr; gap: 30px; }
  .inspect__row--reverse .inspect__text { order: 1; }
  .inspect__row--reverse .inspect__art { order: 2; }
  .numbers__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .burger { display: flex; }
  .header__contacts { margin-left: 0; }
  .header__phone { display: none; }
  .nav.nav--open { display: flex; position: absolute; top: 56px; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); font-size: 17px; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero { padding: 70px 0 50px; }
  .hero__cta { gap: 18px; margin-bottom: 44px; }
  .steps { grid-template-columns: 1fr; }
  .quiz { padding: 28px 20px; }
  .quiz__options { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .manifesto { padding: 90px 0; }
  .header__contacts .btn { display: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__lens { animation: none; }
  .route__arcs path { stroke-dashoffset: 0; animation: none; }
  .route__dot { display: none; }
  .quiz__step--active { animation: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001s !important; }
}
