/* Посадочная master.8way.ru — стиль A CRM (графит + оранжевый, Manrope). Дизайн §11.4.
   Сначала телефон, потом ≥768 и ≥1024. Ни внешних шрифтов, ни inline-стилей (CSP). */

/* Manrope (@fontsource 5.3, OFL — fonts/OFL.txt): ₽ (U+20BD) есть только в latin-ext */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/manrope-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/manrope-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Токены. Контраст проверяет tests/test_contrast.py (подводный камень 1):
   --accent — заливки и крупное; кнопки с белым текстом — --accent-strong; оранжевый текст — --accent-text */
:root {
  --bg: #F4F2EE;
  --surface: #FFFFFF;
  --ink: #16202E;
  --muted: #646C79;
  --line: #E4E0D8;
  --accent: #F2661B;
  --accent-strong: #C94F0C;
  --accent-strong-hover: #B4460A;
  --accent-text: #B2470F;
  --accent-soft: #FDE8DB;
  --accent-faint: #F9CDB4;
  --ok: #1F9D55;
  --banner: #16202E;
  --plate: #2B3645;
  --seg: #E9E5DE;
  --stroke: #C9C3B8;
  --on-dark: #FFFFFF;
  --on-dark-muted: #FFFFFFB3;
  --on-dark-line: #FFFFFF26;
  --radius: 12px;
  --gutter: 16px;
  --content: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 40px 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--banner); color: var(--on-dark); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.section--dark .eyebrow { color: var(--accent); }
