/* ==========================================================================
   ООО «ДК» — корпоративный сайт. Единая таблица стилей.
   Палитра: тёмно-синий (фирменный) + золото (фирменный акцент).
   ========================================================================== */

/* ---------- 0. Шрифт Manrope (локальный, без Google Fonts) ---------- */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/manrope-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/manrope-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/manrope-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/manrope-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/manrope-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/manrope-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/manrope-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/manrope-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/manrope-cyrillic-800.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/manrope-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Токены ---------- */
:root {
  --navy-900: #071A31;
  --navy-850: #09203B;
  --navy-800: #0B2440;
  --navy-700: #12314F;
  --navy-600: #1B3B5C;
  --navy-500: #29527A;

  --gold-300: #F0D0A0;
  --gold-400: #E7BE83;
  --gold-500: #D3A45E;
  --gold-600: #B98B40;

  --ink: #16263B;
  --ink-soft: #35485F;
  --muted: #5F7288;
  --line: #E3E9F0;
  --paper: #F5F7FA;
  --paper-2: #FFFFFF;
  --cloud: #EEF2F7;

  --on-dark: #E9EFF7;
  --on-dark-muted: #93A6C0;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --ok: #2E7D5B;
  --danger: #C0453B;

  --container: 1200px;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  --shadow-s: 0 2px 10px rgba(12, 32, 56, 0.08);
  --shadow-m: 0 14px 40px rgba(12, 32, 56, 0.12);
  --shadow-l: 0 30px 80px rgba(7, 20, 40, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); }
p { margin: 0 0 1rem; }

::selection { background: var(--gold-400); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(56px, 4vw + 32px, 104px) 0; }
.section--tight { padding: clamp(40px, 3vw + 20px, 72px) 0; }
.section--paper { background: var(--paper); }
.section--cloud { background: var(--cloud); }
.section--dark { background: var(--navy-800); color: var(--on-dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.grid { display: grid; gap: 28px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.section--dark .lead { color: var(--on-dark-muted); }

/* Заголовок секции */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-500);
}
.section--dark .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- 4. Кнопки ---------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184, 139, 64, 0.35); }
.btn:active { transform: translateY(0); }

.btn--gold { --btn-bg: var(--gold-500); }
.btn--gold:hover { background: var(--gold-400); }
.btn--dark { --btn-bg: var(--navy-800); --btn-fg: #fff; }
.btn--dark:hover { background: var(--navy-700); box-shadow: var(--shadow-m); }
.btn--ghost {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.section--dark .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background: rgba(11, 36, 64, 0.06); box-shadow: none; }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold-600);
}
.link-arrow svg { width: 16px; transition: transform 0.18s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Верхняя панель + шапка ---------- */
.topline {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
}
.topline .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.topline a:hover { color: #fff; }
.topline__accr { display: inline-flex; align-items: center; gap: 8px; }
.topline__accr strong { color: var(--gold-400); font-weight: 700; }
.topline__links { display: flex; gap: 22px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand__mark { width: 54px; flex: none; border-radius: 9px; overflow: hidden; line-height: 0; }
.brand__mark img { width: 100%; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy-800);
}
.brand__tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.brand__tag-top { display: block; font-weight: 600; letter-spacing: 0.34em; color: var(--navy-700); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--navy-800); background: var(--cloud); }
.main-nav a[aria-current="page"] { color: var(--gold-600); }

.has-sub { position: relative; }
.has-sub > a svg { width: 12px; transition: transform 0.2s; }
.has-sub:hover > a svg { transform: rotate(180deg); }
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 288px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  padding: 8px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s var(--ease);
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 11px 14px; font-weight: 600; font-size: 0.92rem; }
.submenu a small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }

.header-cta { flex: none; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy-900) 8%, rgba(7, 26, 49, 0.55) 55%, rgba(7, 26, 49, 0.2) 100%),
    linear-gradient(0deg, var(--navy-900), rgba(7, 26, 49, 0) 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: clamp(56px, 6vw, 110px) 0;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-400); }
