/* ==========================================================================
   WELLSERVICE — основной стиль
   Цвета бренда взяты из логотипа: #00779e (синий), #69645f (серый).
   ========================================================================== */

/* ---------- Шрифты (локально, без обращений к сторонним серверам) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-wght-normal.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: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --brand: #00779e;
  --brand-600: #00688b;
  --brand-700: #005674;
  --brand-50: #ebf6fa;
  --brand-100: #d4ecf4;
  --brand-200: #a9d9e9;
  --accent: #3dbde3;
  --ink: #0c1a23;
  --text: #2c3b46;
  --muted: #5b6b77;
  --line: #e1e8ed;
  --line-strong: #c9d5dd;
  --control: #7b8c98;
  --bg: #ffffff;
  --bg-soft: #f3f7f9;
  --dark: #061720;
  --dark-2: #0a2331;
  --on-dark: #e9f2f6;
  --on-dark-muted: #a6bcc8;
  --success: #0f7a4f;
  --success-bg: #e9f7f0;
  --danger: #c4323f;
  --danger-bg: #fdefef;
  --warning: #9a6512;
  --warning-bg: #fff6e6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgb(12 26 35 / 0.06), 0 2px 6px rgb(12 26 35 / 0.05);
  --shadow: 0 14px 34px -16px rgb(12 26 35 / 0.24);
  --shadow-lg: 0 28px 64px -24px rgb(6 23 32 / 0.4);
  --ring: 0 0 0 4px rgb(0 119 158 / 0.18);

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1, h2, h3, h4 { overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible,
.product-card :focus-visible, .aside-card--dark :focus-visible, .lightbox :focus-visible { outline-color: #fff; }
::selection { background: var(--brand-100); color: var(--ink); }
main { display: block; }
main:focus { outline: none; }
.icon { flex: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--soft { background: var(--bg-soft); }
.section--flush-top { padding-top: 0; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split--center { align-items: center; }
.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.with-aside > aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}
@media (max-width: 1023px) {
  .split, .with-aside { grid-template-columns: minmax(0, 1fr); }
  .with-aside > aside { position: static; }
}
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font: 700 0.78rem/1.2 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); margin-bottom: 0.4em; }
.section-head__lead { margin: 0; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); color: var(--muted); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section-head--row > div { max-width: 720px; }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--ink); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.gradient-text {
  background: linear-gradient(92deg, #8be3ff 0%, var(--accent) 45%, #b5e6f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 479px) {
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px;
  padding: 0.75em 1.4em;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.2 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 10px 24px -12px rgb(0 119 158 / 0.75); }
.btn-primary:hover { --btn-bg: var(--brand-600); box-shadow: 0 14px 28px -12px rgb(0 119 158 / 0.85); }
.btn-outline { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bd: var(--brand); --btn-fg: var(--brand); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-light:hover { --btn-bg: #eaf6fb; --btn-fg: var(--ink); }
.btn-ghost { --btn-bg: rgb(255 255 255 / 0.06); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.24); }
.btn-ghost:hover { --btn-bg: rgb(255 255 255 / 0.12); --btn-bd: rgb(255 255 255 / 0.45); }
.btn-text { --btn-bg: transparent; --btn-fg: var(--brand); padding-inline: 0.7em; }
.btn-text:hover { --btn-fg: var(--brand-700); transform: none; text-decoration: underline; }
.btn-sm { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 0.9em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
}
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }
.btn[aria-busy='true'] .icon { animation: spin 1s linear infinite; }

.link-button {
  padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}
.icon-button {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.icon-button:hover { border-color: var(--brand); color: var(--brand); }
.icon-button--light { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.16); color: #fff; }
.icon-button--light:hover { background: rgb(255 255 255 / 0.16); color: #fff; border-color: rgb(255 255 255 / 0.3); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font: 700 1rem var(--font-display);
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgb(12 26 35 / 0.45); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { flex: none; display: block; border-radius: 8px; }
.brand img { height: 40px; width: auto; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  font: 600 0.95rem/1.2 var(--font-display);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.has-sub > .nav-link { padding-right: 2px; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-item.is-active > .nav-link { color: var(--brand); }
.nav-item.is-active::after {
  content: '';
  position: absolute; left: 11px; right: 11px; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--brand);
}
.sub-toggle {
  display: grid; place-items: center;
  width: 24px; height: 32px; margin-right: 4px; padding: 0;
  border: 0; border-radius: 6px;
  background: none; color: var(--muted);
}
.sub-toggle .icon { transition: transform 0.2s var(--ease); }
.nav-item:hover .sub-toggle .icon, .nav-item.is-open .sub-toggle .icon { transform: rotate(180deg); color: var(--brand); }
.sub {
  position: absolute; top: calc(100% + 12px); left: -8px; z-index: 10;
  min-width: 300px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item:hover > .sub, .nav-item.is-open > .sub {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
.nav-item.is-closed > .sub { opacity: 0; visibility: hidden; }
.sub ul { margin: 0; padding: 0; list-style: none; }
.sub-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.95rem; font-weight: 500; line-height: 1.35;
  text-decoration: none;
}
.sub-link:hover, .sub-link[aria-current='page'] { background: var(--brand-50); color: var(--brand-700); }
.sub--mega { left: 50%; width: min(700px, calc(100vw - 48px)); transform: translate(-50%, 6px); }
.nav-item:hover > .sub--mega, .nav-item.is-open > .sub--mega { transform: translate(-50%, 0); }
.sub--mega ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.sub-link--icon { display: flex; align-items: center; gap: 12px; }
.sub-link__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--brand-50); color: var(--brand);
  transition: background-color 0.2s, color 0.2s;
}
.sub-link--icon:hover .sub-link__icon { background: var(--brand); color: #fff; }
.sub-footer {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; padding: 12px 14px 6px;
  border-top: 1px solid var(--line);
  font: 700 0.92rem var(--font-display);
  text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  font: 700 0.98rem var(--font-display);
  text-decoration: none; white-space: nowrap;
}
.header-phone .icon { color: var(--brand); }
.header-phone:hover { color: var(--brand); }
.burger {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ''; position: absolute; left: 0; }
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.burger[aria-expanded='true'] .burger__lines { background: transparent; }
.burger[aria-expanded='true'] .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1439px) {
  .header-phone span { display: none; }
  .header-phone {
    justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 50%;
  }
}
@media (max-width: 1279px) {
  .header-inner { gap: 16px; }
  .brand img { height: 34px; }
  .nav-link { padding-inline: 8px; font-size: 0.92rem; }
  .nav-item.is-active::after { left: 8px; right: 8px; }
  .header-cta { display: none; }
}
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
  .header-cta { display: inline-flex; }
}
@media (max-width: 639px) {
  .header-cta { display: none; }
}
@media (max-width: 379px) {
  .brand img { height: 28px; }
  .header-actions { gap: 8px; }
}

/* Мобильное меню */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 28px;
  padding: 8px var(--gutter) 32px;
  background: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  animation: menu-in 0.25s var(--ease);
}
.mobile-nav[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.m-list { margin: 0; padding: 0; list-style: none; }
.m-list > li { border-bottom: 1px solid var(--line); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 2px;
  color: var(--ink);
  font: 700 1.1rem var(--font-display);
  text-decoration: none;
  list-style: none; cursor: pointer;
}
.m-link::-webkit-details-marker { display: none; }
.m-link.is-active { color: var(--brand); }
.m-link .icon { color: var(--muted); transition: transform 0.2s var(--ease); }
details[open] > .m-link .icon { transform: rotate(180deg); }
.m-sub { margin: 0 0 14px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--brand-100); }
.m-sub a { display: block; padding: 9px 8px; color: var(--text); text-decoration: none; }
.m-sub a[aria-current='page'] { color: var(--brand); font-weight: 600; }
.mobile-nav__footer { display: grid; gap: 14px; margin-top: auto; }
.mobile-nav__contact { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-nav__contact .icon { color: var(--brand); }
.site-header.is-compact .main-nav, .site-header.is-compact .header-cta { display: none; }
.site-header.is-compact .burger { display: grid; }
.site-header.is-compact .header-actions { margin-left: auto; }
@media (min-width: 1024px) {
  .site-header:not(.is-compact) + .mobile-nav { display: none !important; }
}

/* ---------- Главный экран ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg {
  background:
    radial-gradient(900px 540px at 86% 6%, rgb(0 119 158 / 0.55), transparent 62%),
    radial-gradient(700px 480px at -5% 105%, rgb(61 189 227 / 0.16), transparent 60%),
    linear-gradient(180deg, #061720 0%, #08202d 100%);
}
.hero__bg::before, .page-hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 108px) clamp(96px, 11vw, 150px);
}
.hero h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(1.95rem, 1.2rem + 3.9vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero__lead { max-width: 38em; margin-bottom: 34px; color: var(--on-dark-muted); font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.24rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.hero__note { margin: 22px 0 0; color: var(--on-dark-muted); font-size: 0.95rem; }
.hero__note a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero__note a:hover { color: var(--accent); }

.hero__visual { position: relative; }
.radar { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-left: auto; }
.motion-toggle {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 50%;
  background: rgb(10 35 49 / 0.72);
  color: #fff;
  transition: background-color 0.2s;
}
.motion-toggle:hover { background: rgb(10 35 49 / 0.95); }
.motion-toggle__play { display: none; }
.hero__visual.is-paused .motion-toggle__play { display: block; }
.hero__visual.is-paused .motion-toggle__pause { display: none; }
.hero__visual.is-paused .radar, .hero__visual.is-paused .radar * { animation-play-state: paused !important; }
.radar__rings { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(255 255 255 / 0.14); }
.radar__dash { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.radar__sweep {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 280deg, rgb(61 189 227 / 0.26) 350deg, rgb(61 189 227 / 0.55) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  animation: spin 7s linear infinite;
}
.radar__core {
  position: absolute; inset: 31%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.04) 60%);
  border: 1px solid rgb(255 255 255 / 0.2);
  box-shadow: 0 0 90px rgb(0 119 158 / 0.6), inset 0 0 36px rgb(61 189 227 / 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.radar__core img { width: 64%; filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.35)); }
.radar__dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.6s ease-out infinite;
}
.radar__dot--1 { top: 18%; left: 64%; }
.radar__dot--2 { top: 66%; left: 18%; animation-delay: -0.9s; }
.radar__dot--3 { top: 74%; left: 72%; animation-delay: -1.7s; }
.radar__chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgb(10 35 49 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: #fff;
  font: 600 0.88rem/1.25 var(--font-display);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.7);
  animation: float 7s ease-in-out infinite;
}
.radar__chip .icon { color: var(--accent); }
.radar__chip small { display: block; color: var(--on-dark-muted); font-weight: 500; font-size: 0.76rem; }
.radar__chip--1 { top: 9%; left: -2%; }
.radar__chip--2 { top: 45%; right: -6%; animation-delay: -2.3s; }
.radar__chip--3 { bottom: 7%; left: 6%; animation-delay: -4.6s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(61 189 227 / 0.5), 0 0 16px var(--accent); }
  100% { box-shadow: 0 0 0 18px rgb(61 189 227 / 0), 0 0 16px var(--accent); }
}
@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .radar { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 559px) {
  .hero__visual { display: none; }
}

/* Полоса доверия */
.trust { position: relative; z-index: 2; margin-top: clamp(-72px, -6vw, -48px); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 24px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-50); color: var(--brand);
}
.trust__title { margin: 0 0 4px; color: var(--ink); font: 700 0.98rem/1.3 var(--font-display); }
.trust__text { margin: 0; color: var(--muted); font-size: 0.87rem; line-height: 1.45; }
@media (max-width: 1100px) {
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .trust__grid { grid-template-columns: minmax(0, 1fr); }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--line); }
  .trust__item { padding: 18px 20px; }
}

