/* ============================================================================
   декларация.бел — дизайн-система
   1. Токены   2. База   3. Типографика   4. Компоненты   5. Секции   6. Адаптив
   ========================================================================== */

/* ---------- 1. Токены ---------------------------------------------------- */
:root {
  /* Зелёная корпоративная палитра */
  --green-950: #08211a;
  --green-900: #0d3227;
  --green-800: #154634;
  --green-700: #1b5c43;
  --green-600: #227453;
  --green-500: #2d8c64;
  --green-400: #4aa57d;
  --green-200: #b9d6c4;
  --green-100: #dbe8de;
  --green-50: #eef4ef;

  --olive-600: #6f7d43;
  --olive-400: #97a468;

  --brass-600: #a6883d;
  --brass-500: #bf9f4f;
  --brass-400: #d4b86e;
  --brass-200: #efe3bf;

  --sage-50: #f4f7f3;
  --sage-100: #eaf0e8;
  --sage-200: #d8e2d6;

  --ink-900: #171f1c;
  --ink-800: #232d29;
  --ink-600: #47534e;
  --ink-500: #5f6c66;
  --ink-400: #7f8b86;
  --ink-300: #a9b3ae;

  --white: #ffffff;
  --danger: #b4443a;
  --success: #227453;

  /* Семантические */
  --bg: var(--white);
  --bg-tint: var(--sage-50);
  --bg-dark: var(--green-950);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-on-dark: #e9f0ea;
  --text-on-dark-muted: #a9c2b3;
  --brand: var(--green-800);
  --brand-hover: var(--green-700);
  --accent: var(--brass-500);
  --border: var(--sage-200);
  --border-strong: var(--green-200);

  /* Форма */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(13, 50, 39, 0.06), 0 1px 6px rgba(13, 50, 39, 0.05);
  --shadow: 0 6px 20px rgba(13, 50, 39, 0.08), 0 2px 6px rgba(13, 50, 39, 0.04);
  --shadow-lg: 0 24px 60px rgba(8, 33, 26, 0.18);

  /* Типографика */
  --font: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --lh: 1.6;

  /* Сетка */
  --container: 1200px;
  --gutter: 20px;
  --section-y: clamp(64px, 8vw, 112px);
  --header-h: 76px;
  --mobile-bar-h: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 0.22s;
}

/* ---------- 2. База ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--green-600); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--brass-400); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.ym-pixel { position: absolute; left: -9999px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1320px; }

/* ---------- 3. Типографика ---------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink-900); text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem); letter-spacing: -0.025em; font-weight: 650; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--ink-600); max-width: 62ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brass-500); border-radius: 2px; }
.section--dark .eyebrow { color: var(--brass-400); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 12px; }
.section-head--center .lead { margin-inline: auto; }

/* Контентная типографика (markdown) */
.prose { font-size: var(--fs-md); line-height: 1.72; color: var(--ink-800); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--green-600); font-weight: 600; }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: var(--green-200); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--green-500); }
.prose blockquote { margin: 0; padding: 18px 22px; border-left: 3px solid var(--brass-500); background: var(--sage-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-700, var(--ink-800)); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--sage-100); padding: 0.1em 0.4em; border-radius: 6px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { background: var(--sage-50); font-weight: 600; color: var(--ink-900); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- 4. Компоненты ----------------------------------------------- */
/* Кнопки */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-md); line-height: 1.2; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  white-space: nowrap; text-decoration: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover { --btn-bg: var(--brand-hover); --btn-bd: var(--brand-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21, 70, 52, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: var(--fs-sm); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: var(--fs-lg); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--green-200); }
.btn--outline:hover { --btn-bg: var(--green-50); --btn-bd: var(--green-500); color: var(--brand); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: transparent; padding-inline: 14px; }
.btn--ghost:hover { --btn-bg: var(--green-50); --btn-bd: transparent; color: var(--brand); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--green-900); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--sage-100); --btn-bd: var(--sage-100); color: var(--green-900); }
.btn--light-outline { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.35); }
.btn--light-outline:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-bd: rgba(255, 255, 255, 0.7); color: #fff; box-shadow: none; }
.btn--brass { --btn-bg: var(--brass-500); --btn-fg: var(--green-950); --btn-bd: var(--brass-500); }
.btn--brass:hover { --btn-bg: var(--brass-400); --btn-bd: var(--brass-400); color: var(--green-950); box-shadow: 0 8px 20px rgba(191, 159, 79, 0.3); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Бейджи и чипы */
.badge {
  display: inline-flex; align-items: center; gap: 8px; text-align: left;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.badge__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-500); color: var(--green-950); flex: none; }
