/* Лендинг «Делателя». Отдельный статический артефакт (ADR-0005): ни Node на рантайме,
   ни обращений к базе, ни service worker. Ни одного запроса наружу — шрифт лежит
   рядом.

   Палитра и типографика СКОПИРОВАНЫ из src/app/globals.css вручную. Это плата за
   ADR-0005: автоматической сверки нет, расхождение ловится глазами. Блок токенов
   ниже перенесён целиком и дословно (включая неиспользуемые здесь стеклянные
   токены), чтобы сверка сводилась к обычному диффу двух файлов. Менять палитру и
   шрифты запрещено (docs/ux-inventory.md, раздел 1). */

/* ─────────────────────────────────────────────────────────────────────────────
   Шрифт. Rubik — СВОЙ у лендинга. В приложении его больше нет: интерфейс
   переведён на системный (spec-changes #135), лендинг остался на Rubik.
   Файлы вариативные, поэтому одна запись на весь диапазон насыщенности вместо
   трёх. Подрезки latin/cyrillic разнесены по unicode-range: кириллический текст
   тянет 15 КБ, а не всё сразу. Georgia системная и не грузится вовсе.
   ─────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-latin.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 {
  /* Здесь живёт знак рубля (U+20BD) — без этой подрезки цена рисуется запасным
     шрифтом и выпадает из строки. */
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-latin-ext.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;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Токены: светлая по умолчанию, тёмная — по системе. Копия src/app/globals.css.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --foreground: #1c1c1e;
  --muted: #86868b;
  --faint: #b6b6bc;
  --line: #ececea;
  --red: #ff3b30;
  --orange: #ff9500;
  --green: #34c759;
  --accent: #007aff;
  --canvas: #fdfdfd;
  --panel-hair: rgba(0, 0, 0, 0.08);
  /* Стеклянные токены на лендинге не используются: стекло — приём каркаса
     приложения (сайдбар, нижний бар), а не длинной страницы. Держим их здесь
     ради дословности копии. */
  --glass-tint: rgba(247, 248, 250, 0.93);
  --glass-bar-tint: rgba(255, 255, 255, 0.82);
  --glass-pill: rgba(255, 255, 255, 0.85);
  --glass-sheen: rgba(255, 255, 255, 0.38);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --glass-cant: rgba(255, 255, 255, 0.5);
  --glass-hair: rgba(0, 0, 0, 0.07);
  --glass-opaque: #f7f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #141416;
    --surface: #1e1e20;
    --foreground: #f5f5f7;
    --muted: #adadb4;
    --faint: #85858c;
    --line: #2f2f31;
    --red: #ff453a;
    --orange: #ff9f0a;
    --green: #30d158;
    --accent: #0a84ff;
    --canvas: #171719;
    --panel-hair: rgba(0, 0, 0, 0.45);
    --glass-tint: rgba(32, 32, 34, 0.88);
    --glass-bar-tint: rgba(30, 30, 32, 0.86);
    --glass-pill: rgba(255, 255, 255, 0.14);
    --glass-sheen: rgba(255, 255, 255, 0.08);
    --glass-hi: rgba(255, 255, 255, 0.16);
    --glass-cant: rgba(255, 255, 255, 0.09);
    --glass-hair: rgba(0, 0, 0, 0.45);
    --glass-opaque: #1e1e20;
  }
}

/* ── Основа ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  /* Холст окна, как на деске приложения: карточки (--surface) лежат на нём и
     читаются отрывом, а не тенью. */
  margin: 0;
  background: var(--canvas);
  color: var(--foreground);
  font-family: "Rubik", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Клавиатурная навигация: в приложении outline снят намеренно (там свои
   состояния), на длинной публичной странице фокус обязан быть виден. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Каркас страницы ────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 20px;
}

/* Первый экран собственного .section не имеет: над ним нечего отделять. */
.section {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 104px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* засечный акцент для крупных заголовков-дверей — Georgia (globals.css
   .font-display) */
.font-display {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.05rem, 6.2vw, 3.6rem);
  line-height: 1.08;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  line-height: 1.15;
  font-weight: 400;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
}

