/* ==========================================================================
   «Лайт» — стили. Анимации и переходы запрещены ТЗ: все состояния мгновенные.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-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: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/onest-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: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/onest-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: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/onest-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/onest-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2212; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/onest-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: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/onest-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2212; }

:root {
  color-scheme: dark;
  /* Фирменная палитра (ТЗ, п. 2.2) */
  --amber: #BD5202;
  --copper: #8A4C1D;
  --bronze: #544822;
  --brown: #322215;
  /* Вспомогательные нейтрали */
  --ink: #140F0B;
  --ink-2: #1B1510;
  --text: #F4EDE4;
  --muted: #C9BBAE;
  /* Текстовый оттенок акцента: #BD5202 на тёмном фоне даёт контраст ниже 4,5:1,
     поэтому для мелких текстовых ссылок используется более светлая медь. */
  --amber-text: #E08A4A;
  --error: #F0A080;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Onest", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 144px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { animation: none !important; transition: none !important; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink-2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--text); text-decoration-color: var(--copper); text-underline-offset: 0.2em; }
a:hover { color: var(--amber-text); }
:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3, .contact-big, .step-num { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--amber); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
}
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.btn-primary { background: var(--amber); color: #FFF8F0; border-color: var(--amber); }
.btn-primary:hover { background: #A54701; color: #FFF8F0; border-color: #D9772C; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--copper); }
.btn-outline:hover { color: var(--text); border-color: var(--amber); background: rgba(189, 82, 2, 0.12); }
.btn[disabled] { opacity: 0.6; cursor: default; }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 0.2em; cursor: pointer; min-height: 0; }
.link-button:hover { color: var(--amber-text); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(20, 15, 11, 0.96); border-bottom: 1px solid rgba(138, 76, 29, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand-name { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); font-size: 0.97rem; }
.site-nav ul a:hover { color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 8px 16px;
    background: transparent; color: var(--text); border: 1px solid var(--copper); border-radius: 2px;
    font: 500 0.95rem var(--sans); cursor: pointer;
  }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid rgba(138, 76, 29, 0.45); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { width: 100%; padding: 10px 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid rgba(84, 72, 34, 0.6); }
  .site-nav .btn { margin-top: 12px; }
}

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero-text { position: relative; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--copper); padding-bottom: 8px; }
.hero-kicker { font-size: 0.82rem; letter-spacing: 0.16em; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6.6rem); line-height: 0.98; letter-spacing: -0.015em; max-width: 9ch; }
.hero-lead { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(138, 76, 29, 0.6); }
.hero-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--bronze); z-index: -1; pointer-events: none; }

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 560px; }
  .hero-photo img { aspect-ratio: 4 / 3.6; }
  .hero-photo::after { inset: 10px -10px -10px 10px; }
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
  .hero-photo::after { display: none; }
}

/* ---------- Секции ---------- */
.section { padding: var(--section) 0; }
.section-dark { background: var(--brown); border-top: 1px solid rgba(138, 76, 29, 0.4); border-bottom: 1px solid rgba(138, 76, 29, 0.4); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); max-width: 32em; }
@media (max-width: 799px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Сетки (строгие правила ТЗ, п. 13.2) ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
/* 4 элемента: 4×1 → 2×2 → 1×4 */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .grid-4 { grid-template-columns: 1fr; } }
/* 6 элементов: 3×2 → 2×3 → 1×6 */
.grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px)  { .grid-6 { grid-template-columns: 1fr; } }