.badge__dot svg { width: 13px; height: 13px; }
.badge--light { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.badge--light .badge__dot { background: var(--green-700); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; background: var(--sage-100); color: var(--ink-800); border: 1px solid transparent; }
.chip--dark { background: rgba(255, 255, 255, 0.06); color: var(--text-on-dark); border-color: rgba(255, 255, 255, 0.12); }
.chip--outline { background: transparent; border-color: var(--border-strong); }

/* Карточки */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin: 4px 0 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-600); font-size: var(--fs-sm); line-height: 1.55; }
.card__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--green-700); }
.card__link svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.card:hover .card__link svg { transform: translateX(3px); }
.card--link { color: inherit; }
.card--link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--tint { background: var(--sage-50); border-color: transparent; }
.card--dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: var(--text-on-dark); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--text-on-dark-muted); }
.card--dark .card__icon { background: rgba(255, 255, 255, 0.08); color: var(--brass-400); }
.card--dark:hover { box-shadow: none; border-color: rgba(255, 255, 255, 0.25); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Список с галочками */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b5c43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>") center/12px no-repeat;
}
.checklist--dark li::before { background-color: rgba(255, 255, 255, 0.08); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4b86e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>"); }
.checklist strong { display: block; color: inherit; font-weight: 600; }
.checklist span { color: var(--ink-600); font-size: var(--fs-sm); }
.checklist--dark span { color: var(--text-on-dark-muted); }

/* Аккордеон (details) */
.accordion { display: grid; gap: 10px; }
.accordion__item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.accordion__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--ink-900);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { color: var(--green-700); }
.accordion__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.accordion__icon svg { width: 16px; height: 16px; }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); background: var(--green-700); color: #fff; }
.accordion__body { padding: 0 22px 20px; color: var(--ink-600); line-height: 1.6; }
.accordion__body p { margin: 0; }
.accordion__body p + p { margin-top: 0.75em; }

/* Формы */
.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); }
.field__label .req { color: var(--danger); margin-left: 2px; }
.field__hint { font-size: var(--fs-xs); color: var(--ink-400); }
.field__error { font-size: var(--fs-xs); color: var(--danger); display: none; }
.field.is-invalid .field__error { display: block; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 12px; background: #fff;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347534e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--green-200); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(45, 140, 100, 0.14); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input-group { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }

/* Сегментированный переключатель (Импорт / Экспорт / Транзит) */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: var(--sage-100); border-radius: 14px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; text-align: center; padding: 11px 10px; border-radius: 10px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-600); cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.segmented input:checked + span { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--brass-400); outline-offset: 1px; }

/* Повторяемое поле (несколько кодов ТН ВЭД) */
.multi { display: grid; gap: 8px; }
.multi__row { display: grid; grid-template-columns: minmax(0, 1fr) 50px; gap: 8px; }
.multi__btn { min-height: 50px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--green-700); font-size: 1.5rem; font-weight: 500; line-height: 1; display: grid; place-items: center; transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease); }
.multi__btn:hover { border-color: var(--green-500); background: var(--green-50); }
.multi__btn--remove { color: var(--ink-400); font-size: 1.25rem; }
.multi__btn--remove:hover { color: var(--danger); border-color: #f1cfcb; background: #fbeeec; }
.input.is-synced { border-color: var(--green-200); background: var(--green-50); }
.input.is-synced:focus { background: #fff; }

/* Чекбокс согласия */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-600); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green-700); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

