/* Центр ИТ-услуг — стили сайта
   Концепция: лицевая панель серверной стойки. Тёмный «стоечный» графит + жёлтый патч-корд как акцент,
   спокойные светлые разделы с контентом. */

:root {
  --rack: #1C232C;
  --rack-2: #262F3A;
  --rack-3: #313B47;
  --rack-line: #3A4552;
  --steel: #97A2AE;
  --paper: #F1F3F5;
  --white: #FFFFFF;
  --ink: #17202A;
  --muted: #56606C;
  --line: #DADFE5;
  --cable: #F4C21B;
  --cable-hover: #FFD44A;
  --cable-ink: #231C00;
  --led: #3BD16F;
  --amber: #FFB020;
  --focus: #2D7FF9;

  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.icon { width: 24px; height: 24px; flex: none; }

h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.25rem + 3.1vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }
.btn--lg { padding: 15px 24px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--cable { background: var(--cable); color: var(--cable-ink); }
.btn--cable:hover { background: var(--cable-hover); }
.btn--ghost { border-color: rgba(255,255,255,.32); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--cable); }
.link .icon { width: 18px; height: 18px; transition: transform .15s; }
.link:hover .icon { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo img { height: 40px; width: auto; }
.logo__mark svg { width: 38px; height: 38px; display: block; }
.logo__mark rect { fill: var(--rack); }
.logo__mark path { fill: none; stroke: var(--cable); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo__text b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo__text small { font-size: .8rem; color: var(--muted); white-space: nowrap; }

.nav ul { display: flex; gap: 6px; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cable); border-radius: 0; }
.nav__mobile-extra { display: none; }

.header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.header__phone { font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header__hours { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }
.burger__close { display: none; }

/* ---------- Первый экран ---------- */
.hero {
  background-color: var(--rack);
  /* перфорация стойки */
  background-image: radial-gradient(circle at center, rgba(255,255,255,.055) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  background-position: right top;
  color: var(--white);
  padding-block: clamp(40px, 6vw, 80px) 36px;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__since { display: inline-flex; align-items: center; gap: 10px; color: var(--steel); font-weight: 500; margin-bottom: 20px; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 4px rgba(59,209,111,.16); }
.hero h1 { max-width: 14ch; }
.hero__lead { margin-top: 22px; font-size: 1.15rem; line-height: 1.6; color: #D5DBE1; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__points { list-style: none; margin-top: 30px; display: grid; gap: 10px; color: #D5DBE1; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; }
.hero__points .icon { width: 20px; height: 20px; color: var(--led); margin-top: 3px; }

/* Патч-панель: каждая услуга — порт */
.panel { min-width: 0; }
.panel__face {
  position: relative;
  background: linear-gradient(180deg, #2C3540 0%, #252D37 100%);
  border: 1px solid var(--rack-line);
  border-radius: 8px;
  padding: 28px 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 48px -24px rgba(0,0,0,.55);
}
.panel__screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9AA5B1, #4B5663 70%); }
.panel__screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.25px; height: 1.5px; background: #2A323C; transform: rotate(-35deg); }
.panel__screw:nth-of-type(1) { left: 12px; top: 12px; }
.panel__screw:nth-of-type(2) { left: 12px; bottom: 12px; }
.panel__screw:nth-of-type(3) { right: 12px; top: 12px; }
.panel__screw:nth-of-type(4) { right: 12px; bottom: 12px; }
.panel__ports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }

.port {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 4px 10px; border-radius: 6px;
  text-decoration: none; color: var(--white);
  position: relative;
}
.port__num { align-self: flex-start; font-size: .72rem; color: var(--steel); line-height: 1; font-variant-numeric: tabular-nums; padding-left: 6px; }
.port__jack { position: relative; width: 64px; height: 54px; }
.port__jack::before {
  content: ""; position: absolute; inset: 8px 4px 0;
  background: #0D1116;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 72% 74%, 72% 100%, 28% 100%, 28% 74%, 0 74%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8);
}
.port__jack::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 9px;
  background: repeating-linear-gradient(90deg, #B8954A 0 2px, transparent 2px 4.5px);
  opacity: .85;
}
.port__led { position: absolute; top: 0; width: 10px; height: 5px; border-radius: 1px; background: #1E2B23; }
.port__led--link { left: 4px; }
.port__led--act { right: 4px; background: #2E2717; }
.port__label {
  width: 100%; min-height: 2.6em;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #ECEEEA; color: var(--ink);
  font-size: .78rem; line-height: 1.25; font-weight: 600;
  padding: 5px 6px; border-radius: 2px;
  transition: background-color .15s;
}
.port:hover .port__label, .port:focus-visible .port__label { background: var(--cable); color: var(--cable-ink); }
.port:hover { background: rgba(255,255,255,.04); }

/* Порты «поднимают линк» по очереди при загрузке, затем мигает активность */
.port__led--link { animation: link-up .25s ease-out forwards; animation-delay: calc(400ms + var(--i, 0) * 140ms); }
.port__led--act { animation: activity 2.6s steps(1, end) infinite; animation-delay: calc(1.6s + var(--i, 0) * 0.37s); }
.port:nth-child(3n) .port__led--act { animation-duration: 1.7s; }
.port:nth-child(4n+1) .port__led--act { animation-duration: 3.3s; }
@keyframes link-up { to { background: var(--led); box-shadow: 0 0 6px rgba(59,209,111,.7); } }
@keyframes activity {
  0%, 100% { background: #2E2717; box-shadow: none; }
  8% { background: var(--amber); box-shadow: 0 0 6px rgba(255,176,32,.7); }
  12% { background: #2E2717; box-shadow: none; }
  18% { background: var(--amber); box-shadow: 0 0 6px rgba(255,176,32,.7); }
  24% { background: #2E2717; box-shadow: none; }
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(40px, 5vw, 64px) 0 0; padding-top: 28px; border-top: 1px solid var(--rack-line); }
.facts div { min-width: 0; }
.facts dt { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem); letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.facts dd { margin: 6px 0 0; color: var(--steel); font-size: .95rem; line-height: 1.35; }

/* ---------- Разделы ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tint { background: var(--paper); }
.section--flush { padding-top: clamp(32px, 4vw, 56px); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }

/* Список услуг */
.services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.svc { border-top: 1px solid var(--line); min-width: 0; }
.svc__link { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 20px; align-items: start; padding: 26px 0; text-decoration: none; color: inherit; }
.svc__icon { width: 52px; height: 52px; border-radius: 10px; background: var(--rack); color: var(--white); display: grid; place-items: center; }
.svc__title { font-size: 1.22rem; }
.svc__text { color: var(--muted); margin-top: 6px; }
.svc__price { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .95rem; padding: 4px 10px; background: var(--paper); border-radius: 4px; }
.svc__arrow { color: var(--steel); margin-top: 14px; transition: transform .15s, color .15s; }
.svc__link:hover .svc__title { text-decoration: underline; text-decoration-color: var(--cable); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.svc__link:hover .svc__arrow { color: var(--ink); transform: translateX(4px); }
.svc--main { grid-column: 1 / -1; }
/* последняя услуга без пары растягивается на всю ширину */
.svc--wide { grid-column: 1 / -1; }
.svc--main .svc__link { grid-template-columns: 72px minmax(0, 1fr) 24px; padding: 32px 0; gap: 26px; }
.svc--main .svc__icon { width: 72px; height: 72px; border-radius: 12px; background: var(--cable); color: var(--cable-ink); }
.svc--main .svc__icon .icon { width: 34px; height: 34px; }
.svc--main .svc__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -0.015em; }
.svc--main .svc__text { font-size: 1.12rem; max-width: 60ch; }
.section--tint .svc__price { background: var(--white); }

/* Преимущества */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.benefits li { min-width: 0; }
.benefits p { color: var(--muted); margin-top: 10px; }

/* Этапы — линия-кабель соединяет шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.steps li { position: relative; min-width: 0; }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); font-family: var(--display); font-weight: 500; font-size: 1rem; margin-bottom: 18px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20.5px; left: 44px; right: -28px; height: 3px; background: var(--cable); border-radius: 2px; }
.steps p { color: var(--muted); margin-top: 8px; }

/* Долгосрочное сотрудничество */
.long { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); align-items: center; }
.long__year { font-family: var(--display); font-weight: 600; font-size: clamp(4.5rem, 2rem + 9vw, 10rem); line-height: .9; letter-spacing: -0.05em; color: var(--rack); font-variant-numeric: tabular-nums; }
.long__text p { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.long__text .link { margin-top: 22px; }

/* ---------- Внутренние страницы ---------- */
.pagehead { background: var(--paper); padding-block: clamp(36px, 5vw, 64px) clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.pagehead h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.pagehead__lead { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.pagehead__icon { width: 104px; height: 104px; border-radius: 16px; background: var(--rack); color: var(--cable); display: grid; place-items: center; }
.pagehead__icon .icon { width: 48px; height: 48px; stroke-width: 1.5; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article--narrow { grid-template-columns: minmax(0, 760px); }

.prose { max-width: 70ch; min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-bottom: .4em; }
.prose h3 { font-size: 1.3rem; margin-top: 2em; }
.prose h3:first-child, .prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--cable); border-radius: 2px; }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: n; min-height: 28px; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: .85rem; font-weight: 600; }
.prose a { text-decoration-color: var(--cable); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose__img { border-radius: var(--radius); margin-bottom: 1.5em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

.aside { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.aside__box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.aside__label { font-size: .9rem; color: var(--muted); }
.aside__price { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; margin-top: -8px; }
.aside__note { color: var(--muted); font-size: .98rem; }
.aside__box .link { justify-self: start; margin-top: 4px; }
.aside__facts { display: grid; gap: 22px; margin: 0; padding: 26px; background: var(--rack); color: var(--white); border-radius: var(--radius); }
.aside__facts dt { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; }
.aside__facts dd { margin: 4px 0 0; color: var(--steel); }

/* Тарифы */
.tariffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tariff { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tariff__name { font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.015em; }
.tariff__for { color: var(--muted); font-size: .97rem; line-height: 1.55; min-height: 4.65em; margin-top: -6px; }
.tariff__price { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.tariff__spec { margin: 0; display: grid; gap: 10px; padding-block: 14px; border-block: 1px solid var(--line); }
.tariff__spec dt { font-size: .85rem; color: var(--muted); }
.tariff__spec dd { margin: 0; font-weight: 600; }
.tariff__list { list-style: none; display: grid; gap: 10px; flex: 1; }
.tariff__list li { display: flex; gap: 10px; font-size: .97rem; line-height: 1.45; }
.tariff__list .icon { width: 18px; height: 18px; margin-top: 2px; color: #1E9E50; }
.tariff--hl { background: var(--rack); border-color: var(--rack); color: var(--white); }
.tariff--hl .tariff__for, .tariff--hl .tariff__spec dt { color: var(--steel); }
.tariff--hl .tariff__spec { border-color: var(--rack-line); }
.tariff--hl .tariff__list .icon { color: var(--led); }
.tariffs__note { margin-top: 24px; color: var(--muted); max-width: 70ch; }

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.contacts__item { display: flex; gap: 18px; min-width: 0; }
.contacts__icon { width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--rack); color: var(--cable); display: grid; place-items: center; }
.contacts__label { font-size: .9rem; color: var(--muted); }
.contacts__value { display: block; font-size: 1.25rem; font-weight: 600; text-decoration: none; margin-top: 2px; overflow-wrap: anywhere; }
.contacts__value--sm { font-size: 1.05rem; font-weight: 500; }
.contacts__item .link { margin-top: 8px; }

/* ---------- Заявка ---------- */
.request { background: var(--rack); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.request__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.request__intro p { margin-top: 16px; color: #D5DBE1; font-size: 1.12rem; max-width: 44ch; }
.request__contacts { display: grid; gap: 6px; margin-top: 32px; color: var(--steel); }
.request__contacts a { text-decoration: none; color: #E4E8EC; }
.request__contacts a:hover { text-decoration: underline; }
.request__phone { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--white) !important; letter-spacing: -0.01em; margin-bottom: 4px; }

.form { background: var(--rack-2); border: 1px solid var(--rack-line); border-radius: 12px; padding: clamp(20px, 3vw, 32px); min-width: 0; }
.form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; color: #D5DBE1; }
.field label span { color: var(--steel); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--white);
  background: var(--rack); border: 1.5px solid var(--rack-line); border-radius: 8px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cable); }
.field input[aria-invalid="true"] { border-color: #FF7A6B; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--steel); line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cable); flex: none; }
.check a { color: #E4E8EC; }
.form__error { color: #FF9C90; font-size: .95rem; }
.form__ok { display: flex; gap: 14px; align-items: center; color: #E4E8EC; font-size: 1.1rem; padding: 12px 0; }
.form__ok .icon { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--led); color: var(--rack); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал ---------- */
.footer { background: #141A21; color: var(--steel); padding-block: 56px 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer__grid > * { min-width: 0; }
.footer__name { font-family: var(--display); font-weight: 500; color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.footer__since { margin-top: 10px; }
.footer__title { color: var(--white); font-weight: 600; margin-bottom: 12px; }
.footer__list { list-style: none; display: grid; gap: 7px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__contacts { display: grid; gap: 6px; align-content: start; }
.footer__phone { color: var(--white); font-weight: 700; font-size: 1.1rem; }
.footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid #262E38; font-size: .88rem; }

.mobilebar { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1140px) {
  .header__contact { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
  .panel__face { padding: 24px 26px; }
  .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    background: var(--white); padding: 16px var(--gutter) 32px; overflow-y: auto;
    display: none; border-top: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 0; font-size: 1.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--ink); font-weight: 700; }
  .nav__mobile-extra { display: grid; gap: 4px; margin-top: 24px; color: var(--muted); }
  .nav__phone { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--ink); }
  .is-menu .burger__open { display: none; }
  .is-menu .burger__close { display: block; }
  body.is-menu { overflow: hidden; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .panel { max-width: 600px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding-bottom: 28px; }
  .steps__n { grid-row: span 2; margin: 0; }
  .steps h3 { align-self: center; padding-top: 8px; }
  .steps li:not(:last-child)::after { top: 44px; bottom: 0; left: 20.5px; right: auto; width: 3px; height: auto; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .request__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  .mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 8px; font-weight: 600; text-decoration: none; }
  .mobilebar .icon { width: 20px; height: 20px; }
  .mobilebar__call { border: 1.5px solid var(--ink); color: var(--ink); }
  .mobilebar__req { background: var(--cable); color: var(--cable-ink); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header__cta { display: none; }
  .logo__text b { font-size: .95rem; }
  .hero__lead { font-size: 1.05rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .panel__face { padding: 12px; }
  .panel__ports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .port { flex-direction: row; align-items: center; gap: 10px; padding: 6px; background: rgba(0,0,0,.18); }
  .port__num { display: none; }
  .port__jack { width: 36px; height: 34px; flex: none; }
  .port__jack::before { inset: 6px 1px 0; }
  .port__jack::after { left: 7px; right: 7px; top: 10px; height: 6px; }
  .port__led { width: 8px; height: 4px; }
  .port__label { min-height: 2.8em; text-align: left; justify-content: flex-start; font-size: .76rem; }
  .panel__screw { display: none; }
  .long { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .facts { gap: 20px 16px; }
  .facts dt { white-space: normal; }
  .benefits { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc__link { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .svc__icon { width: 44px; height: 44px; }
  .svc__arrow { display: none; }
  .svc--main .svc__link { grid-template-columns: minmax(0, 1fr); }
  .svc--main .svc__icon { width: 56px; height: 56px; }
  .pagehead__grid { grid-template-columns: minmax(0, 1fr); }
  .pagehead__icon { display: none; }
  .tariffs { grid-template-columns: minmax(0, 1fr); }
  .tariff__for { min-height: 0; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .form__fields { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .port__led--link { animation: none; background: var(--led); }
  .port__led--act { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
