/* Nuvaro — «ночная смена». Общие стили для всех страниц.
   Идея: сайт — это ночь, когда магазин закрыт; бот — свет, который горит всю ночь. */
:root {
  --night: #10131f;      /* фон */
  --ink: #181c2c;        /* поверхности */
  --line: #2a3047;       /* линии и рамки */
  --paper: #ece7da;      /* основной текст — «лунная бумага» */
  --dusk: #8f94a8;       /* второстепенный текст */
  --lamp: #f2b544;       /* свет витрины: кнопки и главное */
  --lamp-ink: #1d1404;
  --wa: #25d366;         /* только круглая кнопка WhatsApp */
  --top-bg: rgba(16, 19, 31, .9);
  --cell: #1b2033;       /* час без ответа */
  --cell-open: #3a3f55;  /* час, когда отвечают люди */
  --result: #1f2438;
  --giant: #171b2a;
  --lamp-hover: #f7c766;
  color-scheme: dark;
  --max: 1120px;
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

/* День: светлая тема, включается кнопкой рядом с языками */
html[data-theme="day"] {
  --night: #f4f5f8;
  --ink: #ffffff;
  --line: #dadde6;
  --paper: #161a2a;
  --dusk: #5b6176;
  --lamp: #f2b544;
  --lamp-ink: #1d1404;
  --top-bg: rgba(244, 245, 248, .92);
  --cell: #e3e6ee;
  --cell-open: #aeb3c3;
  --result: #fbf3df;
  --giant: #e6e8ef;
  --lamp-hover: #e9a92f;
  color-scheme: light;
}
html[data-theme="day"] .h.bot { box-shadow: none; }
html[data-theme="day"] .versus .good h3,
html[data-theme="day"] .tile .p,
html[data-theme="day"] .steps b,
html[data-theme="day"] .price .tag,
html[data-theme="day"] .result .big { color: #a86a00; } /* янтарный текст темнее, чтобы читался на светлом */
html[data-theme="day"] .logo b { color: #c98a10; }

/* Кнопка «ночь / день» */
.theme {
  background: none; border: 1px solid var(--line); color: var(--paper); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0;
}
.theme:hover { border-color: var(--dusk); }
.theme svg { width: 18px; height: 18px; fill: currentColor; }
.theme .sun { display: none; }
html[data-theme="day"] .theme .sun { display: block; }
html[data-theme="day"] .theme .moon { display: none; }

/* Языки: показываем только выбранный */
html[data-lang="kk"] [lang="ru"],
html[data-lang="ru"] [lang="kk"] { display: none !important; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--top-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 30px; height: 66px; }
.logo { font-weight: 800; letter-spacing: .02em; text-decoration: none; font-size: 21px; }
.logo b { font-weight: 800; color: var(--lamp); }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--dusk); font-size: 15px; font-weight: 400; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.langs { display: flex; gap: 2px; }
.langs button {
  background: none; border: 0; color: var(--dusk); font: 500 14px var(--font);
  padding: 6px 8px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--lamp); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--paper);
  border-radius: 8px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 10px; font: 600 16px var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-main { background: var(--lamp); color: var(--lamp-ink); }
.btn-main:hover { background: var(--lamp-hover); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--dusk); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Первый экран ---------- */
.hero { padding: 56px 0 72px; }
.pill { display: inline-block; font-size: 15px; color: var(--dusk); font-weight: 400; }
.pill i { display: none; }
h1 {
  font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -.03em;
  font-weight: 800; margin: 18px 0 26px; max-width: 16ch;
}
h1 em { font-style: normal; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--dusk); max-width: 56ch; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--dusk); font-size: 15px; font-weight: 400; }
.ticks li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); margin-right: 10px; vertical-align: middle; }

