/* ============================================================
   ELICON SERVICE — Design System 2025
   Токены → базовые стили → компоненты → утилиты
   Правки вносятся в :root и секции, структура не меняется.
   ============================================================ */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/manrope-v20-cyrillic_latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-v20-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-v20-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-v20-cyrillic_latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/bitter-v42-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/bitter-v42-cyrillic_latin-700.woff2') format('woff2');
}

/* ===== TOKENS ===== */
:root {
  /* Typography */
  --font-heading: 'Bitter', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --text-xl: clamp(1.35rem, 1.25rem + 0.5vw, 1.65rem);
  --text-2xl: clamp(1.7rem, 1.5rem + 1vw, 2.15rem);
  --text-3xl: clamp(2.1rem, 1.8rem + 1.5vw, 2.7rem);
  --text-4xl: clamp(2.6rem, 2rem + 2.6vw, 3.6rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-caps: 0.09em;

  /* Spacing — 8px grid */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --section-sm: clamp(3rem, 6vw, 4.5rem);
  --section-md: clamp(4.5rem, 9vw, 7rem);
  --section-lg: clamp(6rem, 12vw, 9.5rem);

  /* Colors — инженерная сдержанность: тёплый графит + сигнальный оранжевый */
  --bg: #F7F6F3;
  --bg-alt: #FFFFFF;
  --bg-dark: #1C1B19;
  --bg-dark-2: #26241F;
  --ink: #22211F;
  --ink-2: #56534E;
  --ink-3: #8A867E;
  --line: #E5E2DB;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #E85D2F;
  --accent-dark: #C7461B;
  --accent-soft: rgba(232, 93, 47, 0.09);
  --ok: #2E7D5B;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Shadows — тёплые, не чёрные */
  --shadow-sm: 0 1px 2px rgba(34, 30, 24, 0.05), 0 1px 3px rgba(34, 30, 24, 0.08);
  --shadow-md: 0 4px 8px rgba(34, 30, 24, 0.06), 0 2px 4px rgba(34, 30, 24, 0.05);
  --shadow-lg: 0 14px 28px rgba(34, 30, 24, 0.09), 0 5px 10px rgba(34, 30, 24, 0.05);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.25, 1, 0.5, 1);
  --fast: 160ms; --normal: 260ms; --slow: 420ms;

  /* Layout */
  --container: 1180px;
  --container-text: 62ch;
  --grid-gap: clamp(1rem, 2vw, 1.75rem);
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-lg); line-height: var(--leading-snug); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

figure, blockquote { margin: 0; }

a { color: inherit; text-decoration: none; transition: color var(--fast) var(--ease-ui); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

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

::selection { background: var(--accent); color: #fff; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-md); }
.section--sm { padding-block: var(--section-sm); }
.section--lg { padding-block: var(--section-lg); }

.section-head { max-width: 640px; margin-bottom: var(--space-10); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p { color: var(--ink-2); font-size: var(--text-lg); margin: 0; }

/* Overline-метка перед заголовком */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9em 1.7em;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--fast) var(--ease-ui), box-shadow var(--fast) var(--ease-ui), background var(--fast) var(--ease-ui), border-color var(--fast) var(--ease-ui);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); transition-duration: 80ms; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink-3); }

.btn--on-dark {
  background: #fff;
  color: var(--bg-dark);
}
.btn--on-dark:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--line-dark);
  color: #fff;
}
.btn--outline-dark:hover { border-color: rgba(255,255,255,0.45); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.logo__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}
.logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--fast) var(--ease-ui);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }

.header-phone { display: flex; align-items: center; gap: var(--space-3); }
.header-phone__num { font-weight: 700; font-size: var(--text-sm); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--fast) var(--ease-ui), opacity var(--fast) var(--ease-ui);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--space-4) clamp(1rem, 4vw, 2.5rem) var(--space-6);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--space-3) 0; font-size: var(--text-base); border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .header-phone__num span { display: none; }
}

/* ===== HERO ===== */
.hero {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--section-lg);
}
.hero h1 {
  font-size: var(--text-4xl);
  color: #fff;
  margin-bottom: var(--space-5);
  max-width: 14ch;
}
.hero__text {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-12); }
.hero__stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: var(--space-6);
}
.stat__num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat__label { font-size: var(--text-xs); color: rgba(255,255,255,0.5); letter-spacing: var(--tracking-caps); text-transform: uppercase; }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero__badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(28, 27, 25, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__badge strong { font-weight: 700; }

/* Декоративная сетка-фон: тонкая инженерная разметка */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero > * { position: relative; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: var(--section-md); }
  .hero__figure { order: -1; max-width: 420px; }
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--grid-gap);
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--normal) var(--ease-out), box-shadow var(--normal) var(--ease-out), border-color var(--normal) var(--ease-ui);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  color: #fff;
  margin-bottom: var(--space-6);
}
.card__icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--ink-2); font-size: var(--text-sm); margin-bottom: var(--space-5); }