.hero p.lead { color: #C9D6E6; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero .btn--ghost,
.page-hero .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}
.hero__meta li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.hero__card {
  background: linear-gradient(180deg, rgba(27, 59, 92, 0.8), rgba(11, 36, 64, 0.85));
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-l);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero__card h2 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.92rem;
}
.hero__row span { color: var(--on-dark-muted); }
.hero__row strong { color: #fff; text-align: right; font-weight: 700; }
.hero__badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--gold-500);
  color: var(--navy-900);
}
.hero__badge b { font-size: 1.5rem; }
.hero__badge span { font-size: 0.82rem; font-weight: 600; }

/* ---------- 7. Полоса иконок-направлений ---------- */
.pillars {
  background: var(--navy-800);
  border-top: 1px solid var(--on-dark-line);
}
.pillars .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.pillar {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  color: var(--on-dark);
  transition: background 0.18s;
}
.pillar:hover { background: rgba(255, 255, 255, 0.05); }
.pillar__icon {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--gold-400);
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 { color: #fff; font-size: 0.98rem; margin-bottom: 4px; }
.pillar p { margin: 0; font-size: 0.82rem; color: var(--on-dark-muted); line-height: 1.45; }

/* ---------- 8. Карточки услуг ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold-400); }
.svc-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-card__body h3 { margin: 0; }
.svc-card__body p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.svc-card__body .link-arrow { margin-top: 6px; }

/* Компактные плитки услуг (иконки + список) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  display: block;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: 0.18s var(--ease);
}
.tile:hover { border-color: var(--gold-400); box-shadow: var(--shadow-s); transform: translateY(-3px); }
.tile__icon { display: block; width: 44px; height: 44px; color: var(--gold-600); margin-bottom: 16px; }
.tile__icon svg { width: 100%; height: 100%; }
.tile h3 { margin-bottom: 8px; }
.tile p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.tile ul { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--ink-soft); }
.tile ul li { margin-bottom: 4px; }
.tile__more { margin-top: 14px; font-weight: 700; color: var(--gold-600); font-size: 0.9rem; }

/* ---------- 9. Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.section--dark .stats { background: var(--on-dark-line); border-color: var(--on-dark-line); }
.stat { background: #fff; padding: 30px 26px; }
.section--dark .stat { background: var(--navy-800); }
.stat b {
  display: block;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.03em;
}
.section--dark .stat b { color: var(--gold-400); }
.stat span { font-size: 0.9rem; color: var(--muted); }
.section--dark .stat span { color: var(--on-dark-muted); }

/* ---------- 10. Этапы работы (в одну линию) ---------- */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; }
.step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step__num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: -0.02em;
}
.step h3 { font-size: 1.05rem; margin: 8px 0 8px; }
.step p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.step::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -12px;
  width: 24px;
  height: 6px;
  background:
    linear-gradient(90deg, var(--gold-500) 60%, transparent 60%) 0 0 / 12px 2px repeat-x;
  z-index: 1;
}
.step:last-child::after { display: none; }

/* Вертикальный список шагов (на страницах услуг) */
.step-list { counter-reset: s; display: grid; gap: 14px; }
.step-list li {
  list-style: none;
  position: relative;
  padding: 22px 24px 22px 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-list li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  font-weight: 800;
}
.step-list li strong { display: block; margin-bottom: 4px; color: var(--ink); }
.step-list li p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.step-list--cols { grid-template-columns: 1fr 1fr; }
.step-list--cols li { padding: 18px 20px 18px 68px; }
.step-list--cols li::before { width: 34px; height: 34px; left: 18px; top: 16px; }
.deadline {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FBF1DF;
  color: var(--gold-600);
  font-size: 0.8rem;
  font-weight: 700;
}
@media (max-width: 720px) { .step-list--cols { grid-template-columns: 1fr; } }