/* Главная деталь: сутки из 24 часов */
.day { margin-top: 48px; }
.day-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--dusk); font-weight: 400; margin-bottom: 12px; }
.day-cap b { color: var(--paper); font-weight: 600; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; position: relative; }
.h {
  height: 74px; border-radius: 3px; background: var(--cell); position: relative;
  transition: background .35s ease, box-shadow .35s ease;
}
.h.open { background: var(--cell-open); }                           /* магазин открыт — работают люди */
.h.bot { background: var(--lamp); box-shadow: 0 0 22px rgba(242,181,68,.35); } /* ночь — работает бот */
.h.now::after {
  content: ""; position: absolute; left: 50%; top: -10px; bottom: -10px; width: 2px; margin-left: -1px;
  background: var(--paper);
}
.hours-scale { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 10px; font-size: 12px; color: var(--dusk); font-variant-numeric: tabular-nums; }
.hours-scale span { min-width: 0; overflow: hidden; }
.hours-scale span:nth-child(even) { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; font-size: 15px; color: var(--dusk); font-weight: 400; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.legend .l-open { background: var(--cell-open); }
.legend .l-bot { background: var(--lamp); }
.legend .l-now { width: 2px; background: var(--paper); border-radius: 0; height: 16px; }

/* ---------- Секции ---------- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.kicker { display: none; } /* надписи над заголовками убраны: заголовок говорит сам */
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800; max-width: 22ch; }
.sub { color: var(--dusk); max-width: 60ch; margin: 0 0 44px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; letter-spacing: -.005em; }

.grid { display: grid; gap: 40px 48px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* Обычный блок — без подложки: линия сверху и текст */
.card { border-top: 1px solid var(--line); padding: 22px 0 0; }
.card p { color: var(--dusk); margin: 0; }
.card .num { display: none; } /* номера только там, где есть порядок шагов */

/* «Как сейчас / как будет» */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.versus .card { border-top: 0; padding: 0; }
.versus .card h3 { font-size: 22px; margin-bottom: 16px; }
.versus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.versus li { padding: 14px 0 14px 30px; position: relative; border-top: 1px solid var(--line); color: var(--dusk); }
.versus .bad li::before { content: "—"; position: absolute; left: 0; color: var(--dusk); }
.versus .good h3 { color: var(--lamp); }
.versus .good li { color: var(--paper); }
.versus .good li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--lamp); }

