/* ══════════════════════════════════════════════════════════════════
   Лабазан — ковровая тема подстраниц (лид-магниты + privacy).
   Общий слой на структурные классы .page-* (у всех подстраниц они одни).
   Токены продублированы из главной styles.css; палитра стабильна.
   Путь фона относителен этого файла (pages/ → ../assets/).
   ══════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --field: #e9e0cb;
  --panel: #f2ebd8;
  --ink: #2b211a;
  --muted: #6f6555;
  --madder: #9c2f23;
  --indigo: #2a3b55;
  --ochre: #b97f2e;
  --cream: #f2e9d4;
  --line: rgba(43, 33, 26, .16);
  --sh: 62, 36, 22;
  --elev-3:
    0 2px 4px rgba(var(--sh), .10),
    0 8px 16px rgba(var(--sh), .12),
    0 20px 38px rgba(var(--sh), .14),
    0 40px 72px rgba(var(--sh), .14);
  --bg-texture: url("../assets/bg-variants/tabasaran-linen-seamless.webp");
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: min(760px, calc(100vw - 40px));
  --block-gap: clamp(30px, 5vw, 46px);
  --font-display: "Unbounded", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

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

html {
  background: var(--field);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* Лён с ковровым водяным знаком, фиксирован под контентом */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background-color: var(--field);
  background-image: var(--bg-texture);
  background-repeat: repeat;
  background-size: 300px;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

::selection {
  background: var(--madder);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--madder);
  outline-offset: 3px;
}

/* skip-link скрыт, всплывает по фокусу */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ── Общая полоса-контейнер: одна ось, равные поля слева/справа ───── */
.page-header,
.breadcrumbs,
.page,
.page-footer {
  width: var(--measure);
  margin-inline: auto;
}

/* ── Шапка ─────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  min-height: 72px;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.page-header__brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-shadow: 0 2px 3px rgba(var(--sh), .18);
}
.page-header__brand span { color: var(--madder); }

.page-header__meta {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--indigo);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Хлебные крошки ────────────────────────────────────────────────── */
.breadcrumbs {
  padding-block: 16px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.breadcrumbs a {
  color: var(--madder);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 4px; color: var(--ochre); }

/* ── Основной контент ──────────────────────────────────────────────── */
.page {
  padding-block: clamp(28px, 5vw, 44px) clamp(48px, 8vw, 80px);
}

.page__intro { margin-bottom: var(--block-gap); }

.page__tag {
  margin: 0 0 14px;
  color: var(--madder);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(255, 253, 245, .6),
    0 3px 6px rgba(var(--sh), .18);
}

.page__kicker {
  margin: 14px 0 0;
  color: var(--indigo);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page__lead {
  margin: 18px 0 0;
  max-width: 62ch;
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Секции-блоки: разделены затухающей линией, как на главной */
.page__section {
  position: relative;
  margin-top: var(--block-gap);
  padding-top: var(--block-gap);
}
.page__section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(120px, 40%);
  height: 2px;
  background: linear-gradient(90deg, var(--madder), transparent);
}

.page__section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 25px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.page__section p {
  margin: 0 0 14px;
  max-width: 66ch;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
  line-height: 1.7;
}
.page__section p:last-child { margin-bottom: 0; }

/* ── Чеклист: маркер-ромб (ковровый мотив) ────────────────────────── */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}
.checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
}
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--madder);
}

/* Плейсхолдеры [заглушка] — видимо помечены как «заполнить» */
.checklist span,
.page-footer__req span,
.page__lead span {
  color: var(--muted);
  font-size: 0.86em;
  border-bottom: 1px dotted color-mix(in srgb, var(--ochre) 70%, transparent);
}

/* ── CTA ───────────────────────────────────────────────────────────── */
.cta {
  margin-top: var(--block-gap);
  padding-top: var(--block-gap);
  border-top: 1px solid var(--line);
}

.cta__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta__button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  background: var(--madder);
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--elev-3);
  transition: transform 160ms var(--ease-out);
}
.cta__button::after {
  content: "↗";
  font-size: 15px;
  transition: transform 160ms var(--ease-out);
}
.cta__button:active { transform: scale(0.97); }

/* ── Футер ─────────────────────────────────────────────────────────── */
.page-footer {
  margin-top: clamp(40px, 7vw, 72px);
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.page-footer p { margin: 2px 0; }
.page-footer a {
  color: var(--madder);
  text-decoration: none;
}
.page-footer a:hover { text-decoration: underline; }
.page-footer__year { margin-top: 8px; color: color-mix(in srgb, var(--muted) 80%, transparent); }

/* ── hover только для мыши ─────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .cta__button:hover { transform: translateY(-2px); }
  .cta__button:hover::after { transform: translate(2px, -2px); }
}

/* ── prefers-reduced-motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .cta__button,
  .cta__button::after { transition-duration: 0ms; }
}

/* ── ≥620px: чуть просторнее шапка/типографика ────────────────────── */
@media (min-width: 620px) {
  .page-header { min-height: 84px; }
  .page { padding-top: clamp(36px, 5vw, 52px); }
}
