/* INFRIT — основные стили.
   Внешний файл без @import и url(): так страница не делает лишних запросов,
   работает при строгом CSP (style-src 'self') и одинаково выглядит
   и на сервере, и при открытии index.html напрямую из папки (file://).
   Вся графика — градиенты и CSS-фигуры, без внешних картинок.
   Тема — «дневная матрица»: светло-мятный фон, белые поверхности,
   тёмно-зелёный текст, моноширинный шрифт и фосфорные акценты. */

:root {
  --bg: #eef8f1;
  --bg-soft: #e4f3e9;
  --surface: #ffffff;
  --surface-2: #f3fbf5;
  --surface-3: #e8f6ec;
  --border: #c9dfd1;
  --border-strong: #93c4a7;
  --ink: #0b2a1a;
  --ink-soft: #1d4a33;
  --muted: #466f57;
  --accent: #007a41;
  --accent-2: #005c31;
  --accent-soft: rgba(0, 122, 65, .09);
  --neon-start: #45ff8f;
  --neon-end: #00d96b;
  --neon-ink: #04200f;
  --ok: #007a41;
  --radius: 4px;
  --radius-sm: 3px;
  --wrap: 1160px;
  --shadow: 0 26px 55px -34px rgba(11, 42, 26, .35);
  --shadow-sm: 0 16px 32px -20px rgba(11, 42, 26, .35);
  --font: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Liberation Mono",
          Consolas, "DejaVu Sans Mono", monospace;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 520px at 80% -10%, rgba(0, 168, 89, .13), transparent 60%),
    radial-gradient(900px 500px at 0% 12%, rgba(0, 122, 65, .07), transparent 58%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 16px/1.7 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Едва заметная «бумажная» сетка сканлайнов и лёгкая виньетка. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 68%, rgba(0, 90, 45, .05) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 61; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(11, 42, 26, .035) 0, rgba(11, 42, 26, .035) 1px, transparent 1px, transparent 4px);
  opacity: .5;
}

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

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

h1, h2, h3 {
  line-height: 1.22; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); }
h3 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.note { font-size: .9rem; }
.grad {
  background: linear-gradient(100deg, #007a41, #00a35a 55%, #00b862);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

::selection { background: rgba(0, 168, 89, .28); color: #04200f; }

.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: 100;
  background: var(--neon-start); color: var(--neon-ink); padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(0, 168, 89, .16);
}

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 122, 65, .06);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; flex: none; border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(11, 42, 26, .18));
}
.brand-footer .brand-mark { width: 36px; height: 36px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 1.08rem; letter-spacing: .14em; color: var(--ink); }
.brand-text small { color: var(--muted); font-size: .68rem; letter-spacing: .06em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink-soft); padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: .9rem; white-space: nowrap; border: 1px solid transparent;
}
.site-nav a:hover {
  background: var(--surface-2); color: var(--accent); text-decoration: none;
  border-color: var(--border);
}
.site-nav a[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent);
  border-color: var(--border-strong);
}
.site-nav .nav-cta {
  margin-left: 8px; padding: 10px 15px; font-weight: 700; color: var(--neon-ink);
  background: linear-gradient(135deg, var(--neon-start), var(--neon-end));
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(0, 168, 89, .75);
}
.site-nav .nav-cta:hover { color: var(--neon-ink); filter: brightness(1.05); }
.site-nav .nav-cta[aria-current="page"] {
  color: var(--neon-ink);
  background: linear-gradient(135deg, var(--neon-start), var(--neon-end));
}

.nav-toggle {
  display: none; margin-left: auto; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.nav-toggle:hover { box-shadow: 0 0 0 3px rgba(0, 168, 89, .12); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--accent); border-radius: 0;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .9rem; line-height: 1.3;
  letter-spacing: .04em; text-transform: uppercase;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--neon-start), var(--neon-end));
  color: var(--neon-ink);
  box-shadow: 0 10px 22px -12px rgba(0, 168, 89, .75);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 24px -10px rgba(0, 168, 89, .9); }
.btn-ghost {
  border-color: var(--border-strong); color: var(--ink-soft); background: var(--surface);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--accent); border-color: var(--accent); }