/* ---------- Карточки с подсвеченной гранью ---------- */
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(138, 76, 29, 0.55);
  box-shadow: inset 0 1px 0 rgba(244, 237, 228, 0.07), 0 18px 40px -28px rgba(0, 0, 0, 0.8);
}
.card::before { /* светлая верхняя кромка */
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: rgba(224, 138, 74, 0.55);
}
.card:hover, .card:focus-within { border-color: var(--amber); box-shadow: inset 0 1px 0 rgba(244, 237, 228, 0.12), inset 0 0 0 1px rgba(189, 82, 2, 0.25), 0 18px 40px -28px rgba(0, 0, 0, 0.8); }
.card:hover::before, .card:focus-within::before { background: #E89A5C; }

.card-text { padding: clamp(24px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.card-text h3 { color: var(--text); }
.card-text p { color: var(--muted); font-size: 0.98rem; }

.section-dark .card { background: #261A10; }
.card-service { display: flex; flex-direction: column; }
.card-service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid rgba(138, 76, 29, 0.55); }
.card-body { padding: 24px clamp(20px, 2vw, 28px) 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Шаги ---------- */
.steps { counter-reset: none; }
.step { padding-top: 24px; border-top: 1px solid var(--bronze); display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 1.6vw, 3.6rem); line-height: 1; color: var(--amber-text); }
.step p { color: var(--muted); font-size: 0.98rem; max-width: 26em; }

/* ---------- Редакционная пауза ---------- */
.editorial { position: relative; background: var(--ink); }
.editorial img { width: 100%; aspect-ratio: 2 / 1; max-height: 78vh; object-fit: cover; }
.editorial-inner { position: relative; margin-top: -120px; padding-bottom: var(--section); }
.editorial-panel { background: var(--brown); border: 1px solid rgba(138, 76, 29, 0.6); padding: clamp(28px, 4vw, 56px); max-width: 640px; box-shadow: inset 0 1px 0 rgba(224, 138, 74, 0.35); }
.editorial-panel h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
.editorial-panel p { margin-top: 18px; font-size: 1.15rem; color: var(--muted); }
@media (max-width: 699px) {
  .editorial img { aspect-ratio: 4 / 3; }
  .editorial-inner { margin-top: -48px; }
}

/* ---------- Безопасность сделки ---------- */
.safety-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.safety-text { display: flex; flex-direction: column; gap: 18px; color: var(--muted); max-width: 36em; }
.safety-text .btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 799px) { .safety-grid { grid-template-columns: 1fr; } }

/* ---------- Формы ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-intro { display: flex; flex-direction: column; gap: 18px; }
.form-intro p { color: var(--muted); max-width: 28em; }
.form-alt a { color: var(--text); }
@media (max-width: 859px) { .form-grid { grid-template-columns: 1fr; } }

.lead-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.95rem; color: var(--text); }
.optional { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ink); color: var(--text);
  border: 1px solid rgba(138, 76, 29, 0.7); border-radius: 2px;
  font: 400 1rem/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9BBAE' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #8C7E72; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--copper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber-text); outline-offset: 0; border-color: var(--amber); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; }

.field-check { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; row-gap: 6px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--amber); cursor: pointer; }
.field-check label { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.field-check .field-error { grid-column: 2; }
.lead-form .btn[type="submit"] { align-self: flex-start; }
.form-status { font-size: 0.98rem; min-height: 1.6em; }
.form-status.is-success { color: #CFE3B8; }
.form-status.is-error { color: var(--error); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 479px) { .lead-form .btn[type="submit"] { width: 100%; } }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
@media (max-width: 899px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 36px 0 0; display: flex; flex-direction: column; gap: 26px; }
.contact-list > div { border-top: 1px solid rgba(84, 72, 34, 0.8); padding-top: 16px; }
.contact-list dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }
.contact-big { font-family: var(--serif); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); text-decoration: none; line-height: 1.1; }
.btn-max { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn-max:hover { background: #FFFFFF; color: var(--ink); border-color: var(--amber); }
.metro { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.98rem; }
.metro li { display: flex; align-items: center; gap: 10px; }
.metro-note { color: var(--muted); }
.metro-line { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.metro-turquoise { background: #82C0C0; }
.metro-grey { background: #A1A2A3; }

.map-box { position: relative; min-height: 420px; border: 1px solid rgba(138, 76, 29, 0.6); background: var(--ink); }
.map-canvas { position: absolute; inset: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 16px; padding: clamp(24px, 3vw, 40px); color: var(--muted); font-size: 0.95rem; background: var(--ink); }
.map-placeholder p { max-width: 30em; }
.map-external { font-size: 0.92rem; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 599px) { .map-box { min-height: 340px; } }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); border-top: 1px solid rgba(138, 76, 29, 0.35); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.6rem; }
.footer-legal { font-size: 0.86rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; max-width: 46em; }
.footer-legal a, .footer-legal .link-button { color: var(--muted); }
.footer-legal a:hover, .footer-legal .link-button:hover { color: var(--text); }

/* ---------- Приветственное окно ---------- */
.promo {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 0; margin: auto; overflow: auto; overscroll-behavior: contain;
  background: var(--brown); color: var(--text);
  border: 1px solid var(--copper); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(224, 138, 74, 0.45), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.promo::backdrop { background: rgba(10, 7, 5, 0.78); }
.promo-close {
  position: sticky; float: right; top: 0; z-index: 3;
  width: 48px; height: 48px; margin: 8px 8px -56px 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--copper); border-radius: 2px; cursor: pointer;
}
.promo-close:hover { background: var(--amber); border-color: var(--amber); color: #FFF8F0; }
.promo-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); clear: both; }
.promo-photo { margin: 0; background: var(--ink); position: relative; min-height: 520px; }
.promo-photo picture { position: absolute; inset: 0; }
.promo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.promo-body { padding: 52px clamp(24px, 3.4vw, 44px) 28px; display: flex; flex-direction: column; gap: 16px; }
.promo-body h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.12; padding-right: 32px; }
.promo-lead { font-size: 1.15rem; color: var(--text); }
.promo-lead::after { content: ""; display: block; width: 56px; height: 1px; background: var(--amber); margin-top: 18px; }
.promo-form { gap: 16px; margin-top: 4px; }
.promo-form .btn[type="submit"] { width: 100%; }

