/* ==========================================================================
   СолидЛаб Решения — единая таблица стилей сайта.
   Заменяет собой сетку, блоки и формы Tilda: разметка страниц семантическая,
   всё оформление собрано здесь и управляется токенами ниже.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/InterVariable-subset.woff2?v=20260819-11") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Размеры и ритм */
  --container: min(1200px, calc(100% - 40px));
  --container-narrow: min(880px, calc(100% - 40px));
  --measure: 68ch;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --section-space: clamp(48px, 6vw, 96px);
  --sg-header-height: 76px;

  /* Типографическая шкала */
  --fs-h1: clamp(2rem, 1.35rem + 2.8vw, 3.4rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 1.03rem + .48vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  --fs-body: clamp(.95rem, .92rem + .18vw, 1.0625rem);
  --fs-sm: .9375rem;
  --fs-xs: .875rem;
  --lh-tight: 1.12;
  --lh-heading: 1.24;
  --lh-body: 1.6;
  --tracking-tight: -.02em;

  /* Палитра — светлая тема */
  --sg-bg: #ffffff;
  --sg-surface: #ffffff;
  --sg-surface-soft: #f4f7f9;
  --sg-surface-hover: #eaf0f4;
  --sg-text: #182331;
  --sg-heading: #07131f;
  --sg-muted: #566675;
  --sg-line: rgba(0, 75, 125, .16);
  --sg-line-strong: rgba(0, 75, 125, .28);
  --sg-control-border: rgba(0, 75, 125, .38);
  --sg-header-bg: rgba(255, 255, 255, .94);
  --sg-shadow: 0 18px 44px rgba(15, 35, 52, .10);
  --sg-shadow-soft: 0 8px 22px rgba(15, 35, 52, .07);

  /* Акцент — корпоративный синий */
  --sg-accent: #1072b4;
  --sg-accent-rgb: 16, 114, 180;
  --sg-accent-strong: #004b7d;
  --sg-accent-hover: #0c5f97;
  --sg-accent-soft: rgba(16, 114, 180, .10);
  --sg-accent-contrast: #ffffff;

  /* Постоянные брендовые цвета, не зависящие от темы */
  --sg-brand-deep: #004b7d;
  --sg-brand-deep-2: #01395f;
  --sg-on-dark: #ffffff;
  --sg-on-dark-muted: rgba(255, 255, 255, .82);

  /* Кнопка «Связаться с нами»: синяя на обычных страницах,
     зелёная на страницах VMS. Цвет одинаков в обеих темах. */
  --sg-cta: #0b6aa8;
  --sg-cta-hover: #095a90;
}

/* Тёмная тема */
:root[data-theme="dark"] {
  color-scheme: dark;

  --sg-bg: #0b131b;
  --sg-surface: #101b25;
  --sg-surface-soft: #172632;
  --sg-surface-hover: #203442;
  --sg-text: #dce6ed;
  --sg-heading: #ffffff;
  --sg-muted: #9eb0bd;
  --sg-line: rgba(158, 190, 210, .18);
  --sg-line-strong: rgba(158, 190, 210, .30);
  --sg-control-border: rgba(158, 190, 210, .42);
  --sg-header-bg: rgba(11, 19, 27, .94);
  --sg-shadow: 0 20px 52px rgba(0, 0, 0, .34);
  --sg-shadow-soft: 0 10px 26px rgba(0, 0, 0, .26);

  --sg-accent: #67b7ee;
  --sg-accent-rgb: 103, 183, 238;
  --sg-accent-strong: #8bc9f2;
  --sg-accent-hover: #8bc9f2;
  --sg-accent-soft: rgba(103, 183, 238, .14);
  --sg-accent-contrast: #06202f;
}

/* Продуктовый акцент SolidLab VMS — зелёный, как на solidlab.ru */
[data-accent="vms"] {
  --sg-accent: #147a54;
  --sg-accent-rgb: 20, 122, 84;
  --sg-accent-strong: #0f5f41;
  --sg-accent-hover: #106848;
  --sg-accent-soft: rgba(20, 122, 84, .10);
  --sg-accent-contrast: #ffffff;
  --sg-brand-deep: #10614a;
  --sg-brand-deep-2: #0a4534;
  --sg-cta: #147a54;
  --sg-cta-hover: #106848;
}

:root[data-theme="dark"] [data-accent="vms"] {
  --sg-accent: #5bbe91;
  --sg-accent-rgb: 91, 190, 145;
  --sg-accent-strong: #86d6b1;
  --sg-accent-hover: #86d6b1;
  --sg-accent-soft: rgba(91, 190, 145, .14);
  --sg-accent-contrast: #052018;
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sg-header-height) + 18px);
  background: var(--sg-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--sg-header-height);
  color: var(--sg-text);
  background: var(--sg-bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--sg-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--sg-accent);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

