/* DGEK.RU — редизайн 2026. Дизайн-система «Bento Editorial»: один файл, без зависимостей. */

/* Golos Text — SIL Open Font License 1.1, локальный хостинг */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/golos-text-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/golos-text-latin-400.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: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/golos-text-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/golos-text-latin-500.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: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/golos-text-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/golos-text-latin-600.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: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/golos-text-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/golos-text-latin-700.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: 'Golos Text';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/golos-text-cyrillic-800.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/golos-text-latin-800.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;
}

/* ============================================================
   1. ТОКЕНЫ ДИЗАЙН-СИСТЕМЫ
   ============================================================ */

:root {
  color-scheme: light;

  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;

  /* Палитра: глубокий индиго + электрик-циан, тёплый янтарь как второй акцент */
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-300: #a5b4fc;
  --brand-500: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-900: #1e1b4b;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --bg: #ffffff;
  --bg-tint: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --accent: var(--brand-500);
  --accent-strong: var(--brand-600);
  --accent-soft: var(--brand-50);
  --accent-contrast: #ffffff;
  --accent-text: var(--brand-600);

  --gradient: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 45%, var(--cyan-500) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(6, 182, 212, .1));

  --header-bg: rgba(255, 255, 255, .72);
  --header-line: rgba(15, 23, 42, .08);

  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;

  /* Форма */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg: 0 28px 60px -24px rgba(15, 23, 42, .28), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-accent: 0 18px 40px -18px rgba(79, 70, 229, .55);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 108px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .35s;
}

/* Вариант акцента для бухгалтерии — тёплый «янтарный учёт».
   Класс .theme-provence сохранён, чтобы не ломать существующую разметку. */
.theme-provence,
.theme-ledger {
  --accent: var(--amber-600);
  --accent-strong: #b45309;
  --accent-soft: #fffbeb;
  --accent-text: #b45309;
  --gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --gradient-soft: linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(217, 119, 6, .08));
  --shadow-accent: 0 18px 40px -18px rgba(217, 119, 6, .5);
}

/* ---------- тёмная тема ---------- */

:root[data-theme='dark'] {
  color-scheme: dark;

  --ink: #e8edf7;
  --ink-2: #cbd5e1;
  --muted: #93a2b8;
  --muted-2: #6b7a90;

  --bg: #080b12;
  --bg-tint: #0c1119;
  --surface: #101723;
  --surface-2: #161f2d;
  --line: #222d3d;
  --line-strong: #30405a;

  --accent: #8b87ff;
  --accent-strong: #a5a1ff;
  --accent-soft: rgba(139, 135, 255, .14);
  --accent-contrast: #0b0f17;
  --accent-text: #a5a1ff;

  --gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 45%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(34, 211, 238, .14));

  --header-bg: rgba(8, 11, 18, .72);
  --header-line: rgba(232, 237, 247, .1);

  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 32px 70px -28px rgba(0, 0, 0, .85);
  --shadow-accent: 0 18px 44px -20px rgba(124, 93, 250, .6);
}

:root[data-theme='dark'] .theme-provence,
:root[data-theme='dark'] .theme-ledger {
  --accent: #f0b45f;
  --accent-strong: #fbd38d;
  --accent-soft: rgba(240, 180, 95, .14);
  --accent-text: #f3c27c;
  --gradient: linear-gradient(135deg, #f59e0b 0%, #ea8a0b 50%, #c2410c 100%);
  --gradient-soft: linear-gradient(135deg, rgba(245, 158, 11, .2), rgba(194, 65, 12, .12));
  --shadow-accent: 0 18px 44px -20px rgba(245, 158, 11, .5);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    color-scheme: dark;

    --ink: #e8edf7;
    --ink-2: #cbd5e1;
    --muted: #93a2b8;
    --muted-2: #6b7a90;

    --bg: #080b12;
    --bg-tint: #0c1119;
    --surface: #101723;
    --surface-2: #161f2d;
    --line: #222d3d;
    --line-strong: #30405a;

    --accent: #8b87ff;
    --accent-strong: #a5a1ff;
    --accent-soft: rgba(139, 135, 255, .14);
    --accent-contrast: #0b0f17;
    --accent-text: #a5a1ff;

    --gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 45%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(34, 211, 238, .14));

    --header-bg: rgba(8, 11, 18, .72);
    --header-line: rgba(232, 237, 247, .1);

    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 32px 70px -28px rgba(0, 0, 0, .85);
    --shadow-accent: 0 18px 44px -20px rgba(124, 93, 250, .6);
  }

  :root[data-theme='auto'] .theme-provence,
  :root[data-theme='auto'] .theme-ledger {
    --accent: #f0b45f;
    --accent-strong: #fbd38d;
    --accent-soft: rgba(240, 180, 95, .14);
    --accent-text: #f3c27c;
    --gradient: linear-gradient(135deg, #f59e0b 0%, #ea8a0b 50%, #c2410c 100%);
    --gradient-soft: linear-gradient(135deg, rgba(245, 158, 11, .2), rgba(194, 65, 12, .12));
    --shadow-accent: 0 18px 44px -20px rgba(245, 158, 11, .5);
  }
}