.btn[href^="mailto:"] { text-transform: none; letter-spacing: 0; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(46px, 6.5vw, 92px) 0 clamp(38px, 5vw, 74px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 122, 65, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 65, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(74% 78% at 62% 20%, #000 0%, transparent 82%);
  mask-image: radial-gradient(74% 78% at 62% 20%, #000 0%, transparent 82%);
}
/* Медленный «проход развёртки» по hero. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 168, 89, .06), transparent);
  animation: hero-scan 9s linear infinite;
}
@keyframes hero-scan {
  from { transform: translateY(0); }
  to { transform: translateY(360%); }
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr .8fr; gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .18em; font-size: .7rem;
  color: var(--accent); font-weight: 700; margin: 0 0 .9em;
}
.eyebrow::before {
  content: ">"; width: auto; height: auto; background: none; opacity: 1;
  font-size: 1em; line-height: 1;
}
.hero h1 { margin-bottom: .45em; }
/* Если карточки мониторинга справа нет (главная без неё), текст занимает
   всю ширину: иначе справа остаётся пустая колонка. */
.hero-copy:only-child { grid-column: 1 / -1; max-width: 840px; }
.lead { font-size: clamp(.98rem, .94rem + .25vw, 1.08rem); color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.5em; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
}
.hero-points li {
  color: var(--muted); font-size: .9rem; margin: 0;
  padding-left: 20px; position: relative;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 6px; height: 6px; border-radius: 0;
  background: var(--accent);
}

/* карточка мониторинга */
.hero-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .9;
}
.hero-card-head {
  display: flex; align-items: center; gap: 9px; padding: 15px 18px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-green { background: var(--ok); box-shadow: 0 0 0 3px rgba(0, 122, 65, .14); }
.hero-card-body { padding: 4px 18px 12px; }
.metric {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--border);
}
.metric:last-child { border-bottom: 0; }
.metric-label { color: var(--muted); font-size: .88rem; }
.metric-value {
  font-weight: 700; font-size: 1.04rem; color: var(--accent);
  white-space: nowrap;
}

/* ---------- секции ---------- */
.section { padding: clamp(48px, 6vw, 82px) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 64ch; margin-bottom: clamp(24px, 3vw, 38px); }
.section-head h2 { margin-bottom: .3em; }
.section-head p { margin: 0; }

/* ---------- карточки услуг ---------- */
.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  counter-reset: card;
}
.card {
  position: relative; display: block; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 22px;
  counter-increment: card;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.card::before {
  content: "[" counter(card, decimal-leading-zero) "]";
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  color: var(--accent); margin-bottom: 14px;
}
.card::after {
  content: "→"; position: absolute; right: 20px; bottom: 18px;
  color: var(--accent); font-size: 1.05rem; opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}
.card:hover {
  text-decoration: none; background: var(--surface);
  border-color: var(--accent); box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.card:hover::after { opacity: 1; transform: translateX(2px); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; padding-right: 22px; }

/* ---------- показатели ---------- */
.stats {
  display: grid; gap: 1px; background: var(--border);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 24px; }
.stat-value {
  display: block; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.35rem);
  font-weight: 700; color: var(--accent); letter-spacing: -.02em; line-height: 1.1;
}
.stat-label { display: block; margin-top: 6px; color: var(--muted); font-size: .86rem; }

/* ---------- две колонки ---------- */
.two-col {
  display: grid; grid-template-columns: 1.15fr .9fr; gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.panel {
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 26px 24px;
}
.panel h3 { margin-top: 0; }
.panel p { color: var(--ink-soft); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .5em;
  width: 11px; height: 6px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.steps { list-style: none; padding: 0; counter-reset: step; margin-bottom: 1.4em; }
.steps li { position: relative; padding-left: 40px; counter-increment: step; color: var(--ink-soft); }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .08em;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--accent); font-size: .74rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- призыв к действию ---------- */
.cta {
  padding: clamp(38px, 4.5vw, 60px) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.cta-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- заголовок внутренней страницы ---------- */
.page-head {
  position: relative;
  padding: clamp(38px, 5vw, 70px) 0 clamp(26px, 3.5vw, 44px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(720px 300px at 86% -20%, rgba(0, 168, 89, .12), transparent 64%);
}
.page-head .lead { margin-bottom: 0; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  padding: 0; margin: 0 0 1.1em; font-size: .82rem; color: var(--muted);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------- услуги ---------- */
.service-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.service {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 25px 23px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.service:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.service h2 { font-size: 1.08rem; margin-bottom: .5em; }
.service p { color: var(--muted); font-size: .92rem; }
.service .check-list { margin-bottom: 0; font-size: .9rem; }
.service .check-list li { padding-left: 24px; }

/* ---------- таблица ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.price-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.price-table th, .price-table td { padding: 15px 18px; text-align: left; vertical-align: top; }
.price-table thead th {
  background: var(--surface-2); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid var(--border-strong);
  font-weight: 700; white-space: nowrap;
}
.price-table tbody tr + tr th, .price-table tbody tr + tr td { border-top: 1px solid var(--border); }
.price-table tbody th { font-weight: 600; white-space: nowrap; color: var(--ink); }
.price-table td { color: var(--muted); font-size: .9rem; }
.price-table td:last-child { color: var(--accent); font-weight: 700; white-space: nowrap; }
.price-table tbody tr:hover { background: rgba(0, 122, 65, .04); }
.table-wrap + .note { margin-top: 16px; }

/* ---------- чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 2px; padding: 7px 14px; font-size: .82rem; color: var(--ink-soft);
}
.chip::before { content: "· "; color: var(--accent); }

/* ---------- факты ---------- */
.facts { margin: 0; }
.facts dt {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-top: 16px;
}
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 3px 0 0; color: var(--ink-soft); }

/* ---------- этапы ---------- */
.timeline {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.timeline-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 19px;
}
.timeline-step {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  color: var(--accent); margin-bottom: .55em;
}
.timeline-item h3 { font-size: .95rem; margin-bottom: .3em; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ---------- контакты ---------- */
.contact-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px;
}
.contact-card h2 { font-size: .95rem; margin-bottom: .55em; color: var(--muted); font-weight: 600; }
.contact-card p { margin: 0 0 .45em; }
.contact-card .muted { font-size: .88rem; margin-bottom: 0; }
.contact-value { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }

/* ---------- текстовые документы ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.18rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--ink-soft); }
.prose a { text-decoration: underline; text-decoration-color: rgba(0, 122, 65, .35); text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.error-page { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.error-code {
  font-size: clamp(3.8rem, 3rem + 6vw, 7rem); font-weight: 800; letter-spacing: -.04em;
  line-height: 1; margin: 0 0 .1em;
  background: linear-gradient(135deg, #007a41, #00a35a 55%, #00b862);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { margin-bottom: .35em; }
.error-page p { max-width: 54ch; margin-inline: auto; }
.error-page .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- подвал ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-top: clamp(36px, 4vw, 52px);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 34px; }
.brand-footer { margin-bottom: .9em; }
.footer-about { font-size: .9rem; max-width: 42ch; }
.footer-title {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 1em; font-weight: 700;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55em; }
.footer-list a { color: var(--ink-soft); }
.footer-list a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  margin-top: 36px; padding: 18px 22px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .82rem;
}
.footer-legal { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }
.footer-legal a + a::before { content: "·"; margin-right: 8px; color: var(--border-strong); }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .header-inner { min-height: 64px; }
  .nav-toggle { display: block; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border-strong);
    padding: 10px; box-shadow: 0 20px 40px -24px rgba(11, 42, 26, .45);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 13px 14px; font-size: .98rem; }
  .js .site-nav .nav-cta { margin: 6px 0 0; justify-content: center; }
  /* Без JS меню остаётся видимым и переносится на вторую строку. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 10px; }
  html:not(.js) .site-nav {
    flex-basis: 100%; flex-wrap: wrap; margin-left: 0; gap: 2px;
  }
  html:not(.js) .nav-toggle { display: none; }
}

@media (max-width: 620px) {
  /* Кегль подобран так, чтобы «ИТ-инфраструктура» не рвалась по дефису
     на узких экранах (проверено на 320–390 px). */
  h1 { font-size: clamp(1.35rem, 6.8vw, 2.05rem); }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .stat { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
  .hero::after { animation: none; opacity: 0; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .hero-card, .cta, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  body::before, body::after, .hero::after { display: none !important; }
  a { color: #111; text-decoration: underline; }
  .card, .panel, .service, .stat { border-color: #bbb; break-inside: avoid; }
  .grad, .error-code { color: #111; -webkit-text-fill-color: #111; filter: none; }
}