a:hover { color: var(--sg-accent-strong); text-decoration: underline; }

strong { font-weight: 700; color: var(--sg-heading); }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--sg-line);
}

:where(a, button, select, input, textarea, summary, details):focus-visible {
  outline: 3px solid rgba(var(--sg-accent-rgb), .45);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  color: var(--sg-on-dark);
  background: var(--sg-accent);
}

.sg-skip-link {
  position: fixed;
  top: 8px;
  left: 10px;
  z-index: 10100;
  padding: 10px 14px;
  color: #fff;
  background: var(--sg-brand-deep);
  border-radius: 9px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.sg-skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Раскладка
   -------------------------------------------------------------------------- */

.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

.section { padding-block: var(--section-space); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-soft { background: var(--sg-surface-soft); }

.section-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
  text-align: center;
}

.section-head .section-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 19, 31, .10);
}

.section-head p {
  max-width: var(--measure);
  margin: 0;
  color: var(--sg-muted);
  font-size: var(--fs-lead);
}

.section-head a { font-weight: 600; }

/* Текстовые блоки: ограничиваем меру строки */
.prose {
  max-width: var(--measure);
  margin-inline: auto;
}

.prose-wide { max-width: min(90ch, 100%); }

.prose > :last-child { margin-bottom: 0; }

.prose h3 {
  margin: 1.6em 0 .6em;
  font-size: var(--fs-h3);
}

.prose ul,
.prose ol { padding-left: 1.25em; }

.prose li::marker { color: var(--sg-accent); }

/* Подзаголовок, открывающий перечисление */
.prose .list-intro {
  margin-top: 1.5em;
  margin-bottom: .5em;
  color: var(--sg-heading);
}

.prose > .list-intro:first-child { margin-top: 0; }

.prose em { font-style: italic; }

/* --------------------------------------------------------------------------
   4. Кнопки
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--sg-accent-contrast);
  background: var(--sg-accent);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--sg-accent-contrast);
  background: var(--sg-accent-hover);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(var(--sg-accent-rgb), .22);
  transform: translateY(-1px);
}

.btn:active { transform: none; box-shadow: none; }

.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  color: var(--sg-heading);
  background: transparent;
  border-color: var(--sg-line-strong);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--sg-accent-contrast);
  background: var(--sg-accent);
  border-color: var(--sg-accent);
}

.btn-on-dark {
  color: var(--sg-brand-deep);
  background: #fff;
  border-color: #fff;
}

.btn-on-dark:hover,
.btn-on-dark:focus-visible {
  color: var(--sg-brand-deep);
  background: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

/* --------------------------------------------------------------------------
   5. Шапка
   -------------------------------------------------------------------------- */

.sg-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10050;
  min-height: var(--sg-header-height);
  border-bottom: 1px solid var(--sg-line);
  background: var(--sg-header-bg);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  box-shadow: var(--sg-shadow-soft);
}

.sg-header-inner {
  width: min(1500px, calc(100% - 32px));
  min-height: var(--sg-header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.sg-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.sg-brand img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 7px 14px rgba(0, 75, 125, .10));
}

:root[data-theme="dark"] .sg-brand img,
:root[data-theme="dark"] .sg-footer-brand img {
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, .24));
}

.sg-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
}