/* ---------- 11. Команда ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { }
.member__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cloud);
  position: relative;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.15) contrast(1.03);
  transition: transform 0.5s var(--ease), filter 0.3s;
}
.member:hover .member__photo img { transform: scale(1.04); filter: grayscale(0); }
.member__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 26, 49, 0.5));
  opacity: 0.65;
}
.member h3 { margin: 16px 0 2px; font-size: 1.02rem; }
.member span { color: var(--gold-600); font-size: 0.86rem; font-weight: 600; }
.member::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold-500); margin-top: 12px; }

/* ---------- 12. Логотипы клиентов (карусель) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: grid;
  place-items: center;
  height: 60px;
  min-width: 150px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border: 1px dashed var(--line);
  border-radius: var(--radius-s);
  opacity: 0.75;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; } }

/* ---------- 13. Аккордеон (ключевые вопросы / FAQ) ---------- */
.accordion { display: grid; gap: 12px; }
.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.acc__head {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.acc__head:hover { color: var(--gold-600); }
.acc__icon { flex: none; width: 24px; height: 24px; position: relative; }
.acc__icon::before,
.acc__icon::after {
  content: ""; position: absolute; background: var(--gold-500);
  left: 50%; top: 50%;
}
.acc__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc__icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); transition: transform 0.2s; }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.acc__body { padding: 0 24px 22px; color: var(--ink-soft); }
.acc__body > *:first-child { margin-top: 0; }
.acc__body p { font-size: 0.98rem; }

/* ---------- 14. Формы ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-s);
}
.section--dark .form-card { background: var(--navy-700); border-color: var(--on-dark-line); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.section--dark .field label { color: var(--on-dark-muted); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(211, 164, 94, 0.18);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--muted);
  margin: 6px 0 20px;
  line-height: 1.5;
}
.section--dark .consent { color: var(--on-dark-muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--gold-600); }
.consent a { color: var(--gold-600); font-weight: 600; text-decoration: underline; }
.section--dark .consent a { color: var(--gold-400); }

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* Тост / модалка успеха */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  background: var(--navy-800);
  color: #fff;
  border: 1px solid var(--on-dark-line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-l);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--ease);
  z-index: 200;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast b { display: block; font-size: 1.1rem; color: var(--gold-400); margin-bottom: 4px; }
.toast p { margin: 0; font-size: 0.9rem; color: var(--on-dark-muted); }
.toast--error { border-left-color: var(--danger); }
.toast--error b { color: #F1A6A0; }

/* ---------- 15. Калькуляторы ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.calc { min-width: 0; }
.calc__panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(20px, 2.4vw, 32px);
}
.calc__scroll { max-width: 100%; }
.calc__result {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(24px, 2.6vw, 34px);
  position: sticky;
  top: 96px;
}
.calc__result h3 { color: #fff; }
.calc__big {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem);
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: -0.02em;
  margin: 8px 0;
}
.calc__result .muted { color: var(--on-dark-muted); font-size: 0.9rem; }
.calc__result hr { border: 0; border-top: 1px solid var(--on-dark-line); margin: 18px 0; }
.calc__line { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; padding: 5px 0; }
.calc__line span { color: var(--on-dark-muted); }

.calc__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calc-rows { width: 100%; border-collapse: collapse; margin-bottom: 16px; table-layout: fixed; }
.calc-rows th {
  text-align: left;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
}
.calc-rows th:nth-child(1) { width: 46%; }
.calc-rows th:nth-child(2) { width: 22%; }
.calc-rows th:nth-child(3) { width: 24%; }
.calc-rows th:nth-child(4) { width: 8%; }
.calc-rows td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.calc-rows td:last-child { text-align: right; }
.calc-rows td:nth-child(3) { text-align: right; font-weight: 700; }
.calc-rows select,
.calc-rows input { padding: 10px 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
.calc-rows input[type="number"] { text-align: center; }
.calc-rows .row-del {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 0 4px;
}
.calc-rows .row-del:hover { color: var(--danger); }
.calc__add {
  border: 1px dashed var(--gold-500);
  background: rgba(211, 164, 94, 0.08);
  color: var(--gold-600);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.calc__add:hover { background: rgba(211, 164, 94, 0.16); }

/* переключатель для риск-калькулятора */
.switches { display: grid; gap: 10px; margin-bottom: 8px; }
.switch {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: 0.15s;
}
.switch:hover { border-color: var(--gold-400); }
.switch input { width: 18px; height: 18px; accent-color: var(--gold-600); flex: none; }
.switch span { font-size: 0.95rem; }
.switch small { display: block; color: var(--muted); font-size: 0.82rem; }

/* ---------- 16. Служебные блоки ---------- */
.callout {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
}
.callout__icon { flex: none; width: 26px; height: 26px; color: var(--gold-600); }
.callout p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.callout--law { background: #FBF6EE; }

.vat-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}
.vat-note::before { content: "* "; }

.doc-list { display: grid; gap: 10px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  transition: 0.15s;
}
.doc-item:hover { border-color: var(--gold-400); box-shadow: var(--shadow-s); }
.doc-item__ico { flex: none; width: 34px; height: 40px; color: var(--gold-600); }
.doc-item__ico svg { width: 100%; height: 100%; }
.doc-item b { display: block; font-size: 0.96rem; }
.doc-item small { color: var(--muted); }
.doc-item .btn { margin-left: auto; padding: 10px 16px; font-size: 0.85rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cloud);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.badge svg { width: 15px; color: var(--gold-600); }

/* Разрешительная документация — карточки-превью */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.perm {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.perm__sheet {
  aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(0deg, #fff, #fff 22px, #F1F3F7 22px, #F1F3F7 24px), #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--line);
}
.perm__sheet svg { width: 54px; color: var(--gold-500); }
.perm__cap { padding: 14px 16px; font-size: 0.85rem; }
.perm__cap b { display: block; color: var(--ink); font-size: 0.9rem; }
.perm__cap span { color: var(--muted); }

/* галерея с объектов */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cloud);
  position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery--letters { grid-template-columns: repeat(4, 1fr); }
.gallery--letters figure { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .gallery--letters { grid-template-columns: repeat(2, 1fr); } }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(7, 26, 49, 0.8), transparent);
}