/* Загрузка файлов */
.dropzone { display: grid; gap: 8px; place-items: center; text-align: center; padding: 30px 20px; border: 2px dashed var(--green-200); border-radius: var(--radius); background: var(--sage-50); cursor: pointer; transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.dropzone:hover, .dropzone.is-drag { border-color: var(--green-500); background: var(--green-50); }
.dropzone svg { width: 34px; height: 34px; color: var(--green-600); }
.dropzone strong { color: var(--ink-900); }
.dropzone span { font-size: var(--fs-xs); color: var(--ink-400); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: var(--fs-sm); background: #fff; }
.file-list button { border: 0; background: transparent; color: var(--ink-400); font-size: 18px; line-height: 1; padding: 2px 6px; }
.file-list button:hover { color: var(--danger); }

/* Сообщения формы */
.form__status { display: none; padding: 16px 18px; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.5; }
.form__status.is-success { display: block; background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.form__status.is-error { display: block; background: #fbeeec; color: var(--danger); border: 1px solid #f1cfcb; }
.form.is-sent > *:not(.form__status) { display: none; }
.form__note { font-size: var(--fs-sm); color: var(--ink-500); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Панели */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); }
.panel--dark { background: var(--green-900); border-color: rgba(255, 255, 255, 0.08); color: var(--text-on-dark); }
.panel--tint { background: var(--sage-50); border-color: transparent; }

/* Хлебные крошки */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-xs); color: var(--ink-400); margin-bottom: 20px; }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--green-700); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumbs ol { display: contents; padding: 0; margin: 0; }
.section--dark .breadcrumbs, .section--dark .breadcrumbs a { color: var(--text-on-dark-muted); }
.section--dark .breadcrumbs li + li::before { color: rgba(255, 255, 255, 0.3); }

/* Разделитель-«латунь» */
.rule { height: 3px; width: 56px; border-radius: 3px; background: linear-gradient(90deg, var(--brass-500), var(--brass-400)); }