.sg-nav > a,
.sg-nav-group-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  color: var(--sg-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.sg-nav > a:hover,
.sg-nav > a:focus-visible,
.sg-nav > a[aria-current="page"],
.sg-nav-group:hover .sg-nav-group-link,
.sg-nav-group:focus-within .sg-nav-group-link,
.sg-nav-group.is-current .sg-nav-group-link {
  color: var(--sg-heading);
  background: var(--sg-accent-soft);
  text-decoration: none;
}

.sg-nav-group { position: relative; display: flex; align-items: center; }

.sg-dropdown-toggle {
  width: 26px;
  height: 36px;
  margin-left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--sg-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.sg-dropdown-toggle svg {
  width: 10px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.sg-nav-group.is-open .sg-dropdown-toggle svg { transform: rotate(180deg); }

.sg-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 320px;
  padding: 9px;
  display: grid;
  gap: 3px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-7px);
  border: 1px solid var(--sg-line);
  border-radius: var(--radius);
  background: var(--sg-surface);
  box-shadow: var(--sg-shadow);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.sg-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.sg-nav-group:hover .sg-dropdown,
.sg-nav-group:focus-within .sg-dropdown,
.sg-nav-group.is-open .sg-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sg-dropdown a {
  padding: 11px 12px;
  color: var(--sg-text);
  border-radius: 10px;
  text-decoration: none;
}

.sg-dropdown a:hover,
.sg-dropdown a:focus-visible,
.sg-dropdown a[aria-current="page"] {
  color: var(--sg-heading);
  background: var(--sg-surface-hover);
}

.sg-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

/* Шапка сжимается по мере нехватки места, а не по фиксированной ширине окна:
   сначала прячется кнопка, затем контакты, и лишь потом меню сворачивается
   в мобильную панель. Классы навешивает site.js по замеру. */
.sg-header-inner.is-no-cta .sg-header-cta { display: none; }
.sg-header-inner.is-no-contacts .sg-header-contacts { display: none; }

.sg-header-inner.is-condensed {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.sg-header-inner.is-condensed .sg-nav { display: none; }
.sg-header-inner.is-condensed .sg-mobile-nav { display: flex; }

/* Поиск повторяет поведение solidlab.ru: подсказки появляются сразу по мере
   ввода, а на узких экранах поле раскрывается из компактной кнопки. */
.sg-site-search {
  position: relative;
  z-index: 2;
}

.sg-search-toggle {
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--sg-accent-strong);
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: 50%;
  box-shadow: var(--sg-shadow-soft);
  cursor: pointer;
}

.sg-search-toggle svg,
.sg-search-form > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sg-search-panel { position: relative; }

.sg-search-form {
  width: clamp(136px, 11vw, 170px);
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-muted);
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: 11px;
  transition: width .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sg-search-form:focus-within {
  width: clamp(170px, 14vw, 220px);
  color: var(--sg-accent-strong);
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 3px rgba(var(--sg-accent-rgb), .14);
}

.sg-search-form input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: var(--sg-text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: var(--fs-xs);
}

.sg-search-form input::placeholder { color: var(--sg-muted); opacity: 1; }

.sg-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(370px, calc(100vw - 24px));
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: var(--radius);
  background: var(--sg-surface);
  box-shadow: var(--sg-shadow);
}

.sg-search-results[hidden] { display: none; }
.sg-search-results ul { margin: 0; padding: 0; list-style: none; }
.sg-search-results li { margin: 0; }

.sg-search-results a,
.sg-search-empty {
  display: block;
  padding: 10px 12px;
  color: var(--sg-text);
  border-radius: 10px;
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.sg-search-results a:hover,
.sg-search-results a:focus-visible {
  color: var(--sg-heading);
  background: var(--sg-surface-hover);
  text-decoration: none;
}

.sg-search-empty { color: var(--sg-muted); }

.sg-contact-icons { display: flex; align-items: center; gap: 8px; }

.sg-contact-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-accent);
  background: var(--sg-surface-soft);
  border: 1px solid var(--sg-line);
  border-radius: 50%;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.sg-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-contact-icon:hover,
.sg-contact-icon:focus-visible {
  color: var(--sg-accent-contrast);
  background: var(--sg-accent);
  border-color: var(--sg-accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.sg-mobile-nav {
  display: none;
  width: min(240px, 42vw);
  height: 38px;
  padding: 0 34px 0 12px;
  color: var(--sg-text);
  border: 1px solid var(--sg-line);
  border-radius: 11px;
  background: var(--sg-surface);
  font: inherit;
  font-size: var(--fs-xs);
}

.sg-theme-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-accent-strong);
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: 50%;
  box-shadow: var(--sg-shadow-soft);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.sg-theme-toggle:hover,
.sg-theme-toggle:focus-visible {
  transform: translateY(-1px);
  background: var(--sg-surface-hover);
  border-color: var(--sg-line-strong);
}

.sg-theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .sg-theme-toggle { color: #ffd166; }

.sg-header-cta {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--sg-cta);
  border-radius: 11px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease;
}

.sg-header-cta:hover,
.sg-header-cta:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   6. Подвал
   -------------------------------------------------------------------------- */

.sg-footer {
  position: relative;
  color: var(--sg-muted);
  background: var(--sg-surface);
  border-top: 1px solid var(--sg-line);
  font-size: var(--fs-sm);
}

.sg-footer-inner {
  width: var(--container);
  margin-inline: auto;
  padding: 48px 0 24px;
}

.sg-footer-top {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 38px;
  height: 38px;
  padding: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-accent);
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: 50%;
  box-shadow: var(--sg-shadow);
  cursor: pointer;
  transform: translateX(-50%);
}

.sg-footer-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 64px;
  align-items: start;
}