/* ---------- Вкладки услуг ---------- */
.tabs { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; color: var(--dusk); border: 0; padding: 0 0 14px; margin-bottom: -1px;
  font: 500 19px var(--font); cursor: pointer; border-bottom: 2px solid transparent;
}
.tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--lamp); }
.panel { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; }
.panel[hidden] { display: none; }
.panel .card { border-top: 0; padding: 0; }
.panel .card:first-child h3 { font-size: 30px; letter-spacing: -.02em; font-weight: 800; }
.list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 0; }
.list li { padding: 11px 0 11px 26px; position: relative; color: var(--paper); border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 1px; background: var(--lamp); }
.big-price { font-size: clamp(36px, 4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-price small { font-size: 17px; color: var(--dusk); font-weight: 400; letter-spacing: 0; }
.big-price .nb { white-space: nowrap; }
.panel .side { display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--ink); border-radius: 20px; padding: 30px; }

/* ---------- Калькулятор: один «прибор» на странице ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--ink); border-radius: 24px; overflow: hidden; }
.calc .card { border-top: 0; padding: 40px; }
.calc label { display: block; margin-bottom: 30px; }
.calc .row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 400; }
.calc .row span:last-child { color: var(--paper); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--lamp); height: 28px; }
.result { background: var(--result); }
.result .big { font-size: clamp(46px, 6vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--lamp); margin: 12px 0 18px; font-variant-numeric: tabular-nums; }

/* ---------- Цены: три колонки через линии ---------- */
.price .grid { gap: 0; }
.price .g3 > .card { padding: 30px 32px 34px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.price .g3 > .card:nth-child(3n+1) { border-left: 0; }
.price .g3 > .card:nth-child(n+4) { margin-top: 28px; }
.price .card .list { flex: 1; align-content: start; }
.price .hot { position: relative; }
.price .g3 > .hot { background: var(--ink); border-radius: 0 0 20px 20px; border-top: 2px solid var(--lamp); }
.price .tag { display: block; color: var(--lamp); font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.price .for { color: var(--dusk); font-size: 15px; margin: 8px 0 0; }
.price .panel > .hot { background: var(--ink); border-radius: 20px; padding: 32px; border-top: 2px solid var(--lamp); }
.price .panel > .side { background: none; padding: 32px 0 0; border-radius: 0; }

/* ---------- Шаги: это настоящая последовательность, поэтому с номерами ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps b { font-size: 16px; color: var(--lamp); font-weight: 500; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--dusk); }

/* ---------- Вопросы (все ответы открыты) ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.faq .card h3 { font-size: 19px; }

/* ---------- Чем мы отличаемся: крупный тезис слева, объяснение справа ---------- */
.why { margin: 0; }
.why > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; padding: 26px 0; border-top: 1px solid var(--line); }
.why > div:last-child { border-bottom: 1px solid var(--line); }
.why dt { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.why dd { margin: 0; color: var(--dusk); }
@media (max-width: 760px) { .why > div { grid-template-columns: 1fr; padding: 22px 0; } }

/* ---------- Финальный экран ---------- */
.final { padding: 130px 0; }
.final h2 { max-width: 16ch; font-size: clamp(34px, 5.5vw, 70px); }
h1, h2, h3 { overflow-wrap: break-word; }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 0; color: var(--dusk); font-size: 15px; font-weight: 400; overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--paper); margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }
.giant { font-weight: 800; font-size: clamp(90px, 21vw, 290px); letter-spacing: -.05em; line-height: .8; color: var(--giant); margin: 50px 0 -0.1em; user-select: none; white-space: nowrap; }

/* Список услуг справа на первом экране главной */
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; }
.hero-grid h1 { max-width: none; font-size: clamp(40px, 5.2vw, 70px); }
.tiles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; text-decoration: none; border-bottom: 1px solid var(--line);
}
.tile b { display: block; font-size: 19px; font-weight: 600; }
.tile small { color: var(--dusk); font-size: 14px; font-weight: 400; }
.tile .p { font-weight: 600; white-space: nowrap; color: var(--lamp); font-variant-numeric: tabular-nums; }
.tile:hover b { text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 5px; }

/* Плавающая кнопка WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Появление при прокрутке отключено: одна анимация на странице — сутки на первом экране */
.reveal { opacity: 1; transform: none; }

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

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1200px) {
  .top .btn-sm { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .theme { margin-left: auto; }
  .langs { margin-left: 0; }
}
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .panel, .calc, .versus, .hero-grid { grid-template-columns: 1fr; }
  .price .g3 > .card { border-left: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top .wrap { gap: 12px; }
  .top .btn-sm { display: none; }
  .theme { margin-left: auto; }
  .langs { margin-left: 0; }
  .hero { padding: 56px 0 56px; }
  section { padding: 68px 0; }
  .g2, .g4, .faq { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .calc .card { padding: 26px; }
  .panel .side { padding: 24px; }
  .price .g3 > .card { padding: 26px 0 30px; }
  .price .g3 > .hot { padding: 26px 22px 30px; }
  .cta-row .btn { width: 100%; }
  .foot { grid-template-columns: 1fr; }
  .h { height: 54px; border-radius: 2px; }
  .hours, .hours-scale { gap: 2px; }
  .hours-scale { font-size: 10px; }
  .hours-scale span { visibility: hidden; }
  .hours-scale span:nth-child(6n+1) { visibility: visible; overflow: visible; }
}

/* Пакеты WhatsApp-бота: таблица «пакет — ответов — цена» */
.packs { width: 100%; border-collapse: collapse; margin: 22px 0 4px; font-variant-numeric: tabular-nums; }
.packs th, .packs td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.packs tr:last-child th, .packs tr:last-child td { border-bottom: 1px solid var(--line); }
.packs th { font-weight: 600; width: 32%; }
.packs td small { display: block; color: var(--dusk); font-size: 14px; }
.packs .pp { text-align: right; font-weight: 600; white-space: nowrap; color: var(--lamp); }
html[data-theme="day"] .packs .pp { color: #a86a00; }
.packs + .list { margin-top: 16px; }