.h2 { margin-top: 8px; max-width: 720px; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius); border: 1.5px solid transparent; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.btn--primary { background: var(--accent-strong); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-strong-hover); }
.btn--ghost { border-color: var(--stroke); color: var(--ink); font-weight: 600; background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn--large { width: 100%; min-height: 56px; font-size: 16px; }

/* Шапка */
.header { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #FFFFFF; }
.logo__mark .icon { width: 16px; height: 16px; }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__link { display: none; color: var(--muted); font-size: 15px; text-decoration: none; }
.header__link:hover { color: var(--ink); }

/* Первый экран */
.hero { display: grid; gap: 24px; padding-top: 12px; padding-bottom: 32px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.tag .icon { width: 14px; height: 14px; }
.hero__title { margin-top: 16px; font-size: 31px; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.hero__subtitle { margin-top: 16px; color: var(--muted); font-size: 16px; }
.hero__actions { display: grid; gap: 12px; margin-top: 20px; }
.hero__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.hero__notes li { display: inline-flex; align-items: center; gap: 4px; }
.hero__notes .icon { width: 16px; height: 16px; fill: var(--ok); }
.hero__visual { position: relative; display: flex; justify-content: center; height: 330px; padding-top: 24px; overflow: hidden; border-radius: 20px; background: var(--accent-soft); }

/* Устройства со скриншотами: рамки — CSS, картинки — Фича 102 */
.device { flex: none; }
.device--laptop { display: none; padding: 10px; border-radius: 14px; background: var(--plate); }
.device--phone { width: 190px; height: max-content; padding: 7px; border-radius: 28px; background: var(--ink); box-shadow: 0 18px 40px #16202E40; }
.shot { display: block; overflow: hidden; background: var(--seg); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot--laptop { aspect-ratio: 1440 / 950; border-radius: 6px; }
.shot--phone { aspect-ratio: 390 / 844; border-radius: 22px; }
.shot--empty { background: var(--seg); }

/* Боль */
.grid { display: grid; gap: 20px; margin-top: 24px; }
.point { display: flex; gap: 14px; }
.point__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.point__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.point__text { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Как работает */
.steps { display: grid; gap: 16px; margin-top: 24px; }
.step { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.step__shot { height: 96px; padding: 8px 8px 0; overflow: hidden; border-radius: 12px; background: var(--seg); }
.step__shot .shot { height: 100%; border-radius: 6px 6px 0 0; background: var(--line); }
.step__number { color: var(--accent-text); font-size: 12px; font-weight: 700; }
.step__title { margin-top: 2px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.step__desc { display: none; margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Под вашу работу */
.fit__visual { display: none; }
.features { display: grid; gap: 20px; margin-top: 24px; }
.feature { display: flex; gap: 12px; }
.feature__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); }
.feature__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.feature__text { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* Главная: карточки ниш */
.cards { display: grid; gap: 12px; margin-top: 24px; }
.card { display: grid; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card__text { color: var(--muted); font-size: 14px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--accent-text); font-size: 14px; font-weight: 700; }
.card__more .icon { width: 16px; height: 16px; }

/* 404 */
.not-found { display: grid; gap: 14px; padding-top: 40px; padding-bottom: 72px; }
.not-found__text { color: var(--muted); }
.not-found__links { display: grid; gap: 8px; }
.not-found__links a { color: var(--accent-text); font-weight: 600; }

/* Факты */
.facts { display: grid; gap: 20px; margin-top: 24px; }
.fact .icon { width: 24px; height: 24px; fill: var(--accent); }
.fact__title { margin-top: 10px; font-size: 16px; font-weight: 700; }
.fact__text { margin-top: 4px; color: var(--on-dark-muted); font-size: 14px; }

/* Пилот и цена */
.offer { display: grid; gap: 16px; padding-top: 40px; padding-bottom: 40px; }
.pilot { display: grid; gap: 14px; justify-items: start; padding: 24px; border-radius: 18px; background: var(--accent-soft); }
.pilot__title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.pilot__terms { font-size: 15px; }
/* Фрагмент server/pilot.py (§11.5): строка «Осталось N мест из 5» и шкала */
.pilot__count { display: grid; gap: 8px; width: 100%; }
.pilot__left { display: flex; align-items: center; gap: 8px; color: var(--accent-text); font-size: 17px; font-weight: 800; }
.pilot__left::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pilot__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.pilot__seat { height: 7px; border-radius: 4px; background: var(--accent-faint); }
.pilot__seat--taken { background: var(--accent); }
.pilot__full { font-size: 17px; font-weight: 800; }
.price { display: grid; gap: 14px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.price__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price__amount { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.price__unit { color: var(--muted); font-size: 15px; }
.price__items { display: grid; gap: 10px; }
.price__items li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.price__items .icon { width: 18px; height: 18px; fill: var(--ok); }

/* Вопросы */
.faq__hint { margin-top: 10px; color: var(--muted); font-size: 15px; }
.faq__list { margin-top: 16px; }
.question { border-bottom: 1px solid var(--line); }
.question__q { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.question__q::-webkit-details-marker { display: none; }
.question__q::after { content: "+"; flex: none; color: var(--muted); font-size: 22px; font-weight: 400; line-height: 1; }
.question[open] .question__q::after { content: "−"; }
.question__a { padding-bottom: 18px; color: var(--muted); font-size: 15px; }

/* Финал и подвал */
.final { padding-top: 48px; padding-bottom: 32px; }
.final__inner { display: grid; gap: 20px; }
.final__title { font-size: 26px; font-weight: 800; line-height: 1.2; }
.final__or { color: var(--on-dark-muted); font-size: 15px; }
.messengers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.messenger { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px; border: 1px solid #FFFFFF40; border-radius: 999px; color: var(--on-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.messenger:hover { border-color: var(--on-dark); }
.messenger::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.messenger--vk::before { background: #0077FF; }
.messenger--max::before { background: #8C76FF; }
.footer { padding: 24px 0 32px; border-top: 1px solid var(--on-dark-line); background: var(--banner); color: var(--on-dark-muted); font-size: 13px; }
.footer__inner { display: grid; gap: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Нижняя полоса на телефоне: последний ребёнок .after-hero, видна, пока обёртка на экране */
.sticky { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 14px; background: #FFFFFFEB; box-shadow: 0 -4px 16px #16202E1F; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 72px 0; }
  .h2 { font-size: 32px; }
  .header { padding-top: 20px; padding-bottom: 20px; }
  .logo { font-size: 18px; }
  .logo__mark { width: 32px; height: 32px; border-radius: 8px; }
  .header__link { display: inline; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 72px; }
  .hero__title { font-size: 40px; }
  .hero__subtitle { font-size: 18px; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .btn--large { width: auto; padding: 16px 24px; font-size: 17px; }
  .hero__notes { justify-content: flex-start; font-size: 14px; }
  .hero__visual { display: block; height: auto; padding: 0; overflow: visible; background: none; }
  .device--laptop { display: block; margin-right: 12%; }
  .hero__visual .device--phone { position: absolute; right: 0; bottom: -24px; width: 32%; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .point { flex-direction: column; }
  .point__icon { width: 44px; height: 44px; }
  .point__title { font-size: 19px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; align-items: start; }
  .step__shot { height: 200px; padding: 14px 14px 0; border-radius: 14px; }
  .step__desc { display: block; }
  .fit { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
  .fit__visual { display: flex; justify-content: center; height: 480px; padding-top: 40px; overflow: hidden; border-radius: 20px; background: var(--accent-soft); }
  .device--fit { width: 220px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: 16px; background: var(--on-dark-line); }
  .fact { padding: 28px; background: var(--banner); }
  .offer { grid-template-columns: 1fr minmax(300px, 400px); gap: 24px; padding-top: 72px; padding-bottom: 72px; }
  .pilot, .price { padding: 40px; }
  .pilot__title { font-size: 28px; }
  .faq { display: grid; grid-template-columns: 320px 1fr; gap: 56px; }
  .faq__list { margin-top: 0; }
  .question__q { font-size: 18px; padding: 20px 0; }
  .final { padding-top: 88px; padding-bottom: 88px; text-align: center; }
  .final__inner { justify-items: center; }
  .final__title { max-width: 760px; font-size: 36px; }
  .messengers { display: flex; gap: 12px; }
  .messenger { padding: 12px 22px; font-size: 15px; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .sticky { display: none; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 52px; line-height: 1.08; letter-spacing: -.02em; }
  .hero { grid-template-columns: 6fr 5fr; gap: 56px; }
  .h2 { font-size: 36px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