/* ============================================================
   2. БАЗА
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, .95rem + .2vw, 17.5px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Мягкий градиентный «меш» на фоне страницы — вместо плоской заливки */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(79, 70, 229, .13), transparent 65%),
    radial-gradient(760px 480px at -10% 8%, rgba(6, 182, 212, .09), transparent 60%),
    radial-gradient(1000px 600px at 50% 110%, rgba(79, 70, 229, .07), transparent 65%);
}

:root[data-theme='dark'] body::before {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(99, 102, 241, .22), transparent 65%),
    radial-gradient(760px 480px at -10% 8%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(1000px 600px at 50% 110%, rgba(124, 58, 237, .14), transparent 65%);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] body::before {
    background:
      radial-gradient(900px 520px at 88% -8%, rgba(99, 102, 241, .22), transparent 65%),
      radial-gradient(760px 480px at -10% 8%, rgba(34, 211, 238, .12), transparent 60%),
      radial-gradient(1000px 600px at 50% 110%, rgba(124, 58, 237, .14), transparent 65%);
  }
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-strong); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .35em 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  /* переносы по слогам отключены: в заголовках они выглядят неаккуратно */
  hyphens: none;
  -webkit-hyphens: none;
}

h1 { font-size: clamp(1.95rem, 1.1rem + 3vw, 3.7rem); font-weight: 800; letter-spacing: -.038em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, .98rem + .62vw, 1.4rem); }
h4 { font-size: 1.05rem; }

strong, b { font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--accent); color: var(--accent-contrast); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; color: var(--accent-contrast); }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* ============================================================
   3. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ============================================================ */

/* Анимация появления включается только при работающем JS: без него контент виден сразу. */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.has-js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   4. ШАПКА
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--header-line);
  box-shadow: 0 8px 30px -22px rgba(15, 23, 42, .5);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.6vw, 22px);
  min-height: 74px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: var(--shadow-accent);
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand-icon { transform: rotate(-6deg) scale(1.04); }

.brand-name { display: flex; flex-direction: column; line-height: 1.16; }
.brand-name-main { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-name-sub { font-size: .73rem; color: var(--muted); letter-spacing: .005em; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: .935rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current='page'] {
  color: var(--accent-contrast);
  background: var(--accent);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.theme-toggle .icon { width: 20px; height: 20px; grid-area: 1 / 1; display: none; }
.theme-toggle[data-mode='auto'] .icon-auto,
.theme-toggle[data-mode='light'] .icon-sun,
.theme-toggle[data-mode='dark'] .icon-moon { display: block; }

.header-phone {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.2;
  flex: 0 0 auto;
  transition: opacity .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.header-phone:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.header-phone.is-switching { opacity: 0; transform: translateY(5px); }
.header-phone-role {
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--accent-text);
}
.header-phone-number { font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.nav-toggle span[aria-hidden] {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease);
}
.nav-toggle span[aria-hidden]::before,
.nav-toggle span[aria-hidden]::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span[aria-hidden]::before { top: -6px; }
.nav-toggle span[aria-hidden]::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span[aria-hidden] { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span[aria-hidden]::before { transform: translateY(6px) rotate(-90deg); }
.nav-toggle[aria-expanded='true'] span[aria-hidden]::after { opacity: 0; }

@media (max-width: 1140px) {
  .brand-name-sub { display: none; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 16px; border-radius: var(--r-sm); font-size: 1rem; }
  /* тема и меню уходят к правому краю: телефон на узких экранах скрыт */
  .theme-toggle { margin-left: auto; }
}

@media (max-width: 560px) {
  .header-phone-number { font-size: .84rem; }
  .header-phone { padding: 6px 11px; }
  .brand-name-main { font-size: .94rem; }
}

/* на узких экранах телефон в шапке не помещается вместе с меню — скрываем */
@media (max-width: 460px) {
  .header-phone { display: none; }
}

/* ============================================================
   5. КНОПКИ, ЧИПЫ
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  font: inherit;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-accent);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.btn:hover {
  color: var(--accent-contrast);
  background: var(--accent-strong);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: none;
}

.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tag {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.badge {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: .76rem;
  font-weight: 700;
}

/* ============================================================
   6. СЕКЦИИ И СЕТКИ
   ============================================================ */

.section { padding-block: var(--section-y); position: relative; }

.section-soft {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: clamp(16px, 1.8vw, 26px); }
.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)); }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.stack { display: grid; gap: 18px; }