/* Анимация появления (минимальная, деловая) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 5. Секции --------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: var(--text-on-dark-muted); }
.section--flush-top { padding-top: 0; }
.section--compact { padding-block: clamp(40px, 5vw, 64px); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px rgba(13, 50, 39, 0.06); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.header__logo { flex: none; }
.nav { display: flex; align-items: center; margin-left: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; white-space: nowrap; border-radius: 10px; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-800); transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link[aria-current="page"] { background: var(--sage-100); color: var(--green-800); }
.nav__link svg { width: 14px; height: 14px; opacity: 0.6; transition: transform var(--t) var(--ease); }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 640px;
  display: none; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.nav__item.is-open .nav__dropdown { display: grid; }
.nav__dd-link { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; color: var(--ink-800); transition: background var(--t) var(--ease); }
.nav__dd-link:hover { background: var(--sage-50); color: var(--green-800); }
.nav__dd-link .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.nav__dd-link .ico svg { width: 20px; height: 20px; }
.nav__dd-link strong { display: block; font-weight: 600; font-size: var(--fs-sm); }
.nav__dd-link span { display: block; font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.4; margin-top: 2px; }
.nav__dd-all { align-self: center; padding: 10px 12px 10px 64px; font-weight: 600; font-size: var(--fs-xs); line-height: 1.4; color: var(--green-700); display: block; border-radius: 12px; }
.nav__dd-all svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-left: 4px; }
.nav__dd-all:hover { background: var(--sage-50); color: var(--green-800); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header .container { max-width: 1320px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-900); padding: 10px 12px; border-radius: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header__phone:hover { background: var(--sage-100); color: var(--green-800); }
.header__phone svg { width: 18px; height: 18px; color: var(--green-600); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: #fff; place-items: center; color: var(--ink-900); }
.burger svg { width: 22px; height: 22px; }
.burger .ico-close { display: none; }
body.menu-open .burger .ico-menu { display: none; }
body.menu-open .burger .ico-close { display: block; }

/* Мобильное меню */
.mobile-menu { display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: #fff; overflow-y: auto; padding: 20px var(--gutter) calc(var(--mobile-bar-h) + 24px); }
body.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }
.mobile-menu__group { padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu__title { display: block; padding: 12px 4px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }
.mobile-menu__link { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 500; font-size: 1.0625rem; color: var(--ink-900); }
.mobile-menu__link svg { width: 18px; height: 18px; color: var(--ink-300); }
.mobile-menu__sub .mobile-menu__link { font-weight: 400; font-size: var(--fs-md); padding: 11px 4px 11px 14px; color: var(--ink-700, var(--ink-800)); }
.mobile-menu__cta { display: grid; gap: 10px; padding-top: 20px; }

/* Первый экран */
.hero { position: relative; overflow: hidden; background: var(--green-950); color: var(--text-on-dark); padding-block: clamp(64px, 9vw, 128px) clamp(56px, 8vw, 104px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 520px at 85% -10%, rgba(45, 140, 100, 0.35), transparent 60%),
  radial-gradient(700px 480px at -10% 110%, rgba(191, 159, 79, 0.16), transparent 60%),
  linear-gradient(180deg, var(--green-950), var(--green-900)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image:
  linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; max-width: 18ch; }
.hero .lead { color: var(--text-on-dark-muted); margin-bottom: 30px; }
.hero__badge { margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__aside { position: relative; }
.hero__card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 34px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.hero__card h3 { color: #fff; font-size: 1.125rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero__card h3 svg { width: 22px; height: 22px; color: var(--brass-400); }
.hero__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero__list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: var(--fs-sm); line-height: 1.45; }
.hero__list li span:first-child { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--brass-400); font-weight: 700; font-size: 0.8rem; }
.hero__list strong { display: block; color: #fff; font-weight: 600; }
.hero__list em { font-style: normal; color: var(--text-on-dark-muted); }
.hero__card .btn { margin-top: 22px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero__stat { flex: 1 1 150px; }
.hero__stat strong { display: block; font-size: 0.98rem; color: #fff; font-weight: 600; white-space: nowrap; }
.hero__stat span { font-size: var(--fs-xs); color: var(--text-on-dark-muted); }

/* Услуги */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.services-grid > :nth-child(9), .services-grid > :nth-child(10) { grid-column: span 2; }
.services-grid .card { padding: 26px 24px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: step; }
.step { position: relative; padding: 26px 22px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-800); color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: var(--fs-sm); color: var(--ink-600); }
.step ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--ink-500); }
.step ul li::before { content: "— "; color: var(--brass-500); }
.step::after { content: ""; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px; background: var(--green-200); }
.step:last-child::after { display: none; }
.step--last .step__num { background: var(--brass-500); color: var(--green-950); }

/* Таможенный представитель */
.rep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rep__text .lead { margin-bottom: 20px; }
.rep__text p { color: var(--text-on-dark-muted); }
.rep__note { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--fs-sm); color: var(--text-on-dark-muted); display: flex; gap: 12px; }
.rep__note svg { width: 22px; height: 22px; flex: none; color: var(--brass-400); }
.rep__note strong { color: #fff; }
.rep__benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rep__benefits .card { padding: 22px; gap: 8px; }
.rep__benefits .card h3 { font-size: 1.02rem; }
.rep__registry { margin-top: 20px; font-size: var(--fs-xs); color: var(--text-on-dark-muted); }

/* Калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.calc__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.calc__aside .checklist { margin-top: 24px; }
.calc__aside .lead { font-size: 1.0625rem; }
.calc__aside h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.calc__form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow); }
.calc__form h3 { margin-bottom: 22px; }
.calc__form .form__note { margin-top: -4px; }

/* Транспорт */
.transport-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.transport-grid .card { padding: 24px 20px; }
.transport-grid .card h3 { font-size: 1.05rem; }

/* Преимущества */
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.adv { padding: 24px 22px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); }
.adv__num { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; color: var(--brass-400); margin-bottom: 14px; }
.adv h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.adv p { margin: 0; font-size: var(--fs-sm); color: var(--text-on-dark-muted); line-height: 1.5; }

/* Логистика */
.logi { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.logi__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.logi__lists h4 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 12px; }
.logi__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--green-200); }
.logi__link:hover { text-decoration-color: var(--green-500); }
.logi__link svg { width: 16px; height: 16px; }
.logi__visual { position: relative; border-radius: var(--radius-xl); background: var(--green-900); color: var(--text-on-dark); padding: clamp(24px, 3vw, 36px); overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.logi__visual svg.route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; z-index: 0; }
.logi__visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 50, 39, 0) 25%, rgba(13, 50, 39, 0.94) 62%); pointer-events: none; z-index: 1; }
.logi__visual h3 { color: #fff; position: relative; z-index: 2; font-size: 1.15rem; margin: 0 0 6px; }
.logi__visual p { position: relative; z-index: 2; margin: 0; font-size: var(--fs-sm); color: var(--text-on-dark-muted); }
.logi__tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Контакты */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 2px; }
.contact-list a, .contact-list span.val { font-size: 1.0625rem; font-weight: 500; color: var(--ink-900); }
.contact-list a:hover { color: var(--green-700); }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.contact-actions .btn { width: 100%; }
.requisites { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.6; }
.requisites dt { font-weight: 600; color: var(--ink-800); margin-top: 12px; }
.requisites dd { margin: 2px 0 0; }
.legal-note { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius); background: var(--sage-50); border: 1px solid var(--border); font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.55; }

