/* ============================================================
   Nexora Technologies — стили сайта
   Токены и принципы: docs/design.md
   ============================================================ */

:root {
  --abyss: #050A18;
  --abyss-2: #071026;
  --hull: #0B1530;
  --hull-2: #0F1D40;
  --hull-3: #16264F;
  --rail: #1A2A55;
  --line: rgba(126, 160, 255, .13);
  --signal: #2F6BFF;
  --signal-hi: #5B9BFF;
  --ice: #A9CBFF;
  --chrome: #C9D3E8;
  --text: #EEF3FF;
  --muted: #9AA8C9;
  --dim: #6B7AA0;

  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --r-hw: 6px;
  --r-card: 14px;
  --r-btn: 10px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--signal); color: #fff; padding: 10px 16px; border-radius: var(--r-btn);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

main { padding-top: var(--header-h); }

.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 17px; height: 17px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 6px 24px -10px rgba(47, 107, 255, .8); }
.btn-primary:hover { background: #4079FF; }
.btn-ghost { border-color: var(--rail); background: rgba(11, 21, 48, .6); color: var(--text); }
.btn-ghost:hover { border-color: var(--signal); background: var(--hull-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(5, 10, 24, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.site-header.is-scrolled { background: rgba(5, 10, 24, .88); border-bottom-color: var(--line); }

.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font: 600 17px/1 var(--font-display); letter-spacing: .14em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--chrome);
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #fff; background: rgba(22, 38, 79, .6); }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav-link .ico { transition: transform .2s; }

.header-tools { display: flex; align-items: center; gap: 10px; }

.switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--rail); border-radius: 9px; background: rgba(11, 21, 48, .5);
}
.switch > * {
  min-width: 32px; padding: 4px 9px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-align: center;
  transition: background-color .2s, color .2s;
}
.switch > *:hover { color: #fff; }
.switch > [aria-pressed="true"], .switch > [aria-current="true"] { background: var(--hull-3); color: #fff; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--r-btn); color: var(--chrome);
}
.icon-btn:hover { color: #fff; background: rgba(22, 38, 79, .6); }

.cart-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--signal); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count.is-bumped { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.burger { display: none; }

/* Меню услуг */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 16px); left: -16px;
  width: 720px; padding: 10px;
  background: #0A1430; border: 1px solid var(--rail); border-radius: var(--r-card);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-link { display: flex; gap: 14px; padding: 12px; border-radius: 10px; transition: background-color .15s; }
.mega-link:hover { background: var(--hull-2); }
.mega-ico {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 1px solid var(--rail); border-radius: 9px; color: var(--signal-hi); background: var(--hull);
}
.mega-name { display: block; font-weight: 600; font-size: 15px; color: #fff; }
.mega-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Мобильное меню */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  padding: 0 16px 32px; overflow-y: auto;
  background: var(--abyss);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.drawer-label { margin: 8px 0 4px; font-size: 13px; color: var(--dim); }
.drawer-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 500;
}
.drawer-list .ico { color: var(--signal-hi); }
.drawer-secondary { margin-top: 20px; }
.drawer-secondary a { font-size: 16px; color: var(--chrome); }
.drawer-switches { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.drawer-switches .switch > * { padding: 8px 14px; font-size: 14px; }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.drawer-open { overflow: hidden; }

/* ---------- Общие секции ---------- */

.section { padding: 112px 0; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end; gap: 24px 48px; margin-bottom: 44px;
}
.section-head h2, .dc-body h2, .why-intro h2, .cta-panel h2, .notfound h1, .svc-plans-head h2, .svc-h2 {
  font: 500 clamp(28px, 3.4vw, 44px)/1.1 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head p { color: var(--muted); max-width: 52ch; font-size: 17px; }

/* ---------- Первый экран ---------- */

.hero {
  position: relative; isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  min-height: min(880px, 94vh);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 72px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--abyss) 0%, rgba(5, 10, 24, .88) 32%, rgba(5, 10, 24, .25) 62%, rgba(5, 10, 24, .05) 100%),
    linear-gradient(0deg, var(--abyss) 0%, rgba(5, 10, 24, 0) 28%);
}
.hero-inner { position: relative; }
.hero-title {
  max-width: 15ch;
  font: 500 clamp(38px, 5.4vw, 72px)/1.04 var(--font-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-text { max-width: 46ch; margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--chrome); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-quick { margin-top: 72px; }
.hero-quick-label { font-size: 14px; color: var(--dim); margin-bottom: 10px; }
.hero-quick ul { display: flex; flex-wrap: wrap; }
.hero-quick a { display: grid; gap: 2px; padding: 4px 28px; }
.hero-quick li:first-child a { padding-left: 0; }
.hero-quick li + li a { border-left: 1px solid var(--line); }
.hq-name { font-weight: 600; color: #fff; }
.hq-price { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-quick a:hover .hq-name { color: var(--ice); }

/* ---------- Стойка услуг ---------- */

.rack {
  position: relative;
  padding: 16px 44px;
  border: 1px solid var(--rail); border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(47, 107, 255, .05), transparent 40%),
    #060E22;
  box-shadow: inset 0 0 0 6px #050B1C, 0 40px 80px -40px rgba(0, 0, 0, .9);
}
/* Рельсы стойки с монтажными отверстиями */
.rack::before, .rack::after {
  content: ""; position: absolute; top: 6px; bottom: 6px; width: 28px;
  background:
    radial-gradient(circle at 50% 50%, #02050D 0 3px, rgba(126, 160, 255, .18) 3.5px 4px, transparent 4.5px) 0 0 / 28px 22px repeat-y,
    linear-gradient(90deg, #0C1838, #101F45 50%, #0C1838);
  border-left: 1px solid var(--rail); border-right: 1px solid var(--rail);
}
.rack::before { left: 6px; }
.rack::after { right: 6px; }

.rack-units { display: grid; gap: 6px; }

.unit { position: relative; }
.unit-height {
  position: absolute; left: -38px; top: 50%; translate: 0 -50%; z-index: 1;
  width: 28px; text-align: center;
  font: 600 10px/1 var(--font-body); letter-spacing: .04em; color: var(--dim);
  background: #0E1B3E; padding: 3px 0; border-radius: 3px;
}

.unit-link {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid;
  grid-template-columns: 10px 44px minmax(0, 1fr) auto 24px;
  align-items: center; gap: 20px;
  min-height: 112px; padding: 20px 22px 20px 20px;
  border: 1px solid var(--rail); border-radius: var(--r-hw);
  background: linear-gradient(180deg, #0F1C3E 0%, #0A1431 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 0 rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease), border-color .25s, box-shadow .25s;
}
.unit-link:hover, .unit-link:focus-visible {
  transform: translateX(12px);
  border-color: rgba(91, 155, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), -12px 0 0 -6px rgba(47, 107, 255, .0), 0 14px 30px -18px rgba(47, 107, 255, .6);
}
.unit-link:focus-visible { outline-offset: 2px; }

.unit-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: #234DB8;
  box-shadow: 0 0 6px 1px rgba(47, 107, 255, .45);
  transition: background-color .25s, box-shadow .25s;
}
.unit-link:hover .unit-led, .unit-link:focus-visible .unit-led { background: #8EC0FF; box-shadow: 0 0 10px 3px rgba(91, 155, 255, .85); }

.unit-ico {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 10px; border: 1px solid var(--rail); background: #0A1430; color: var(--signal-hi);
}

.unit-name { display: block; font: 500 19px/1.25 var(--font-display); letter-spacing: -.01em; color: #fff; }
.unit-desc { display: block; max-width: 62ch; margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.unit-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(5, 10, 24, .45);
  font-size: 12.5px; color: var(--chrome); white-space: nowrap;
}

.unit-price { display: grid; justify-items: end; text-align: right; }
.unit-from { font-size: 13px; color: var(--dim); }
.unit-amount { font: 500 22px/1.2 var(--font-display); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit-per { font: 500 14px var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.unit-quote { font-size: 17px; color: var(--ice); }

.unit-handle { color: var(--dim); transition: color .25s, transform .35s var(--ease); }
.unit-link:hover .unit-handle { color: var(--signal-hi); transform: translateX(3px); }

/* 2U: AI и GPU — вдвое выше, с фото оборудования */
.unit-2u .unit-link { min-height: 236px; align-items: center; }
.unit-2u .unit-name { font-size: 24px; }
.unit-2u .unit-main { max-width: 560px; }
.unit-photo { position: absolute; inset: 0 0 0 auto; width: 58%; z-index: -1; }
.unit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; opacity: .78; }
.unit-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0C1736 0%, rgba(12, 23, 54, .75) 35%, rgba(12, 23, 54, .25) 70%, rgba(12, 23, 54, .55) 100%);
}
.unit-2u .unit-led { background: #5B9BFF; box-shadow: 0 0 10px 3px rgba(91, 155, 255, .7); }

/* ---------- Тарифы ---------- */

.pricing { background: linear-gradient(180deg, transparent, var(--abyss-2) 30%, var(--abyss-2) 70%, transparent); }

.pricing-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

.tabs, .billing {
  display: inline-flex; padding: 4px; gap: 2px;
  border: 1px solid var(--rail); border-radius: 12px; background: var(--hull);
}
.tab, .billing button {
  padding: 9px 18px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.tab:hover, .billing button:hover { color: #fff; }
.tab[aria-selected="true"], .billing button[aria-pressed="true"] { background: var(--hull-3); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.save { margin-left: 4px; font-size: 12.5px; font-weight: 600; color: var(--ice); }

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

.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--rail); border-radius: var(--r-card);
  background: var(--hull);
  overflow: hidden;
}
.plan.is-popular {
  border-color: transparent;
  background:
    linear-gradient(var(--hull), var(--hull)) padding-box,
    linear-gradient(165deg, #7DB4FF 0%, var(--signal) 35%, var(--rail) 75%) border-box;
  box-shadow: 0 30px 60px -36px rgba(47, 107, 255, .75);
}

/* Лицевая панель сервера */
.faceplate {
  display: flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 14px;
  background: linear-gradient(180deg, #13224A, #0D1938);
  border-bottom: 1px solid var(--rail);
}
.fp-code { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--dim); font-variant-numeric: tabular-nums; }
.fp-vents {
  flex: 1; height: 12px; border-radius: 2px; opacity: .9;
  background: repeating-linear-gradient(90deg, #040817 0 3px, transparent 3px 7px);
}
.fp-leds { display: inline-flex; gap: 6px; }
.fp-leds i { width: 6px; height: 6px; border-radius: 50%; background: #1A2E66; }
.fp-leds i:first-child { background: #2756C9; box-shadow: 0 0 5px rgba(47, 107, 255, .6); }
.is-popular .fp-leds i { background: #8EC0FF; box-shadow: 0 0 7px 1px rgba(91, 155, 255, .9); }
.is-popular .fp-code { color: var(--ice); }

.plan-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.plan-name { font: 500 20px/1.2 var(--font-display); letter-spacing: -.01em; }
.badge {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(47, 107, 255, .16); color: var(--ice);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.plan-price { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; }
.plan-price .price-tag { font: 500 34px/1.05 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 15px; color: var(--muted); }
.plan-note { margin-top: 4px; font-size: 13px; color: var(--dim); }

.specs { margin: 20px 0 24px; border-top: 1px solid var(--line); }
.spec {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec dt { color: var(--muted); }
.spec dd { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

.plan-actions { margin-top: auto; }
.btn.is-added { border-color: rgba(91, 155, 255, .6); color: var(--ice); background: rgba(47, 107, 255, .12); box-shadow: none; }

/* ---------- Дата-центр ---------- */

.dc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dc-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--rail); }
.dc-figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--dim); }
.dc-text { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 52ch; }
.sheet { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.sheet-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.sheet-row dt { font-weight: 600; color: var(--chrome); font-size: 15px; }
.sheet-row dd { color: var(--text); font-size: 15.5px; }

/* ---------- Почему мы ---------- */

.why-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.why-intro p { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 44ch; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.why-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.why-ico {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--rail); border-radius: 10px; background: var(--hull); color: var(--signal-hi);
}
.why-list h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.why-list p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- Призыв ---------- */

.cta-section { padding-top: 32px; padding-bottom: 88px; }
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px;
  border: 1px solid var(--rail); border-radius: 18px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(47, 107, 255, .28), transparent 70%),
    var(--hull);
}
.cta-panel h2 { font-size: clamp(24px, 2.6vw, 34px); }
.cta-panel p { margin-top: 12px; color: var(--muted); max-width: 52ch; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

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

.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-tagline { margin-top: 14px; color: var(--muted); font-size: 15px; }
.footer-contact { display: grid; gap: 8px; margin-top: 20px; font-size: 15px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--chrome); }
.footer-contact a:hover { color: #fff; }
.footer-title { font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--dim);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--ice); }
.more-link:hover { color: #fff; }

/* ---------- Страница услуги ---------- */

.svc-hero { padding: 56px 0 24px; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rail); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--chrome); }

.svc-title {
  margin-top: 20px;
  font: 500 clamp(36px, 4.6vw, 62px)/1.05 var(--font-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.svc-lead { margin-top: 20px; max-width: 50ch; font-size: 18px; color: var(--chrome); }
.svc-facts { display: grid; gap: 10px; margin-top: 26px; }
.svc-facts li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.svc-facts .ico { color: var(--signal-hi); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.svc-media {
  position: relative; overflow: hidden;
  border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.svc-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-from {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--rail);
  background: rgba(5, 10, 24, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; color: var(--muted);
}
.svc-from strong { font: 500 24px/1 var(--font-display); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }

.svc-plans { padding: 72px 0 88px; }
.svc-plans-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.svc-plans-head p { margin-top: 12px; max-width: 60ch; color: var(--muted); font-size: 17px; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.svc-h2 { margin-bottom: 32px; }

.svc-compare { padding: 0 0 96px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th { background: #0D1938; font-size: 13px; font-weight: 600; color: var(--dim); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { position: sticky; left: 0; z-index: 1; background: var(--hull); }
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
.compare .num { text-align: right; }
.compare .price-tag { font: 500 17px var(--font-display); letter-spacing: -.02em; }
.compare .plan-per { font-size: 13px; }
.compare tr.is-popular > * { background: #0F1F48; }
.cmp-name { display: block; font: 500 15px var(--font-display); color: #fff; }
.cmp-code { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.is-popular .cmp-code { color: var(--ice); }

.svc-includes { padding: 0 0 96px; }
.includes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.includes li { padding-top: 24px; border-top: 1px solid var(--line); }
.includes h3 { margin: 18px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.includes p { color: var(--muted); font-size: 15px; }

.svc-faq { padding: 0 0 72px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-note { margin-top: -12px; color: var(--muted); font-size: 16px; }
.faq-note a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--dim); transition: transform .25s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(180deg); color: var(--signal-hi); }
.faq-item summary:hover { color: var(--ice); }
.faq-item p { max-width: 64ch; padding-bottom: 22px; color: var(--muted); font-size: 16px; }

.svc-more { padding: 24px 0 112px; }
.rack-compact .unit-link { min-height: 88px; padding-top: 16px; padding-bottom: 16px; }
.rack-compact .unit-name { font-size: 17px; }
.rack-compact .unit-desc { font-size: 14.5px; }

@media (max-width: 960px) {
  .svc-hero { padding-top: 32px; }
  .svc-hero-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-note { margin-top: -16px; }
}

@media (max-width: 720px) {
  .svc-lead { font-size: 17px; }
  /* Широкий шрифт + длинные русские слова: меньше кегль и переносы по слогам */
  .svc-title { font-size: 30px; }
  .page-title { font-size: 25px; }
  .svc-title, .page-title, .hero-title, .section-head h2, .svc-h2, .unit-name { hyphens: auto; overflow-wrap: break-word; }
  .svc-actions .btn { flex: 1 1 100%; }
  .svc-media img { aspect-ratio: 16 / 10; }
  .svc-plans { padding: 56px 0 64px; }
  .svc-plans-head { flex-direction: column; align-items: stretch; }
  .svc-compare, .svc-includes { padding-bottom: 72px; }
  .includes { grid-template-columns: 1fr; gap: 24px; }
  .svc-more { padding-bottom: 72px; }
}

/* ---------- Служебные страницы: корзина, формы, кабинет ---------- */

.page-section { padding: 48px 0 112px; }
.page-head { margin-bottom: 36px; }
.page-head .crumbs { margin-bottom: 16px; }
.page-title { font: 500 clamp(28px, 3.4vw, 42px)/1.1 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.page-sub { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 17px; }

.flash-stack { display: grid; gap: 8px; padding-top: 20px; }
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--rail);
  background: var(--hull); font-size: 15px;
}
.flash-success { border-color: rgba(61, 220, 151, .35); }
.flash-success .ico { color: #3DDC97; }
.flash-error { border-color: rgba(255, 107, 107, .45); }
.flash-error .ico { color: #FF8A8A; }

.panel { padding: 28px; border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull); }
.panel + .panel { margin-top: 20px; }

.empty {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 72px 24px; border: 1px dashed var(--rail); border-radius: var(--r-card);
}
.empty h2 { font: 500 22px var(--font-display); }
.empty p { max-width: 44ch; color: var(--muted); }
.empty .btn { margin-top: 8px; }
.empty-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--hull); color: var(--signal-hi); }
.empty-sm { padding: 40px 24px; }

/* Корзина */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull); overflow: hidden; }
.cl-head {
  display: flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 16px;
  background: linear-gradient(180deg, #13224A, #0D1938); border-bottom: 1px solid var(--rail);
}
.cl-head .unit-led { width: 6px; height: 6px; }
.cl-code { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--dim); }
.cl-cat { margin-left: auto; font-size: 13px; color: var(--muted); }
.cl-cat:hover { color: #fff; }
.cl-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(130px, auto) auto;
  align-items: center; gap: 20px; padding: 18px 16px 18px 20px;
}
.cl-name { font: 500 19px/1.2 var(--font-display); }
.cl-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.cl-period { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--rail); border-radius: 9px; background: #0A1430; }
.cl-period button { padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cl-period button[aria-pressed="true"] { background: var(--hull-3); color: #fff; }
.cl-period button:hover { color: #fff; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rail); border-radius: 9px; background: #0A1430; }
.stepper button { width: 34px; height: 34px; font-size: 18px; color: var(--chrome); border-radius: 8px; }
.stepper button:hover:not(:disabled) { color: #fff; background: var(--hull-3); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-price { display: grid; justify-items: end; text-align: right; }
.cl-price strong .price-tag { font: 500 20px var(--font-display); letter-spacing: -.02em; }
.cl-price > span { font-size: 12.5px; color: var(--dim); }
.cl-unit { margin-top: 2px; }
.cl-remove { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--dim); }
.cl-remove:hover { color: #FF8A8A; background: rgba(255, 107, 107, .1); }

.summary {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 24px; border: 1px solid var(--rail); border-radius: var(--r-card);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(47, 107, 255, .16), transparent 70%),
    var(--hull);
}
.summary-title { font: 500 18px var(--font-display); margin-bottom: 14px; }
.summary-lines { border-top: 1px solid var(--line); }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sl-name { display: grid; gap: 2px; }
.sl-meta { font-size: 13px; color: var(--dim); }
.sl-specs { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--dim); }
.sl-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 4px; }
.summary-total span { color: var(--chrome); }
.summary-total strong, .summary-total .price-tag { font: 500 26px var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary-note { font-size: 13px; color: var(--dim); margin-bottom: 20px; }
.summary-help { display: flex; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.summary-help .ico { color: var(--signal-hi); margin-top: 2px; }
.summary .more-link { margin-top: 4px; }

/* Формы */
.form { display: grid; gap: 18px; }
.form-title { font: 500 19px var(--font-display); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a, .check-label a, .auth-alt a, .auth-link { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.form-error { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); font-size: 14.5px; }

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; color: var(--chrome); }
.field-optional { font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--rail); border-radius: var(--r-btn);
  background: #071027; color: var(--text);
  font: inherit; font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #263B72; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); }
.field input[readonly] { color: var(--muted); background: transparent; }
.field-hint { font-size: 13px; color: var(--dim); }
.field-error { font-size: 13.5px; color: #FF9A9A; }
.has-error input, .has-error select, .has-error textarea { border-color: rgba(255, 107, 107, .7); }

.choice { border: 0; padding: 0; margin: 0; }
.choice legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--chrome); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { position: relative; }
.choice-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--rail); border-radius: 999px; background: #071027;
  font-size: 14.5px; color: var(--muted); transition: all .2s;
}
.choice-chip input:checked + span { border-color: var(--signal); background: rgba(47, 107, 255, .14); color: #fff; }
.choice-chip input:focus-visible + span { outline: 2px solid var(--signal-hi); outline-offset: 2px; }

.field .check-label { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 400; color: var(--muted); cursor: pointer; }
.field .check-label input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--signal); flex: none; box-shadow: none; }

/* Ловушка для ботов */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Заказ принят */
.done-head { display: grid; justify-items: start; gap: 4px; margin-bottom: 36px; }
.done-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: rgba(61, 220, 151, .14); color: #3DDC97; }
.steps { display: grid; gap: 14px; margin: 18px 0 26px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--chrome); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid var(--rail); font-size: 13px; font-weight: 700; color: var(--ice);
}
.done-account { padding-top: 22px; border-top: 1px solid var(--line); }
.done-account h3 { font-size: 17px; font-weight: 600; }
.done-account p { margin: 6px 0 16px; color: var(--muted); font-size: 15px; }

/* Вход и регистрация */
.auth { display: grid; place-items: start center; }
.auth-card { width: 100%; max-width: 460px; border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.auth-body { display: grid; gap: 18px; padding: 32px; }
.auth-title { font: 500 28px/1.15 var(--font-display); letter-spacing: -.02em; }
.auth-sub { margin-top: -8px; color: var(--muted); font-size: 15px; }
.auth-link { justify-self: start; margin-top: -6px; font-size: 14px; }
.auth-alt { text-align: center; font-size: 14.5px; color: var(--muted); }

/* Кабинет */
.account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h) + 20px); }
.account-who { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.account-who > span:last-child { display: grid; min-width: 0; }
.account-who strong { font-size: 15px; }
.account-who span span { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(160deg, var(--signal-hi), #1B45D4); font: 600 17px var(--font-display); color: #fff;
}
.account-nav { display: grid; gap: 2px; }
.account-nav a, .account-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--muted); text-align: left;
}
.account-nav a:hover, .account-nav button:hover { color: #fff; background: var(--hull); }
.account-nav a[aria-current="page"] { color: #fff; background: var(--hull-2); box-shadow: inset 2px 0 0 var(--signal); }
.account-nav .ico { color: var(--dim); }
.account-nav a[aria-current="page"] .ico { color: var(--signal-hi); }
.account-nav form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.account-main > .page-title { margin-bottom: 24px; }
.account-main > .form + .form { margin-top: 20px; }

.notice {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  padding: 16px 18px; border: 1px solid rgba(91, 155, 255, .4); border-radius: var(--r-card); background: rgba(47, 107, 255, .08);
}
.notice > .ico { color: var(--signal-hi); flex: none; }
.notice div { flex: 1; font-size: 14.5px; color: var(--chrome); }
.notice p + p { color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.tile {
  display: grid; gap: 6px; align-content: start; padding: 20px;
  border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull);
  transition: border-color .2s;
}
.tile:hover { border-color: rgba(91, 155, 255, .55); }
.tile-label { font-size: 13.5px; color: var(--dim); }
.tile-value { font: 500 18px/1.3 var(--font-display); overflow-wrap: anywhere; }
.tile-meta { color: var(--muted); font-size: 14px; }

.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.block-head .more-link { margin-top: 0; }
.block-title { font: 500 19px var(--font-display); margin-bottom: 14px; }
.block-head .block-title { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull); }
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table thead th { background: #0D1938; font-size: 13px; font-weight: 600; color: var(--dim); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th a { font-weight: 600; color: #fff; }
.table tbody th a:hover { color: var(--ice); }
.table .num { text-align: right; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--hull-3); color: var(--chrome); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-new { color: var(--ice); background: rgba(47, 107, 255, .16); }
.status-processing { color: #FFD27A; background: rgba(255, 210, 122, .12); }
.status-active { color: #3DDC97; background: rgba(61, 220, 151, .12); }
.status-cancelled { color: var(--dim); }

.back-link { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.back-link::before { content: "‹ "; }
.back-link:hover { color: #fff; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
.order-grid .panel + .panel { margin-top: 0; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv dt { color: var(--dim); }
.kv dd { overflow-wrap: anywhere; }
.kv-title { margin: 20px 0 8px; font-size: 14px; color: var(--dim); font-weight: 600; }
.order-comment { color: var(--chrome); font-size: 15px; }

.account-btn span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1080px) {
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .cl-body { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main remove" "period period" "qty price"; gap: 14px; }
  .cl-main { grid-area: main; }
  .cl-period { grid-area: period; justify-self: start; }
  .stepper { grid-area: qty; justify-self: start; }
  .cl-price { grid-area: price; }
  .cl-body > form:last-child { grid-area: remove; align-self: start; justify-self: end; }
}

@media (max-width: 960px) {
  .account { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .account-side { position: static; }
  .account-nav { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a, .account-nav button { width: auto; white-space: nowrap; border: 1px solid var(--rail); }
  .account-nav a[aria-current="page"] { box-shadow: none; border-color: var(--signal); }
  .account-nav form { margin: 0; padding: 0; border: 0; }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .page-section { padding: 32px 0 72px; }
  .panel { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-body { padding: 24px 20px; }
  .tiles { grid-template-columns: 1fr; }
  .notice { flex-wrap: wrap; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .account-btn span { display: none; }
}

/* ---------- О компании, дата-центр, контакты, документы ---------- */

.pillar-link:hover { color: var(--ice); }
.sheet-wide { margin: 0; }
.sheet-wide .sheet-row { grid-template-columns: 220px minmax(0, 1fr); }
.sheet-wide a { color: var(--ice); }

.dc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.dc-split .svc-h2 { margin-bottom: 16px; }
.dc-split .dc-text { margin-top: 0; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--rail); }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.channels { display: grid; gap: 22px; margin-bottom: 28px; }
.channel { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.channel-title { font-size: 17px; font-weight: 600; }
.channel-text { font-size: 14px; color: var(--dim); }
.channel-links { display: grid; gap: 2px; margin-top: 6px; font-size: 15px; }
.channel-links a { color: var(--ice); overflow-wrap: anywhere; }
.channel-links a:hover { color: #fff; }
.office { border: 1px solid var(--rail); border-radius: var(--r-card); background: var(--hull); overflow: hidden; }
.office-body { padding: 8px 20px 12px; }
.office-body div:last-child { border-bottom: 0; }
.office-body a { color: var(--ice); }

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-side { position: sticky; top: calc(var(--header-h) + 20px); }
.legal-doc { max-width: 72ch; }
.legal-meta { margin: 10px 0 32px; font-size: 14px; color: var(--dim); }
.legal-doc h2 { margin: 36px 0 12px; font: 500 20px/1.3 var(--font-display); }
.legal-doc p, .legal-doc li { color: var(--chrome); font-size: 16px; line-height: 1.7; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 20px; list-style: disc; }
.legal-doc li::marker { color: var(--signal-hi); }
.legal-doc a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc code { padding: 1px 6px; border-radius: 4px; background: var(--hull-2); font-size: 14px; }

.payments-caption { margin: 18px 0 10px; font-size: 13px; color: var(--dim); }
.payments-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.payments-list img { width: 46px; height: 30px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.payments-invoice {
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px;
  border: 1px solid var(--rail); border-radius: 5px; font-size: 12.5px; color: var(--muted);
}
.summary .payments { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.footer-pay { margin-top: 40px; }

@media (max-width: 960px) {
  .dc-split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-side { position: static; }
}

@media (max-width: 720px) {
  .sheet-wide .sheet-row { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 4 / 3; }
}

/* ---------- Уведомление ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px 12px 18px; max-width: calc(100vw - 32px);
  background: var(--hull-2); border: 1px solid var(--rail); border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  font-size: 15px;
  translate: -50% 0;
  animation: toast-in .3s var(--ease);
}
.toast-text { min-width: 0; }
.toast-link { flex: none; padding: 7px 12px; border-radius: 8px; background: var(--signal); color: #fff; font-weight: 600; font-size: 14px; }
@keyframes toast-in { from { opacity: 0; translate: -50% 12px; } }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound p { margin: 18px 0 28px; color: var(--muted); max-width: 52ch; font-size: 17px; }

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

@media (max-width: 1180px) {
  .main-nav, .login-link { display: none; }
  .burger { display: inline-grid; }
  .header-row { justify-content: space-between; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; }
  .dc-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }

  .unit-link { grid-template-columns: 10px 44px minmax(0, 1fr) 24px; grid-template-areas: "led ico main handle" ". . price ."; row-gap: 12px; }
  .unit-led { grid-area: led; }
  .unit-ico { grid-area: ico; }
  .unit-main { grid-area: main; }
  .unit-price { grid-area: price; justify-items: start; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .unit-handle { grid-area: handle; }
  .unit-photo { width: 100%; }
  .unit-photo::after { background: linear-gradient(90deg, #0C1736 0%, rgba(12, 23, 54, .85) 55%, rgba(12, 23, 54, .55) 100%); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header-tools > .switch, .signup-btn { display: none; }
  .header-tools { gap: 4px; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 48px) 0 56px; }
  .hero-media img { object-position: 78% 50%; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(5, 10, 24, .55) 0%, rgba(5, 10, 24, .82) 45%, var(--abyss) 100%);
  }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-quick { margin-top: 48px; }
  .hero-quick ul { display: grid; }
  .hero-quick li a, .hero-quick li + li a {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0; padding: 12px 0; border-left: 0; border-top: 1px solid var(--line);
  }

  .rack { padding: 10px; border-radius: 10px; box-shadow: none; }
  .rack::before, .rack::after, .unit-height { display: none; }
  .unit-link { grid-template-columns: 8px minmax(0, 1fr) 20px; grid-template-areas: "led main handle" ". price ."; gap: 12px 14px; padding: 18px 14px 18px 16px; min-height: 0; }
  .unit-ico { display: none; }
  .unit-name { font-size: 17px; }
  .unit-2u .unit-name { font-size: 20px; }
  .unit-desc { font-size: 14.5px; }
  .unit-2u .unit-link { min-height: 0; }
  .unit-link:hover, .unit-link:focus-visible { transform: none; }

  .pricing-bar { flex-direction: column; align-items: stretch; }
  .tabs, .billing { display: flex; width: 100%; min-width: 0; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tab { flex: 1 0 auto; padding: 9px 10px; font-size: 14px; }
  .billing button { flex: 1; padding: 8px 10px; line-height: 1.25; }
  .billing .save { display: block; margin: 2px 0 0; font-size: 11.5px; }

  .plans {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
    scroll-padding: 0 var(--gutter);
  }
  .plans::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: start; }

  .sheet-row { grid-template-columns: 1fr; gap: 4px; }
  .why-list { grid-template-columns: 1fr; gap: 28px; }
  .cta-panel { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .cta-actions .btn { flex: 1 1 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .unit-link:hover, .unit-link:focus-visible { transform: none; }
}
