/* Layout: длинная одностраничная веб-версия КП. Тёмная обложка → светлые разделы с чередованием фона →
   тёмный раздел про отчётность → тёмная плашка «Дополнение» → живые концепты в «окне браузера» → цены.
   Одна светлая тема намеренно: это деловой документ, тёмные разделы заданы явно. */
:root {
  --paper: #FBFAF8;
  --tint: #F3F0EB;
  --ink: #1E1A16;
  --muted: #6E645C;
  --rule: #E6E0D9;
  --accent: #1F6B54;
  --accent-tint: #E7F1EC;
  --espresso: #15100C;
  --espresso-2: #211812;
  --crema: #D3A975;
  --on-dark: #F3EDE5;
  --on-dark-muted: #B6A99C;
  --roast: #8A5530;
  --display: "Geologica", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

/* ---------- Верхняя полоса ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(251, 250, 248, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { font-weight: 600; white-space: nowrap; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 400; }
.topnav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.topnav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.topnav a:hover { color: var(--ink); }

/* ---------- Кнопки ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 15px 24px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 0; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(31, 107, 84, .25); }
.button--crema { background: var(--crema); color: #1B120C; }
.button--ghost-dark { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(243, 237, 229, .35); }
.button--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(30, 26, 22, .22); }
.button--small { padding: 9px 16px; font-size: 14px; }

/* ---------- Обложка ---------- */
.cover { position: relative; isolation: isolate; background: var(--espresso); color: var(--on-dark); overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(../img/premium.jpg) 78% center / cover no-repeat; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,16,12,.98) 0%, rgba(21,16,12,.94) 44%, rgba(21,16,12,.6) 64%, rgba(21,16,12,.25) 100%); }
.cover .wrap { padding-block: 104px 88px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.cover .kicker { color: var(--crema); }
.cover .kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.cover h1 { font: 700 clamp(40px, 6vw, 74px)/1.02 var(--display); letter-spacing: -.025em; margin: 22px 0 20px; max-width: 13ch; text-wrap: balance; }
.cover h1 span { color: var(--crema); }
.cover .lead { font-size: 19px; color: var(--on-dark-muted); max-width: 46ch; margin: 0; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; max-width: 740px; }
.term { background: rgba(243, 237, 229, .07); border: 1px solid rgba(243, 237, 229, .14); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(6px); }
.term dt { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--on-dark-muted); }
.term dd { margin: 6px 0 0; }
.term .v { display: block; font: 600 28px/1.15 var(--display); white-space: nowrap; }
.term .s { display: block; font-size: 13.5px; color: var(--on-dark-muted); margin-top: 4px; }
.cover .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Разделы ---------- */
.section { padding-block: 96px; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--espresso); color: var(--on-dark); }
.section--dark .kicker { color: var(--crema); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.title { font: 600 clamp(30px, 3.6vw, 44px)/1.12 var(--display); letter-spacing: -.02em; margin: 12px 0 14px; text-wrap: balance; }
.intro-text { font-size: 18.5px; color: var(--muted); margin: 0; max-width: 60ch; }
.section--dark .intro-text { color: var(--on-dark-muted); }
.subtitle { font: 600 22px/1.3 var(--display); margin: 56px 0 18px; }
.note { font-size: 14.5px; color: var(--muted); max-width: 75ch; margin: 22px 0 0; }
.section--dark .note { color: var(--on-dark-muted); }

/* Карточки фактов */
.factlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.fact { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 22px 24px; }
.fact h3 { font: 600 15px var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.fact p { margin: 0; }

/* Стратегия: карта кабинета */
.camp-map { border: 2px solid var(--accent); background: var(--accent-tint); border-radius: 22px; padding: 22px; }
.camp-map-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.camp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.camp { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 20px 22px; }
.camp-kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--roast); }
.camp h3 { font: 600 19px/1.3 var(--display); margin: 6px 0 10px; }
.queries { list-style: none; margin: 0 0 10px; padding: 0; color: var(--muted); font-size: 15px; }
.queries li::before { content: "«"; } .queries li::after { content: "»"; }
.camp p { margin: 0; font-size: 15.5px; }
.camp-foot { margin-top: 14px; background: #fff; border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 16px; text-align: center; font-size: 15px; }
.strategy-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 44px; align-items: start; }
.setlist { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.setlist div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.setlist dt { font-weight: 600; }
.setlist dd { margin: 0; color: var(--muted); }
.serp-label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.serp { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 20px 22px; box-shadow: 0 14px 34px rgba(30, 20, 10, .07); }
.serp-url { font-size: 13.5px; color: var(--muted); }
.serp-url b { color: var(--ink); margin-right: 6px; }
.serp-title { font-size: 20px; color: #1A3C9C; margin: 4px 0; font-weight: 500; }
.serp-text { margin: 0 0 6px; }
.serp-ext { font-size: 14px; color: var(--muted); }
.serp-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14.5px; color: #1A3C9C; }
.serp-contact { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* Настройка и ведение */
.steps9 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps9 li { counter-increment: s; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 20px 22px; }
.steps9 li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 14px var(--display); color: var(--roast); margin-bottom: 8px; }
.steps9 h3 { font: 600 18px/1.3 var(--display); margin: 0 0 6px; }
.steps9 p { margin: 0; color: var(--muted); font-size: 15px; }
.ticklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.ticklist li { position: relative; padding-left: 28px; }
.ticklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Отчётность */
.report { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.why { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.why li { padding-left: 20px; border-left: 2px solid var(--crema); }
.why b { display: block; color: var(--on-dark); font-weight: 600; }
.why span { color: var(--on-dark-muted); font-size: 15.5px; }
.devices { position: relative; padding-bottom: 40px; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #EDE9E4; border-bottom: 1px solid #DDD6CE; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #CFC6BC; }
.browser-bar span { margin-left: 10px; font-size: 12.5px; color: #7A7068; background: #fff; border-radius: 7px; padding: 3px 12px; }
.phone { position: absolute; right: -18px; bottom: 0; width: 26%; border: 6px solid #111; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); background: #fff; }
.report-wide { margin-top: 64px; }
.report-wide .browser { box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.report-wide-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.report-wide-head p { margin: 0; color: var(--on-dark-muted); max-width: 62ch; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.channel { border-top: 2px solid var(--crema); padding-top: 14px; }
.channel h3 { font: 600 18px var(--display); margin: 0 0 6px; }
.channel p { margin: 0; color: var(--on-dark-muted); font-size: 15.5px; }

/* Бюджет */
.budget { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: start; }
.budget-fig { border-left: 4px solid var(--accent); padding-left: 22px; }
.budget-fig .v { display: block; font: 700 clamp(48px, 7vw, 76px)/1 var(--display); white-space: nowrap; }
.budget-fig .s { display: block; color: var(--muted); margin-top: 8px; }
.budget p { margin: 0 0 16px; font-size: 18px; }

/* Стоимость */
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th { text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); }
.price-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table td.num { font: 600 21px/1.3 var(--display); }
.price-table .hint { display: block; font-size: 14px; color: var(--muted); }
.paysteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.paystep { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 14px; padding: 18px 20px; }
.paystep.monthly { border-top-color: var(--roast); }
.paystep .when { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.paystep .v { display: block; font: 600 28px/1.25 var(--display); margin: 6px 0 2px; white-space: nowrap; }
.paystep p { margin: 0; font-size: 15px; }

/* Этапы */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--rule); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline .day { display: block; font: 600 18px var(--display); color: var(--accent); margin-bottom: 6px; }
.timeline p { margin: 0; font-size: 15px; color: var(--muted); }

/* Что нужно от клиента */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.checklist li { display: grid; grid-template-columns: 30px minmax(0, 1fr); }
.checklist li::before { content: ""; width: 18px; height: 18px; margin-top: .2em; border: 2px solid var(--accent); border-radius: 5px; }

/* Дополнение: сайт */
.addon { background: var(--espresso-2); color: var(--on-dark); padding-block: 88px; }
.addon .kicker { color: var(--crema); }
.addon .title { max-width: 18ch; }
.addon .intro-text { color: var(--on-dark-muted); }
.addon-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stage-block { margin-top: 44px; }
.stage-block:first-child { margin-top: 0; }
.stage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 18px; }
.stage-head h3 { font: 600 22px/1.3 var(--display); margin: 0; }
.stage-meta { font-weight: 600; color: var(--accent); }
.recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.rec { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 20px 22px; }
.rec h4 { font: 600 17px/1.35 var(--display); margin: 0 0 10px; }
.rec p { margin: 6px 0 0; font-size: 15px; }
.rec .now { color: var(--muted); }
.rec .label { font-weight: 600; color: var(--ink); }
.self-note { margin-top: 36px; background: var(--accent-tint); border-radius: 16px; padding: 18px 22px; }
.self-note p { margin: 0; }

/* Концепты */
.concept { margin-top: 72px; }
.concept:first-of-type { margin-top: 0; }
.concept-head { display: flex; gap: 18px; align-items: baseline; margin-bottom: 18px; }
.concept-num { font: 600 15px var(--display); color: var(--roast); }
.concept-head h3 { font: 600 24px/1.25 var(--display); margin: 0; }
.concept-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.concept-stage { position: relative; padding-right: 0; }
.concept-stage .browser { box-shadow: 0 30px 70px rgba(30, 20, 10, .18); }
.concept-stage .phone { right: -40px; bottom: -36px; width: 200px; z-index: 2; }
.on-phone { display: none; }

/* Варианты и стоимость */
.options { width: 100%; border-collapse: collapse; font-size: 16px; }
.options th, .options td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.options th:first-child, .options td:first-child { text-align: left; padding-left: 0; }
.options thead th { border-bottom: 2px solid var(--ink); font-weight: 400; vertical-align: bottom; width: 26%; }
.options thead th:first-child { width: auto; }
.options .b { background: var(--accent-tint); }
.options thead th.b { border-top: 3px solid var(--accent); }
.opt-name { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.opt-desc { display: block; font-weight: 600; margin-top: 2px; }
.opt-price { display: block; font: 600 30px/1.2 var(--display); margin-top: 8px; white-space: nowrap; }
.opt-time { display: block; font-size: 14px; color: var(--muted); }
.options .yes { color: var(--accent); font-weight: 700; font-size: 18px; }
.options .no { color: #B7AEA6; }
.options .extra { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.options .gift { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Подвал */
.footer { background: var(--espresso); color: var(--on-dark-muted); padding-block: 48px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer b { color: var(--on-dark); font-weight: 600; }

/* ---------- Планшет ---------- */
@media (max-width: 1180px) {
  .concept-stage .phone { display: none; }
}
@media (max-width: 980px) {
  .topnav { display: none; }
  .topbar .button { margin-left: auto; }
  .steps9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .strategy-split { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline li { padding: 0 0 22px 36px; }
  .timeline li::before { top: 4px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .topbar .wrap { gap: 12px; height: 56px; }
  .brand { font-size: 14.5px; }
  .brand span { display: none; }
  .cover .wrap { padding-block: 64px 56px; }
  .cover::after { background: linear-gradient(180deg, rgba(21,16,12,.75) 0%, rgba(21,16,12,.94) 45%, rgba(21,16,12,.98) 100%); }
  .cover .lead { font-size: 17px; }
  .terms { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 30px; }
  .cover .cta { flex-direction: column; }
  .section, .addon { padding-block: 64px; }
  .intro-text { font-size: 17px; }
  .camp-grid, .steps9, .ticklist, .channels, .paysteps, .checklist, .recs { grid-template-columns: minmax(0, 1fr); }
  .camp-map { padding: 14px; border-radius: 18px; }
  .setlist div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .devices { padding-bottom: 0; }
  .phone { position: relative; right: auto; width: 62%; margin: -60px 0 0 auto; }
  .budget { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .on-phone { display: block; }
  .concept { margin-top: 52px; }
  .concept-head { flex-direction: column; gap: 4px; }
  .concept-stage .browser { border-radius: 14px; }
  .browser-bar { padding: 8px 12px; }
  .options { font-size: 14px; }
  .options th, .options td { padding: 10px 8px; }
  .opt-price { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