/* CTA-полоса */
.cta-band { background: var(--green-800); color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(191, 159, 79, 0.25), transparent 65%); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--text-on-dark-muted); max-width: 56ch; }
.cta-band .btn-group { justify-content: flex-end; position: relative; }

/* Страницы услуг */
.page-hero { background: var(--green-950); color: var(--text-on-dark); padding-block: clamp(44px, 6vw, 80px) clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(45, 140, 100, 0.3), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: var(--text-on-dark-muted); max-width: 66ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero__badge { margin-bottom: 22px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.side-card { background: var(--sage-50); border-radius: var(--radius-lg); padding: 24px; }
.side-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 10px; }
.side-card p { font-size: var(--fs-sm); color: var(--ink-600); }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-800); }
.side-links a:hover { background: #fff; color: var(--green-800); }
.side-links a[aria-current="page"] { background: var(--green-800); color: #fff; }
.side-links svg { width: 14px; height: 14px; opacity: 0.5; }
.includes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.includes .card { padding: 20px; gap: 6px; }
.includes .card h3 { font-size: 1rem; }
.includes .card p { font-size: var(--fs-xs); }
.toc { font-size: var(--fs-sm); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink-600); }
.toc a:hover { background: #fff; color: var(--green-800); }
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* Блог */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); color: inherit; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: var(--fs-xs); color: var(--ink-400); }
.post-card__cat { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 600; }
.post-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.post-card p { margin: 0; font-size: var(--fs-sm); color: var(--ink-600); }
.post-card .card__link { margin-top: auto; }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 34px; background: var(--green-900); border-color: transparent; color: var(--text-on-dark); }
.post-card--featured h3 { color: #fff; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.post-card--featured p { color: var(--text-on-dark-muted); font-size: var(--fs-md); }
.post-card--featured .post-card__meta { color: var(--text-on-dark-muted); }
.post-card--featured .post-card__cat { background: rgba(255, 255, 255, 0.1); color: var(--brass-400); }
.post-card--featured .card__link { color: var(--brass-400); }
.post-card--featured:hover { color: var(--text-on-dark); }
.post-card--featured .post-card__visual { border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); display: grid; place-items: center; min-height: 200px; color: var(--brass-400); }
.post-card--featured .post-card__visual svg { width: 72px; height: 72px; opacity: 0.9; }
.post-header { padding-block: clamp(40px, 6vw, 72px) 0; }
.post-header h1 { max-width: 26ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: var(--fs-sm); color: var(--ink-500); margin: 18px 0 0; }
.post-body { padding-block: clamp(32px, 5vw, 56px) var(--section-y); }
.post-body .page-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink-900); font-weight: 500; font-size: var(--fs-sm); }
.post-nav a span { font-size: var(--fs-xs); color: var(--ink-400); font-weight: 400; }
.post-nav a:hover { border-color: var(--border-strong); color: var(--green-800); }
.post-nav a.next { text-align: right; }