/* ---------- 17. Хлебные крошки + шапка страницы ---------- */
.page-hero {
  background: var(--navy-800);
  color: var(--on-dark);
  padding: clamp(40px, 4vw, 72px) 0 clamp(44px, 4vw, 76px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  border: 40px solid rgba(211, 164, 94, 0.08);
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: var(--on-dark-muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs span { color: var(--gold-500); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: #C9D6E6; max-width: 60ch; margin: 0; font-size: 1.1rem; }
.page-hero .slogan {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- 18. Футер ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  padding: 64px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--on-dark-line);
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; }
.footer-offices li strong { display: block; color: #fff; font-weight: 700; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}
.footer-req { display: grid; gap: 4px; }

/* ---------- 19. Утилиты ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.media-frame { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); }
.media-soft {
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
}
.media-soft img { width: 100%; }

.prose > * + * { margin-top: 1rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: var(--on-dark-muted); margin: 8px 0 0; }

/* ---------- 20. Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .pillars .container { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topline { display: none; }
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    display: none;
    box-shadow: var(--shadow-m);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px; font-size: 1rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 2px 0 6px 14px; padding: 0;
  }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header .container { gap: 12px; min-height: 68px; }
  .brand__tag { display: none; }
  .brand__mark { width: 50px; }
  .svc-grid, .tiles, .steps, .gallery,
  .field--row, .split, .split--wide-left, .cta-band { grid-template-columns: 1fr; }
  .split, .cta-band { display: block; }
  .split > * + * { margin-top: 24px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  #contacts .hero__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  #contacts .hero__row strong { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .calc__scroll { overflow: visible; }
  .calc-rows { font-size: 0.9rem; min-width: 0; }
  .calc-rows thead { display: none; }
  .calc-rows, .calc-rows tbody { display: block; }
  .calc-rows tr {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .calc-rows td { display: block; border: 0; padding: 0; }
  .calc-rows td:first-child { grid-column: 1 / -1; }
  .calc-rows td:first-child select { width: 100%; }
  .calc-rows td:nth-child(3) { text-align: right; font-weight: 700; }
  .calc-rows input[type="number"] { width: 72px; }
  .doc-item { flex-wrap: wrap; }
  .doc-item > div { min-width: 0; flex: 1 1 60%; }
  .doc-item .btn { margin-left: auto; }
  .badge { max-width: 100%; }
}

@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; }
  .pillars .container { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Демо-плашка (снять после оплаты) ---------- */
.demo-ribbon {
  position: relative;
  z-index: 100;
  background: repeating-linear-gradient(45deg, #B98B40, #B98B40 14px, #A97E38 14px, #A97E38 28px);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  line-height: 1.35;
}
@media (max-width: 720px) { .demo-ribbon { font-size: 0.76rem; } }

/* ---------- 21. Появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- 22. Версия для слабовидящих (ГОСТ Р 52872-2012) ---------- */
.a11y-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: var(--navy-800);
  color: #fff;
  border: 2px solid var(--gold-500);
  border-radius: 999px;
  font: 700 0.85rem/1 var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-m);
}
.a11y-toggle:hover { background: var(--navy-700); }
.a11y-toggle svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold-400); stroke-width: 1.8; }
.a11y-toggle span { white-space: nowrap; }
@media (max-width: 560px) {
  .a11y-toggle span { display: none; }
  .a11y-toggle { padding: 12px; }
}

.a11y-panel {
  position: fixed;
  left: 18px;
  bottom: 74px;
  z-index: 500;
  width: 280px;
  max-width: calc(100vw - 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  padding: 18px;
  display: none;
}
.a11y-panel.show { display: block; }
.a11y-panel h4 { margin: 0 0 12px; font-size: 0.95rem; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.a11y-row:last-of-type { margin-bottom: 16px; }
.a11y-row > span { font-size: 0.86rem; color: var(--muted); }
.a11y-btns { display: flex; gap: 6px; }
.a11y-btns button {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-s);
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.a11y-btns button[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.a11y-switch-btn {
  width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); position: relative; cursor: pointer; flex: none;
}
.a11y-switch-btn::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #9aa8ba; transition: 0.15s var(--ease); }
.a11y-switch-btn[aria-pressed="true"] { background: var(--gold-500); border-color: var(--gold-500); }
.a11y-switch-btn[aria-pressed="true"]::after { transform: translateX(18px); background: #fff; }
.a11y-reset {
  width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); font: 700 0.85rem var(--font); cursor: pointer; color: var(--ink);
}
.a11y-reset:hover { border-color: var(--gold-500); }

/* Размер шрифта */
html[data-a11y-font="2"] body { font-size: 19px; }
html[data-a11y-font="3"] body { font-size: 22px; }

/* Контраст: чёрным по белому.
   Правило применяется только к шапке/подвалу/содержимому страницы (header, .topline,
   main, footer) — так кнопка и панель самой «версии для слабовидящих» (добавляются
   прямо в body) остаются в фирменных цветах и не задеваются собственным же переключателем.
   Внутри — сплошной сброс фона/цвета/рамок через *, иначе отдельные тёмные или цветные
   блоки (навигация, карточки, плашки) остаются нечитаемыми при белом фоне страницы. */
html[data-a11y-contrast="on"] body { background: #fff; color: #000; }
html[data-a11y-contrast="on"] .topline,
html[data-a11y-contrast="on"] .topline *,
html[data-a11y-contrast="on"] header,
html[data-a11y-contrast="on"] header *,
html[data-a11y-contrast="on"] main,
html[data-a11y-contrast="on"] main *,
html[data-a11y-contrast="on"] footer,
html[data-a11y-contrast="on"] footer * {
  background: #fff !important;
  background-image: none !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
/* Декоративные и функциональные псевдоэлементы (маркеры списков, ±-иконка аккордеона,
   кружки с номером шага и т.п.) красятся в чёрный фон / белый текст той же парой —
   иначе, например, ±-чёрточки аккордеона (были залиты золотым) на белом фоне при
   одиночном сбросе фона пропадают, а не остаются видимыми. Рамку (border-color) у
   псевдоэлементов НЕ трогаем: единственное её использование — еле заметное декоративное
   кольцо (.page-hero::after), которому ниже мы просто отключаем показ целиком. */
html[data-a11y-contrast="on"] .topline::before, html[data-a11y-contrast="on"] .topline::after,
html[data-a11y-contrast="on"] header::before, html[data-a11y-contrast="on"] header::after,
html[data-a11y-contrast="on"] main::before, html[data-a11y-contrast="on"] main::after,
html[data-a11y-contrast="on"] footer::before, html[data-a11y-contrast="on"] footer::after,
html[data-a11y-contrast="on"] main *::before,
html[data-a11y-contrast="on"] main *::after {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
html[data-a11y-contrast="on"] .vat-note::before { color: #000 !important; }
html[data-a11y-contrast="on"] a { text-decoration: underline; }
html[data-a11y-contrast="on"] .hero__bg,
html[data-a11y-contrast="on"] .demo-ribbon,
html[data-a11y-contrast="on"] .page-hero::after,
html[data-a11y-contrast="on"] .member__photo::after { display: none !important; }
html[data-a11y-contrast="on"] .btn--gold,
html[data-a11y-contrast="on"] .btn--dark,
html[data-a11y-contrast="on"] .header-cta,
html[data-a11y-contrast="on"] button[type="submit"],
html[data-a11y-contrast="on"] .subnav a.active,
html[data-a11y-contrast="on"] .hero__badge { background: #000 !important; color: #fff !important; border-color: #000 !important; }
html[data-a11y-contrast="on"] .btn--gold *,
html[data-a11y-contrast="on"] .btn--dark *,
html[data-a11y-contrast="on"] .header-cta *,
html[data-a11y-contrast="on"] button[type="submit"] *,
html[data-a11y-contrast="on"] .subnav a.active *,
html[data-a11y-contrast="on"] .hero__badge * { color: #fff !important; background: transparent !important; }
html[data-a11y-contrast="on"] :focus { outline: 3px solid #000 !important; outline-offset: 2px; }

/* Без изображений */
html[data-a11y-noimg="on"] img,
html[data-a11y-noimg="on"] .hero__bg,
html[data-a11y-noimg="on"] .media-soft,
html[data-a11y-noimg="on"] .svc-card__media,
html[data-a11y-noimg="on"] .member__photo,
html[data-a11y-noimg="on"] .brand__mark { display: none !important; }

/* ---------- 23. Карточки образовательных программ ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
  padding: 26px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold-400); }
.course-card--flag { border-color: var(--gold-500); background: linear-gradient(180deg, #FFFBF3, #fff 40%); }
.course-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.course-card__kind { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gold-600); }
.course-card__price { font-size: 1.3rem; font-weight: 800; color: var(--navy-800); white-space: nowrap; }
.course-card h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.35; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; font-size: 0.86rem; color: var(--muted); }
.course-card__meta b { color: var(--ink); font-weight: 700; }
.course-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.course-card__topics { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-soft); }
.course-card__topics li { padding-left: 20px; position: relative; }
.course-card__topics li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.course-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.course-card__actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 900px) { .course-grid { grid-template-columns: 1fr; } }
.course-grid--compact { grid-template-columns: repeat(3, 1fr); }
.course-card--sm { padding: 20px; }
.course-card--sm h3 { font-size: 1rem; }
@media (max-width: 1100px) { .course-grid--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .course-grid--compact { grid-template-columns: 1fr; } }

/* ---------- 24. Якорная навигация по разделам («Сведения об организации») ---------- */
.subnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.subnav__row { display: flex; gap: 8px; padding: 12px 0; white-space: nowrap; }
.subnav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: 0.15s var(--ease);
}
.subnav a:hover { border-color: var(--gold-500); color: var(--ink); }
.subnav a.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.info-block { margin-bottom: 40px; }
.info-block:last-child { margin-bottom: 0; }
.info-block h3 { margin: 0 0 6px; }
.info-block .muted-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }

/* .hero__row по умолчанию рассчитан на тёмный фон (hero-карточка) — на светлых
   блоках .info-block переопределяем цвета, иначе подпись и значение сливаются с фоном */
.info-block .hero__row { border-top-color: var(--line); }
.info-block .hero__row span { color: var(--muted); }
.info-block .hero__row strong { color: var(--ink); }

/* Калькулятор СОУТ: фиксированный список типов рабочих мест */
.calc-rows--fixed th:nth-child(1) { width: 58%; }
.calc-rows--fixed th:nth-child(2) { width: 18%; text-align: center; }
.calc-rows--fixed th:nth-child(3) { width: 24%; text-align: right; }
.calc-rows--fixed td:nth-child(2) input { max-width: 96px; }
.calc-rows--fixed td:first-child { font-size: 0.93rem; line-height: 1.35; }
.calc-price { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }

/* Эксперты (ФИО + номер в реестре ФГИС) */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.expert { margin: 0; text-align: center; }
.expert__photo {
  width: min(190px, 100%); aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden; background: var(--cloud);
}
.expert__photo img { width: 100%; height: 100%; object-fit: cover; }
.expert__photo--ini { display: flex; align-items: center; justify-content: center; background: var(--navy-800); }
.expert__photo--ini span { font-size: 2.6rem; font-weight: 800; color: var(--gold-400); letter-spacing: 0.04em; }
.expert h3 { font-size: 1rem; margin: 0 0 6px; }
.expert b { display: block; font-size: 1.05rem; color: var(--gold-600); }
.expert__cap { display: block; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 1100px) { .expert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .expert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* Сноска под карточкой на первом экране */
.hero__note { margin: 12px 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--on-dark-muted); }

/* Таблицы с данными (прайс, сравнение процедур) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.95rem; vertical-align: top; }
.data-table thead th {
  background: var(--cloud);
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); font-weight: 700;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.data-table--cmp td:last-child,
.data-table--cmp td:nth-child(2) { text-align: left; white-space: normal; font-weight: 400; }
.section--dark .data-table { background: var(--navy-700); border-color: var(--on-dark-line); color: var(--on-dark); }
.section--dark .data-table thead th { background: var(--navy-600); color: var(--on-dark-muted); }
.section--dark .data-table th,
.section--dark .data-table td { border-color: var(--on-dark-line); }
@media (max-width: 640px) {
  .data-table th, .data-table td { padding: 10px 12px; font-size: 0.88rem; }
  .data-table--cmp { min-width: 560px; }
}

/* Карточка разрешительного документа со ссылкой на скан */
a.perm { display: block; color: inherit; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
a.perm:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.perm__cap em {
  display: block; margin-top: 6px;
  font-style: normal; font-weight: 700; font-size: 0.8rem;
  color: var(--gold-600);
}

/* Превью первой страницы документа */
.perm__sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-item__thumb {
  flex: none; width: 44px; height: 58px;
  border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; background: #fff; line-height: 0;
}
.doc-item__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- Чат со специалистом (правый нижний угол) ---------- */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border: 0; border-radius: 999px;
  background: var(--gold-500); color: var(--navy-900);
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; position: relative;
  box-shadow: var(--shadow-m);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(184, 139, 64, 0.4); }
.chat-fab .icon { width: 20px; height: 20px; }
.chat-fab__dot { position: absolute; top: 8px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.chat-widget.is-open .chat-fab { background: var(--navy-800); color: #fff; }

.chat-panel[hidden] { display: none; }
.chat-panel {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: min(70vh, 560px);
}
.chat-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--navy-800); color: #fff; }
.chat-panel__head b { display: block; font-size: 0.98rem; }
.chat-panel__head span { font-size: 0.78rem; color: var(--on-dark-muted); }
.chat-panel__close { border: 0; background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.45; }
.chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg time { display: block; margin-top: 4px; font-size: 0.7rem; opacity: 0.6; }
.chat-msg--staff { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--navy-800); color: var(--on-dark); border-bottom-right-radius: 4px; }
.chat-sys { align-self: center; max-width: 90%; text-align: center; font-size: 0.78rem; color: var(--muted); }

.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 11px 12px; font-family: inherit; font-size: 0.92rem; border: 1px solid var(--line); border-radius: var(--radius-s); }
.chat-form button { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: var(--radius-s); background: var(--gold-500); color: var(--navy-900); cursor: pointer; }
.chat-form button:hover { background: var(--gold-400); }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: 0.72rem; color: var(--muted); background: #fff; }
.chat-note a { color: var(--gold-600); }

@media (max-width: 560px) {
  /* отступ снизу — чтобы не наезжать на кнопку «версия для слабовидящих» */
  .chat-widget { right: 12px; bottom: 76px; left: 12px; align-items: stretch; }
  .chat-fab { justify-content: center; }
  .chat-panel { width: 100%; max-height: 72vh; }
}