/* ---------- Шапка внутренней страницы ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.page-hero__bg {
  background:
    radial-gradient(800px 420px at 92% -10%, rgb(0 119 158 / 0.6), transparent 60%),
    radial-gradient(500px 300px at 0% 120%, rgb(61 189 227 / 0.12), transparent 60%),
    linear-gradient(180deg, #061720, #0a2433);
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  top: -180px; right: -140px;
  width: 560px; height: 560px;
  background: url('../img/mark-white.svg') center / contain no-repeat;
  opacity: 0.05;
}
.page-hero__inner { padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); }
.page-hero__title {
  max-width: 21em;
  margin-bottom: 0.4em;
  color: #fff;
  font-size: clamp(1.95rem, 1.35rem + 2.4vw, 3.2rem);
  line-height: 1.1;
}
.page-hero__lead { max-width: 46em; margin: 0; color: var(--on-dark-muted); font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; color: var(--on-dark-muted); font-size: 0.93rem; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__meta .icon { color: var(--accent); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  margin: 0 0 22px; padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; color: var(--on-dark-muted); }
.breadcrumbs li + li::before {
  content: '';
  width: 6px; height: 6px;
  margin: 0 12px 0 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.breadcrumbs a { color: #cfe4ee; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #fff; }
@media (max-width: 639px) {
  .breadcrumbs [aria-current] { display: none; }
}

/* ---------- Карточки ---------- */
.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card--hover:hover, .service-card:hover, .news-card:hover, .link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}
.card:has(.stretched-link:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.stretched-link:focus-visible { outline: none; }
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.icon-badge {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-50), #fff);
  border: 1px solid var(--brand-100);
  color: var(--brand);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.service-card { display: flex; flex-direction: column; }
.service-card:hover .icon-badge { background: var(--brand); color: #fff; border-color: var(--brand); }
.service-card__title { margin-bottom: 0.5em; font-size: 1.14rem; line-height: 1.3; }
.service-card__title a { color: var(--ink); text-decoration: none; }
.service-card p { margin-bottom: 20px; color: var(--muted); font-size: 0.96rem; }
.card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  color: var(--brand);
  font: 700 0.92rem var(--font-display);
}
.card-more .icon { transition: transform 0.2s var(--ease); }
.card:hover .card-more .icon { transform: translateX(4px); }

.feature { display: flex; gap: 18px; }
.feature + .feature { margin-top: 24px; }
.feature__icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 22px -10px rgb(0 119 158 / 0.75);
}
.feature h3 { margin-bottom: 0.35em; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.features-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }

.adv-card { display: flex; flex-direction: column; gap: 4px; }
.adv-card h3 { font-size: 1.12rem; }
.adv-card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font: 800 2.3rem/1 var(--font-display);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-700), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-bottom: 0.4em; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.link-card { display: flex; gap: 16px; align-items: flex-start; }
.link-card .icon-badge { margin: 0; width: 48px; height: 48px; flex: none; }
.link-card h3 { margin: 4px 0 0.3em; font-size: 1.08rem; }
.link-card h3 a { color: var(--ink); text-decoration: none; }
.link-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.link-card:hover .icon-badge { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Списки с галочками */
.checklist { display: grid; gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 38px; }
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 0.1em;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300779e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--brand-100);
}
.checklist--light li::before {
  background-color: rgb(61 189 227 / 0.12);
  border-color: rgb(61 189 227 / 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233dbde3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.checklist--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checklist--cards li { padding: 16px 18px 16px 54px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.checklist--cards li::before { left: 16px; top: 15px; }
@media (max-width: 767px) { .checklist--cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Текст статей и документов ---------- */
.prose { color: var(--text); font-size: 1.04rem; line-height: 1.75; }
.with-aside > .prose, .doc-body { max-width: 800px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.8em 0 0.6em; font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.2rem; }
.prose ul:not([class]), .prose ol:not([class]) { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose ul:not([class]) > li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { word-break: break-word; }
.prose .lead { margin-bottom: 1.2em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--bg-soft);
  color: var(--ink);
}
.prose blockquote p:last-child { margin: 0; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose figure { margin: 1.6em 0; }

.callout {
  display: flex; gap: 16px;
  margin: 1.6em 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.callout__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #fff; color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.callout__title { margin: 0 0 0.35em; color: var(--ink); font: 700 1.05rem var(--font-display); }
.callout__body { font-size: 0.99rem; }
.callout__body > :last-child { margin-bottom: 0; }
.callout--warning { background: var(--warning-bg); border-color: #f3dfb4; }
.callout--warning .callout__icon { color: var(--warning); }

/* ---------- Таблицы ---------- */
.table-wrap { margin: 0 0 1.6em; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap:focus-visible { outline-offset: 3px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.55; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child > * { border-bottom: 0; }
.table thead th {
  background: var(--bg-soft);
  color: var(--muted);
  font: 700 0.78rem var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table .code { width: 1%; color: var(--brand-700); font-weight: 700; font-family: var(--font-display); white-space: nowrap; }
.table .row-group td { background: var(--bg-soft); color: var(--ink); font: 700 0.95rem var(--font-display); }
.table.table--kv tbody th { width: 36%; min-width: 0; color: var(--muted); font-weight: 500; }
.table--kv td:last-child { color: var(--ink); font-weight: 600; }
.table--purposes { min-width: 760px; font-size: 0.93rem; }
.kv-value { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kv-value span { word-break: break-word; }
.copy-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.copy-btn:hover { background: var(--brand-50); color: var(--brand); }
.copy-btn.is-done { color: var(--success); }
@media (max-width: 639px) {
  .table--kv tr { display: grid; }
  .table.table--kv th, .table.table--kv td { width: auto !important; padding: 2px 16px; border: 0; }
  .table.table--kv th { padding-top: 14px; font-size: 0.85rem; }
  .table--kv td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .table--kv tr:last-child td:last-child { border-bottom: 0; }
}

/* ---------- Вопрос-ответ ---------- */
.faq-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.faq-toolbar p { margin: 0; color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
.faq > summary {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px;
  color: var(--ink);
  font: 700 1.04rem/1.5 var(--font-display);
  list-style: none; cursor: pointer;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary:hover { color: var(--brand-700); }
.faq__num { flex: none; min-width: 2.2em; color: var(--brand); font-weight: 800; }
.faq__q { flex: 1; }
.faq__chev {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft); color: var(--brand);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq[open] .faq__chev { transform: rotate(180deg); background: var(--brand-50); }
.faq__body { padding: 0 24px 24px calc(24px + 2.2em + 16px); }
@media (max-width: 639px) {
  .faq > summary { padding: 18px; font-size: 0.99rem; }
  .faq__body { padding: 0 18px 20px; }
}

/* ---------- Документы (лицензии, награды) ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(24px, 3vw, 36px); }
.doc-card { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.doc-card__thumb {
  position: relative; display: block;
  aspect-ratio: 480 / 679;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.doc-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s var(--ease); }
.doc-card__thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doc-card__thumb:hover img { transform: scale(1.03); }
.doc-card__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgb(6 23 32 / 0.75); color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.doc-card__thumb:hover .doc-card__zoom, .doc-card__thumb:focus-visible .doc-card__zoom { opacity: 1; transform: none; }
.doc-card__pages {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(6 23 32 / 0.8); color: #fff;
  font: 700 0.75rem var(--font-display);
}
.doc-card figcaption { display: grid; gap: 6px; }
.doc-card__authority { color: var(--brand); font: 700 0.74rem/1.35 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.doc-card__title { color: var(--ink); font: 700 1rem/1.4 var(--font-display); }
.doc-card__meta { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
@media (hover: none) { .doc-card__zoom { opacity: 1; transform: none; } }

/* Лайтбокс */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgb(4 14 20 / 0.95);
  color: #fff;
}
.lightbox::backdrop { background: rgb(4 14 20 / 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: fade-in 0.2s ease; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lightbox__tools { display: flex; gap: 8px; }
.lightbox__counter { color: var(--on-dark-muted); font: 600 0.95rem var(--font-display); }
.lightbox__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0 14px 18px;
}
.lightbox__figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 14px; height: 100%; min-height: 0; margin: 0; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  align-self: center;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
  touch-action: pan-y;
}
.lightbox__figure figcaption { max-width: 900px; max-height: 28vh; overflow-y: auto; color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.5; text-align: center; }
.lightbox__nav {
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  transition: background-color 0.2s;
}
.lightbox__nav:hover { background: rgb(255 255 255 / 0.16); }
.lightbox__nav[hidden] { display: grid; visibility: hidden; }
@media (max-width: 639px) {
  .lightbox__stage { grid-template-columns: minmax(0, 1fr); padding-bottom: 84px; }
  .lightbox__nav { position: fixed; bottom: 18px; z-index: 2; }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
}

/* ---------- Логотипы клиентов ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.logo-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px;
  height: 100%;
  padding: 26px 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
a.logo-tile:hover { transform: translateY(-3px); border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--text); }
.logo-tile__img { display: grid; place-items: center; width: 100%; height: 76px; }
.logo-tile__img img {
  width: auto; max-width: 170px; max-height: 76px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}
.logo-tile:hover .logo-tile__img img { filter: none; opacity: 1; }
.logo-tile__name { color: var(--muted); font-size: 0.87rem; line-height: 1.4; }
.logo-tile__ext { position: absolute; top: 12px; right: 12px; color: var(--line-strong); transition: color 0.2s; }
a.logo-tile:hover .logo-tile__ext { color: var(--brand); }
.logo-tile__badge { display: block; margin: 8px auto 0; }

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0; padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-strip li { display: grid; place-items: center; height: 116px; padding: 20px; background: #fff; }
.logo-strip img { width: auto; max-width: 140px; max-height: 54px; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter 0.3s, opacity 0.3s; }
.logo-strip li:hover img { filter: none; opacity: 1; }
@media (max-width: 1023px) { .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-strip li { height: 96px; } }

/* ---------- Отрасли ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.industry {
  display: flex; align-items: center; gap: 14px;
  height: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: 600 0.97rem/1.35 var(--font-display);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.industry__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-50); color: var(--brand);
  transition: background-color 0.2s, color 0.2s;
}
a.industry:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--brand-700); transform: translateY(-2px); }
a.industry:hover .industry__icon { background: var(--brand); color: #fff; }

.industry-card { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.industry-card .icon-badge { margin: 0; }
.industry-card h2 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.industry-card .link-arrow { margin-top: auto; font-size: 0.92rem; position: relative; z-index: 2; }
.industry-card:target { border-color: var(--brand); box-shadow: var(--ring), var(--shadow); }

/* ---------- Публикации ---------- */
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 0.86rem; }
.news-card__title { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.news-card .card-more { margin-top: auto; padding-top: 6px; }
.news-list { display: grid; gap: 16px; }
.news-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
.news-row__date { color: var(--muted); font: 700 0.92rem/1.4 var(--font-display); }
.news-row__body { display: grid; gap: 12px; align-content: start; }
.news-row__date strong { display: block; color: var(--ink); font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.02em; }
@media (max-width: 639px) { .news-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .news-row__date strong { display: inline; font-size: 1rem; } }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font: 700 0.75rem var(--font-display);
  letter-spacing: 0.02em;
}
.badge--light { background: rgb(255 255 255 / 0.1); color: #dff3fa; }

/* ---------- Продукт ARMlock ---------- */
.product-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 320px at 100% 0%, rgb(0 119 158 / 0.55), transparent 60%),
    linear-gradient(160deg, #0b2a3a, #061720);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.product-card::after {
  content: '';
  position: absolute; z-index: -1;
  right: -110px; bottom: -120px;
  width: 360px; height: 360px;
  background: url('../img/mark-white.svg') center / contain no-repeat;
  opacity: 0.06;
}
.product-card h3 { margin-bottom: 0.4em; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.product-card > p { color: var(--on-dark-muted); }
.product-card__facts { display: grid; gap: 12px; margin: 24px 0 28px; }
.fact {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
}
.fact .icon { margin-top: 2px; color: var(--accent); }
.fact strong { display: block; color: #fff; font-family: var(--font-display); }
.fact span { color: var(--on-dark-muted); font-size: 0.92rem; }
.product-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Призыв к действию ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 380px at 110% -20%, rgb(61 189 227 / 0.2), transparent 60%),
    linear-gradient(135deg, #003a50 0%, #005573 55%, #006a8c 100%);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgb(0 86 116 / 0.65);
}
.cta-band__decor {
  position: absolute; z-index: -1;
  right: -60px; top: 50%;
  width: 460px; height: 460px;
  transform: translateY(-50%);
  background: url('../img/mark-white.svg') center / contain no-repeat;
  opacity: 0.08;
}
.cta-band__title { margin-bottom: 0.35em; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.cta-band__text { max-width: 36em; margin: 0; color: rgb(255 255 255 / 0.92); font-size: 1.08rem; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 1.15rem var(--font-display); text-decoration: none; }
.cta-band__phone:hover { color: #dff5fc; }
@media (max-width: 1023px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Боковые карточки ---------- */
.aside-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card__title { margin: 0 0 12px; color: var(--ink); font: 800 1.08rem var(--font-display); }
.aside-card--dark {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, #0b2a3a, var(--dark));
  border-color: transparent;
  color: var(--on-dark);
  box-shadow: var(--shadow);
}
.aside-card--dark::after {
  content: ''; position: absolute; z-index: -1;
  right: -70px; top: -70px;
  width: 200px; height: 200px;
  background: url('../img/mark-white.svg') center / contain no-repeat;
  opacity: 0.07;
}
.aside-card--dark .aside-card__title { color: #fff; }
.aside-card--dark p { color: var(--on-dark-muted); font-size: 0.95rem; }
.aside-card__phone { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #fff; font-weight: 600; text-decoration: none; word-break: break-all; }
.aside-card__phone .icon { color: var(--accent); }
.aside-card__phone:hover { color: var(--accent); }
.aside-card--dark .btn { margin-top: 4px; }
.aside-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.aside-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 0.95rem; line-height: 1.35; text-decoration: none; }
.aside-nav a .icon { color: var(--brand); }
.aside-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.aside-nav a.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.aside-card__more { margin: 20px 0 0; }
.facts-list { display: grid; gap: 14px; margin: 0; }
.facts-list dt { color: var(--muted); font-size: 0.84rem; }
.facts-list dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; line-height: 1.45; }

/* ---------- Формы ---------- */
.form-card { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-form__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.contact-form__intro { margin-bottom: 28px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label { color: var(--ink); font: 600 0.92rem var(--font-display); }
.req { color: var(--danger); }
.field input[type='text'], .field input[type='tel'], .field input[type='email'], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--control);
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.field ::placeholder { color: #6b7a86; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5c6d79; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field [aria-invalid='true'] { border-color: var(--danger) !important; }
.field [aria-invalid='true']:focus { box-shadow: 0 0 0 4px rgb(196 50 63 / 0.15); }
.field__error { margin: 0; color: var(--danger); font-size: 0.86rem; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select__chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field--hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.check input { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.check__box {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--control);
  border-radius: 6px;
  background: #fff; color: #fff;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.check__box .icon { opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s; }
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { border-color: var(--brand); outline: 3px solid var(--brand); outline-offset: 2px; }
.check input[aria-invalid='true'] + .check__box { border-color: var(--danger); }
.form-note { margin: 8px 0 0 34px; color: var(--muted); font-size: 0.88rem; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: 14px; font-size: 0.96rem; }
.form-status:empty { margin: 0; padding: 0; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 8px; }
.form-status.is-success { background: var(--success-bg); border: 1px solid #bfe5d2; color: #0d5c3b; }
.form-status.is-error { background: var(--danger-bg); border: 1px solid #f3c5c9; color: #8a1f28; }
.form-status.is-info { background: var(--warning-bg); border: 1px solid #f3dfb4; color: #6d4a0c; }
.form-status a { color: inherit; font-weight: 700; }
.form-done { padding: 12px 0; text-align: center; }
.form-done .icon-badge { margin-inline: auto; background: var(--success-bg); border-color: #bfe5d2; color: var(--success); }
.form-done h2 { font-size: 1.6rem; }
.form-done p { color: var(--muted); }
@media (max-width: 639px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form__footer .btn { width: 100%; }
}

/* ---------- Контакты и карта ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .icon-badge { margin-bottom: 6px; }
.contact-card__label { color: var(--muted); font: 700 0.76rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-card__value { color: var(--ink); font: 700 1.08rem/1.45 var(--font-display); text-decoration: none; word-break: break-word; }
a.contact-card__value:hover { color: var(--brand); }
.contact-card__hint { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 1100px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.map {
  position: relative;
  display: grid;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-color: #eef3f6;
  background-image:
    linear-gradient(115deg, transparent 46%, rgb(255 255 255 / 0.9) 46.5%, rgb(255 255 255 / 0.9) 49%, transparent 49.5%),
    linear-gradient(25deg, transparent 58%, rgb(255 255 255 / 0.9) 58.5%, rgb(255 255 255 / 0.9) 60.5%, transparent 61%),
    linear-gradient(rgb(0 119 158 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 119 158 / 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: relative;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 32px;
  text-align: center;
}
.map__pin {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand);
  box-shadow: 0 16px 30px -12px rgb(0 119 158 / 0.8);
  color: #fff;
}
.map__pin .icon { transform: rotate(45deg); }
.map__placeholder p { max-width: 32em; margin: 0; }
.map__address { color: var(--ink); font: 700 1.05rem var(--font-display); }
.map__note { color: var(--muted); font-size: 0.86rem; }
.map__placeholder .actions-row { justify-content: center; }
.map.is-loaded .map__placeholder { display: none; }

/* ---------- Прочее ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font: 600 0.87rem var(--font-display); }
.stack-group + .stack-group { margin-top: 18px; }
.stack-group__title { margin: 0 0 10px; color: var(--ink); font: 700 0.95rem var(--font-display); }
.highlight {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin: 1.4em 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-50), #fff 70%);
  border: 1px solid var(--brand-100);
}
.highlight__num { color: var(--brand); font: 800 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1 var(--font-display); letter-spacing: -0.02em; }
.highlight__text { color: var(--ink); font-weight: 600; }
.empty-state { padding: clamp(40px, 6vw, 72px) 24px; text-align: center; background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state .icon-badge { margin-inline: auto; }
.empty-state h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.empty-state p { max-width: 34em; margin-inline: auto; color: var(--muted); }
.empty-state .actions-row { justify-content: center; margin-top: 24px; }
.error-page { padding-block: clamp(72px, 10vw, 140px); text-align: center; }
.error-code {
  margin: 0 0 8px;
  font: 800 clamp(6rem, 4rem + 10vw, 11rem)/1 var(--font-display);
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--brand-700), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page p:not(.error-code) { max-width: 32em; margin-inline: auto; color: var(--muted); }
.error-page .actions-row { justify-content: center; margin-top: 28px; }
.source-note { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; }
.redirect-note { padding: 64px 24px; text-align: center; }

.h3-like { margin-bottom: 0.45em; font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.h3-like a { color: var(--ink); text-decoration: none; }
.aside-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.aside-links .link-arrow { font-size: 0.95rem; }
.industry-card--accent { background: var(--bg-soft); border-style: dashed; }
.industry-card--accent p { margin: 0; }
.doc-list { display: grid; gap: 16px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.doc-item { display: grid; justify-items: start; gap: 12px; }
.doc-item__title { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.doc-item p { margin: 0; }
.prose code, .table code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.88em;
}

.scan-grid { display: grid; gap: 24px; margin: 0 0 1.4em; }
.scan-card { margin: 0; }
.scan-card__img { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.scan-card__img img { width: 100%; height: auto; }
.scan-card__img:hover .doc-card__zoom, .scan-card__img:focus-visible .doc-card__zoom { opacity: 1; transform: none; }
.scan-card figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.table--center td { text-align: center; }
.table tbody th { min-width: 14em; text-align: left; font-weight: 600; color: var(--ink); }
.sitemap-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 40px; }
.sitemap-group h2 { margin-bottom: 12px; font-size: 1.15rem; }
.sitemap-group ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sitemap-group a { text-decoration: none; }
.sitemap-group a:hover { text-decoration: underline; }

/* ---------- Правовые документы ---------- */
.doc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-toc__inner { max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-toc__title { margin: 0 0 12px; color: var(--muted); font: 800 0.78rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.doc-toc ol { display: grid; gap: 2px; margin: 0 0 16px; padding: 0; list-style: none; }
.doc-toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 0.9rem; line-height: 1.35; text-decoration: none; }
.doc-toc a:hover { background: #fff; color: var(--ink); }
.doc-toc a.is-active { background: #fff; color: var(--brand-700); font-weight: 600; box-shadow: var(--shadow-sm); }
.doc-toc__print { width: 100%; }
.doc-body { max-width: 840px; }
.doc-body h2 { margin: 1.6em 0 0.7em; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
.doc-section:first-of-type h2 { margin-top: 0.6em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 1.6em; padding: 16px 20px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
.doc-meta strong { color: var(--ink); }
.doc-meta span { display: inline-flex; align-items: center; gap: 8px; }
.defs { display: grid; gap: 14px; margin: 0 0 1.4em; }
.defs > div { padding-left: 16px; border-left: 3px solid var(--brand-100); }
.defs dt { color: var(--ink); font-weight: 700; }
.defs dd { margin: 2px 0 0; }
.clause { margin: 0 0 0.9em; }
.clause-list { margin: 0 0 0.9em; padding-left: 1.3em; }
.clause-list li + li { margin-top: 0.35em; }
@media (max-width: 1023px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .doc-toc__inner { max-height: none; }
}

/* ---------- Подвал ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); background: var(--dark); color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: 1.35fr 1fr 1.25fr 1.25fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { max-width: 30em; }
.footer-contacts { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.footer-contacts a, .footer-contacts span { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; text-decoration: none; }
.footer-contacts a:hover { color: var(--accent); }
.footer-contacts .icon { color: var(--accent); }
.footer-col__title { margin: 0 0 16px; color: #fff; font: 800 0.78rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a, .footer-col .link-button { color: var(--on-dark-muted); font-size: 0.93rem; line-height: 1.45; text-decoration: none; }
.footer-col a:hover, .footer-col .link-button:hover { color: #fff; }
.footer-col .link-button { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.3); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-block: 24px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Cookie ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  width: min(460px, calc(100vw - 40px));
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: banner-in 0.35s var(--ease);
}
.cookie-banner[hidden] { display: none; }
@keyframes banner-in { from { opacity: 0; transform: translateY(16px); } }
.cookie-banner__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cookie-banner__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.cookie-banner__title { margin: 0; color: var(--ink); font: 800 1.05rem var(--font-display); }
.cookie-banner__text { margin-bottom: 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 639px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .cookie-banner__actions .btn-primary, .cookie-banner__actions .btn-outline { flex: 1 1 auto; }
}

.modal {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  overflow: auto;
}
.modal::backdrop { background: rgb(6 23 32 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in 0.22s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal__inner { padding: clamp(22px, 4vw, 32px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal__title { margin: 0; font-size: 1.4rem; }
.modal__text { color: var(--muted); font-size: 0.95rem; }
.consent-list { display: grid; gap: 12px; margin: 20px 0 24px; }
.consent-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.consent-item__title { margin: 0 0 4px; color: var(--ink); font: 700 1rem var(--font-display); }
.consent-item p:last-child { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.consent-item__locked { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.switch { position: relative; display: inline-flex; flex: none; margin-top: 2px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--control); transition: background-color 0.2s; }
.switch__track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--brand); outline-offset: 3px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow);
  transition: color 0.2s, transform 0.2s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top:hover { color: var(--brand); transform: translateY(-2px); }

@media (forced-colors: active) {
  .switch__track { border: 2px solid CanvasText; background: Canvas; }
  .switch__track::after { background: CanvasText; forced-color-adjust: none; }
  .switch input:checked + .switch__track { background: Highlight; }
  .check__box { border-color: CanvasText; }
  .check input:checked + .check__box { background: Highlight; }
  .btn { border: 1px solid ButtonText; }
}

/* ---------- Появление при прокрутке ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .mobile-nav, .site-footer, .cookie-banner, .to-top, .doc-toc, .cta-band, .page-hero__actions,
  .skip-link, .breadcrumbs, .page-hero__bg, .copy-btn, .aside-card--dark, .modal, .lightbox { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .page-hero { background: none; color: #000; }
  .page-hero__title, .page-hero__lead { color: #000; }
  .page-hero__inner, .section { padding-block: 12pt; }
  .doc-layout, .with-aside { display: block; }
  a { color: #000; }
  .card, .table-wrap, .faq { box-shadow: none !important; }
  .faq { break-inside: avoid; }
  .reveal.is-pending { opacity: 1 !important; transform: none !important; }
  .motion-toggle { display: none !important; }
}
