/* НИЦ ВО: fixed engineering design system for the approved homepage direction. */
:root {
  --p-navy: oklch(0.278 0.064 258);
  --p-navy-dark: oklch(0.21 0.047 258);
  --p-navy-light: oklch(0.36 0.07 258);
  --p-orange: oklch(0.682 0.166 57);
  --p-orange-dark: oklch(0.56 0.145 52);
  --p-paper: oklch(0.995 0.002 250);
  --p-surface: oklch(0.968 0.006 250);
  --p-ink: oklch(0.25 0.025 255);
  --p-muted: oklch(0.47 0.025 255);
  --p-line: oklch(0.88 0.012 250);
  --navy: var(--p-navy);
  --navy-dark: var(--p-navy-dark);
  --orange: var(--p-orange);
  --orange-dark: var(--p-orange-dark);
  --paper: var(--p-paper);
  --surface: var(--p-surface);
  --ink: var(--p-ink);
  --muted: var(--p-muted);
  --line: var(--p-line);
  --container: 1200px;
  --radius: 4px;
  --shadow: 0 14px 36px oklch(0.21 0.047 258 / 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
p, h1, h2, h3, ul, ol { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.18; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 7vw, 2.55rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.012em; }
::selection { color: var(--paper); background: var(--p-navy-light); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 56px 0; }
.section-surface { background: var(--surface); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 12px; }
.section-head > p { max-width: 440px; margin-bottom: 0; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--orange-dark); font-size: 0.94rem; font-weight: 750; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; flex: 0 0 auto; background: var(--orange); }
.hero .eyebrow, .cta-band .eyebrow { color: oklch(0.82 0.11 66); }
.lead { max-width: 680px; font-size: 1.15rem; line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 16px; color: var(--paper); background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.topbar { color: var(--paper); background: var(--navy-dark); border-bottom: 1px solid var(--p-navy-light); }
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; min-height: 52px; }
.registry-link { display: none; }
.topbar-contacts { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 6px 0; line-height: 1.45; }
.topbar a { color: var(--paper); text-decoration: none; }
.topbar a:hover { color: oklch(0.82 0.11 66); }

.site-header { position: sticky; z-index: 10; top: 0; background: oklch(0.995 0.002 250 / 0.98); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 82px; padding: 10px 0; }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 112px; }
.header-action { margin-left: auto; }
.menu-toggle { display: block; width: 46px; height: 46px; margin-left: auto; padding: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 22px; height: 2px; background: var(--navy); }
.menu-toggle-lines { position: relative; margin: auto; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }
.main-nav { display: none; position: absolute; top: 100%; right: -16px; left: -16px; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.main-nav.is-open { display: block; }
.nav-list { margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; min-height: 46px; padding: 11px 0; color: var(--navy); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-list a[aria-current="page"] { color: var(--orange-dark); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; color: var(--paper); background: var(--orange); border: 2px solid var(--orange); border-radius: var(--radius); font-weight: 750; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.btn:hover { color: var(--paper); background: var(--orange-dark); border-color: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline-light { color: var(--paper); background: transparent; border-color: oklch(0.86 0.025 255); }
.btn-outline-light:hover { color: var(--navy); background: var(--paper); border-color: var(--paper); }
.btn-small { min-height: 44px; padding: 9px 12px; font-size: 0.92rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero { position: relative; color: var(--paper); background-color: var(--navy); background-image: linear-gradient(180deg, oklch(0.21 0.047 258 / 0.82), oklch(0.21 0.047 258 / 0.68)), url("../images/hero-mobile.webp"); background-size: cover; background-position: 63% center; border-bottom: 5px solid var(--orange); }
.hero-inner { display: flex; align-items: center; min-height: 650px; padding-top: 56px; padding-bottom: 56px; }
.hero-copy { max-width: 680px; }
.hero h1 { margin-bottom: 22px; color: var(--paper); }
.hero .lead { margin-bottom: 0; color: var(--paper); }
.hero-note { max-width: 570px; margin: 28px 0 0; padding-top: 18px; color: var(--paper); border-top: 1px solid oklch(0.995 0.002 250 / 0.45); font-size: 0.96rem; }
.hero .button-row .btn { width: 100%; }

.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; }
.stat { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: 1.45rem; line-height: 1.25; }
.stat span { color: var(--muted); }

.services-grid { display: grid; gap: 20px; }
.service-card { display: flex; flex-direction: column; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.service-card h3 { margin-bottom: 14px; }
.service-card p { color: var(--muted); }
.icon-box { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; color: var(--orange-dark); background: oklch(0.96 0.025 70); border: 1px solid oklch(0.88 0.06 65); }
.icon-box svg { width: 32px; height: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-weight: 700; text-decoration: none; }
.text-link::after { content: "→"; color: var(--orange); font-size: 1.2em; }

.process-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.process-list li { position: relative; padding: 0 0 28px 64px; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li > span { position: absolute; top: 0; left: 0; color: var(--orange); font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.process-list h3 { margin-bottom: 7px; font-size: 1.15rem; }
.process-list p { color: var(--muted); }

.cta-band { color: var(--paper); background: var(--navy-dark); border-top: 5px solid var(--orange); }
.cta-band-inner { padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { margin-bottom: 12px; color: var(--paper); font-size: clamp(1.65rem, 6vw, 2.2rem); }
.cta-band p { color: var(--paper); }
.cta-band a:not(.btn) { color: var(--paper); }
.cta-band .button-row { margin-top: 24px; }
.cta-band .btn { width: 100%; }

.site-footer { color: oklch(0.86 0.025 255); background: oklch(0.18 0.035 258); }
.footer-main { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand img { width: 170px; margin-bottom: 20px; padding: 8px; background: var(--paper); }
.footer-brand p { max-width: 470px; }
.footer-title { margin-bottom: 18px; color: var(--paper); font-size: 1.08rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-bottom a { color: var(--paper); text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover, .footer-map:hover { color: oklch(0.82 0.11 66); }
.footer-contact { margin-bottom: 12px; }
.footer-contact a { color: var(--paper); }
.footer-map { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; color: var(--paper); font-weight: 650; }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; padding-bottom: 24px; border-top: 1px solid var(--p-navy-light); }
.footer-bottom p { margin: 0; }

@media (min-width: 560px) {
  .topbar-contacts { flex-direction: row; justify-content: space-between; width: 100%; }
  .hero .button-row .btn, .cta-band .btn { width: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-bottom: 0; border-left: 0; }
  .stat:first-child { border-left: 1px solid var(--line); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .process-list li, .process-list li:last-child { padding-bottom: 0; }
}

@media (min-width: 721px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .section { padding: 80px 0; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
  .section-head > div { max-width: 760px; }
  .topbar-inner { justify-content: space-between; min-height: 46px; }
  .registry-link { display: inline-flex; align-items: center; gap: 9px; }
  .registry-link::before { content: ""; width: 8px; height: 8px; background: var(--orange); }
  .topbar-contacts { width: auto; gap: 24px; padding: 0; }
  .header-inner { min-height: 92px; padding: 0; }
  .brand img { width: 150px; }
  .hero { background-image: linear-gradient(90deg, oklch(0.21 0.047 258 / 0.88) 0%, oklch(0.21 0.047 258 / 0.74) 40%, oklch(0.21 0.047 258 / 0.30) 74%, oklch(0.21 0.047 258 / 0.18) 100%), url("../images/hero-desktop.webp"); background-position: center, center 20%; background-size: cover, cover; background-repeat: no-repeat; }
  .hero-inner { min-height: 640px; padding-top: 68px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(3rem, 5.2vw, 3.85rem); }
  .stat { padding: 28px 30px; }
  .stat strong { font-size: 1.65rem; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .service-card { padding: 28px; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 44px; padding-bottom: 44px; }
  .cta-band-inner > div:first-child { max-width: 780px; }
  .cta-band .button-row { flex: 0 0 auto; margin-top: 0; }
  .footer-main { grid-template-columns: 1.3fr 0.7fr 1fr; gap: 44px; padding-top: 54px; padding-bottom: 44px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 24px; }
}

@media (min-width: 1024px) {
  .header-inner { flex-wrap: nowrap; gap: 24px; }
  .brand img { width: 170px; }
  .main-nav { display: block; position: static; margin-left: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .nav-list { display: flex; align-items: center; gap: 24px; }
  .nav-list a { position: relative; min-height: 0; padding: 33px 0 30px; border: 0; white-space: nowrap; }
  .nav-list a::after { content: ""; position: absolute; right: 0; bottom: 21px; left: 0; height: 3px; background: transparent; }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { background: var(--orange); }
  .nav-list a[aria-current="page"] { color: var(--navy); }
  .header-action { margin-left: 0; }
  .header-action .btn { padding-inline: 16px; font-size: 1rem; }
  .menu-toggle { display: none; }
  .process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
}

@media (min-width: 1280px) {
  .hero-inner { min-height: 680px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .button-row { display: none !important; }
  .hero { color: var(--ink); background: var(--paper); }
  .hero h1, .hero .lead, .hero-note { color: var(--ink); }
  .section { padding: 30px 0; }
  .service-card, .process-list li { break-inside: avoid; }
}

/* Внутренние страницы: та же инженерная система оформления. */
.page-hero { padding: 56px 0; color: var(--paper); background: var(--navy); border-bottom: 5px solid var(--orange); }
.page-hero .eyebrow { color: oklch(0.82 0.11 66); }
.page-hero h1 { margin-bottom: 20px; color: var(--paper); }
.page-hero .lead { max-width: 850px; margin-bottom: 0; color: var(--paper); }
.about-layout, .contacts-layout { display: grid; gap: 40px; }
.about-layout h2, .contacts-layout h2 { margin-bottom: 22px; }
.about-layout p:not(.eyebrow) { max-width: 70ch; }
.fact-list { margin: 0; border-top: 1px solid var(--line); }
.fact-list > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { margin-bottom: 6px; color: var(--muted); font-size: 0.94rem; font-weight: 650; }
.fact-list dd { margin: 0; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.document-list { display: grid; gap: 16px; }
.document-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color 180ms ease-out; }
.document-item:hover { color: var(--ink); border-color: var(--orange); }
.document-type { display: grid; place-items: center; width: 56px; height: 56px; color: var(--paper); background: var(--navy); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; }
.document-item strong, .document-item small { display: block; }
.document-item strong { margin-bottom: 6px; color: var(--navy); font-size: 1.12rem; line-height: 1.35; }
.document-item small { color: var(--muted); font-size: 0.94rem; line-height: 1.5; }
.document-action { grid-column: 2; color: var(--orange-dark); font-size: 0.94rem; font-weight: 750; }
.contact-primary { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 32px; }
.contact-primary a { color: var(--navy); font-size: clamp(1.35rem, 6vw, 1.8rem); font-weight: 750; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.contact-primary a:hover { color: var(--orange-dark); }
.address-list { max-width: 650px; }
.request-panel { align-self: start; padding: 28px; background: var(--surface); border-top: 4px solid var(--navy); }
.request-panel h2 { font-size: 1.65rem; }
.request-panel .btn { width: 100%; margin: 12px 0 4px; }
.request-panel .text-link { margin-top: 14px; }
.map-shell { overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); border: 1px solid var(--line); }
.map-shell iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-caption { display: grid; gap: 8px; padding-top: 20px; }
.map-caption p { margin: 0; color: var(--muted); }
.map-caption .text-link { margin-top: 0; padding-top: 0; }

@media (min-width: 721px) {
  .page-hero { padding: 76px 0; }
  .page-hero h1 { font-size: clamp(3rem, 5.2vw, 3.85rem); }
  .fact-list > div { display: grid; grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1fr); gap: 20px; }
  .fact-list dt { margin-bottom: 0; }
  .document-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .document-item { padding: 26px; }
  .map-shell { aspect-ratio: 16 / 8; }
  .map-caption { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 32px; }
}

@media (min-width: 1024px) {
  .about-layout { grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr); gap: 72px; }
  .contacts-layout { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.7fr); gap: 72px; }
  .request-panel { padding: 34px; }
}

@media print {
  .page-hero { padding: 30px 0; color: var(--ink); background: var(--paper); }
  .page-hero h1, .page-hero .lead { color: var(--ink); }
  .map-shell { display: none; }
  .document-item, .fact-list > div { break-inside: avoid; }
}