/* Футер */
.footer { background: var(--green-950); color: var(--text-on-dark-muted); padding: clamp(48px, 6vw, 80px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__brand p { margin: 16px 0 0; max-width: 34ch; line-height: 1.55; }
.footer__unikler { margin-top: 26px; display: inline-flex; flex-direction: column; gap: 6px; }
.footer__unikler span { font-size: var(--fs-xs); color: var(--ink-400); }
.footer h4 { color: #fff; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-on-dark-muted); }
.footer a:hover { color: #fff; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts svg { width: 18px; height: 18px; flex: none; color: var(--brass-400); margin-top: 2px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-top: 24px; font-size: var(--fs-xs); color: var(--ink-400); }
.footer__legal { max-width: 78ch; line-height: 1.55; }
.footer__legal strong { color: var(--text-on-dark-muted); font-weight: 600; }

/* Мобильная нижняя панель */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font-weight: 600; font-size: var(--fs-sm); border: 1.5px solid var(--green-100); color: var(--green-800); background: #fff; }
.mobile-bar a svg { width: 18px; height: 18px; }
.mobile-bar a.is-primary { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* Страница 404 */
.err { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-y); }
.err__code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 700; line-height: 1; color: var(--green-100); letter-spacing: -0.04em; }
.err h1 { margin-top: 8px; }
.err p { max-width: 48ch; margin-inline: auto; color: var(--ink-600); }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--green-800); font-weight: 700; letter-spacing: -0.02em; font-size: 1.32rem; line-height: 1; text-decoration: none; }
.logo:hover { color: var(--green-800); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { display: inline-flex; align-items: baseline; }
.logo__tld { color: var(--brass-500); font-weight: 600; }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.logo--light .logo__tld { color: var(--brass-400); }
.logo--lg { font-size: 1.6rem; gap: 12px; }
.logo--lg .logo__mark { width: 44px; height: 44px; }
.unikler-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; color: #fff; }
.unikler-logo:hover { color: #fff; }
.unikler-mark { display: inline-block; flex: none; object-fit: contain; }
.h-with-mark { display: flex; align-items: center; gap: 14px; }
.h-with-mark .unikler-mark { width: 48px; height: 48px; }


/* Тарифы */
.tariffs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.tariffs-head .btn { flex: none; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 24px 22px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--green-600), var(--brass-500)); }
.price-card__value { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; color: var(--green-800); line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-card__value span { font-size: 0.5em; font-weight: 600; color: var(--brass-600); margin-left: 4px; letter-spacing: 0; }
.price-card__label { font-weight: 600; color: var(--ink-900); line-height: 1.35; }
.price-card__hint { font-size: var(--fs-xs); color: var(--ink-500); }
.tariff-note { margin: 24px 0 0; font-size: var(--fs-xs); color: var(--ink-500); max-width: 90ch; line-height: 1.55; }
.tariff-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.tariff-meta > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--sage-50); border: 1px solid var(--border); font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.5; }
.tariff-meta svg { width: 20px; height: 20px; flex: none; color: var(--green-600); margin-top: 2px; }
.tariff-section + .tariff-section { margin-top: clamp(40px, 5vw, 64px); }
.tariff-section h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-bottom: 18px; }
.tariff-table { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.tariff-table__head, .tariff-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 130px 130px; gap: 16px; align-items: center; padding: 14px 22px; }
.tariff-table--compact .tariff-table__head, .tariff-table--compact .tariff-row { grid-template-columns: minmax(0, 1fr) 130px 130px; }
.tariff-table__head { background: var(--sage-50); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); border-bottom: 1px solid var(--border); }
.tariff-table__head span:nth-last-child(-n+2) { text-align: right; }
.tariff-row { border-bottom: 1px solid var(--border); transition: background var(--t) var(--ease); }
.tariff-row:last-of-type { border-bottom: 0; }
.tariff-row:hover { background: var(--sage-50); }
.tariff-row__no { font-weight: 700; color: var(--green-700); font-variant-numeric: tabular-nums; }
.tariff-row__title { font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-900); }
.tariff-row__price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-900); white-space: nowrap; }
.tariff-row__price em { display: none; }
.tariff-row__price--gross { color: var(--ink-500); font-weight: 500; }
.tariff-row--sub { background: rgba(244, 247, 243, 0.6); }
.tariff-row--sub .tariff-row__title { color: var(--ink-600); padding-left: 18px; position: relative; }
.tariff-row--sub .tariff-row__title::before { content: "↳"; position: absolute; left: 0; color: var(--brass-500); }
.tariff-row--sub .tariff-row__price { font-weight: 500; }
.tariff-table__caption { margin: 0; padding: 12px 22px; font-size: var(--fs-xs); color: var(--ink-500); background: var(--sage-50); border-top: 1px solid var(--border); }
.tariff-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tariff-example { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.tariff-example h3 { font-size: 1.1rem; margin-bottom: 14px; }
.tariff-example ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-600); }
.tariff-example li { display: flex; justify-content: space-between; gap: 12px; }
.tariff-example li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-900); }
.tariff-example__total { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); }
.tariff-example__total strong { font-size: 1.15rem; color: var(--green-800); font-variant-numeric: tabular-nums; }
.tariff-example__total small { color: var(--ink-500); }
.tariff-example__total span:last-child { text-align: right; }