.sg-footer-brand img { width: 150px; height: auto; }
.sg-footer-brand p { max-width: 300px; margin: 12px 0 0; }

.sg-footer-contacts { display: grid; gap: 10px; }
.sg-footer-contacts .sg-contact-icon { width: 42px; height: 42px; flex-basis: 42px; }
.sg-footer-contacts p { max-width: 360px; margin: 4px 0 0; }

.sg-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sg-heading);
  font-size: var(--fs-sm);
}

.sg-footer a:not(.sg-contact-icon) {
  width: fit-content;
  color: var(--sg-accent);
  text-decoration: none;
}

.sg-footer a:not(.sg-contact-icon):hover,
.sg-footer a:not(.sg-contact-icon):focus-visible {
  color: var(--sg-heading);
  text-decoration: underline;
}

.sg-footer-resident { display: flex; justify-content: flex-end; }

.sg-footer-resident a {
  width: 100%;
  max-width: 220px;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--sg-muted);
  text-align: center;
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.sg-footer-resident-logo {
  min-height: 92px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #14222d, #071018);
  border: 1px solid rgba(22, 137, 196, .22);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(4, 16, 25, .14);
}

.sg-footer-resident img { width: 150px; max-width: 100%; height: auto; }

.sg-footer-legal {
  margin-top: 28px;
  padding: 16px 0;
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--sg-line);
  border-bottom: 1px solid var(--sg-line);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.sg-footer-legal p { margin: 0; }

.sg-footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: var(--fs-xs);
}

.sg-footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* --------------------------------------------------------------------------
   7. Cookie-баннер
   -------------------------------------------------------------------------- */

.sg-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 10060;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.sg-cookie-banner[hidden] { display: none; }

.sg-cookie-card {
  width: min(1000px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-y: auto;
  color: var(--sg-text);
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: 14px;
  box-shadow: var(--sg-shadow);
  pointer-events: auto;
}

.sg-cookie-card p { margin: 0; flex: 1 1 auto; font-size: var(--fs-xs); }

.sg-cookie-card button {
  min-height: 38px;
  padding: 0 18px;
  color: var(--sg-heading);
  background: var(--sg-surface-soft);
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
}

.sg-cookie-card button:hover,
.sg-cookie-card button:focus-visible { background: var(--sg-surface-hover); }

/* --------------------------------------------------------------------------
   8. Обложки и вводные экраны
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
  color: var(--sg-on-dark);
  background:
    radial-gradient(120% 110% at 50% 0%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, var(--sg-brand-deep) 0%, var(--sg-brand-deep-2) 100%);
  overflow: hidden;
}

/* Главный экран: фирменный сине-голубой свет и едва заметная геометрия
   поддерживают знак, не конкурируя с текстом и кнопкой. */
.hero-home {
  /* На широких мониторах обложка не растягивается на всю высоту экрана.
     На более низких окнах по-прежнему занимает всё место под шапкой. */
  min-height: min(720px, calc(100svh - var(--sg-header-height)));
  display: grid;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse 56% 74% at 18% 4%, rgba(88, 194, 236, .34) 0%, rgba(44, 148, 204, .12) 48%, transparent 72%),
    radial-gradient(ellipse 48% 66% at 88% 10%, rgba(53, 103, 196, .32) 0%, rgba(24, 89, 163, .10) 52%, transparent 74%),
    radial-gradient(ellipse 42% 62% at 50% 62%, rgba(0, 139, 187, .24) 0%, transparent 72%),
    linear-gradient(118deg, transparent 18%, rgba(52, 163, 211, .12) 43%, rgba(0, 72, 116, .08) 62%, transparent 82%),
    linear-gradient(142deg, #062f51 0%, #075b88 34%, #00466f 64%, #042e4e 100%);
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .66;
  background:
    repeating-linear-gradient(60deg, transparent 0 179px, rgba(255, 255, 255, .10) 180px, transparent 181px 360px),
    repeating-linear-gradient(-60deg, transparent 0 179px, rgba(255, 255, 255, .085) 180px, transparent 181px 360px),
    repeating-linear-gradient(0deg, transparent 0 311px, rgba(255, 255, 255, .055) 312px, transparent 313px 624px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .72) 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .72) 68%, transparent 100%);
  pointer-events: none;
}

.hero-home .hero-inner {
  position: relative;
  z-index: 1;
}


.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

.hero-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.hero h1 { color: var(--sg-on-dark); }
.hero .hero-uptitle {
  margin: 0;
  color: var(--sg-on-dark-muted);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 46ch;
  margin: 0;
  color: var(--sg-on-dark-muted);
  font-size: var(--fs-lead);
}