p {
  margin: 0 0 1.05em;
  max-width: 40em;
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.note {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.section > .wrap > h2,
.section > .wrap > .font-display {
  margin-bottom: 22px;
}

.stack > * + * {
  margin-top: 28px;
}

/* ── Шапка ──────────────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}
.wordmark {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.wordmark:hover {
  text-decoration: none;
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar__link {
  font-size: 0.9375rem;
  color: var(--muted);
}
/* На узком экране прячется только цена: она повторяется в секции цен и в
   завершающем блоке. Ссылка на документацию остаётся всегда — требование
   постоянной доступности документации (ПП 1236, п. 4 «ж»). */
@media (max-width: 33rem) {
  .topbar__link--price {
    display: none;
  }
}

/* ── Первый экран ───────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(48px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 104px);
}
.hero h1 {
  max-width: 15ch;
}
.hero__sub {
  margin-top: 26px;
  max-width: 34em;
}
.hero__tag {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--faint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 140ms ease-out,
    border-color 140ms ease-out,
    opacity 140ms ease-out;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover {
  opacity: 0.88;
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--foreground);
}
.btn--ghost:hover {
  border-color: var(--faint);
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ── Карточки ───────────────────────────────────────────────────────────── */

/* Карточка-секция: фон --surface + волосок --line (globals.css .card). */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 22px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ── Список-чеклист ─────────────────────────────────────────────────────── */

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  max-width: 40em;
}
.ticks li:last-child {
  margin-bottom: 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* Сигналы зоны «Требует Внимания» — цветные точки светофора здоровья. */
.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.signals li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: none;
}
.dot--red {
  background: var(--red);
}
.dot--orange {
  background: var(--orange);
}
.dot--green {
  background: var(--green);
}

/* ── Снимок экрана ──────────────────────────────────────────────────────── */

/* Снимки продукта (ТЗ 6.3) сняты со стенда. Пропорции заданы в CSS, а не
   атрибутами width/height картинки: у десктопного и телефонного снимка они
   разные, и один набор атрибутов на оба варианта <picture> дал бы скачок
   вёрстки при загрузке. */
.shot {
  margin: 30px 0 0;
}
.shot picture {
  display: block;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  /* Скругление режет углы снимка, иначе он торчит квадратными углами из рамки. */
  overflow: hidden;
  background: color-mix(in srgb, var(--foreground) 2.5%, transparent);
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
}
.shot figcaption {
  color: var(--faint);
  font-size: 0.875rem;
  text-align: center;
  max-width: 34em;
  margin: 14px auto 0;
}

/* Узкий экран: сжатый до трёхсот точек десктопный снимок нечитаем, поэтому
   ниже 40rem <picture> отдаёт снимок с телефона — у него своя пропорция. */
@media (max-width: 40rem) {
  .shot img {
    aspect-ratio: 750 / 1624;
  }
}

/* ── Цены ───────────────────────────────────────────────────────────────── */

.price {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.price--lead {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.price__label {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.price__value {
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.price__terms {
  font-size: 0.8125rem;
  color: var(--faint);
  margin-top: 6px;
}
.price p {
  margin-bottom: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

/* ── Вопросы ────────────────────────────────────────────────────────────── */

.qa {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.qa:last-of-type {
  border-bottom: 1px solid var(--line);
}
.qa h3 {
  margin-bottom: 8px;
}
.qa p {
  color: var(--muted);
}
.qa code {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--foreground);
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: middle;
}

/* ── Заглушка ───────────────────────────────────────────────────────────── */

/* Умышленно вызывающая рамка: пока внутри заглушка, страницу нельзя случайно
   счесть готовой к публикации. Снимается вместе с текстом. */
.todo {
  border: 1px dashed var(--orange);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.todo strong {
  color: var(--orange);
  font-weight: 500;
}

/* ── Финал и подвал ─────────────────────────────────────────────────────── */

.final__price {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer p {
  max-width: 46em;
}

/* ── Страницы-заглушки (demo.html, pay.html) ────────────────────────────── */

.stub {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}
.stub__inner {
  max-width: 34rem;
}
.stub h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 18px;
}
.stub p {
  margin-left: auto;
  margin-right: auto;
}
.stub .actions {
  justify-content: center;
}