/* ---------- заголовок внутренней страницы ---------- */

.page-head {
  position: relative;
  padding-block: clamp(48px, 7vw, 104px) clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.page-head::after {
  content: '';
  position: absolute;
  right: -8%;
  top: -40%;
  width: 46vw;
  height: 46vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: .1;
  filter: blur(70px);
  pointer-events: none;
}
.page-head h1 {
  max-width: none;
  margin-bottom: .38em;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  text-wrap: wrap;
}
.page-head > .wrap > p {
  max-width: none;
  color: var(--muted);
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  margin: 0;
}

/* ---------- двухколоночный блок ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-single { grid-template-columns: minmax(0, 1fr); }

.split-media img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-media { order: 0; }
}

.prose { max-width: 72ch; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p { color: var(--ink-2); }

/* Текстовый блок во всю ширину — выравнивается по той же сетке, что и остальные секции */
.split-single .prose { max-width: none; }
.split-single .prose > p,
.split-single .prose > h2,
.split-single .prose > h3,
.split-single .prose > ul:not(.acrostic) { max-width: 76ch; }

.acrostic { list-style: none; padding: 0; display: grid; gap: 12px; }
.split-single .acrostic { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) {
  .split-single .acrostic { grid-template-columns: minmax(0, 1fr); }
}
.acrostic li {
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 46px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.acrostic li:hover { border-color: var(--accent); transform: translateX(3px); }
.acrostic li::before {
  content: '';
  position: absolute;
  left: 18px; top: 22px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--gradient);
}

/* ============================================================
   7. ГЕРОЙ
   ============================================================ */

.hero {
  position: relative;
  padding-block: clamp(42px, 6vw, 92px) clamp(48px, 6vw, 100px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-bottom: .34em;
  background: linear-gradient(140deg, var(--ink) 25%, var(--accent-text) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.02rem, .98rem + .34vw, 1.19rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 20px;
}

.person-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 13px 26px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-md);
}
.person-btn:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.person-btn-role {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.person-btn-phone { font-weight: 700; font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.person-btn.is-active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.person-btn.is-active .person-btn-role { color: rgba(255, 255, 255, .82); }
.person-btn.is-active:hover { color: #fff; background: var(--gradient); }

.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- слайдер ---------- */

.hero-media { position: relative; }

.hero-slides {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 11, 18, .58) 0%, rgba(8, 11, 18, .08) 42%, transparent 70%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .9s var(--ease), transform 8s linear;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
}
.hero-caption-item {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(10, 14, 22, .5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  animation: caption-in .5s var(--ease);
}
.hero-caption-item.is-active { display: flex; }
.hero-caption-item .role {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
}
.hero-caption-item strong { font-size: 1.1rem; font-weight: 700; }
.hero-caption-item a { color: #fff; font-weight: 600; font-size: .94rem; }
.hero-caption-item a:hover { color: #fff; text-decoration: underline; }
.hero-caption-item .max-link { font-size: .85rem; color: rgba(255, 255, 255, .8); }

@keyframes caption-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .hero-slides { aspect-ratio: 16 / 11; }
}

/* ============================================================
   8. КАРТОЧКИ
   ============================================================ */

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform .5s var(--ease);
}
.card:hover > img { transform: scale(1.04); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 24px 24px;
  flex: 1;
}
.card-body h3 { margin-bottom: .45em; }
.card-body p { color: var(--muted); font-size: .96rem; }
.card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.card-body ul li {
  position: relative;
  margin: 0;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: .95rem;
}
.card-body ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: .42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.card-body .btn { margin-top: auto; align-self: flex-start; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 14px;
}
.card-links a {
  font-weight: 600;
  font-size: .93rem;
  transition: transform .2s var(--ease);
}
.card-links a:hover { transform: translateX(3px); }

.project-card > img { aspect-ratio: 16 / 9; object-position: top center; }
.project-card-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .project-card-wide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .project-card-wide > img { height: 100%; aspect-ratio: auto; }
}

/* ---------- «фича» ---------- */

.feature {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.feature:hover::before { transform: scaleX(1); }
.feature h3 { margin-bottom: .5em; }
/* иконка стоит в одной строке с заголовком */
.feature h3 .feature-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  vertical-align: -5px;
  object-fit: contain;
}
.feature > p { color: var(--muted); font-size: .96rem; margin: 0; }
.feature ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.feature ul li {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: .95rem;
}
.feature ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .75;
}
.feature img { border-radius: var(--r-xs); }

.feature-num {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   9. ЛОГОТИПЫ, ОТЗЫВЫ
   ============================================================ */

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.logos a {
  display: grid;
  place-items: center;
  padding: 20px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.logos a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.logos img {
  max-height: 48px;
  width: auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logos a:hover img { filter: none; opacity: 1; }
:root[data-theme='dark'] .logos img { filter: grayscale(1) invert(1) brightness(1.9); }
:root[data-theme='dark'] .logos a:hover img { filter: invert(1) brightness(1.9); }

.quote {
  position: relative;
  margin: 0;
  padding: 30px 28px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote::before {
  content: '\201C';
  position: absolute;
  top: 2px; right: 22px;
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  opacity: .22;
}
.quote p { position: relative; font-size: 1.04rem; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.quote footer img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
.quote footer strong { display: block; font-size: .96rem; }
.quote footer span { color: var(--muted); font-size: .84rem; }

/* ============================================================
   10. CTA
   ============================================================ */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(30px, 4vw, 54px);
  border-radius: var(--r-xl);
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-accent);
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -10%; top: -70%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  filter: blur(10px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; position: relative; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; position: relative; max-width: 58ch; }
.cta-band .actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn {
  background: #fff;
  color: var(--brand-700);
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, .6);
}
.cta-band .btn:hover { background: #fff; color: var(--brand-900); }
.cta-band .btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

@media (max-width: 1023px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   11. КОНТАКТЫ И ФОРМЫ
   ============================================================ */

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }

.person {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.person > img {
  width: 170px; height: 210px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.person h2 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); margin-bottom: .3em; }
.person .role {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.phone {
  display: inline-block;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.phone:hover { color: var(--accent-text); }
.person-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.person-links a {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.person-links a:hover { border-color: var(--accent); color: var(--accent-text); }

@media (max-width: 520px) {
  .person { grid-template-columns: minmax(0, 1fr); }
  .person > img { width: 100%; height: 260px; }
}

.max-link { font-weight: 600; }

/* ---------- форма ---------- */

.form-card {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 7px; align-content: start; }
.field > label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .005em;
}

input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='file']):not([type='submit']):not([type='button']):not([type='hidden']),
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea { min-height: 136px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.check {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  font-size: .9rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.55;
  cursor: pointer;
}
.check input[type='checkbox'] {
  width: 19px; height: 19px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; color: var(--muted); }
.form-status[data-state='ok'] { color: var(--ok); font-weight: 600; }
.form-status[data-state='error'] { color: var(--bad); font-weight: 600; }

.privacy-note {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.privacy-note h3 { font-size: .98rem; margin-bottom: .6em; }
.privacy-note p { font-size: .88rem; color: var(--muted); margin-bottom: .7em; }
.privacy-note p:last-child { margin-bottom: 0; }

/* ---------- реквизиты ---------- */

.requisites {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.requisites dl {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}
.requisites dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  align-self: center;
}
.requisites dd { margin: 0; font-size: .96rem; color: var(--ink); align-self: center; }
.requisites .copy {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .01em;
  word-break: break-word;
}
@media (max-width: 460px) {
  .requisites dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .requisites dd { margin-bottom: 12px; }
}

/* ============================================================
   12. НАЛОГОВЫЙ КАЛЕНДАРЬ
   ============================================================ */

.calendar-next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 30px;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.calendar-next-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
}
.calendar-next-date { font-size: clamp(1.1rem, 1rem + .55vw, 1.42rem); font-weight: 700; }
.calendar-next-note {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .18);
  font-size: .86rem;
  font-weight: 600;
}
.calendar-note { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* ============================================================
   13. ПРОВЕРКА КОНТРАГЕНТА
   ============================================================ */

.cp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 640px;
}
.cp-input { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cp-submit { white-space: nowrap; }
@media (max-width: 520px) { .cp-form { grid-template-columns: minmax(0, 1fr); } }

.cp-hint { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.cp-example {
  padding: 3px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font: inherit;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent-text);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cp-example:hover { border-color: var(--accent); background: var(--accent-soft); }

.cp-result { margin-top: 22px; }

.cp-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: caption-in .4s var(--ease);
}
.cp-card h3 { margin-bottom: .3em; }
.cp-full-name { color: var(--muted); font-size: .92rem; }

.cp-status {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ok);
  font-size: .82rem;
  font-weight: 700;
}
.cp-status.is-bad { color: var(--bad); }

.cp-rows {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 9px 18px;
  margin: 0 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cp-rows dt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cp-rows dd { margin: 0; font-size: .96rem; }
@media (max-width: 460px) {
  .cp-rows { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .cp-rows dd { margin-bottom: 10px; }
}

.cp-risk {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border-left: 4px solid var(--muted-2);
  font-size: .94rem;
  color: var(--ink-2);
}
.cp-risk-low { border-left-color: var(--ok); }
.cp-risk-medium { border-left-color: var(--warn); }
.cp-risk-high { border-left-color: var(--bad); }

.cp-list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.cp-source { margin-top: 16px; font-size: .86rem; color: var(--muted); }

.cp-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; }
.cp-spinner {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cp-error {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--bad);
  color: var(--bad);
  font-size: .94rem;
  margin: 0;
}

/* ============================================================
   14. ПОДВАЛ
   ============================================================ */

.site-footer {
  margin-top: var(--section-y);
  padding-top: clamp(40px, 5vw, 72px);
  background: var(--brand-900);
  color: #c7d2e8;
}
:root[data-theme='dark'] .site-footer { background: #05080e; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-brand p { color: rgba(199, 210, 232, .7); font-size: .92rem; max-width: 42ch; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.footer-logo:hover { color: #fff; }
.footer-logo img { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .08); padding: 6px; }

.site-footer h3 {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li { margin: 0; }
.site-footer ul a {
  color: rgba(199, 210, 232, .82);
  font-size: .94rem;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.site-footer ul a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .83rem;
  color: rgba(199, 210, 232, .6);
}
.footer-bottom a { color: rgba(199, 210, 232, .85); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   15. COOKIE
   ============================================================ */

.cookie {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 16px;
  z-index: 150;
  animation: cookie-in .45s var(--ease);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.cookie-text { margin: 0; flex: 1 1 420px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.cookie-text strong { color: var(--ink); }
.cookie-actions { flex: 0 0 auto; }

body.has-cookie { padding-bottom: 92px; }
@media (max-width: 720px) { body.has-cookie { padding-bottom: 180px; } }

/* ============================================================
   16. ПЕЧАТЬ
   ============================================================ */

@media print {
  body::before, .site-header, .cookie, .cta-band, .theme-toggle, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 16px; }
  a { color: #000; text-decoration: underline; }
  .card, .feature, .requisites, .form-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- иконки и ссылки на инструменты ---------- */
.tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  }

/* ---------- контакты: реквизиты + обработка данных по высоте формы ---------- */
.contacts-grid { align-items: stretch; }

.contacts-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

.contacts-side .req-block {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.contacts-side .req-block .requisites { flex: 1 1 auto; }

.contacts-side .req-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.contacts-side .privacy-note { flex: 0 0 auto; margin-top: 0; }

@media (max-width: 860px) {
  .contacts-side { height: auto; }
}

/* ---------- страница «Бухгалтерия»: широкие блоки и равные высоты ---------- */

/* заголовок и подзаголовок в одну строку */
.section-head--wide { max-width: none; }

/* текст на всю ширину контейнера, без переносов по слогам */
.split-single .prose.prose--wide > p,
.split-single .prose.prose--wide > h2,
.split-single .prose.prose--wide > h3,
.split-single .prose.prose--wide > ul:not(.acrostic) { max-width: none; }

.prose--wide,
.prose--wide p,
.prose--wide li { hyphens: none; -webkit-hyphens: none; }

/* карточки преимуществ одной высоты */
.split-single .acrostic {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

/* четыре блока «Для физлиц…» — пошире, одинаковой высоты */
.roles-grid { grid-auto-rows: 1fr; }
.roles-grid .feature h3 { display: flex; align-items: center; gap: 10px; }
.roles-grid .feature-icon { margin-right: 0; flex: none; }

/* ---------- страница «Бухгалтерия»: кнопка анкеты в шапке ---------- */

.page-head .wrap { position: relative; }

.page-head-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 26px;
}

@media (min-width: 1080px) {
  .page-head-cta {
    position: absolute;
    right: 0;
    top: 4px;
    margin-top: 0;
    text-align: right;
  }
}

.page-head-cta-note {
  font-size: .82rem;
  color: var(--muted);
}

/* жёлтая кнопка в стиле сайта */
.btn-amber {
  background: #fbbf24;
  color: #1b1a52;
  border: 1px solid #f0b018;
  box-shadow: 0 8px 22px rgba(251, 191, 36, .32);
}
.btn-amber:hover {
  background: #fcd34d;
  color: #1b1a52;
  box-shadow: 0 10px 26px rgba(251, 191, 36, .42);
}

/* ---------- модальное окно анкеты ---------- */

.anketa {
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(12, 16, 40, .45);
  overflow: hidden;
}

.anketa::backdrop {
  background: rgba(10, 13, 30, .62);
  backdrop-filter: blur(3px);
}

.anketa-form {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 900px);
}

.anketa-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.anketa-head h2 {
  font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem);
  margin: 10px 0 6px;
}

.anketa-head p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.anketa-close {
  margin-left: auto;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.anketa-close:hover { background: var(--accent-soft); border-color: var(--accent); }

.anketa-body {
  padding: 22px 26px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.anketa-block {
  border: 0;
  border-radius: 14px;
  margin: 0 0 18px;
  padding: 18px 18px 6px;
  background: var(--surface-2);
}

.anketa-block {
  min-width: 0;
}

.anketa-block legend {
  display: block;
  float: none;
  width: auto;
  margin-bottom: 12px;
  padding: 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.anketa-block .field { margin-bottom: 12px; }
.anketa-block .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.anketa-block .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 620px) {
  .anketa-block .form-row,
  .anketa-block .form-row-3 { grid-template-columns: 1fr; }
}

.anketa .label {
  display: block;
  margin-bottom: 6px;
  font-size: .86rem;
  font-weight: 600;
}

/* одинаковые по высоте однострочные поля: нативный ввод даты на пару пикселей выше */
.anketa input:not([type='checkbox']):not([type='radio']),
.anketa select {
  height: 54px;
}

.anketa .hint {
  display: block;
  margin-top: 5px;
  font-size: .76rem;
  color: var(--muted);
}

.anketa .hint.is-ok { color: #0f7a4f; }
.anketa .hint.is-error { color: #b42318; }

/* переключатели «Да / Нет» */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.seg span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .86rem;
  font-weight: 600;
  transition: all .15s ease;
}

.seg input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.anketa-foot {
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.anketa-foot .form-status { margin: 10px 0 0; font-size: .88rem; text-align: center; }
.anketa-foot .form-status.is-ok { color: #0f7a4f; }
.anketa-foot .form-status.is-error { color: #b42318; }