.hero-mark {
  width: clamp(120px, 18vw, 208px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .32));
}

/* Заголовки продуктовых страниц длинные — колонка шире, иначе текст
   рассыпается на шесть коротких строк */
.hero-narrow .hero-inner { max-width: min(920px, 100%); }
.hero-narrow h1 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); }
.hero-narrow .hero-lead { max-width: 60ch; }

/* Обложка с логотипом-подложкой: знак проступает за текстом, как было на Tilda */
.hero-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-mark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(86vw, 620px) auto;
  opacity: .22;
  filter: saturate(.5) brightness(1.5);
  pointer-events: none;
}

.hero-watermark .hero-inner { position: relative; z-index: 1; }

/* Вводный экран с текстом и формой в одной колонке */
.hero-column .hero-inner {
  width: min(860px, calc(100% - 40px));
  justify-items: stretch;
  gap: 26px;
  text-align: left;
}

.hero-column h1 { text-wrap: pretty; }

.hero-body { color: var(--sg-on-dark-muted); }
.hero-body strong { color: var(--sg-on-dark); }
.hero-body a { color: #cfe6f7; text-decoration: underline; }
.hero-body a:hover { color: #fff; }
.hero-body.prose { max-width: none; }

/* Форма занимает всю ширину колонки, иначе выбивается из общей вертикали */
.hero-column .form-card { width: 100%; margin: 0; }

/* --------------------------------------------------------------------------
   9. Аккордеон (нативный <details>, работает без JS)
   -------------------------------------------------------------------------- */

.accordion-list {
  display: grid;
  gap: 12px;
  max-width: min(90ch, 100%);
  margin-inline: auto;
}

.accordion {
  border: 1px solid var(--sg-line);
  border-radius: var(--radius);
  background: var(--sg-surface);
  box-shadow: var(--sg-shadow-soft);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.accordion[open] {
  border-color: rgba(var(--sg-accent-rgb), .38);
  box-shadow: var(--sg-shadow);
}

.accordion > summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  color: var(--sg-heading);
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  cursor: pointer;
  list-style: none;
  transition: background-color .18s ease;
}

.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::marker { content: ""; }

.accordion > summary h3 {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.accordion > summary:hover { background: var(--sg-surface-soft); }

.accordion > summary::after {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: auto;
  background: currentColor;
  opacity: .55;
  transition: transform .2s ease, opacity .18s ease;
  -webkit-mask: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  mask: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.accordion[open] > summary::after { transform: rotate(180deg); opacity: 1; }

.accordion-body {
  padding: 0 22px 24px;
  border-top: 1px solid var(--sg-line);
  padding-top: 20px;
}

.accordion-body > :last-child { margin-bottom: 0; }

.accordion-body .accordion-figure {
  margin: 18px 0 0;
}

.accordion-body .accordion-figure img {
  width: 100%;
  border: 1px solid var(--sg-line);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* --------------------------------------------------------------------------
   10. Полоса показателей
   -------------------------------------------------------------------------- */

.stats-band {
  position: relative;
  padding-block: clamp(48px, 6vw, 88px);
  color: var(--sg-on-dark);
  background-color: var(--sg-brand-deep);
  background-image: linear-gradient(rgba(0, 75, 125, .90), rgba(0, 75, 125, .94)), var(--band-image);
  background-size: cover;
  background-position: center;
}

.stats-list {
  width: var(--container);
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  list-style: none;
  text-align: center;
}

.stats-list li { margin: 0; }

.stat-value {
  display: block;
  margin-bottom: 10px;
  color: var(--sg-on-dark);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
}

.stat-label {
  display: block;
  max-width: 26ch;
  margin-inline: auto;
  color: var(--sg-on-dark-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   11. Карточки преимуществ
   -------------------------------------------------------------------------- */

.cards {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  list-style: none;
}

.cards li { margin: 0; }

.card {
  height: 100%;
  padding: 32px 26px;
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid var(--sg-line);
  border-radius: var(--radius);
  background: var(--sg-surface);
  box-shadow: var(--sg-shadow-soft);
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card:hover {
  border-color: rgba(var(--sg-accent-rgb), .35);
  box-shadow: var(--sg-shadow);
  transform: translateY(-3px);
}

/* У иконок белая подложка запечена в файл, поэтому и кружок делаем белым:
   иначе в тёмной теме видно прямоугольный край картинки. */
.card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 19, 31, .10);
}

.card h3 { margin: 0; }

.card p {
  margin: 0;
  color: var(--sg-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   12. Текстовая полоса на фотографии
   -------------------------------------------------------------------------- */

.photo-band {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px);
  color: var(--sg-on-dark);
  background-color: var(--sg-brand-deep);
  background-image: linear-gradient(rgba(0, 75, 125, .82), rgba(1, 57, 95, .90)), var(--band-image);
  background-size: cover;
  background-position: center;
}

.photo-band .prose { color: var(--sg-on-dark-muted); }
.photo-band h2 { color: var(--sg-on-dark); margin-bottom: .6em; }
.photo-band strong { color: var(--sg-on-dark); }

/* --------------------------------------------------------------------------
   13. Формы
   -------------------------------------------------------------------------- */

.form-captcha[hidden],
.form-smart-captcha[hidden] {
  display: none !important;
}

.form-smart-captcha {
  grid-column: 1 / -1;
  min-width: 0;
}

.form-captcha-notice {
  margin: 0;
  color: var(--sg-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.form-captcha-notice a {
  color: var(--sg-accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-on-dark .form-captcha-notice { color: rgba(255, 255, 255, .88); }
.form-on-dark .form-captcha-notice a { color: #cfe6f7; }

.form-card {
  width: min(720px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--sg-line);
  border-radius: var(--radius);
  background: var(--sg-surface);
  box-shadow: var(--sg-shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field { display: grid; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }

.form-field label {
  color: var(--sg-heading);
  font-size: var(--fs-xs);
  font-weight: 650;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--sg-text);
  background: var(--sg-surface);
  border: 1px solid var(--sg-control-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field textarea { min-height: 128px; resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--sg-muted); opacity: 1; }

.form-field input:hover,
.form-field textarea:hover { border-color: var(--sg-accent); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 3px rgba(var(--sg-accent-rgb), .20);
}

.form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--sg-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--sg-accent);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.form-status {
  flex: 1 1 220px;
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.form-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status[data-state="error"] { color: #c03521; }
.form-status[data-state="ok"] { color: #14794f; }

:root[data-theme="dark"] .form-status[data-state="error"] { color: #ff9d8c; }
:root[data-theme="dark"] .form-status[data-state="ok"] { color: #6fd6a5; }

/* Ловушка для ботов — не показываем и не озвучиваем */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Форма поверх тёмной подложки */
.form-on-dark {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.form-on-dark .form-field label { color: var(--sg-on-dark); }
.form-on-dark .form-consent { color: rgba(255, 255, 255, .92); }
.form-on-dark .form-consent a { color: #cfe6f7; text-decoration: underline; }
.form-on-dark .form-field input,
.form-on-dark .form-field textarea {
  color: #0d1b26;
  background: rgba(255, 255, 255, .94);
  border-color: rgba(255, 255, 255, .35);
}
.form-on-dark .form-status[data-state="error"] { color: #ffc3b8; }
.form-on-dark .form-status[data-state="ok"] { color: #a9edcb; }
.form-on-dark .btn { color: var(--sg-brand-deep); background: #fff; }
.form-on-dark .btn:hover,
.form-on-dark .btn:focus-visible { background: rgba(255, 255, 255, .88); }

/* Компактная форма в одну строку (запрос документации) */
.form-inline .form-grid { grid-template-columns: minmax(0, 1fr) auto; }
.form-inline .form-actions { grid-column: auto; }

/* --------------------------------------------------------------------------
   14. Блок с запросом документации
   -------------------------------------------------------------------------- */

.request-band {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  color: var(--sg-on-dark);
  border-radius: var(--radius);
  background-color: #10614a;
  background-image:
    linear-gradient(rgba(16, 97, 74, .84), rgba(10, 69, 52, .92)),
    var(--band-image);
  background-size: auto, min(60%, 420px);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: var(--sg-shadow);
}

/* Заголовок, текст и форма выровнены по одной колонке, иначе разъезжаются */
.request-band-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 18px;
}

.request-band h2 { color: var(--sg-on-dark); }
.request-band p { margin: 0; color: var(--sg-on-dark-muted); }
.request-band .form-card { width: 100%; margin: 0; }

/* --------------------------------------------------------------------------
   15. Контакты и карта
   -------------------------------------------------------------------------- */

.contacts {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 520px;
}

.contacts-map {
  position: relative;
  min-height: 380px;
  background: var(--sg-surface-soft);
}

.contacts-map .map-canvas { position: absolute; inset: 0; }

.contacts-card {
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  align-content: center;
  gap: 22px;
  color: var(--sg-on-dark);
  background: var(--sg-brand-deep);
}

.contacts-lead {
  display: grid;
  gap: 6px;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.contacts-lead a { color: var(--sg-on-dark); text-decoration: none; }
.contacts-lead a:hover { color: #fff; text-decoration: underline; }

.contacts-details {
  margin: 0;
  color: var(--sg-on-dark-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.contacts-details span { display: block; }

.contacts .sg-contact-icon {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}

.contacts .sg-contact-icon:hover,
.contacts .sg-contact-icon:focus-visible {
  color: var(--sg-brand-deep);
  background: #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   16. Юридические страницы
   -------------------------------------------------------------------------- */

.breadcrumbs {
  width: var(--container);
  margin: 0 auto;
  padding-block: 14px;
  color: var(--sg-muted);
  font-size: var(--fs-xs);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.breadcrumbs-list li + li::before {
  content: "/";
  color: var(--sg-line-strong);
}

.breadcrumbs-list a {
  color: var(--sg-accent);
  text-decoration: none;
}

.breadcrumbs-list a:hover,
.breadcrumbs-list a:focus-visible {
  color: var(--sg-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs-list [aria-current="page"] {
  color: var(--sg-text);
}

.legal-hero {
  padding-block: clamp(40px, 5vw, 72px);
  text-align: center;
  background: var(--sg-surface-soft);
  border-bottom: 1px solid var(--sg-line);
}

.legal-hero .hero-uptitle {
  margin: 0 0 12px;
  color: var(--sg-muted);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-hero-main { display: block; }

.legal-hero-sub {
  display: block;
  margin-top: 10px;
  color: var(--sg-muted);
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: normal;
}

.legal-table-wrap {
  margin: 1.2em 0;
  overflow-x: auto;
  border: 1px solid var(--sg-line);
  border-radius: var(--radius-sm);
}

.legal-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.legal-table-wrap td,
.legal-table-wrap th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--sg-line);
  border-right: 1px solid var(--sg-line);
  vertical-align: top;
  text-align: left;
}

.legal-table-wrap tr:last-child td { border-bottom: 0; }
.legal-table-wrap td:last-child,
.legal-table-wrap th:last-child { border-right: 0; }

/* --------------------------------------------------------------------------
   17. Страница 404
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 62vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding-block: var(--section-space);
  text-align: center;
}

.error-page .error-code {
  margin: 0;
  max-width: none;
  color: var(--sg-accent);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.error-page p {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--sg-muted);
}

.error-page .btn { margin-top: 10px; }

/* --------------------------------------------------------------------------
   18. Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .sg-header-inner { grid-template-columns: 155px minmax(0, 1fr) auto; gap: 10px; }
  .sg-brand img { width: 140px; }
  .sg-nav { font-size: var(--fs-xs); }
  .sg-nav > a, .sg-nav-group-link { padding: 0 8px; }
}

/* На узких экранах меню не помещается ни при каких условиях — сворачиваем сразу,
   не дожидаясь замера, чтобы не мигало при загрузке. */
@media (max-width: 800px) {
  .sg-header-inner { grid-template-columns: auto minmax(0, 1fr); }
  .sg-nav { display: none; }
  .sg-header-contacts { display: none; }
  .sg-header-cta { display: none; }
  .sg-mobile-nav { display: flex; }

  .sg-search-toggle { display: inline-flex; }
  .sg-search-panel {
    position: fixed;
    top: calc(var(--sg-header-height) + 8px);
    left: 10px;
    right: 10px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border: 1px solid var(--sg-line);
    border-radius: var(--radius);
    background: var(--sg-surface);
    box-shadow: var(--sg-shadow);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .sg-site-search.is-open .sg-search-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .sg-search-form,
  .sg-search-form:focus-within { width: 100%; }
  .sg-search-results {
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 3px 0 0;
    border: 0;
    border-top: 1px solid var(--sg-line);
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 1000px) {
  :root { --sg-header-height: 70px; }
  .sg-header-inner { width: min(100% - 28px, 1100px); }
  .sg-header-actions { min-width: 0; }

  .contacts { grid-template-columns: 1fr; min-height: 0; }
  .contacts-map { min-height: 320px; }

  .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .stats-list { grid-template-columns: 1fr; gap: 32px; }

  .sg-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .sg-footer-brand { grid-column: 1 / -1; }
  .sg-footer-resident { justify-content: flex-start; }
  .sg-footer-bottom { flex-direction: column; }
  .sg-footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-inline .form-grid { grid-template-columns: 1fr; }
  .accordion > summary { padding: 16px 18px; gap: 12px; }
  .accordion-body { padding: 18px 18px 20px; }
  .request-band { background-size: auto, min(78%, 320px); }
}

@media (max-width: 620px) {
  :root { --sg-header-height: 64px; }
  .sg-header-inner { width: calc(100% - 20px); gap: 8px; }
  .sg-brand img { width: 108px; }
  .sg-mobile-nav { width: min(180px, 43vw); height: 36px; padding-left: 9px; font-size: 13px; }
  .sg-theme-toggle { width: 34px; height: 34px; flex-basis: 34px; padding: 8px; }
  .sg-search-toggle { width: 34px; height: 34px; }

  .hero-home { min-height: calc(100svh - var(--sg-header-height)); }

  .breadcrumbs {
    width: calc(100% - 24px);
    padding-block: 10px;
    font-size: .8125rem;
  }

  .sg-footer-inner {
    padding-top: 42px;
    padding-bottom: max(42px, calc(24px + env(safe-area-inset-bottom)));
  }
  .sg-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sg-footer-legal { overflow-wrap: anywhere; }

  .sg-cookie-banner {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - 16px);
    align-items: flex-end;
  }
  .sg-cookie-card {
    max-height: calc(100dvh - 16px);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-radius: 12px;
  }
  .sg-cookie-card p { overflow-wrap: anywhere; }
  .sg-cookie-card button { width: 100%; }
}

@media (max-width: 380px) {
  .sg-header-inner { width: calc(100% - 14px); }
  .sg-brand img { width: 82px; }
  .sg-mobile-nav { width: min(128px, 40vw); padding-left: 8px; font-size: 12px; }
  .sg-header-actions { gap: 6px; }
  .sg-search-toggle,
  .sg-theme-toggle { width: 32px; height: 32px; flex-basis: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Mobile drawer, shared interaction pattern with SolidLab and SolidWall. */

.sg-mobile-nav { align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding-right: 12px; text-align: left; cursor: pointer; }
.sg-mobile-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-mobile-nav svg { flex-shrink: 0; transition: transform .2s ease; }
.sg-mobile-nav[aria-expanded="true"] svg { transform: rotate(180deg); }
.sg-mobile-menu-overlay { position: fixed; inset: var(--sg-header-height, 76px) 0 0; z-index: 10070; background: rgba(2, 6, 23, .55); }
.sg-mobile-menu { position: fixed; top: var(--sg-header-height, 76px); right: 0; z-index: 10071; width: min(86vw, 360px); height: calc(100vh - var(--sg-header-height, 76px)); height: calc(100dvh - var(--sg-header-height, 76px)); overflow-y: auto; overscroll-behavior: contain; background: var(--sg-surface); border-left: 1px solid var(--sg-line); box-shadow: -16px 0 40px rgba(0, 0, 0, .25); }
.sg-mobile-menu:not([hidden]) { animation: sg-mobile-menu-enter .25s ease-out; }
.sg-mobile-menu[hidden], .sg-mobile-menu-overlay[hidden] { display: none; }
.sg-mobile-menu-body { padding: 10px 0 max(24px, env(safe-area-inset-bottom)); }
.sg-mobile-menu a, .sg-mobile-menu summary { display: flex; align-items: center; min-height: 44px; gap: 12px; padding: 12px 18px; color: var(--sg-text); font-size: 15px; font-weight: 600; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.sg-mobile-menu a:hover, .sg-mobile-menu summary:hover { background: var(--sg-surface-hover); }
.sg-mobile-menu a[aria-current="page"] { color: var(--sg-heading); background: rgba(var(--sg-accent-rgb), .1); box-shadow: inset 3px 0 var(--sg-accent); font-weight: 700; }
.sg-mobile-menu-group { border: 0; }
.sg-mobile-menu summary { list-style: none; justify-content: space-between; cursor: pointer; }
.sg-mobile-menu summary::-webkit-details-marker { display: none; }
.sg-mobile-menu summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; flex-shrink: 0; border-right: 2px solid var(--sg-muted); border-bottom: 2px solid var(--sg-muted); transform: rotate(45deg); }
.sg-mobile-menu details[open] > summary::after { transform: rotate(-135deg); }
.sg-mobile-menu-sub { padding: 2px 0 8px; }
.sg-mobile-menu-sub a { padding: 10px 18px 10px 30px; color: var(--sg-muted); font-size: 14px; font-weight: 500; }
.sg-mobile-menu a:focus-visible, .sg-mobile-menu summary:focus-visible, .sg-mobile-nav:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: -2px; }
html.sg-mobile-menu-lock, html.sg-mobile-menu-lock body { overflow: hidden; }
@keyframes sg-mobile-menu-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .sg-mobile-menu:not([hidden]) { animation: none; } .sg-mobile-nav svg { transition: none; } }