/* Шаблоны документов */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.dl__ico svg { width: 22px; height: 22px; }
.dl__aud { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-600); background: var(--brass-200); padding: 5px 10px; border-radius: 999px; }
.dl h3 { font-size: 1.1rem; margin: 4px 0 0; }
.dl p { margin: 0; font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.5; }
.dl__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.dl__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--green-200); color: var(--green-800); font-weight: 600; font-size: var(--fs-sm); background: #fff; transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.dl__btn svg { width: 18px; height: 18px; }
.dl__btn small { font-weight: 500; color: var(--ink-400); font-size: var(--fs-xs); }
.dl__btn:hover { background: var(--green-50); border-color: var(--green-500); color: var(--green-800); }
.dl__btn--primary { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.dl__btn--primary small { color: rgba(255, 255, 255, 0.7); }
.dl__btn--primary:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.dl-compact { margin-top: 16px; padding: 20px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.dl-compact h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.dl-compact h3 svg { width: 18px; height: 18px; color: var(--green-600); }
.dl-compact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dl-compact li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: var(--fs-sm); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dl-compact li:last-child { border-bottom: 0; padding-bottom: 0; }
.dl-compact li em { font-style: normal; color: var(--ink-400); }
.dl-compact__links { display: inline-flex; gap: 6px; flex: none; }
.dl-compact__links a { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 8px; background: var(--green-50); color: var(--green-800); }
.dl-compact__links a:hover { background: var(--green-100); }
.dl-compact__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: var(--fs-sm); font-weight: 600; }
.dl-compact__all svg { width: 14px; height: 14px; }
.section--tint .dl-compact { background: #fff; }

/* ---------- 6. Адаптив -------------------------------------------------- */
.header__cta-short { display: none; }
@media (max-width: 1700px) {
  .header__phone { padding: 10px; border: 1px solid var(--border); }
  .header__phone span { display: none; }
}
@media (max-width: 1500px) {
  .nav__link { padding: 9px 10px; font-size: 0.875rem; }
  .header__inner { gap: 16px; }
  .header__actions .btn { padding-inline: 16px; }
}
@media (max-width: 1400px) {
  .nav__link { padding: 9px 8px; }
  .header__cta-full { display: none; }
  .header__cta-short { display: inline; }
}
@media (max-width: 1220px) {
  .nav, .header__phone { display: none; }
  .burger { display: grid; }
}
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid > :nth-child(9), .services-grid > :nth-child(10) { grid-column: auto; }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transport-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step::after { display: none; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__dropdown { min-width: 560px; }
}
@media (max-width: 1024px) {
  .price-grid, .tariff-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .rep { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__aside { position: static; }
  .logi { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .page-layout, .post-body .page-layout { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-group { justify-content: flex-start; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; --gutter: 16px; }
  body { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
  .mobile-bar { display: grid; }
  .header__actions .btn { display: none; }
  .services-grid, .transport-grid, .steps, .adv-grid, .includes, .related, .post-grid, .rep__benefits, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__grid, .form__grid--3 { grid-template-columns: 1fr; }
  .logi__lists { grid-template-columns: 1fr; }
  .price-grid, .tariff-examples, .tariff-meta, .dl-grid { grid-template-columns: 1fr; }
  .dl-compact li { flex-direction: column; gap: 6px; }
  .tariffs-head { flex-direction: column; align-items: flex-start; }
  .tariff-table__head { display: none; }
  .tariff-row, .tariff-table--compact .tariff-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 16px; }
  .tariff-row__no { grid-column: 1 / -1; font-size: var(--fs-xs); }
  .tariff-row__no:empty { display: none; }
  .tariff-row__title { grid-column: 1 / -1; }
  .tariff-row__price { text-align: left; display: grid; gap: 2px; }
  .tariff-row__price em { display: block; font-style: normal; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); }
  .tariff-row__price--gross { text-align: right; }
  .contact-actions { grid-template-columns: 1fr; }
  .nav__dd-all { padding-left: 12px; }
  .h-with-mark .unikler-mark { width: 40px; height: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-block: 44px 48px; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .hero__actions .btn { width: 100%; }
  .page-hero__actions .btn { width: 100%; }
  .post-card--featured { grid-template-columns: 1fr; padding: 26px; }
  .post-card--featured .post-card__visual { min-height: 120px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { text-align: left; }
  .btn { min-height: 50px; white-space: normal; text-align: center; padding-block: 12px; }
  .segmented span { padding: 10px 6px; font-size: var(--fs-xs); }
  .input-group { grid-template-columns: 1fr 100px; }
  .card { padding: 22px; }
  .panel { border-radius: var(--radius-lg); }
  .section-head { margin-bottom: 28px; }
  .breadcrumbs { margin-bottom: 14px; }
}
@media (max-width: 380px) {
  .hero__chips .chip { font-size: var(--fs-xs); padding: 6px 10px; }
}

/* Печать */
@media print {
  .header, .footer, .mobile-bar, .mobile-menu, .cta-band, .page-side { display: none !important; }
  body { padding: 0; color: #000; }
  a { color: #000; text-decoration: underline; }
}