@media (max-width: 759px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-photo { min-height: 0; height: min(30dvh, 56vw); }
  .promo-body { padding: 22px 20px 24px; }
  .promo-body h2 { padding-right: 0; font-size: clamp(1.45rem, 1.1rem + 2vw, 1.9rem); }
  .promo-close { margin: 6px 6px -54px 0; }
}
@media (max-height: 560px) and (max-width: 759px) {
  .promo-photo { display: none; }
  .promo-body h2 { padding-right: 52px; }
}

/* ---------- Cookie ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cookie-inner {
  pointer-events: auto;
  max-width: 1100px; margin: 0 auto; padding: 20px 24px;
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  background: var(--ink); border: 1px solid var(--copper); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(224, 138, 74, 0.35), 0 12px 40px rgba(0, 0, 0, 0.55);
}
.cookie-text { font-size: 0.9rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; max-width: 46em; }
.cookie-text h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--text); }
.cookie-settings { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cookie-option { display: flex; gap: 10px; align-items: flex-start; color: var(--text); min-height: 32px; }
.cookie-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }
.cookie-actions { display: flex; flex-wrap: nowrap; gap: 10px; flex: none; justify-content: flex-end; }
.cookie-actions .btn { white-space: nowrap; }
@media (max-width: 1099px) {
  .cookie-inner { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .cookie-actions { flex-wrap: wrap; justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* ---------- Документы (политика, согласие, 404) ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.doc .wrap { max-width: calc(820px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin-bottom: 12px; }
.doc h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin: 44px 0 14px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.doc .doc-meta { color: var(--muted); font-size: 0.95rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 12px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid rgba(84, 72, 34, 0.9); color: var(--muted); }
.doc th { color: var(--text); font-weight: 500; }
.doc .table-scroll { overflow-x: auto; }