.card__list { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.card__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
  transition: gap var(--fast) var(--ease-ui), color var(--fast) var(--ease-ui);
}
.card__link:hover { color: var(--accent); gap: 0.75rem; }
.card__link svg { width: 16px; height: 16px; }

/* ===== LOGO STRIP ===== */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding-block: var(--space-10);
}
.logo-strip__item {
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity var(--normal) var(--ease-ui), filter var(--normal) var(--ease-ui);
}
.logo-strip__item:hover { filter: grayscale(0); opacity: 1; }
.logo-strip__item img { height: 42px; width: auto; }

/* ===== STEPS ===== */
.steps {
  display: grid;
  gap: var(--grid-gap);
  counter-reset: step;
}
.step {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-4);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--ink-2); font-size: var(--text-sm); margin: 0; }

/* ===== TESTIMONIALS ===== */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--grid-gap); }
.quote {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.quote__stars { color: var(--accent); letter-spacing: 3px; font-size: var(--text-sm); }
.quote__text { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--ink-2); flex: 1; }
/* Обрезка длинных отзывов: полный текст раскрывается кнопкой */
.quote__text--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quote__toggle {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  align-self: flex-start;
  font-family: var(--font-body);
}
.quote__toggle:hover { text-decoration: underline; }
.quote__author { display: flex; align-items: center; gap: var(--space-3); }
.quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.quote__name { font-weight: 700; font-size: var(--text-sm); }
.quote__role { font-size: var(--text-xs); color: var(--ink-3); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); font-size: var(--text-2xl); }
.cta-band p { color: rgba(255,255,255,0.6); margin: 0; }

/* ===== CONTACTS / FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--grid-gap);
  align-items: start;
}
/* Равные колонки, блоки растягиваются по высоте друг друга */
.contact-grid--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.contact-grid--even > .map-embed { height: 100%; min-height: 420px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: var(--space-6); }
.contact-list__item { display: grid; gap: 2px; }
.contact-list__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-1);
}
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-list .muted { color: var(--ink-2); font-size: var(--text-sm); }

.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  font-size: var(--text-base);
  transition: border-color var(--fast) var(--ease-ui), box-shadow var(--fast) var(--ease-ui);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

.form__note { font-size: var(--text-xs); color: var(--ink-3); }

/* ===== PRICE TABLES ===== */
.price-section {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--grid-gap);
}
.price-section h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }

.table-wrap { overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.price-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 var(--space-4) var(--space-3) 0;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
.price-table td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.price-table .num { color: var(--ink-3); font-variant-numeric: tabular-nums; width: 2.5rem; }
.price-table tbody tr { transition: background var(--fast) var(--ease-ui); }
.price-table tbody tr:hover { background: var(--accent-soft); }

/* ===== ARTICLE / CONTENT PAGES ===== */
.page-hero {
  padding-block: var(--section-sm) var(--section-md);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-hero h1 { margin-bottom: var(--space-3); }
.page-hero p { color: var(--ink-2); font-size: var(--text-lg); max-width: 60ch; margin: 0; }

.breadcrumbs {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

.prose {
  max-width: var(--container-text);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.prose p { color: var(--ink-2); }

.check-list { display: grid; gap: var(--space-3); }
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 0.55em;
  width: 5px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(40deg);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}
.site-footer a { transition: color var(--fast) var(--ease-ui); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-5);
}
.site-footer__brand .logo { color: #fff; margin-bottom: var(--space-4); }
.site-footer__brand .logo__mark { background: var(--accent); }
.site-footer__nav { display: grid; gap: var(--space-3); }
.site-footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ===== REVIEWS PAGE ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: var(--space-12);
}
.stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.stat-card__num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: var(--space-1);
}
.stat-card__label { font-size: var(--text-xs); color: var(--ink-3); letter-spacing: var(--tracking-caps); text-transform: uppercase; }

.pagination { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.pagination button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease-ui), background var(--fast) var(--ease-ui), color var(--fast) var(--ease-ui);
}
.pagination button:hover { border-color: var(--ink-3); }
.pagination button.is-active { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }

/* ===== CALC OPTIONS ===== */
.calc-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: border-color var(--fast) var(--ease-ui), background var(--fast) var(--ease-ui);
}
.calc-option:hover { border-color: var(--ink-3); }
.calc-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.calc-option input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.calc-option span { flex: 1; }
.calc-option strong { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
[data-animate].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg-dark);
  color: #fff;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--normal) var(--ease-ui), transform var(--normal) var(--ease-ui);
  z-index: 100;
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--success { border-left: 3px solid var(--ok); }
.toast--error { border-left: 3px solid var(--accent); }

/* ===== MISC ===== */
.muted { color: var(--ink-3); }
.text-accent { color: var(--accent); }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.hidden { display: none; }

.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  background: var(--bg-alt);
}
/* Одиночная карта на странице контактов — крупнее */
.map-embed--tall { height: 560px; }
/* Yandex-iframe всегда заполняет контейнер целиком, без белых полей */
.map-embed iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-dark);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }
/* ============================================================
   LEGACY LAYER — утилиты для статей (articles/*)
   Компактная замена старых Tailwind-классов. Удалять, когда
   статьи переведены на семантические классы дизайн-системы.
   ============================================================ */
/* Colors */
.text-gray-900 { color: var(--ink); }
.text-gray-800 { color: var(--ink); }
.text-gray-700 { color: var(--ink-2); }
.text-gray-600 { color: var(--ink-2); }
.text-blue-600 { color: var(--accent); }
a.text-blue-600:hover { color: var(--accent-dark); }
.text-green-600 { color: var(--ok); }
.text-white { color: #fff; }
.bg-white { background: var(--bg-alt); }
.bg-gray-50 { background: var(--bg); }
.bg-gray-100 { background: var(--line); }
.bg-blue-50 { background: var(--accent-soft); }
.bg-green-50 { background: rgba(46, 125, 91, 0.08); }
.bg-red-50 { background: rgba(199, 70, 27, 0.08); }
.bg-yellow-50 { background: rgba(212, 175, 55, 0.1); }
.bg-blue-600 { background: var(--accent); }
.from-blue-50 { --tw-from: var(--accent-soft); }
.from-blue-100, .from-blue-600, .from-green-50, .from-green-100 { }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.opacity-90 { opacity: 0.9; }

/* Borders */
.border-2 { border: 2px solid var(--line); }
.border-l-4 { border-left: 4px solid var(--line); }
.border-blue-600 { border-color: var(--accent); }
.border-green-600 { border-color: var(--ok); }
.border-red-600 { border-color: var(--accent); }
.border-yellow-600 { border-color: #D4AF37; }
.border-blue-600.border-l-4, .border-l-4.border-blue-600 { border-left-color: var(--accent); }
.border-white { border-color: #fff; }

/* Typography */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl, .text-5xl { font-size: var(--text-4xl); }
.md\:text-5xl { }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 700; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* Spacing */
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mr-1 { margin-right: var(--space-1); } .mr-2 { margin-right: var(--space-2); }
.mr-4 { margin-right: var(--space-4); }
.p-3 { padding: var(--space-3); } .p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); } .p-8 { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-3 { padding-block: var(--space-3); }
.py-12 { padding-block: var(--space-12); }
.pl-6 { padding-left: var(--space-6); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.max-w-4xl { max-width: 56rem; margin-inline: auto; }
.max-w-none { max-width: none; }
.flex { display: flex; } .block { display: block; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.gap-4 { gap: var(--space-4); } .gap-6 { gap: var(--grid-gap); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}
.space-y-1 > * + * { margin-top: var(--space-1); }
.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }
.space-y-4 > * + * { margin-top: var(--space-4); }
.space-y-6 > * + * { margin-top: var(--space-6); }
.space-x-2 > * + * { margin-left: var(--space-2); }
.space-x-4 > * + * { margin-left: var(--space-4); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.h-10 { height: 40px; } .w-10 { width: 40px; }

/* Lists, radius, misc */
.list-disc { list-style: disc; padding-left: var(--space-6); }
.list-decimal { list-style: decimal; padding-left: var(--space-6); }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.transition-colors { transition: color var(--fast) var(--ease-ui), background var(--fast) var(--ease-ui); }
.hover\:bg-gray-100:hover { background: var(--line); }
.hover\:bg-white:hover { background: var(--bg-alt); }
.hover\:text-blue-600:hover { color: var(--accent); }
