* { box-sizing: border-box; }
:root {
  --bg: #f5f6f4;
  --paper: #ffffff;
  --ink: #111417;
  --graphite: #20272c;
  --muted: #68737b;
  --line: #d9dee2;
  --soft-line: #e7eaed;
  --accent: #245f8f;
  --accent-dark: #183f61;
  --accent-soft: #e7f0f7;
  --signal: #b9872f;
  --shadow: 0 18px 54px rgba(17, 20, 23, 0.08);
}

/* Analytics consent: shown only when a Metrika counter is configured and no choice is stored. */
.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(17, 20, 23, .18);
}

.cookie-consent[hidden] { display: none; }
.cookie-consent strong { display: block; margin-bottom: 5px; font-size: 18px; }
.cookie-consent p { margin: 0; color: var(--muted); line-height: 1.5; }
.cookie-consent a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__actions { display: flex; gap: 10px; align-items: center; }
.cookie-consent__actions button { white-space: nowrap; }

@media (max-width: 720px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-consent__actions button { width: 100%; }
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 8px;
  background: #111417;
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #13795b;
  outline-offset: 3px;
}

.nav-toggle,
.modal-close,
.search-link,
.icon-link,
.file-toggle {
  min-width: 44px;
  min-height: 44px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 14px 48px;
  background: rgba(245, 246, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--graphite); border-radius: 8px; font-size: 13px; }
.brand-text { white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: #26313a; }
.main-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.phone-link { font-weight: 750; white-space: nowrap; color: var(--graphite); }
.icon-link, .search-link, .nav-toggle, .modal-close { display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; min-width: 38px; height: 38px; }
.nav-toggle { display: none; }
.primary-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 750; white-space: nowrap; }
.primary-btn { color: #fff; background: var(--accent); }
.primary-btn:hover { background: var(--accent-dark); }
.secondary-btn { color: var(--graphite); background: var(--paper); border-color: var(--line); }
.secondary-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.inverse-btn { background: #fff; color: var(--graphite); }
.hero { position: relative; min-height: 680px; overflow: hidden; padding: 92px 64px 56px; border-bottom: 1px solid var(--line); }
.technical-hero { background: #f4f6f5; }
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .72;
  background-image: linear-gradient(rgba(36,95,143,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(36,95,143,.12) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: grid-drift 24s linear infinite;
}
.hero-grid::after { content: ""; position: absolute; left: 55%; top: 10%; width: 34%; height: 68%; border: 1px solid rgba(36,95,143,.18); border-radius: 8px; transform: skewX(-7deg); }
.hero-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .68fr); align-items: center; gap: 64px; max-width: 1280px; margin: 0 auto; }
.hero-content { max-width: 760px; animation: reveal-up .7s ease both; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); text-transform: uppercase; font-size: 13px; font-weight: 800; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 86px; line-height: .96; font-weight: 820; }
h2 { margin: 0 0 18px; font-size: 44px; line-height: 1.08; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.18; font-weight: 780; }
.lead, .page-hero p { max-width: 720px; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.single-action { margin-top: 34px; }
.hero-index { display: grid; gap: 0; padding: 12px 0; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); backdrop-filter: blur(10px); animation: reveal-up .8s ease .12s both; }
.hero-index__row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; min-height: 68px; padding: 0 20px; border-bottom: 1px solid var(--soft-line); }
.hero-index__row:last-child { border-bottom: 0; }
.hero-index__row span { color: var(--accent); font-weight: 850; }
.hero-index__row strong { font-size: 17px; }
.hero-index__row em { color: var(--muted); font-size: 13px; font-style: normal; }
.hero-index__row:hover { background: var(--accent-soft); }
.hero-index__row:hover span { transform: translateX(3px); transition: transform .18s ease; }
.section, .page-hero, .cta-band { padding: 76px 64px; }
.section-tight { padding-top: 68px; }
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero.compact { padding-top: 54px; padding-bottom: 54px; }
.direction-hero { background: #f8f9f8; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--accent-dark); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-note { max-width: 520px; margin: 0; color: var(--muted); }
.direction-grid, .service-grid, .advantage-grid { display: grid; gap: 16px; }
.direction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.five-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.advantage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.direction-card, .service-card, .advantage-item, .result-item, .document-item, .text-panel, .contact-list > div, .requisites-table { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 8px 24px rgba(17,20,23,.04); }
.direction-card, .service-card, .result-item, .document-item { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.direction-card { min-height: 292px; display: flex; flex-direction: column; }
.direction-card p { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.direction-card .card-link { margin-top: auto; }
.direction-card:hover, .service-card:hover, .service-card.is-open, .result-item:hover, .document-item:hover { border-color: rgba(36,95,143,.45); box-shadow: 0 14px 34px rgba(17,20,23,.08); transform: translateY(-2px); }
.card-icon { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin-bottom: 20px; padding: 0 8px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 8px; font-weight: 850; }
.card-link { display: inline-block; margin-top: 18px; color: var(--accent-dark); font-weight: 750; }
.muted-section { background: #eef1f2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-section, .form-section, .trust-row, .contact-band { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 48px; align-items: start; }
.trust-row, .contact-band { align-items: center; }
.trust-row p, .contact-band p, .direction-card p, .service-card p, .advantage-item p, .result-item p { color: var(--muted); }
.trust-actions, .contact-chips { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.trust-actions span, .contact-chips a, .contact-chips span { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-weight: 720; }
.line-icon { display: block; width: 42px; height: 42px; margin-bottom: 18px; border: 1px solid var(--accent); border-radius: 8px; background: linear-gradient(90deg, transparent 47%, rgba(36,95,143,.22) 47% 53%, transparent 53%); }
.content-flow { max-width: 920px; }
.content-flow > * + * { margin-top: 18px; }
.highlight { padding: 22px; border-left: 4px solid var(--signal); background: #fff8e8; border-radius: 8px; }
.list-panel ul, .list-panel ol { margin-top: 0; margin-bottom: 0; }
.service-card { min-height: 226px; display: flex; flex-direction: column; cursor: pointer; }
.service-reveal { max-height: 92px; overflow: hidden; transition: max-height .25s ease; }
.service-card:hover .service-reveal, .service-card:focus-within .service-reveal, .service-card.is-open .service-reveal { max-height: 320px; }
.service-card .secondary-btn { margin-top: 16px; }
.service-details { border-top: 1px solid var(--line); }
.service-detail { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.document-list, .result-list, .contact-list { display: grid; gap: 12px; }
.document-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.document-item .card-icon { margin: 0; }
.document-item em { color: var(--accent-dark); font-style: normal; font-weight: 750; }
.requisites-table { padding: 0; overflow: hidden; }
.requisites-table div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 17px 20px; border-bottom: 1px solid var(--soft-line); }
.requisites-table div:last-child { border-bottom: 0; }
.requisites-table span, .contact-list span { color: var(--muted); }
.requisites-table strong, .contact-list strong { font-weight: 760; }
.large-contacts > div { padding: 24px; }
.large-contacts strong { display: block; font-size: 22px; margin-top: 4px; }
.sticky-panel { position: sticky; top: 96px; }
.search-form { display: flex; gap: 10px; max-width: 720px; margin-top: 22px; }
.search-form input, .lead-form input, .lead-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 13px; color: var(--ink); }
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.lead-form label span { color: var(--ink); font-weight: 740; }
.file-toggle { justify-self: start; min-height: 38px; border: 1px dashed var(--line); border-radius: 8px; background: var(--paper); padding: 0 12px; color: var(--accent-dark); cursor: pointer; font-weight: 760; }
.file-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.consent { grid-template-columns: auto 1fr; align-items: start; }
.consent input { width: auto; margin-top: 4px; }
.form-status { min-height: 22px; margin: 0; color: var(--accent-dark); font-weight: 740; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: var(--graphite); }
.cta-band h2 { margin: 0; font-size: 36px; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 34px 64px; color: #dce3df; background: #111417; }
.site-footer p { max-width: 640px; color: #aeb9b4; }
.site-footer nav { display: flex; gap: 18px; align-items: center; }
.messages { position: fixed; z-index: 40; right: 20px; top: 92px; display: grid; gap: 8px; }
.message { padding: 12px 14px; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.lead-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(17,20,23,.46); }
.lead-modal[hidden] { display: none; }
.lead-modal__panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 16px; top: 16px; font-size: 24px; cursor: pointer; }
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1240px) {
  .site-header { grid-template-columns: auto auto; padding-left: 24px; padding-right: 24px; }
  .nav-toggle { display: inline-grid; justify-self: end; }
  .main-nav, .header-actions { display: none; }
  .main-nav.is-open, .header-actions.is-open { display: flex; grid-column: 1 / -1; justify-content: start; flex-wrap: wrap; }
  .hero-shell { grid-template-columns: 1fr; gap: 36px; }
  .hero-index { max-width: 760px; }
  .five-grid, .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero, .section, .page-hero, .cta-band { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: auto; padding-top: 44px; padding-bottom: 42px; }
  .hero-grid { animation: none; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .lead, .page-hero p { font-size: 18px; }
  .hero-shell { gap: 26px; }
  .hero-index__row { min-height: 58px; }
  .direction-grid, .service-grid, .advantage-grid, .split-section, .form-section, .trust-row, .contact-band { grid-template-columns: 1fr; }
  .section-head, .cta-band, .site-footer, .search-form { display: grid; grid-template-columns: 1fr; }
  .trust-actions, .contact-chips { justify-content: flex-start; }
  .document-item, .requisites-table div { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 520px) {
  .brand-text { display: none; }
  h1 { font-size: 38px; }
  .hero-index__row { grid-template-columns: 38px 1fr; min-height: 52px; padding: 0 14px; }
  .hero-index__row strong { font-size: 15px; }
  .hero-index__row em { display: none; }
}

/* Production V2 Design Transfer */
:root {
  --bg: #f7faf8;
  --paper: #ffffff;
  --ink: #10181c;
  --graphite: #10181c;
  --muted: #65747b;
  --line: #d7e1dd;
  --soft-line: #e8efec;
  --accent: #0d756b;
  --accent-dark: #074b44;
  --accent-soft: #e7f5f2;
  --signal: #c95d2b;
  --shadow: 0 28px 80px rgba(16, 24, 28, .11);
  --soft-shadow: 0 18px 44px rgba(16, 24, 28, .075);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #fbfdfb 0%, #f4f8f6 46%, #fbfdfb 100%);
}

h1, h2, h3 { letter-spacing: 0; }

.site-header {
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 68px);
  border-bottom-color: rgba(16,24,28,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,250,248,.86));
  box-shadow: 0 12px 36px rgba(16,24,28,.055);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: conic-gradient(from 180deg, var(--ink), var(--accent-dark), var(--ink));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 24px rgba(7,75,68,.18);
}

.primary-btn,
.secondary-btn,
.icon-link,
.search-link,
.nav-toggle,
.modal-close {
  border-radius: 999px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-dark), #0d6e65);
  box-shadow: 0 16px 34px rgba(7,75,68,.20), inset 0 1px 0 rgba(255,255,255,.18);
}

.primary-btn:hover { background: linear-gradient(135deg, #063832, #0a5f58); }
.secondary-btn { background: rgba(255,255,255,.78); border-color: rgba(7,75,68,.20); }

.hero {
  isolation: isolate;
  min-height: calc(100dvh - 82px);
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 68px) 44px;
}

.technical-hero {
  background:
    linear-gradient(90deg, rgba(251,253,251,.99) 0%, rgba(251,253,251,.94) 42%, rgba(236,246,242,.80) 100%),
    linear-gradient(135deg, rgba(13,117,107,.10), transparent 34%),
    repeating-linear-gradient(0deg, rgba(13,117,107,.070) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(13,117,107,.070) 0 1px, transparent 1px 48px);
}

.technical-hero::before {
  content: "";
  position: absolute;
  right: -10vw;
  top: 9vh;
  width: 48vw;
  height: 48vw;
  min-width: 620px;
  min-height: 620px;
  border: 1px solid rgba(13,117,107,.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(13,117,107,.16) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(13,117,107,.16) 50%, transparent 50.2%);
  opacity: .72;
  pointer-events: none;
}

.technical-hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -20vw auto;
  width: 48vw;
  aspect-ratio: 1;
  border: 1px solid rgba(13,117,107,.20);
  border-radius: 32px;
  transform: rotate(21deg);
  pointer-events: none;
}

.hero-grid {
  opacity: .48;
  background-image:
    linear-gradient(rgba(13,117,107,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,117,107,.075) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-grid::after { display: none; }
.hero-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 58%;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(201,93,43,.30), rgba(201,93,43,.95), rgba(201,93,43,.30), transparent);
  filter: drop-shadow(0 0 16px rgba(201,93,43,.34));
  animation: scan 6s ease-in-out infinite;
}
.axis { position: absolute; background: rgba(13,117,107,.18); }
.axis-x { right: 4vw; top: 29%; width: 44vw; height: 1px; }
.axis-y { right: 25vw; top: 12%; width: 1px; height: 62vh; }
.coordinate {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid rgba(13,117,107,.18);
  border-radius: 999px;
  color: rgba(7,75,68,.78);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(16,24,28,.055);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.c1 { right: 35vw; top: 20%; }
.c2 { right: 9vw; top: 38%; }
.c3 { right: 27vw; bottom: 18%; }
.c4 { right: 16vw; bottom: 31%; }
.node {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid var(--signal);
  border-radius: 3px;
  background: #fffdf8;
  box-shadow: 0 0 0 5px rgba(201,93,43,.08);
  transform: rotate(45deg);
  animation: pulse 3.8s ease-in-out infinite;
}
.n1 { right: 34vw; top: 28%; }
.n2 { right: 18vw; top: 55%; animation-delay: .7s; }
.n3 { right: 28vw; bottom: 24%; animation-delay: 1.3s; }

.hero-shell {
  z-index: 2;
  min-height: calc(100dvh - 214px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  max-width: none;
}

.hero-content { max-width: 820px; }
.eyebrow { color: var(--accent-dark); letter-spacing: .14em; }
h1 { max-width: 880px; font-size: clamp(48px, 7.2vw, 108px); line-height: .9; font-weight: 850; }
h2 { font-size: clamp(34px, 4.5vw, 68px); line-height: .95; }
.lead, .page-hero p { color: #4d5d63; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; }

.hero-index {
  gap: 4px;
  padding: 10px;
  border-color: rgba(255,255,255,.54);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  box-shadow: 0 30px 90px rgba(16,24,28,.14), inset 0 1px 0 rgba(255,255,255,.82);
}

.hero-index::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(13,117,107,.12), transparent 38%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(13,117,107,.060) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(13,117,107,.045) 47px 48px);
  pointer-events: none;
}

.hero-index__head,
.hero-index__row { position: relative; z-index: 1; }
.hero-index__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  padding: 18px 20px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #10181c, #1f3037 54%, #074b44);
  font-size: 12px;
  letter-spacing: .12em;
}

.hero-index__row {
  min-height: 76px;
  border-bottom: 0;
  border-radius: 8px;
}
.hero-index__row:hover { background: rgba(13,117,107,.095); box-shadow: inset 0 0 0 1px rgba(13,117,107,.12); }
.hero-index__row span { color: var(--accent-dark); }

.home-trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 34px) clamp(20px, 5vw, 68px);
  border-bottom: 1px solid rgba(16,24,28,.08);
  background: linear-gradient(180deg, #fff, #f3f8f5);
}

.trust-item {
  min-height: 164px;
  padding: 28px clamp(18px, 3vw, 40px);
  border: 1px solid rgba(215,225,221,.9);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--soft-shadow);
}
.trust-item span { display: block; margin-bottom: 22px; color: var(--accent-dark); font-weight: 900; }
.trust-item strong { display: block; margin-bottom: 8px; font-size: 20px; }
.trust-item p { color: var(--muted); }

.direction-card, .service-card, .advantage-item, .result-item, .document-item, .text-panel, .contact-list > div, .requisites-table {
  border-color: rgba(215,225,221,.96);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86));
  box-shadow: var(--soft-shadow);
}

.five-grid {
  gap: 16px;
}

.five-grid .direction-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  color: #fff;
  border-color: rgba(16,24,28,.18);
  background: linear-gradient(135deg, rgba(16,24,28,.98), rgba(18,39,44,.96) 58%, rgba(7,75,68,.96));
  box-shadow: 0 34px 90px rgba(16,24,28,.18);
}
.five-grid .direction-card:first-child p { color: #cbd6d6; }
.five-grid .direction-card:first-child .card-icon { color: #8dd8ce; background: rgba(255,255,255,.08); }
.five-grid .direction-card:first-child .card-link { color: #fff; }

.muted-section { background: linear-gradient(180deg, #f2f8f5, #f8fbf9); }
.line-icon { border-color: rgba(13,117,107,.54); background: linear-gradient(90deg, transparent 47%, rgba(13,117,107,.22) 47% 53%, transparent 53%); }

.contact-band, .trust-row, .form-section {
  position: relative;
}

.contact-band {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(237,245,242,.86));
}

.form-section, .cta-band, .site-footer {
  background: linear-gradient(145deg, #10181c, #13282d 52%, #073f3a);
  color: #fff;
}
.form-section p, .cta-band p, .site-footer p { color: #cbd6d6; }
.form-section .eyebrow { color: #8dd8ce; }
.form-section .text-panel { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 70px rgba(0,0,0,.16); }
.lead-form label { color: #607078; }
.form-section .lead-form label { color: #dce8e5; }
.form-section .lead-form label span { color: #fff; }
.lead-form input, .lead-form textarea, .search-form input { border-color: rgba(215,225,221,.96); border-radius: 8px; }
.form-section .lead-form input, .form-section .lead-form textarea { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.form-section .lead-form input::placeholder, .form-section .lead-form textarea::placeholder { color: rgba(255,255,255,.58); }
.form-section .lead-form .primary-btn { color: var(--ink); background: linear-gradient(135deg, #a9eadf, #f1fffb); }
.file-toggle { border-radius: 999px; }

.lead-modal__panel { border-radius: 8px; }

@keyframes scan {
  0%, 100% { transform: translateX(-8vw); opacity: .26; }
  45%, 55% { opacity: 1; }
  50% { transform: translateX(22vw); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,93,43,.22); }
  50% { box-shadow: 0 0 0 12px rgba(201,93,43,0); }
}

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

@media (max-width: 1240px) {
  .hero-shell { grid-template-columns: 1fr; min-height: auto; }
  .hero-index { max-width: 760px; }
  .home-trust-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { min-height: 72px; }
  .hero { min-height: auto; padding-top: 46px; }
  .technical-hero::before { min-width: 430px; min-height: 430px; right: -46vw; top: 16vh; }
  h1 { font-size: clamp(42px, 14vw, 62px); line-height: .92; }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  .lead, .page-hero p { font-size: 17px; }
  .hero-index__row { grid-template-columns: 42px 1fr; min-height: 70px; }
  .hero-index__row em { display: none; }
  .home-trust-band { grid-template-columns: 1fr; padding: 16px; }
  .trust-item { min-height: 136px; }
  .five-grid .direction-card:first-child { grid-column: span 1; grid-row: span 1; min-height: 300px; }
}

/* Direction Pages V2 Transfer */
.direction-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 68px);
  background:
    linear-gradient(90deg, rgba(251,253,251,.98), rgba(239,247,244,.84)),
    repeating-linear-gradient(0deg, rgba(13,117,107,.065) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(13,117,107,.065) 0 1px, transparent 1px 48px);
}
.direction-hero::after {
  content: "";
  position: absolute;
  right: -9vw;
  top: 15%;
  width: 42vw;
  min-width: 480px;
  aspect-ratio: 1;
  border: 1px solid rgba(13,117,107,.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(13,117,107,.14) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(13,117,107,.14) 50%, transparent 50.2%);
  pointer-events: none;
}
.direction-hero > *:not(.direction-hero__field) { position: relative; z-index: 1; }
.direction-hero__field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.direction-hero .scan-line { left: auto; right: 31vw; }
.direction-hero .axis-x { right: 4vw; top: 38%; width: 40vw; }
.direction-hero .n1 { right: 28vw; top: 34%; }
.direction-hero .n2 { right: 16vw; top: 58%; }
.direction-hero h1 { max-width: 920px; }
.direction-hero .hero-actions { margin-top: 30px; }
.breadcrumbs { position: relative; z-index: 1; }
.service-grid .service-card {
  min-height: 248px;
  background: rgba(255,255,255,.88);
}
.service-card .secondary-btn { align-self: flex-start; }
.service-detail {
  border-bottom-color: rgba(215,225,221,.96);
}
.highlight {
  border-left-color: var(--signal);
  background: linear-gradient(135deg, #fff7ec, #ffffff);
  box-shadow: var(--soft-shadow);
}
@media (max-width: 860px) {
  .direction-hero { min-height: auto; padding-top: 46px; padding-bottom: 46px; }
  .direction-hero::after { min-width: 360px; right: -48vw; }
  .direction-hero .scan-line { right: 28vw; }
}

/* Selected Design Improvements 2026-07-05 */
.hero-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .62fr);
  align-items: center;
  gap: clamp(46px, 8vw, 108px);
}
.hero-content {
  transform: translateY(-1.6vh);
}
.hero-index {
  transform: translateY(4.5vh);
}
.hero-passport {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  max-width: 720px;
}
.hero-passport span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(13,117,107,.18);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(16,24,28,.045);
  font-size: 13px;
  font-weight: 760;
}
.hero-field,
.hero-grid,
.technical-hero::before {
  transform: translate3d(calc(var(--hero-x, 0) * 1px), calc(var(--hero-y, 0) * 1px), 0);
  transition: transform .18s ease-out;
}
.hero-grid { transform: translate3d(calc(var(--hero-x, 0) * .45px), calc(var(--hero-y, 0) * .45px), 0); }
.hero-field { transform: translate3d(calc(var(--hero-x, 0) * .75px), calc(var(--hero-y, 0) * .75px), 0); }

.direction-meta {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.direction-symbol {
  position: relative;
  isolation: isolate;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: transparent;
  background: linear-gradient(135deg, rgba(13,117,107,.12), rgba(255,255,255,.72));
  border: 1px solid rgba(13,117,107,.18);
  overflow: hidden;
}
.direction-symbol::before,
.direction-symbol::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--accent);
  opacity: .88;
}
.direction-symbol::after {
  inset: auto 10px 12px 10px;
  height: 2px;
  border: 0;
  background: var(--signal);
  transform: rotate(-16deg);
}
.direction-card--1 .direction-symbol::before { border-radius: 50%; border-left-color: transparent; }
.direction-card--2 .direction-symbol::before { border-radius: 4px; transform: rotate(45deg); }
.direction-card--3 .direction-symbol::before { border-radius: 2px; border-top-width: 6px; }
.direction-card--4 .direction-symbol::before { border-radius: 50% 50% 4px 4px; }
.direction-card--5 .direction-symbol::before { border-radius: 3px; border-right-width: 6px; }
.direction-symbol[data-index]::after {
  content: attr(data-index);
  inset: auto 9px 8px auto;
  width: auto;
  height: auto;
  color: var(--accent-dark);
  background: transparent;
  transform: none;
  font-size: 11px;
  font-weight: 900;
}
.five-grid .direction-card:first-child .direction-symbol {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
}
.five-grid .direction-card:first-child .direction-symbol::before { border-color: #8dd8ce; border-left-color: transparent; }
.five-grid .direction-card:first-child .direction-symbol[data-index]::after { color: #8dd8ce; }

.service-panel {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  padding: 24px;
}
.service-panel::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(13,117,107,.38), transparent);
}
.service-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.service-symbol {
  margin: 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(13,117,107,.12), rgba(255,255,255,.72)),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(13,117,107,.08) 9px 10px);
}
.service-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(13,117,107,.16);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(231,245,242,.78);
  font-size: 12px;
  font-weight: 820;
}
.service-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}
.service-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(215,225,221,.88);
}
.service-facts dt {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.service-facts dd {
  margin: 0;
  color: var(--muted);
}
.service-reveal {
  max-height: 132px;
}
.service-card:hover .service-reveal,
.service-card:focus-within .service-reveal,
.service-card.is-open .service-reveal {
  max-height: 420px;
}

.editorial-flow {
  position: relative;
  max-width: 1060px;
  font-size: 18px;
}
.editorial-flow::before {
  content: "ОПИСАНИЕ";
  position: sticky;
  top: 112px;
  float: right;
  margin: 4px 0 24px 34px;
  padding: 10px 12px;
  border: 1px solid rgba(13,117,107,.18);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.editorial-flow h2 {
  max-width: 820px;
  margin-top: 46px;
}
.editorial-flow p {
  max-width: 760px;
  color: #53636a;
  line-height: 1.68;
}
.editorial-flow .text-panel,
.editorial-flow .highlight {
  max-width: 860px;
  margin-top: 28px;
}
.service-details {
  max-width: 1100px;
}
.service-detail {
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: 42px 0;
}
.service-detail h2 {
  position: sticky;
  top: 108px;
  align-self: start;
  font-size: clamp(28px, 3vw, 44px);
}
.service-detail p {
  max-width: 760px;
  color: #53636a;
  font-size: 18px;
  line-height: 1.66;
}

.request-route-section {
  align-items: center;
}
.request-route {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 30px;
}
.request-route span {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #e8f4f1;
  background: rgba(255,255,255,.055);
}
.request-route strong {
  color: #9ce1d6;
  font-size: 13px;
  letter-spacing: .10em;
}
.request-panel {
  position: relative;
  overflow: hidden;
}
.request-panel::before {
  content: "REQUEST";
  position: absolute;
  right: 18px;
  top: 14px;
  color: rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.lead-form__step {
  position: relative;
  padding-left: 42px;
}
.lead-form__step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 25px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13,117,107,.20);
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(231,245,242,.86);
  font-size: 11px;
  font-weight: 900;
}
.form-section .lead-form__step::before {
  color: #9ce1d6;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.file-field.lead-form__step::before { top: 23px; }

.ops-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 68px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16,24,28,.98), rgba(18,40,45,.98) 54%, rgba(7,75,68,.96)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,.03) 47px 48px);
}
.ops-cta::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -24vw;
  width: 46vw;
  min-width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(156,225,214,.20);
  border-radius: 50%;
}
.ops-cta > * { position: relative; z-index: 1; }
.ops-cta .eyebrow { color: #9ce1d6; }
.ops-cta h2 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fff;
}
.ops-cta p {
  max-width: 680px;
  color: #cbd6d6;
  font-size: 18px;
}
.ops-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.ops-phone {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-weight: 850;
}
.direction-ops-cta {
  border-top: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 1240px) {
  .hero-content,
  .hero-index { transform: none; }
  .ops-cta { grid-template-columns: 1fr; }
  .ops-actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .hero-passport { margin-top: 22px; }
  .direction-symbol { width: 52px; height: 52px; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail h2 { position: static; }
  .editorial-flow::before { display: none; }
  .lead-form__step { padding-left: 0; }
  .lead-form__step::before { position: static; margin-bottom: 6px; }
  .request-route span { border-radius: 14px; }
  .ops-cta { padding-top: 62px; padding-bottom: 62px; }
}
@media (max-width: 520px) {
  .hero-passport span { width: 100%; }
  .service-facts div { grid-template-columns: 1fr; gap: 3px; }
  .ops-actions { display: grid; grid-template-columns: 1fr; }
  .ops-actions > * { justify-content: center; }
}

/* Mobile Hero Index Fix 2026-07-05 */
@media (max-width: 860px) {
  .hero-index {
    width: 100%;
    max-width: 100%;
    transform: none;
  }
  .hero-index__head {
    flex-wrap: wrap;
    padding: 14px 16px;
    font-size: 11px;
    letter-spacing: .08em;
  }
  .hero-index__row {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-index__row strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 520px) {
  .hero-index__head strong {
    width: 100%;
  }
}

/* Mobile Hero Flow Fix 2026-07-05 */
@media (max-width: 860px) {
  .hero-shell {
    display: block;
    width: 100%;
  }
  .hero-index {
    width: 100%;
    margin-top: 28px;
    justify-self: stretch;
    transform: none !important;
  }
}

/* Home Polish Pass 2026-07-05 */
.home-trust-band,
.section,
.ops-cta,
.site-footer {
  overflow: clip;
}

h1,
h2,
h3,
p,
.direction-card strong,
.hero-index__row strong,
.trust-item strong,
.ops-cta h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.hero-content {
  max-width: 760px;
}

.hero .lead {
  max-width: 620px;
}

.hero-passport {
  max-width: 640px;
}

.hero-passport span {
  white-space: nowrap;
}

.five-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.direction-card {
  min-height: 264px;
  padding: clamp(22px, 2.2vw, 30px);
}

.five-grid .direction-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.direction-card h3 {
  max-width: 18ch;
  font-size: clamp(20px, 1.6vw, 25px);
}

.direction-card p {
  max-width: 42ch;
  overflow-wrap: normal;
  hyphens: auto;
}

.five-grid .direction-card:first-child h3 {
  max-width: 22ch;
  font-size: clamp(28px, 3vw, 44px);
}

.five-grid .direction-card:first-child p {
  max-width: 54ch;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.advantage-grid {
  align-items: stretch;
}

.advantage-item p {
  max-width: 42ch;
}

.trust-row,
.contact-band {
  gap: clamp(28px, 5vw, 72px);
}

.trust-row h2,
.contact-band h2,
.form-section h2,
.ops-cta h2 {
  max-width: 760px;
}

.contact-chips a,
.contact-chips span,
.trust-actions span,
.trust-actions a {
  max-width: 100%;
  white-space: normal;
}

.lead-form input,
.lead-form textarea {
  min-width: 0;
}

@media (max-width: 1240px) {
  .five-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    padding-left: clamp(16px, 5vw, 24px);
    padding-right: clamp(16px, 5vw, 24px);
  }
  .hero-content {
    max-width: 36rem;
  }
  h1 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: .96;
  }
  h2 {
    font-size: clamp(29px, 8.2vw, 40px);
    line-height: 1.02;
  }
  h3 {
    font-size: clamp(20px, 6vw, 25px);
  }
  .hero .lead {
    max-width: 34rem;
    font-size: 16px;
    line-height: 1.48;
  }
  .hero-actions {
    align-items: stretch;
  }
  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    min-width: min(100%, 260px);
  }
  .hero-passport span {
    white-space: normal;
  }
  .section-head {
    gap: 14px;
  }
  .section-note {
    max-width: 40rem;
  }
  .five-grid {
    grid-template-columns: 1fr;
  }
  .five-grid .direction-card:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }
  .direction-card {
    min-height: 230px;
  }
  .direction-card h3,
  .five-grid .direction-card:first-child h3 {
    max-width: 100%;
    font-size: clamp(22px, 7vw, 32px);
  }
  .direction-card p {
    max-width: 100%;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
  .trust-row,
  .contact-band,
  .form-section {
    gap: 26px;
  }
  .trust-actions,
  .contact-chips {
    display: grid;
    grid-template-columns: 1fr;
  }
  .trust-actions span,
  .trust-actions a,
  .contact-chips a,
  .contact-chips span {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section,
  .page-hero,
  .cta-band,
  .ops-cta {
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }
  h2 {
    font-size: clamp(28px, 8vw, 34px);
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: .10em;
  }
  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
  }
  .hero-index__head {
    gap: 8px;
  }
  .home-trust-band {
    padding-left: 16px;
    padding-right: 16px;
  }
  .trust-item {
    padding: 22px;
  }
  .direction-card {
    padding: 22px;
  }
  .direction-symbol {
    width: 50px;
    height: 50px;
  }
  .ops-cta h2 {
    font-size: clamp(30px, 8vw, 36px);
  }
}

@media (max-width: 340px) {
  .brand-text {
    display: none;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 27px;
  }
  .hero-index__row {
    grid-template-columns: 34px 1fr;
  }
  .hero-index__head {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Home Hero Height Polish 2026-07-05 */
.hero {
  min-height: clamp(720px, calc(100dvh - 150px), 860px);
  padding-top: clamp(46px, 5.6vw, 72px);
  padding-bottom: clamp(34px, 4.2vw, 54px);
}

.hero-shell {
  min-height: auto;
}

.hero-content {
  transform: translateY(0);
}

.hero-index {
  transform: translateY(18px);
}

.hero-index__row {
  min-height: 60px;
}

.hero-index__head {
  padding-top: 15px;
  padding-bottom: 15px;
}

@media (min-width: 1241px) {
  .hero-shell {
    min-height: clamp(620px, calc(100dvh - 250px), 720px);
  }
}

@media (max-width: 1240px) {
  .hero {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 38px;
    padding-bottom: 34px;
  }
  .hero-index {
    margin-top: 24px;
  }
  .hero-index__head {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hero-index__row {
    min-height: 54px;
  }
  .hero-passport {
    margin-top: 18px;
    gap: 8px;
  }
  .hero-passport span {
    min-height: 34px;
    padding-left: 11px;
    padding-right: 11px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 34px;
    padding-bottom: 30px;
  }
  .hero-index__row {
    min-height: 50px;
  }
  .hero-index__head {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

/* Logo And Pictogram Audit Fix 2026-07-05 */
.brand {
  min-width: 0;
  gap: 0;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.brand-logo--full {
  width: 52px;
  height: 52px;
}

.brand-logo--mark {
  display: none;
  width: 44px;
  height: 44px;
}

.footer-logo {
  display: block;
  width: 68px;
  height: auto;
  margin-bottom: 14px;
  background: transparent;
  border-radius: 0;
}

.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.direction-symbol {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--accent-dark);
}

.direction-symbol::before,
.direction-symbol::after {
  content: none !important;
}

.direction-symbol svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.direction-symbol svg path,
.direction-symbol svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.direction-symbol--lnk svg path:nth-child(1),
.direction-symbol--elektrolaboratoriya svg path:nth-child(1) {
  stroke: var(--signal);
}

.direction-symbol--ispytatelnaya-laboratoriya svg path:nth-child(4),
.direction-symbol--ekzamenatsionnyy-tsentr svg path:nth-child(4),
.direction-symbol--stroitelnyy-kontrol svg path:nth-child(3) {
  stroke: var(--signal);
}

.five-grid .direction-card:first-child .direction-symbol {
  color: #9ce1d6;
}

.five-grid .direction-card:first-child .direction-symbol svg path,
.five-grid .direction-card:first-child .direction-symbol svg circle {
  stroke: currentColor;
}

.five-grid .direction-card:first-child .direction-symbol--lnk svg path:nth-child(1) {
  stroke: #f0a36f;
}

.line-icon {
  position: relative;
  border-color: rgba(13,117,107,.34);
  background: rgba(231,245,242,.72);
  overflow: hidden;
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--accent);
  border-left-color: transparent;
  border-radius: 50%;
}

.line-icon::after {
  inset: auto 8px 13px 8px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: var(--signal);
  transform: rotate(-18deg);
}

.search-link,
.nav-toggle,
.icon-link {
  font-weight: 850;
}

.search-link {
  font-size: 0;
  position: relative;
}

.search-link::before,
.search-link::after {
  content: "";
  position: absolute;
  display: block;
}

.search-link::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}

.search-link::after {
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(7px, 8px) rotate(45deg);
}

@media (max-width: 1240px) {
  .brand-logo--full {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 640px) {
  .brand-logo--full {
    display: none;
  }
  .brand-logo--mark {
    display: block;
  }
}

@media (max-width: 340px) {
  .brand-logo--mark {
    width: 40px;
    height: 40px;
  }
}

/* Header Redesign 2026-07-05 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: block;
  min-height: 0;
  padding: 6px clamp(10px, 1.4vw, 22px);
  border-bottom: 1px solid rgba(16,24,28,.08);
  background: rgba(248,251,249,.84);
  box-shadow: 0 10px 30px rgba(16,24,28,.055);
  backdrop-filter: blur(18px) saturate(1.08);
}

.header-shell {
  width: 100%;
  min-height: 60px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}

.brand-logo-frame {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(13,117,107,.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(7,75,68,.08);
  overflow: hidden;
}

.brand-logo,
.brand-logo--full,
.brand-logo--mark {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-logo--mark { display: none; }

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
}

.brand-copy span {
  color: #6a787d;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(13,117,107,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  color: #243339;
  font-size: clamp(14px, .94vw, 15px);
  font-weight: 760;
  white-space: nowrap;
  overflow: hidden;
}

.main-nav a,
.utility-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-dark);
  background: rgba(13,117,107,.085);
  transform: translateY(-1px);
}

.utility-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #617075;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.utility-nav a:hover,
.utility-nav a:focus-visible {
  color: var(--accent-dark);
  background: rgba(13,117,107,.070);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.phone-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(13,117,107,.12);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255,255,255,.62);
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.icon-link,
.search-link,
.nav-toggle,
.modal-close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(13,117,107,.16);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.icon-link:hover,
.search-link:hover,
.nav-toggle:hover {
  border-color: rgba(13,117,107,.28);
  background: #fff;
}

.icon-link {
  width: auto;
  padding: 0 11px;
  font-size: 14px;
  letter-spacing: .08em;
}

.header-cta {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  justify-self: end;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle span { transition: transform .18s ease, opacity .18s ease; }

@media (max-width: 1680px) {
  .brand-copy span { display: none; }
  .header-shell { grid-template-columns: auto minmax(0, 1fr); }
  .phone-link { display: none; }
  .utility-nav { display: none; }
}

@media (max-width: 1320px) {
  .header-panel { grid-template-columns: minmax(0, 1fr) auto; }
  .utility-nav { display: none; }
}

@media (max-width: 1240px) {
  .site-header { padding: 9px clamp(14px, 4vw, 24px); }
  .header-shell {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }
  .brand-logo-frame {
    width: 46px;
    height: 46px;
  }
  .brand-logo,
  .brand-logo--full,
  .brand-logo--mark {
    width: 40px;
    height: 40px;
  }
  .brand-copy span { display: block; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-panel {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(13,117,107,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 22px 54px rgba(16,24,28,.10);
  }
  .header-panel.is-open { display: grid; }
  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    border-radius: 12px;
    background: rgba(247,250,248,.88);
    font-size: 16px;
  }
  .main-nav a,
  .utility-nav a { min-height: 36px; }
  .utility-nav {
    flex-wrap: wrap;
    padding: 2px 4px;
    font-size: 16px;
  }
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 4px;
  }
  .phone-link { display: inline-flex; }
}

@media (max-width: 640px) {
  .site-header { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 9px; }
  .brand-logo--full { display: block; }
  .brand-logo--mark { display: none; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy span { font-size: 13px; letter-spacing: .045em; }
  .header-panel { padding: 10px; }
  .main-nav { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .main-nav a,
  .utility-nav a { justify-content: flex-start; width: 100%; }
  .utility-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .header-actions { display: grid; grid-template-columns: 1fr auto auto; align-items: center; }
  .phone-link { grid-column: 1 / -1; justify-content: center; }
  .header-cta { grid-column: 1 / 2; justify-content: center; }
}

@media (max-width: 380px) {
  .brand-copy span { display: none; }
  .utility-nav { grid-template-columns: 1fr; }
  .header-actions { grid-template-columns: 1fr 1fr; }
  .phone-link,
  .header-cta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header-panel {
    gap: 8px;
  }
  .main-nav {
    gap: 3px;
    padding: 4px;
  }
  .main-nav a,
  .utility-nav a {
    min-height: 32px;
    padding-left: 9px;
    padding-right: 9px;
    font-size: 15px;
  }
  .header-actions {
    gap: 6px;
  }
  .phone-link,
  .header-cta {
    min-height: 36px;
  }
}

@media (max-width: 360px) {
  .brand-copy strong { font-size: 16px; }
  .brand-logo-frame {
    width: 42px;
    height: 42px;
  }
  .brand-logo,
  .brand-logo--full,
  .brand-logo--mark {
    width: 36px;
    height: 36px;
  }
  .main-nav a,
  .utility-nav a {
    min-height: 30px;
    font-size: 14px;
  }
}
@media (min-width: 1681px) {
  .utility-nav { display: inline-flex; }
}

/* Hero Cleanup 2026-07-06 */
.hero-content {
  transform: translateY(-18px);
}

.hero-content h1 {
  font-size: clamp(52px, 7.8vw, 118px);
  max-width: 940px;
}

.hero-actions.single-action {
  margin-top: clamp(24px, 3vw, 38px);
}

.hero-actions.single-action .primary-btn {
  min-height: 48px;
  padding-left: 22px;
  padding-right: 22px;
}

.hero-index {
  padding: 8px;
  gap: 5px;
}

.hero-index__head {
  display: none !important;
}

.hero-index__row {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 58px;
  padding: 0 16px;
  gap: 12px;
}

.hero-index__row strong {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.12;
}

.hero-index__row span {
  align-self: center;
}

.hero-index__row em {
  display: none !important;
}

@media (max-width: 1240px) {
  .hero-content {
    transform: none;
  }
  .hero-content h1 {
    font-size: clamp(44px, 8.8vw, 72px);
    max-width: 820px;
  }
}

@media (max-width: 860px) {
  .hero-content h1 {
    font-size: clamp(40px, 11.8vw, 58px);
  }
  .hero-actions.single-action {
    margin-top: 22px;
  }
  .hero-index__row {
    min-height: 50px;
    padding-left: 13px;
    padding-right: 13px;
  }
}

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: clamp(34px, 11vw, 46px);
  }
  .hero-actions.single-action .primary-btn {
    width: 100%;
  }
}

/* Hero Composition Fill 2026-07-07 */
.technical-hero {
  overflow: hidden;
}

.technical-hero::before {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(13,117,107,.16) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(13,117,107,.16) 50%, transparent 50.2%);
  opacity: .30;
}


.hero-watermark {
  position: absolute;
  right: clamp(260px, 26vw, 500px);
  top: clamp(126px, 18vh, 190px);
  width: clamp(260px, 28vw, 430px);
  height: auto;
  opacity: .105;
  mix-blend-mode: multiply;
  filter: saturate(.58) contrast(1.06);
  pointer-events: none;
  user-select: none;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .68;
}

.hero-shell::before {
  left: min(520px, 38vw);
  right: min(520px, 42vw);
  top: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgba(13,117,107,0), rgba(13,117,107,.22), rgba(201,93,43,.20), rgba(13,117,107,0));
}

.hero-shell::after {
  left: min(560px, 40vw);
  right: min(470px, 38vw);
  top: 52%;
  height: 78px;
  border-top: 1px solid rgba(13,117,107,.16);
  border-right: 1px solid rgba(13,117,107,.16);
  transform: skewX(-16deg);
}

.hero-content,
.hero-index {
  position: relative;
  z-index: 1;
}

.hero-specialization {
  max-width: 520px;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: rgba(31,48,55,.72);
  font-size: clamp(15px, 1.16vw, 18px);
  font-weight: 760;
  line-height: 1.35;
}

.hero-measure {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(440px, 100%);
  height: 34px;
  margin-top: clamp(16px, 2.4vw, 30px);
  border-top: 1px solid rgba(13,117,107,.28);
  color: rgba(7,75,68,.54);
}

.hero-measure::before,
.hero-measure::after {
  position: absolute;
  top: 15px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero-measure::before {
  content: "NDT";
  left: 0;
}

.hero-measure::after {
  content: "LAB";
  right: 0;
}

.hero-measure span {
  position: relative;
  min-width: 0;
}

.hero-measure span::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 1px;
  height: 13px;
  background: rgba(13,117,107,.32);
}

.hero-measure span:nth-child(3)::before {
  height: 22px;
  background: rgba(201,93,43,.46);
}

.hero-measure span:last-child::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 1px;
  height: 13px;
  background: rgba(13,117,107,.32);
}

@media (max-width: 1240px) {
  .technical-hero::before {
    opacity: .20;
  }
  .hero-watermark {
    right: -4vw;
    top: 118px;
    width: clamp(240px, 36vw, 360px);
    opacity: .075;
  }
  .hero-shell::before,
  .hero-shell::after {
    display: none;
  }
  .hero-specialization {
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .hero-specialization {
    font-size: 15px;
    max-width: 420px;
  }
  .hero-measure {
    width: min(360px, 100%);
    margin-top: 18px;
  }
  .technical-hero::before {
    right: -52vw;
    top: 10vh;
    opacity: .09;
  }
  .hero-watermark {
    right: -120px;
    top: 96px;
    width: 280px;
    opacity: .055;
  }
}

@media (max-width: 520px) {
  .hero-specialization {
    margin-top: 15px;
    font-size: 14px;
  }
  .hero-measure {
    height: 28px;
  }
  .hero-measure::before,
  .hero-measure::after {
    top: 13px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-measure,
  .hero-shell::before,
  .hero-shell::after {
    transition: none;
  }
}

/* Advantage Icons Polish 2026-07-09 */
.advantage-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 1px solid rgba(13,117,107,.32);
  border-radius: 11px;
  color: var(--accent-dark);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(231,245,242,.78)),
    radial-gradient(circle at 26% 18%, rgba(13,117,107,.12), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 14px 28px rgba(16,24,28,.06);
  flex: 0 0 auto;
}

.advantage-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  overflow: visible;
}

.advantage-icon svg path,
.advantage-icon svg circle,
.advantage-icon svg rect {
  fill: none !important;
  vector-effect: non-scaling-stroke;
}

.advantage-icon .icon-accent {
  stroke: var(--signal);
}

@media (max-width: 520px) {
  .advantage-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
  }
  .advantage-icon svg {
    width: 25px;
    height: 25px;
    max-width: 25px;
    max-height: 25px;
  }
}

/* Home Sections Polish 2026-07-09 */
#home-directions,
.muted-section,
.trust-row,
.contact-band,
.request-route-section,
.ops-cta {
  scroll-margin-top: 88px;
}

#home-directions h2,
.muted-section h2,
.trust-row h2,
.contact-band h2,
.request-route-section h2,
.ops-cta h2 {
  line-height: 1.1;
}

#home-directions .section-head {
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
}

#home-directions .section-note {
  max-width: 46ch;
  padding-top: 9px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

#home-directions .five-grid {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.direction-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.direction-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 18px 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(13,117,107,.32), rgba(13,117,107,0));
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.direction-card:hover::after,
.direction-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.direction-card .card-link {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(13,117,107,.16);
  border-radius: 999px;
  background: rgba(231,245,242,.56);
  transition: background .18s ease, border-color .18s ease;
}

.direction-card:hover .card-link,
.direction-card:focus-visible .card-link {
  border-color: rgba(13,117,107,.30);
  background: rgba(231,245,242,.90);
}

.five-grid .direction-card:first-child .card-link {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
}

.advantage-grid {
  max-width: 1348px;
  margin-left: auto;
  margin-right: auto;
}

.advantage-item {
  min-height: 290px;
  padding: clamp(24px, 2.4vw, 34px);
}

.advantage-item h3 {
  max-width: 15ch;
  font-size: clamp(22px, 1.8vw, 30px);
}

.advantage-item p {
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 1.55;
}

.trust-row,
.contact-band {
  border-top: 1px solid rgba(16,24,28,.08);
  border-bottom: 1px solid rgba(16,24,28,.08);
}

.trust-row {
  grid-template-columns: minmax(0, .95fr) minmax(280px, .65fr);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,244,240,.82)),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(13,117,107,.045) 55px 56px);
}

.trust-row > div:first-child,
.contact-band > div:first-child {
  max-width: 720px;
}

.trust-row h2,
.contact-band h2 {
  max-width: 12ch;
  font-size: clamp(36px, 3.9vw, 56px);
}

.trust-row p,
.contact-band p {
  max-width: 58ch;
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.58;
}

.trust-actions {
  justify-content: flex-start;
  align-content: start;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(13,117,107,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 22px 48px rgba(16,24,28,.07);
}

.trust-actions span {
  width: 100%;
  justify-content: center;
  color: var(--accent-dark);
  background: rgba(231,245,242,.78);
}

.trust-actions .secondary-btn {
  flex: 1 1 150px;
}

.contact-band {
  grid-template-columns: minmax(0, .82fr) minmax(320px, .78fr);
  background:
    linear-gradient(135deg, rgba(246,250,248,.96), rgba(255,255,255,.88)),
    radial-gradient(circle at 82% 26%, rgba(13,117,107,.13), transparent 32%);
}

.contact-chips {
  justify-content: flex-start;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(13,117,107,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 22px 48px rgba(16,24,28,.06);
}

.contact-chips a,
.contact-chips span {
  min-height: 46px;
  border-color: rgba(13,117,107,.15);
  background: rgba(255,255,255,.86);
}

.contact-chips a:first-child {
  color: #fff;
  border-color: rgba(7,75,68,.18);
  background: linear-gradient(135deg, var(--accent-dark), #0d6e65);
  box-shadow: 0 14px 28px rgba(7,75,68,.16);
}

.request-route-section {
  grid-template-columns: minmax(0, .76fr) minmax(360px, .82fr);
  gap: clamp(30px, 6vw, 86px);
}

.request-route-section > div:first-child {
  max-width: 620px;
}

.request-route-section h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.request-route {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-route span {
  min-height: 58px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 16px;
}

.request-panel {
  border-radius: 18px;
}

.ops-cta {
  min-height: 360px;
}

.ops-actions .primary-btn,
.ops-actions .secondary-btn,
.ops-phone {
  min-height: 50px;
}

@media (max-width: 1240px) {
  #home-directions .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .trust-row,
  .contact-band,
  .request-route-section {
    grid-template-columns: 1fr;
  }
  .trust-row h2,
  .contact-band h2 {
    max-width: 15ch;
  }
  .trust-actions,
  .contact-chips {
    max-width: 760px;
  }
}

@media (max-width: 860px) {
  #home-directions .section-note {
    padding-top: 0;
  }
  .advantage-item {
    min-height: 0;
  }
  .advantage-item h3 {
    max-width: 100%;
  }
  .trust-row h2,
  .contact-band h2,
  .request-route-section h2 {
    max-width: 100%;
    font-size: clamp(30px, 8vw, 40px);
  }
  .trust-actions,
  .contact-chips {
    border-radius: 14px;
    padding: 14px;
  }
  .request-route {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .direction-card .card-link {
    width: 100%;
    justify-content: center;
  }
  .trust-actions .secondary-btn {
    width: 100%;
  }
  .contact-chips a,
  .contact-chips span {
    width: 100%;
  }
  .ops-cta {
    min-height: 0;
  }
}

/* Hero Direction Index Scale 2026-07-12 */
@media (min-width: 1241px) {
  .hero-shell {
    grid-template-columns: minmax(440px, 1fr) minmax(500px, .66fr);
    gap: clamp(46px, 6vw, 92px);
  }

  .hero-index {
    width: min(540px, 100%);
    justify-self: end;
    padding: 12px;
    gap: 7px;
    transform: translateY(12px);
  }

  .hero-index__row {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 78px;
    padding: 0 26px;
    gap: 20px;
  }

  .hero-index__row span {
    color: var(--accent-dark);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
  }

  .hero-index__row strong {
    font-size: clamp(27px, 1.95vw, 30px);
    line-height: 1.08;
    font-weight: 860;
    letter-spacing: 0;
  }
}

@media (min-width: 1681px) {
  .hero-index {
    width: min(580px, 100%);
  }

  .hero-index__row {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 84px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-index__row span {
    font-size: 31px;
  }

  .hero-index__row strong {
    font-size: clamp(30px, 1.75vw, 34px);
  }
}

@media (max-width: 1240px) {
  .hero-index {
    max-width: 760px;
    padding: 10px;
    gap: 7px;
  }

  .hero-index__row {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 70px;
    padding: 0 18px;
    gap: 16px;
  }

  .hero-index__row span {
    font-size: 24px;
  }

  .hero-index__row strong {
    font-size: clamp(22px, 2.65vw, 26px);
    line-height: 1.08;
  }
}

@media (max-width: 860px) {
  .hero-index__row {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 62px;
    padding-left: 15px;
    padding-right: 15px;
    gap: 13px;
  }

  .hero-index__row span {
    font-size: 21px;
  }

  .hero-index__row strong {
    font-size: clamp(18px, 4.7vw, 23px);
  }
}

@media (max-width: 520px) {
  .hero-index__row {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 58px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .hero-index__row span {
    font-size: 19px;
  }

  .hero-index__row strong {
    font-size: clamp(17px, 5.2vw, 21px);
    line-height: 1.12;
  }
}

/* Direction Interior Polish 2026-07-12 */
.direction-hero {
  min-height: clamp(430px, 48vw, 560px);
}

.direction-hero h1 {
  max-width: 1040px;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 1.08;
  padding-bottom: .04em;
}

.direction-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
}

.direction-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(247,250,248,.96)),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(13,117,107,.035) 55px 56px);
}

.direction-copy {
  max-width: 900px;
}

.direction-copy > * + * {
  margin-top: 28px;
}

.direction-copy h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
}

.direction-copy__text,
.direction-copy__text p,
.direction-list-panel,
.direction-list-panel p {
  color: #53636a;
  font-size: clamp(17px, 1.32vw, 20px);
  line-height: 1.68;
}

.direction-copy__text p,
.direction-list-panel p,
.direction-highlight p {
  margin: 0;
}

.direction-copy__text p + p,
.direction-list-panel p + p {
  margin-top: 14px;
}

.direction-list-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(13,117,107,.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(231,245,242,.68)),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(13,117,107,.05) 41px 42px);
  box-shadow: var(--soft-shadow);
}

.direction-highlight {
  max-width: 840px;
  border-left-width: 0;
  border: 1px solid rgba(201,93,43,.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,247,236,.98), rgba(255,255,255,.86));
}

.direction-aside {
  position: sticky;
  top: 104px;
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid rgba(13,117,107,.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,247,244,.86)),
    radial-gradient(circle at 92% 4%, rgba(13,117,107,.13), transparent 34%);
  box-shadow: 0 24px 64px rgba(16,24,28,.09), inset 0 1px 0 rgba(255,255,255,.8);
}

.direction-aside__label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.direction-aside h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.08;
}

.direction-aside__list {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.direction-aside__list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(13,117,107,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.direction-aside__list a:hover,
.direction-aside__list a:focus-visible {
  border-color: rgba(13,117,107,.26);
  background: rgba(231,245,242,.88);
  transform: translateY(-1px);
}

.direction-aside__list span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .10em;
}

.direction-aside__list strong {
  font-size: 15px;
  line-height: 1.18;
}

.direction-services-section {
  background:
    linear-gradient(180deg, #f2f8f5, #f8fbf9),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(13,117,107,.04) 55px 56px);
}

.direction-section-head {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.direction-service-grid {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.direction-service-grid .service-panel {
  min-height: 310px;
  border-radius: 18px;
}

.direction-service-grid .service-panel:nth-child(1),
.direction-service-grid .service-panel:nth-child(5) {
  grid-column: span 2;
}

.direction-service-grid .service-panel h3 {
  max-width: 18ch;
  font-size: clamp(22px, 1.7vw, 30px);
}

.direction-service-grid .service-panel p {
  font-size: 16px;
  line-height: 1.55;
}

.direction-service-grid .service-reveal {
  max-height: 156px;
}

.direction-service-grid .service-card:hover .service-reveal,
.direction-service-grid .service-card:focus-within .service-reveal,
.direction-service-grid .service-card.is-open .service-reveal {
  max-height: 460px;
}

.direction-service-details {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, .38fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,248,.98));
}

.direction-details-head {
  position: sticky;
  top: 104px;
  align-self: start;
}

.direction-details-head h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.08;
}

.direction-details-head p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.direction-detail-stack {
  display: grid;
  gap: 14px;
}

.direction-service-details .service-detail {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid rgba(13,117,107,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 42px rgba(16,24,28,.055);
}

.direction-service-details .service-detail h2 {
  position: static;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
}

.direction-service-details .service-detail p {
  max-width: 72ch;
  margin: 0;
  color: #53636a;
  font-size: 17px;
  line-height: 1.66;
}

@media (max-width: 1240px) {
  .direction-overview,
  .direction-service-details {
    grid-template-columns: 1fr;
  }
  .direction-aside,
  .direction-details-head {
    position: static;
  }
  .direction-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .direction-service-grid .service-panel:nth-child(1),
  .direction-service-grid .service-panel:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  .direction-hero h1 {
    font-size: clamp(40px, 11vw, 62px);
  }
  .direction-copy h2,
  .direction-details-head h2 {
    font-size: clamp(30px, 8.4vw, 40px);
  }
  .direction-service-grid,
  .direction-service-details .service-detail {
    grid-template-columns: 1fr;
  }
  .direction-service-grid .service-panel {
    min-height: 0;
  }
  .direction-service-grid .service-reveal {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .direction-overview,
  .direction-services-section,
  .direction-service-details {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .direction-list-panel,
  .direction-highlight,
  .direction-aside,
  .direction-service-details .service-detail {
    border-radius: 14px;
  }
  .direction-aside__list a {
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

/* Local Typography Containment 2026-07-12 */
.main-nav a,
.utility-nav a,
.phone-link,
.header-cta,
.hero-index__row strong,
.advantage-item h3,
.direction-aside__list strong,
.direction-service-grid .service-panel h3,
.direction-service-details .service-detail h2,
.request-route span,
.card-link {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: nowrap;
}

.advantage-item h3,
.direction-service-grid .service-panel h3,
.direction-service-details .service-detail h2 {
  max-width: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-item strong,
.result-item strong,
.contact-list--polished strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: nowrap;
}

/* Editorial links: links embedded in prose must be visibly interactive. */
.direction-copy__text a,
.direction-list-panel a,
.direction-highlight a,
.direction-service-details .service-detail p a,
.content-flow a:not(.primary-btn):not(.secondary-btn),
.legal-copy p a,
.exam-intro__copy > p a,
.exam-section__head > p a,
.exam-result p a,
.exam-level-card p a,
.exam-decision-grid p a,
.exam-vision p a,
.exam-schedule-note p a {
  color: var(--signal);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  transition: color .18s ease, background-color .18s ease;
}

.direction-copy__text a:hover,
.direction-copy__text a:focus-visible,
.direction-list-panel a:hover,
.direction-list-panel a:focus-visible,
.direction-highlight a:hover,
.direction-highlight a:focus-visible,
.direction-service-details .service-detail p a:hover,
.direction-service-details .service-detail p a:focus-visible,
.content-flow a:not(.primary-btn):not(.secondary-btn):hover,
.content-flow a:not(.primary-btn):not(.secondary-btn):focus-visible,
.legal-copy p a:hover,
.legal-copy p a:focus-visible,
.exam-intro__copy > p a:hover,
.exam-intro__copy > p a:focus-visible,
.exam-section__head > p a:hover,
.exam-section__head > p a:focus-visible,
.exam-result p a:hover,
.exam-result p a:focus-visible,
.exam-level-card p a:hover,
.exam-level-card p a:focus-visible,
.exam-decision-grid p a:hover,
.exam-decision-grid p a:focus-visible,
.exam-vision p a:hover,
.exam-vision p a:focus-visible,
.exam-schedule-note p a:hover,
.exam-schedule-note p a:focus-visible {
  color: #d85f00;
  background: rgba(232, 112, 16, .1);
}

.document-item em,
.contact-chips a,
.contact-chips span,
.trust-actions a,
.trust-actions span {
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: nowrap;
}

@media (min-width: 1241px) {
  .hero-shell {
    grid-template-columns: minmax(440px, 1fr) minmax(450px, .58fr);
  }

  .hero-index {
    width: min(486px, 100%);
    padding: 10px;
    gap: 6px;
    transform: translateY(10px);
  }

  .hero-index__row {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 70px;
    padding: 0 22px;
    gap: 17px;
  }

  .hero-index__row span {
    font-size: 24px;
  }

  .hero-index__row strong {
    font-size: clamp(20px, 1.45vw, 24px);
    line-height: 1;
  }
}

@media (min-width: 1681px) {
  .hero-index {
    width: min(522px, 100%);
  }

  .hero-index__row {
    grid-template-columns: 60px minmax(0, 1fr);
    min-height: 74px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-index__row span {
    font-size: 26px;
  }

  .hero-index__row strong {
    font-size: clamp(22px, 1.35vw, 26px);
  }
}

@media (max-width: 1240px) {
  .hero-index {
    max-width: 684px;
    padding: 9px;
    gap: 6px;
  }

  .hero-index__row {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 63px;
    padding: 0 16px;
    gap: 14px;
  }

  .hero-index__row span {
    font-size: 21px;
  }

  .hero-index__row strong {
    font-size: clamp(18px, 2.1vw, 22px);
    line-height: 1;
  }
}

@media (max-width: 860px) {
  .hero-index__row {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 56px;
    padding-left: 13px;
    padding-right: 13px;
    gap: 11px;
  }

  .hero-index__row span {
    font-size: 19px;
  }

  .hero-index__row strong {
    font-size: clamp(16px, 4.1vw, 20px);
  }
}

@media (max-width: 520px) {
  .hero-index {
    padding: 8px;
    gap: 5px;
  }

  .hero-index__row {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 52px;
    padding-left: 11px;
    padding-right: 11px;
    gap: 10px;
  }

  .hero-index__row span {
    font-size: 17px;
  }

  .hero-index__row strong {
    font-size: clamp(14px, 3.95vw, 17px);
  }
}

@media (max-width: 360px) {
  .hero-index__row {
    grid-template-columns: 32px minmax(0, 1fr);
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
  }

  .hero-index__row span {
    font-size: 16px;
  }

  .hero-index__row strong {
    font-size: 13.5px;
  }
}

/* No-Wrap Fit Refinement 2026-07-12 */
.advantage-item h3 {
  font-size: clamp(18px, 1.45vw, 24px);
}

.direction-service-grid .service-panel {
  padding-left: clamp(18px, 1.8vw, 24px);
  padding-right: clamp(18px, 1.8vw, 24px);
}

.direction-service-grid .service-panel h3 {
  font-size: clamp(18px, 1.42vw, 24px);
}

@media (min-width: 1241px) {
  .direction-service-details .service-detail {
    grid-template-columns: minmax(520px, .48fr) minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .direction-service-grid .service-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .direction-aside__list a {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .direction-aside__list span {
    font-size: 11px;
  }
}

/* No-Wrap Edge Cases 2026-07-12 */
@media (max-width: 1240px) {
  .direction-service-details .service-detail {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .direction-aside__list a {
    grid-template-columns: 1fr !important;
  }

  .direction-aside__list span {
    display: none;
  }
}

/* Secondary Pages Final Polish 2026-07-12 */
.page-hero--resource {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251,253,251,.98), rgba(239,247,244,.86)),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(13,117,107,.045) 55px 56px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(13,117,107,.035) 47px 48px);
}

.page-hero--resource::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 12%;
  width: 38vw;
  min-width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(13,117,107,.16);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(13,117,107,.12) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(13,117,107,.12) 50%, transparent 50.2%);
  pointer-events: none;
}

.page-hero--resource > * {
  position: relative;
  z-index: 1;
}

.page-hero--resource h1 {
  max-width: 920px;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: .98;
}

.page-hero--resource p:not(.eyebrow) {
  max-width: 700px;
}

.resource-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(247,250,248,.98)),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(13,117,107,.028) 55px 56px);
}

.resource-layout {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.resource-layout--wide {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
}

.resource-summary,
.resource-card,
.empty-state {
  border: 1px solid rgba(13,117,107,.15);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,247,244,.88)),
    radial-gradient(circle at 92% 4%, rgba(13,117,107,.12), transparent 34%);
  box-shadow: 0 22px 54px rgba(16,24,28,.075), inset 0 1px 0 rgba(255,255,255,.78);
}

.resource-summary,
.resource-card {
  padding: clamp(22px, 2.8vw, 32px);
}

.resource-summary__label,
.resource-card__mark {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-summary strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(52px, 6vw, 78px);
  line-height: .86;
}

.resource-summary p,
.resource-card p,
.empty-state p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.resource-card h2,
.empty-state h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.08;
}

.resource-card .primary-btn,
.resource-card .secondary-btn {
  margin-top: 10px;
}

.muted-note {
  padding: 14px 16px;
  border: 1px dashed rgba(13,117,107,.20);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
}

.document-list--polished,
.result-list--polished,
.contact-list--polished {
  gap: 12px;
}

.document-item--polished,
.result-item--polished,
.contact-list--polished > a,
.contact-list--polished > div {
  position: relative;
  overflow: hidden;
  border-color: rgba(13,117,107,.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86)),
    linear-gradient(90deg, rgba(13,117,107,.045), transparent 42%);
  box-shadow: 0 14px 34px rgba(16,24,28,.055);
}

.document-item--polished {
  min-height: 74px;
  padding: 18px 20px;
}

.document-format {
  margin: 0;
  min-width: 54px;
  height: 46px;
  border-radius: 12px;
  background: rgba(231,245,242,.86);
}

.document-item--polished strong,
.result-item--polished strong,
.contact-list--polished strong {
  font-size: clamp(17px, 1.32vw, 21px);
  line-height: 1.18;
}

.document-item--polished em {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(13,117,107,.16);
  border-radius: 999px;
  background: rgba(231,245,242,.62);
}

.requisites-table--polished {
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(16,24,28,.07);
}

.requisites-table--polished div {
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  padding: 19px 22px;
}

.requisites-table--polished span {
  font-weight: 780;
}

.requisites-table--polished strong {
  line-height: 1.48;
}

.contact-list--polished > a,
.contact-list--polished > div {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(13,117,107,.13);
  border-radius: 18px;
}

.contact-list--polished > a:hover,
.contact-list--polished > a:focus-visible {
  border-color: rgba(13,117,107,.30);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(231,245,242,.74));
  transform: translateY(-1px);
}

.search-form--polished {
  width: min(760px, 100%);
  padding: 8px;
  border: 1px solid rgba(13,117,107,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 44px rgba(16,24,28,.065);
}

.search-form--polished input {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
}

.search-form--polished input:focus {
  outline: none;
}

.search-form--polished .primary-btn {
  min-height: 48px;
}

.section-head--stacked {
  display: block;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

.result-list--polished {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.result-item--polished {
  padding: 22px;
  border-radius: 18px;
}

.result-item--polished span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.empty-state {
  padding: clamp(28px, 4vw, 48px);
}

.empty-state--search {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 1024px) {
  .resource-layout,
  .resource-layout--wide {
    grid-template-columns: 1fr;
  }

  .resource-summary,
  .resource-card,
  .sticky-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-hero--resource h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .document-item--polished {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .document-item--polished em {
    grid-column: 2;
    justify-self: start;
  }

  .requisites-table--polished div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .search-form--polished {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .search-form--polished input,
  .search-form--polished .primary-btn {
    width: 100%;
  }
}

/* Mobile Width Containment QA 2026-07-12 */
.section,
.page-hero,
.resource-section,
.direction-overview,
.direction-services-section,
.direction-service-details,
.muted-section,
.trust-row,
.contact-band,
.request-route-section {
  width: 100%;
  max-width: 100%;
}

.section > *,
.page-hero > *,
.resource-layout,
.direction-copy,
.direction-aside,
.direction-detail-stack,
.direction-service-details .service-detail,
.direction-service-details .service-detail > *,
.direction-service-grid,
.direction-service-grid .service-panel,
.advantage-grid,
.advantage-item,
.result-item,
.document-item,
.contact-chips,
.trust-actions {
  min-width: 0;
  max-width: 100%;
}

.result-item strong,
.advantage-item h3,
.direction-service-grid .service-panel h3,
.direction-service-details .service-detail h2,
.direction-aside__list strong {
  display: block;
}

@media (max-width: 640px) {
  .section,
  .page-hero,
  .cta-band,
  .ops-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-band,
  .trust-row,
  .request-route-section,
  .direction-overview,
  .direction-services-section,
  .direction-service-details {
    overflow: clip;
  }

  .contact-chips,
  .trust-actions {
    width: 100%;
  }

  .contact-chips a,
  .contact-chips span,
  .trust-actions a,
  .trust-actions span {
    width: 100%;
    max-width: 100%;
  }

  .advantage-item {
    padding-left: 22px;
    padding-right: 22px;
  }

  .direction-service-details .service-detail {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Mobile Panel Width Lock 2026-07-12 */
@media (max-width: 640px) {
  .contact-chips,
  .trust-actions,
  .direction-aside,
  .direction-aside__list,
  .direction-list-panel,
  .direction-highlight,
  .direction-copy,
  .direction-detail-stack,
  .direction-service-grid,
  .advantage-grid,
  .resource-layout,
  .result-list--polished,
  .document-list--polished,
  .contact-list--polished,
  .requisites-table--polished {
    width: 100%;
    max-width: calc(100vw - 32px);
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-chips a,
  .contact-chips span,
  .trust-actions a,
  .trust-actions span,
  .direction-aside__list a,
  .direction-aside__list strong,
  .result-item strong,
  .advantage-item h3 {
    width: 100%;
    max-width: 100%;
  }
}

/* Mobile Grid Min-Content Fix 2026-07-12 */
@media (max-width: 640px) {
  .contact-chips,
  .trust-actions,
  .direction-aside__list,
  .document-list--polished,
  .result-list--polished,
  .contact-list--polished {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch;
  }

  .contact-chips > *,
  .trust-actions > *,
  .direction-aside__list > *,
  .document-list--polished > *,
  .result-list--polished > *,
  .contact-list--polished > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Mobile Inner Label Shrink Fix 2026-07-12 */
@media (max-width: 640px) {
  .direction-aside__list a,
  .result-item,
  .document-item,
  .contact-chips a,
  .contact-chips span,
  .trust-actions a,
  .trust-actions span {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: hidden;
  }

  .direction-aside__list strong,
  .result-item strong,
  .document-item strong,
  .contact-chips a,
  .contact-chips span,
  .trust-actions a,
  .trust-actions span {
    min-width: 0 !important;
    overflow: hidden;
  }
}



/* Text Overflow QA Guardrails 2026-07-12 */
.document-item,
.result-item,
.contact-chips > *,
.trust-actions > * {
  min-width: 0;
}

.document-item--polished {
  grid-template-columns: minmax(54px, auto) minmax(0, 1fr) max-content;
  column-gap: clamp(12px, 2vw, 22px);
}

.document-item--polished strong {
  align-self: center;
  padding-right: clamp(8px, 1vw, 14px);
}

.document-item--polished em {
  justify-self: end;
  max-width: 100%;
}

.contact-chips a,
.contact-chips span,
.trust-actions a,
.trust-actions span {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .document-item--polished {
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }

  .document-item--polished strong {
    grid-column: 2;
  }

  .document-item--polished em {
    grid-column: 2;
    justify-self: start;
  }
}


/* Direction Card Natural Headings 2026-07-12 */
#home-directions .direction-card h3,
#home-directions .five-grid .direction-card:first-child h3 {
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
  line-height: 1.08;
}

#home-directions .direction-card p,
#home-directions .five-grid .direction-card:first-child p {
  display: block;
  max-width: 100%;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: initial;
}

@media (min-width: 1241px) {
  #home-directions .direction-card {
    min-height: 330px;
    padding-left: clamp(26px, 2.4vw, 36px);
    padding-right: clamp(26px, 2.4vw, 36px);
  }

  #home-directions .five-grid .direction-card:first-child {
    min-height: 690px;
  }
}

@media (max-width: 1240px) {
  #home-directions .five-grid {
    max-width: min(760px, 100%);
  }
}

/* Visual System Refinement 2026-07-12
   Финальный слой намеренно переопределяет ранние экспериментальные правила,
   не меняя семантику и структуру Django-шаблонов. */
:root {
  --bg: #f4f7f6;
  --paper: #ffffff;
  --ink: #10181c;
  --graphite: #1d2a2f;
  --muted: #56676d;
  --line: #d8e2df;
  --soft-line: #e8efed;
  --accent: #0d756b;
  --accent-dark: #074b44;
  --accent-soft: #e4f2ee;
  --signal: #bc6738;
}

body { font-size: 16px; }
h1, h2, h3 { overflow-wrap: normal; }
.primary-btn, .secondary-btn { min-height: 46px; border-radius: 10px; }
.primary-btn { background: #0d756b; box-shadow: 0 12px 24px rgba(7, 75, 68, .15); }
.primary-btn:hover { background: #074b44; }
.secondary-btn { border-color: rgba(13, 117, 107, .25); }

/* Шапка: переход к меню начинается до того, как названия направлений сжимаются. */
@media (max-width: 1540px) and (min-width: 1241px) {
  .header-shell { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-panel {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(13, 117, 107, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 54px rgba(16, 24, 28, .1);
  }
  .header-panel.is-open { display: grid; }
  .main-nav { justify-content: flex-start; flex-wrap: wrap; overflow: visible; border-radius: 12px; }
  .utility-nav { display: inline-flex; flex-wrap: wrap; }
  .header-actions { justify-content: flex-start; flex-wrap: wrap; }
  .phone-link { display: inline-flex; }
}

/* Первый экран: текст всегда находится над декоративным полем. */
.technical-hero { min-height: min(720px, calc(100vh - 72px)); background: #f4f8f6; }
.technical-hero .hero-grid,
.technical-hero .hero-field { z-index: 0; pointer-events: none; }
.technical-hero .hero-shell { z-index: 2; }
.hero-content { transform: none; }
.hero-content h1 {
  position: relative;
  z-index: 2;
  color: #10181c;
  font-size: clamp(56px, 7vw, 108px);
  line-height: .94;
  letter-spacing: -.045em;
  text-shadow: none;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero-lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: #3e5259;
  font-size: clamp(18px, 1.42vw, 22px);
  font-weight: 560;
  line-height: 1.45;
}
.hero-actions.single-action { margin-top: 28px; }
.hero-actions.single-action .primary-btn { min-height: 50px; }
.hero-index { padding: 12px; gap: 4px; border-radius: 16px; }
.hero-index__intro { padding: 10px 12px 15px; border-bottom: 1px solid rgba(13, 117, 107, .16); }
.hero-index__intro span { display: block; color: var(--accent-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.hero-index__intro strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1.1; }
.hero-index__intro p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hero-index__row { min-height: 54px; border-radius: 10px; border-bottom: 0; }
.hero-index__row strong { white-space: normal !important; overflow: visible; text-overflow: clip; font-size: 16px; }
.hero-specialization { color: #395158; }

/* Главная: направление — короткая навигационная карточка, а не второй каталог. */
#home-directions .five-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
#home-directions .direction-card,
#home-directions .five-grid .direction-card:first-child {
  min-height: 246px;
  padding: 22px;
  border-radius: 14px;
}
#home-directions .direction-card h3 {
  white-space: normal !important;
  font-size: clamp(19px, 1.4vw, 24px);
  line-height: 1.12;
}

#home-directions .five-grid .direction-card:first-child h3 {
  font-size: clamp(28px, 3vw, 44px);
}
#home-directions .direction-card .card-link {
  justify-content: space-between;
  width: 100%;
  white-space: normal;
}
.proof-section .section-head { align-items: end; }
.proof-section .advantage-item { min-height: 260px; }
.proof-section .advantage-item h3 {
  white-space: normal !important;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(21px, 1.55vw, 26px);
}
.trust-row h2, .contact-band h2 { max-width: 15ch; }
.request-route { grid-template-columns: 1fr; gap: 8px; }
.request-route span { min-height: 54px; white-space: normal !important; }
.request-route span strong { display: inline-block; margin-right: 8px; }
.request-route-section { padding-top: 72px; padding-bottom: 72px; }

/* Направления: управление раскрытием видимо и доступно с клавиатуры. */
.direction-hero h1 { letter-spacing: -.035em; }
.direction-service-grid .service-panel h3,
.direction-service-details .service-detail h2,
.direction-aside__list strong {
  white-space: normal !important;
  overflow: visible;
  text-overflow: clip;
}
.service-panel__toggle {
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}
.service-panel__toggle::after { content: "↓"; margin-left: 7px; }
.service-card.is-open .service-panel__toggle::after { content: "↑"; }
.direction-service-grid .service-reveal { max-height: 0; }
.direction-service-grid .service-card.is-open .service-reveal,
.direction-service-grid .service-card:hover .service-reveal,
.direction-service-grid .service-card:focus-within .service-reveal { max-height: 460px; }

/* Вторичные страницы: информация группируется по её практическому назначению. */
.requisites-table__intro {
  margin: 0;
  padding: 18px 22px;
  color: var(--muted);
  background: #f0f7f4;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}
.documents-layout { grid-template-columns: minmax(230px, .32fr) minmax(0, 1fr); }
.document-groups { display: grid; gap: 30px; }
.document-group { display: grid; gap: 14px; }
.document-group__heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.document-group__heading .eyebrow { margin: 0 0 3px; }
.document-group__heading h2 { margin: 0; font-size: clamp(25px, 2.5vw, 36px); line-height: 1.06; }
.document-group__heading > span { color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.document-item__copy { display: grid; min-width: 0; gap: 5px; }
.document-item__copy strong { white-space: normal !important; overflow: visible; text-overflow: clip; }
.document-item__copy small { color: var(--muted); font-size: 13px; }
.privacy-policy { width: min(860px, 100%); margin-left: auto; margin-right: auto; }
.privacy-policy h2 { margin-top: 54px; font-size: clamp(26px, 3vw, 38px); }
.privacy-policy p { max-width: 74ch; color: #3f5056; font-size: 17px; line-height: 1.68; }
.privacy-policy h3 { margin: 28px 0 12px; color: var(--ink); font-size: 21px; line-height: 1.3; }
.privacy-policy .legal-document-meta { margin: 0 0 36px; padding: 16px 18px; color: var(--accent-dark); background: #edf7f3; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
.privacy-policy .legal-purpose { margin: 22px 0; padding: 22px 24px; background: #f8fbfa; border: 1px solid var(--line); border-radius: 10px; }
.privacy-policy .legal-purpose h3 { margin-top: 0; }
.privacy-policy .legal-purpose p:last-child { margin-bottom: 0; }
.error-actions { margin-top: 26px; }

@media (max-width: 1240px) {
  #home-directions .five-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  #home-directions .direction-card, #home-directions .five-grid .direction-card:first-child { min-height: 220px; }
  .documents-layout { grid-template-columns: 1fr; }
  .resource-summary { max-width: 560px; }
}

@media (max-width: 860px) {
  .technical-hero { min-height: auto; padding-top: 52px; padding-bottom: 44px; }
  .hero-content h1 { font-size: clamp(46px, 14vw, 62px); line-height: .96; }
  .hero-lead { max-width: 31ch; font-size: 18px; }
  .hero-actions.single-action { display: grid; grid-template-columns: 1fr; }
  .hero-actions.single-action .primary-btn, .hero-actions.single-action .secondary-btn { width: 100%; }
  .hero-index { margin-top: 28px; }
  .hero-index__row { min-height: 50px; }
  .hero-watermark { opacity: .035; }
  .proof-section .section-head { display: grid; grid-template-columns: 1fr; }
  .trust-row h2, .contact-band h2 { max-width: 100%; }
  .direction-service-grid .service-reveal { max-height: none; }
  .service-panel__toggle { display: none; }
  .document-group__heading { grid-template-columns: 1fr; gap: 5px; }
  .document-group__heading > span { white-space: normal; }
  .privacy-policy { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 640px) {
  .site-header { padding-top: 8px; padding-bottom: 8px; }
  .brand-copy strong { font-size: 16px; }
  .technical-hero .hero-grid { opacity: .3; }
  .hero-content h1 { color: #10181c !important; opacity: 1 !important; }
  .hero-lead, .hero-specialization { color: #40545a !important; opacity: 1 !important; }
  .hero-index__intro { padding: 8px 8px 13px; }
  #home-directions .five-grid { grid-template-columns: 1fr; }
  #home-directions .direction-card, #home-directions .five-grid .direction-card:first-child { min-height: 0; padding: 22px; }
  .proof-section .advantage-grid { grid-template-columns: 1fr; }
  .proof-section .advantage-item { min-height: 0; }
  .request-route-section { padding-top: 56px; padding-bottom: 56px; }
  .request-route span { padding: 12px 14px; }
  .document-item--polished { grid-template-columns: 46px minmax(0, 1fr) !important; }
  .document-item--polished em { grid-column: 2; justify-self: start; }
  .document-format { min-width: 46px; }
  .requisites-table__intro { padding: 16px; }
}

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

/* Сохранены пользовательские корректировки естественного переноса в карточках. */
.proof-section .advantage-grid {
  max-width: 1440px;
  gap: clamp(16px, 1.6vw, 22px);
}

.proof-section .advantage-item {
  padding-left: clamp(28px, 2.2vw, 38px);
  padding-right: clamp(28px, 2.2vw, 38px);
}

.proof-section .advantage-item h3 {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
  line-height: 1.12;
  font-size: clamp(20px, 1.45vw, 26px);
}

/* Компактный индекс направлений без служебной аннотации. */
@media (min-width: 1241px) {
  .hero-shell {
    grid-template-columns: minmax(0, .78fr) minmax(640px, 1.12fr);
    max-width: 1440px;
  }
}

.hero-index__row {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 62px;
}

.hero-index__row span,
.hero-index__row strong {
  color: var(--accent-dark);
  font-size: clamp(20px, 1.45vw, 24px);
  font-weight: 850;
  line-height: 1;
}

.hero-index__row strong {
  white-space: nowrap !important;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 860px) {
  .hero-index__row {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 58px;
  }

  .hero-index__row span,
  .hero-index__row strong {
    font-size: 20px;
  }
}

/* Финальные параметры компактной модальной формы. */
.lead-form .file-field[hidden] {
  display: none;
}

.lead-modal {
  z-index: 1000;
  padding: 16px;
}

.lead-modal__panel {
  width: min(600px, 100%);
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 20px;
}

.lead-modal__panel h2 {
  margin: 0 42px 16px 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: .95;
}

.lead-modal .lead-form {
  gap: 10px;
}

.lead-modal .lead-form__field,
.lead-modal .lead-form__step {
  padding-left: 0;
}

.lead-modal .lead-form__step::before {
  display: none;
}

.lead-modal .lead-form input:not([type="checkbox"]):not([type="file"]),
.lead-modal .lead-form textarea {
  min-height: 50px;
  padding: 12px 16px;
  font-size: 17px;
}

.lead-modal .lead-form textarea {
  min-height: 92px;
  resize: vertical;
}

.lead-modal .file-toggle {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 16px;
}

.lead-modal .file-field {
  gap: 5px;
  font-size: 14px;
}

.lead-modal .file-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.lead-modal .file-field input[type="file"] {
  min-height: 46px;
  padding: 8px 12px;
  font-size: 14px;
}

.lead-modal .consent {
  grid-template-columns: 20px 1fr;
  gap: 9px;
  font-size: 14px;
  line-height: 1.35;
}

.lead-modal .consent input {
  width: 20px;
  height: 20px;
  margin-top: 0;
}

.lead-modal .primary-btn {
  min-height: 50px;
  padding: 12px 20px;
}

@media (max-width: 620px) {
  .lead-modal {
    padding: 8px;
  }

  .lead-modal__panel {
    max-height: calc(100dvh - 16px);
    padding: 18px 16px;
    border-radius: 16px;
  }

  .lead-modal__panel h2 {
    margin-bottom: 14px;
    font-size: clamp(30px, 11vw, 42px);
  }
}

/* Плавное раскрытие меню в компактной шапке. */
@media (max-width: 1540px) {
  .header-panel {
    display: grid;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(.99);
    transform-origin: top center;
    border-color: transparent;
    transition:
      max-height .38s cubic-bezier(.4, 0, .2, 1),
      padding .3s cubic-bezier(.4, 0, .2, 1),
      opacity .2s ease,
      transform .32s cubic-bezier(.22, 1, .36, 1),
      border-color .2s ease,
      visibility 0s linear .38s;
  }

  .header-panel.is-open {
    max-height: var(--header-menu-height, 900px);
    padding-top: 12px;
    padding-bottom: 12px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    border-color: rgba(13, 117, 107, .13);
    transition-delay: 0s;
  }

  .nav-toggle {
    transition:
      color .2s ease,
      border-color .2s ease,
      background-color .2s ease,
      box-shadow .2s ease;
  }

  .nav-toggle span {
    transition:
      transform .28s cubic-bezier(.22, 1, .36, 1),
      opacity .16s ease;
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(13, 117, 107, .3);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(13, 117, 107, .05);
  }
}

@media (max-width: 640px) {
  .header-panel.is-open {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Лаконичные навигационные карточки направлений. */
#home-directions .section-head--directions {
  display: block;
  max-width: 1360px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

#home-directions .five-grid {
  align-items: stretch;
}

#home-directions .direction-card,
#home-directions .five-grid .direction-card:first-child {
  min-height: 210px;
  justify-content: space-between;
}

#home-directions .five-grid .direction-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

#home-directions .direction-card h3,
#home-directions .five-grid .direction-card:first-child h3 {
  max-width: 100%;
  margin: auto 0 0;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.12;
}

#home-directions .direction-symbol {
  width: 54px;
  height: 54px;
  min-width: 54px;
  margin: 0 0 30px;
  border: 1px solid rgba(13, 117, 107, .2);
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(228, 242, 238, .42);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .44);
}

#home-directions .direction-symbol svg {
  width: 32px;
  height: 32px;
}

#home-directions .direction-symbol svg path,
#home-directions .direction-symbol svg circle {
  stroke: currentColor;
  stroke-width: 1.65;
}

#home-directions .direction-symbol svg .icon-accent {
  stroke: var(--signal);
}

#home-directions .five-grid .direction-card:first-child .direction-symbol {
  color: #9ce1d6;
  border-color: rgba(156, 225, 214, .34);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .025);
}

#home-directions .five-grid .direction-card:first-child .direction-symbol svg .icon-accent {
  stroke: #f0a36f;
}

@media (max-width: 1240px) {
  #home-directions .direction-card,
  #home-directions .five-grid .direction-card:first-child {
    min-height: 190px;
  }

  #home-directions .five-grid .direction-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  #home-directions .direction-card,
  #home-directions .five-grid .direction-card:first-child {
    min-height: 108px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 20px;
  }

  #home-directions .five-grid .direction-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  #home-directions .direction-symbol {
    margin: 0;
  }

  #home-directions .direction-card h3,
  #home-directions .five-grid .direction-card:first-child h3 {
    margin: 0;
    font-size: 20px;
  }
}

@media (min-width: 641px) {
  #home-directions .five-grid .direction-card:first-child h3 {
    font-size: clamp(28px, 3vw, 44px);
  }
}

/* Диагностические изображения и единая система тонких пиктограмм. */
#home-directions .direction-card {
  position: relative;
  isolation: isolate;
}

#home-directions .direction-diagnostic {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  color: var(--accent-dark);
  opacity: .13;
  pointer-events: none;
  transition: opacity .35s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

#home-directions .direction-diagnostic svg {
  display: block;
  width: 100%;
  height: 100%;
}

#home-directions .direction-diagnostic path,
#home-directions .direction-diagnostic circle,
#home-directions .direction-diagnostic ellipse {
  vector-effect: non-scaling-stroke;
}

#home-directions .diagnostic-grid,
#home-directions .diagnostic-ring,
#home-directions .diagnostic-crosshair,
#home-directions .diagnostic-protocol,
#home-directions .diagnostic-scale,
#home-directions .diagnostic-secondary,
#home-directions .diagnostic-main,
#home-directions .diagnostic-signature {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#home-directions .diagnostic-grid {
  stroke-width: .75;
  opacity: .28;
}

#home-directions .diagnostic-ring,
#home-directions .diagnostic-crosshair,
#home-directions .diagnostic-protocol {
  stroke-width: 1.15;
  opacity: .62;
}

#home-directions .diagnostic-ring--inner,
#home-directions .diagnostic-scale,
#home-directions .diagnostic-secondary {
  stroke-width: 1;
  opacity: .58;
}

#home-directions .diagnostic-main,
#home-directions .diagnostic-signature {
  stroke: var(--signal);
  stroke-width: 1.75;
  opacity: .9;
}

#home-directions .diagnostic-cool {
  fill: var(--accent);
  stroke: var(--accent-dark);
  stroke-width: .8;
  opacity: .16;
}

#home-directions .diagnostic-heat {
  fill: var(--signal);
  stroke: var(--signal);
  stroke-width: .8;
  opacity: .18;
}

#home-directions .diagnostic-hotspot {
  fill: #d89366;
  stroke: var(--signal);
  stroke-width: .8;
  opacity: .28;
}

#home-directions .direction-symbol,
#home-directions .direction-card h3 {
  position: relative;
  z-index: 2;
}

#home-directions .five-grid .direction-card:first-child .direction-diagnostic {
  color: #9ce1d6;
  opacity: .22;
}

#home-directions .five-grid .direction-card:first-child .diagnostic-main,
#home-directions .five-grid .direction-card:first-child .diagnostic-signature {
  stroke: #f0a36f;
}

#home-directions .direction-card:hover .direction-diagnostic,
#home-directions .direction-card:focus-visible .direction-diagnostic {
  opacity: .2;
  transform: scale(1.025);
}

#home-directions .five-grid .direction-card:first-child:hover .direction-diagnostic,
#home-directions .five-grid .direction-card:first-child:focus-visible .direction-diagnostic {
  opacity: .29;
}

.advantage-icon {
  width: 54px;
  height: 54px;
  border-color: rgba(13, 117, 107, .2);
  border-radius: 50%;
  background: rgba(228, 242, 238, .42);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .48);
}

.advantage-icon svg {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-icon svg path,
.advantage-icon svg circle,
.advantage-icon svg rect {
  stroke: currentColor;
  stroke-width: 1.65;
}

.advantage-icon svg .icon-accent {
  stroke: var(--signal);
}

.ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-close {
  font-size: 0;
}

.search-link::before {
  border-width: 1.6px;
}

.search-link::after,
.nav-toggle span {
  height: 1.6px;
}

@media (max-width: 640px) {
  #home-directions .direction-diagnostic {
    left: 38%;
    opacity: .08;
  }

  #home-directions .five-grid .direction-card:first-child .direction-diagnostic {
    opacity: .13;
  }

  .advantage-icon {
    width: 48px;
    height: 48px;
  }

  .advantage-icon svg {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
  }
}

/* Увеличенный заголовок первого экрана без вводных подписей. */
.technical-hero .hero-content h1 {
  font-size: clamp(68px, 7.8vw, 132px);
  line-height: .9;
  letter-spacing: -.052em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.technical-hero .hero-actions.single-action {
  margin-top: clamp(30px, 3.2vw, 44px);
}

@media (max-width: 860px) {
  .technical-hero .hero-content h1 {
    font-size: clamp(58px, 17vw, 74px);
    line-height: .92;
  }
}

/* Реестр подтверждений: компетенции показаны как проверяемые записи. */
.proof-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(13, 117, 107, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 117, 107, .032) 1px, transparent 1px),
    #eef5f2;
  background-size: 48px 48px;
}

.proof-section::after {
  position: absolute;
  right: -130px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(13, 117, 107, .1);
  border-radius: 50%;
  box-shadow: inset 0 0 0 72px rgba(13, 117, 107, .018);
  content: "";
  pointer-events: none;
}

.proof-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.55fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: start;
}

.proof-intro {
  position: sticky;
  top: 136px;
}

.proof-intro h2 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(42px, 4vw, 64px);
  line-height: .96;
  letter-spacing: -.045em;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: balance;
}

.proof-intro__text {
  max-width: 42ch;
  margin: 26px 0 0;
  color: #43565b;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.58;
}

.proof-all-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  padding-bottom: 5px;
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(13, 117, 107, .34);
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
  transition: gap .2s ease, border-color .2s ease;
}

.proof-all-link svg,
.proof-record__action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-all-link:hover,
.proof-all-link:focus-visible {
  gap: 17px;
  border-color: currentColor;
}

.proof-registry {
  overflow: hidden;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(13, 117, 107, .16);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(25, 49, 52, .08);
  backdrop-filter: blur(14px);
}

.proof-record {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(136px, .34fr);
  gap: clamp(18px, 2.2vw, 32px);
  align-items: center;
  min-height: 174px;
  padding: 28px clamp(24px, 3vw, 42px);
  color: var(--ink);
  border-bottom: 1px solid rgba(13, 117, 107, .13);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.proof-record:last-child { border-bottom: 0; }

.proof-record::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--signal);
  content: "";
  opacity: 0;
  transform: scaleY(.25);
  transition: opacity .2s ease, transform .2s ease;
}

.proof-record:hover,
.proof-record:focus-visible {
  color: var(--ink);
  background: rgba(225, 242, 237, .74);
}

.proof-record:hover::before,
.proof-record:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.proof-record__icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--accent-dark);
  background: rgba(236, 247, 244, .86);
  border: 1px solid rgba(13, 117, 107, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .56);
}

.proof-record__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-record__icon .icon-accent { stroke: var(--signal); }

.proof-record__copy {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  gap: 8px;
}

.proof-record__copy strong {
  max-width: 22ch;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.proof-record__description {
  max-width: 58ch;
  color: #526267;
  font-size: 15px;
  line-height: 1.48;
}

.proof-record__action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  transition: transform .2s ease;
}

.proof-record:hover .proof-record__action,
.proof-record:focus-visible .proof-record__action {
  transform: translateX(5px);
}

.proof-record__document {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 86px;
  width: 250px;
  color: var(--accent-dark);
  opacity: .055;
  transform: translateY(-50%) rotate(-2deg);
  pointer-events: none;
}

.proof-document__sheet,
.proof-document__line,
.proof-document__seal {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-document__sheet { stroke-width: 1.5; }
.proof-document__line { stroke-width: 2; }
.proof-document__seal { stroke-width: 2.4; }

.document-group,
.document-item--polished {
  scroll-margin-top: 132px;
}

@media (max-width: 1120px) {
  .proof-layout { grid-template-columns: 1fr; gap: 38px; }
  .proof-intro { position: static; }
  .proof-intro h2 { max-width: 16ch; }
  .proof-intro__text { max-width: 58ch; }
}

@media (max-width: 760px) {
  .proof-section::after { width: 340px; height: 340px; }

  .proof-record {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 24px 20px;
  }

  .proof-record__icon {
    width: 48px;
    height: 48px;
  }

  .proof-record__icon svg { width: 28px; height: 28px; }
  .proof-record__copy strong { max-width: none; }

  .proof-record__action {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .proof-record__document {
    right: -28px;
    width: 210px;
    opacity: .038;
  }
}

@media (max-width: 480px) {
  .proof-intro h2 { font-size: clamp(38px, 11.5vw, 52px); }
  .proof-intro__text { margin-top: 20px; }
  .proof-all-link { margin-top: 24px; }
  .proof-registry { margin-right: -8px; margin-left: -8px; border-radius: 14px; }
  .proof-record__description { font-size: 14px; }
}

/* Главная: маршрут работы и подтверждение компетентности без декоративных карточек. */
.process-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 117, 107, .035) 1px, transparent 1px),
    linear-gradient(rgba(13, 117, 107, .035) 1px, transparent 1px),
    #fbfdfc;
  background-size: 48px 48px;
}

.process-layout,
.competence-strip {
  max-width: 1360px;
  margin-right: auto;
  margin-left: auto;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 128px);
  align-items: start;
}

.process-layout h2 {
  max-width: 9ch;
  margin-bottom: 0;
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: .96;
  letter-spacing: -.045em;
}

.process-ledger {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(13, 117, 107, .28);
  list-style: none;
}

.process-ledger::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 3px;
  background: var(--signal);
  content: "";
}

.process-ledger li {
  display: grid;
  grid-template-columns: 54px minmax(180px, .68fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 42px);
  align-items: baseline;
  min-height: 92px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(13, 117, 107, .18);
}

.process-ledger__number {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
}

.process-ledger h3 {
  margin: 0;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.process-ledger p {
  max-width: 40ch;
  margin: 0;
  color: #5c6d73;
  font-size: 15px;
  line-height: 1.5;
}

.competence-section {
  padding-top: 22px;
  padding-bottom: 22px;
  background: #fbfdfc;
}

.competence-strip {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(300px, .9fr) minmax(250px, .5fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: start;
  padding: clamp(34px, 4vw, 58px) 0;
  border-top: 1px solid rgba(13, 117, 107, .28);
  border-bottom: 1px solid rgba(13, 117, 107, .28);
}

.competence-strip__label {
  margin: 3px 0 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.competence-strip h2 {
  margin: 0;
  font-size: clamp(34px, 3.5vw, 56px);
  line-height: .98;
  letter-spacing: -.042em;
}

.competence-strip__action > p {
  margin: 0;
  color: #526267;
  font-size: 16px;
  line-height: 1.52;
}

.competence-strip__action a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(13, 117, 107, .36);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 850;
  transition: gap .2s ease, border-color .2s ease;
}

.competence-strip__action a:hover,
.competence-strip__action a:focus-visible {
  gap: 15px;
  border-color: currentColor;
}

.competence-strip__action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (max-width: 980px) {
  .process-layout { grid-template-columns: 1fr; gap: 36px; }
  .process-layout h2 { max-width: 12ch; }
  .competence-strip { grid-template-columns: minmax(160px, .34fr) minmax(0, 1fr); }
  .competence-strip__action { grid-column: 2; }
}

@media (max-width: 640px) {
  .process-section { padding-top: 56px; padding-bottom: 56px; }
  .process-layout { gap: 30px; }
  .process-layout h2 { max-width: 11ch; font-size: clamp(38px, 11vw, 50px); }

  .process-ledger li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 16px;
    min-height: 0;
    padding: 21px 0;
  }

  .process-ledger p { grid-column: 2; font-size: 15px; }

  .competence-section { padding-top: 12px; padding-bottom: 12px; }
  .competence-strip { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .competence-strip__label { margin: 0; }
  .competence-strip h2 { font-size: clamp(34px, 10vw, 46px); }
  .competence-strip__action { grid-column: auto; }
}

/* Главная: круговой маршрут работы. */
.process-layout { grid-template-columns: minmax(210px, .62fr) minmax(300px, .92fr) minmax(290px, .76fr); gap: clamp(30px, 4vw, 72px); align-items: center; }
.process-layout h2 { max-width: 8ch; font-size: clamp(42px, 4vw, 62px); }
.process-intro__lead { max-width: 29ch; margin: 24px 0 0; color: #58696e; font-size: 16px; line-height: 1.55; }
.process-orbit { display: grid; min-width: 0; place-items: center; }
.process-orbit__dial { position: relative; width: min(100%, 410px); aspect-ratio: 1; }
.process-orbit__dial::before, .process-orbit__dial::after { position: absolute; border: 1px solid rgba(13, 117, 107, .12); border-radius: 50%; content: ""; }
.process-orbit__dial::before { inset: 17%; }
.process-orbit__dial::after { inset: 8%; }
.process-orbit__track { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; fill: none; stroke: var(--accent-dark); stroke-linecap: round; stroke-width: 1.6; }
.process-orbit__track path { stroke-dasharray: 370 94; }
.process-orbit__pulse { position: absolute; inset: 8%; animation: process-orbit-rotate 12s linear infinite; }
.process-orbit__pulse::before { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 7px rgba(201, 93, 43, .13), 0 0 17px rgba(201, 93, 43, .5); content: ""; transform: translate(-50%, -50%); }
.process-orbit__pulse span { position: absolute; top: 0; left: 50%; width: 25px; height: 25px; border: 1px solid rgba(201, 93, 43, .38); border-radius: 50%; animation: process-orbit-ping 2.2s ease-out infinite; transform: translate(-50%, -50%); }
.process-orbit__node { position: absolute; z-index: 1; display: grid; min-width: 68px; justify-items: center; gap: 5px; color: var(--accent-dark); text-align: center; }
.process-orbit__node b { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(13, 117, 107, .3); border-radius: 50%; background: #fbfdfc; color: var(--accent-dark); font-size: 12px; letter-spacing: .09em; }
.process-orbit__node i { font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.process-orbit__node--one { top: 0; left: 50%; transform: translateX(-50%); }
.process-orbit__node--two { top: 50%; right: 0; transform: translateY(-50%); }
.process-orbit__node--three { bottom: 0; left: 50%; transform: translateX(-50%); }
.process-orbit__node--four { top: 50%; left: 0; transform: translateY(-50%); }
.process-orbit__core { position: absolute; top: 50%; left: 50%; display: grid; width: 31%; aspect-ratio: 1; place-items: center; align-content: center; gap: 8px; border: 1px solid rgba(13, 117, 107, .22); border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 18px 34px rgba(27, 70, 63, .09); transform: translate(-50%, -50%); }
.process-orbit__core svg { width: 42%; fill: none; stroke: var(--accent-dark); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.process-orbit__core small { font-size: clamp(7px, .68vw, 9px); font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.process-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.process-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 15px; align-items: start; min-height: 84px; padding: 17px 0; border-bottom: 1px solid rgba(13, 117, 107, .18); }
.process-steps li:first-child { border-top: 1px solid rgba(13, 117, 107, .18); }
.process-steps__number { color: var(--accent-dark); font-size: 12px; font-weight: 900; letter-spacing: .1em; line-height: 1.5; }
.process-steps h3 { margin: 0; font-size: clamp(20px, 1.42vw, 24px); line-height: 1.12; letter-spacing: -.02em; }
.process-steps p { max-width: 34ch; margin: 6px 0 0; color: #5c6d73; font-size: 15px; line-height: 1.5; }
@keyframes process-orbit-rotate { to { transform: rotate(360deg); } }
@keyframes process-orbit-ping { 0% { opacity: .8; transform: translate(-50%, -50%) scale(.65); } 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); } }
@media (max-width: 980px) { .process-layout { grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr); gap: 42px; } .process-orbit, .process-steps { grid-row: 2; } }
@media (max-width: 640px) { .process-layout { grid-template-columns: 1fr; gap: 32px; } .process-intro__lead { max-width: 34ch; font-size: 15px; } .process-orbit { grid-row: auto; width: min(100%, 360px); margin: 0 auto; } .process-steps { grid-row: auto; } .process-steps li { min-height: 0; padding: 21px 0; } }
@media (prefers-reduced-motion: reduce) { .process-orbit__pulse, .process-orbit__pulse span { animation: none; } }

/* Маршрут работы: заголовок становится общей верхней строкой схемы. */
@media (min-width: 981px) {
  .process-layout {
    grid-template-columns: minmax(330px, .92fr) minmax(320px, .72fr);
    row-gap: clamp(30px, 3vw, 50px);
  }

  .process-intro { grid-column: 1 / -1; }
  .process-layout h2 { max-width: none; white-space: nowrap; }
  .process-intro__lead { max-width: 48ch; }
  .process-orbit, .process-steps { grid-row: 2; }
}

/* Mobile containment pass: compact hierarchy without clipped headings. */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header,
  .site-footer,
  main,
  .section,
  .page-hero,
  .technical-hero,
  .direction-hero,
  .ops-cta,
  .proof-section {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Header: the brand stays compact, the expanded navigation never exceeds the viewport. */
  .site-header { padding: 7px 12px; }
  .header-shell { min-height: 54px; gap: 10px; }
  .brand { min-width: 0; overflow: hidden; }
  .brand-logo-frame { width: 40px; height: 40px; border-radius: 9px; }
  .brand-logo,
  .brand-logo--full,
  .brand-logo--mark { width: 34px; height: 34px; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { font-size: 15px; letter-spacing: .025em; white-space: nowrap; }
  .brand-copy span { display: none; }
  .nav-toggle { width: 40px; min-width: 40px; height: 40px; }

  .header-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 9px;
    box-sizing: border-box;
  }

  .main-nav,
  .utility-nav,
  .header-actions { min-width: 0; max-width: 100%; }

  .main-nav a {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .utility-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .utility-nav a {
    min-width: 0;
    padding-right: 4px;
    padding-left: 4px;
    justify-content: center;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .header-actions { grid-template-columns: minmax(0, 1fr) auto auto; }
  .phone-link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .header-cta { min-width: 0; padding-right: 11px; padding-left: 11px; font-size: 14px; white-space: nowrap; }

  /* Footer: stacked identity and a two-column link grid eliminate the former 463px scroll width. */
  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 20px 30px;
    overflow: clip;
  }

  .site-footer > div,
  .site-footer nav { min-width: 0; max-width: 100%; }
  .footer-logo { width: 52px; height: 52px; }
  .site-footer p { max-width: 34ch; margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    align-items: start;
  }
  .site-footer nav a { min-width: 0; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }

  /* Decorative fields are useful on desktop but are the source of horizontal overflow on a phone. */
  .technical-hero,
  .direction-hero,
  .page-hero--resource,
  .ops-cta { overflow: clip; }
  .technical-hero .hero-field,
  .direction-hero__field,
  .direction-hero::after,
  .page-hero--resource::after,
  .ops-cta::after { display: none; }

  .hero-shell,
  .hero-content,
  .hero-index,
  .direction-hero > *,
  .page-hero > * { min-width: 0; max-width: 100%; }
  .hero-content h1 {
    max-width: 100%;
    font-size: 52px;
    line-height: .95;
    white-space: nowrap;
  }
  .hero-index { padding: 6px; }
  .hero-index__row { grid-template-columns: 34px minmax(0, 1fr); min-height: 48px; gap: 10px; padding: 0 8px; }
  .hero-index__row span,
  .hero-index__row strong { font-size: 14px; line-height: 1; white-space: nowrap !important; }

  .page-hero h1,
  .direction-hero h1 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.05;
    white-space: nowrap;
  }
  .page-hero > p:not(.eyebrow),
  .direction-hero > p:not(.eyebrow) { font-size: 15px; }

  /* Legal pages contain unusually long formal titles: keep their hierarchy readable and on one line. */
  .legal-hero h1 { font-size: 13px; font-weight: 900; line-height: 1.15; white-space: nowrap; }
  .legal-copy h2 { font-size: 22px; line-height: 1.2; white-space: normal; }
  .legal-copy h3 { font-size: 18px; white-space: normal; }
  .legal-copy p { font-size: 15px; line-height: 1.62; }
  .privacy-policy .legal-purpose { padding: 18px 16px; }

  /* Home sections: use the available width instead of a constrained editorial column. */
  .process-layout { grid-template-columns: 1fr; gap: 28px; }
  .process-intro { width: 100%; min-width: 0; }
  .process-layout h2 { max-width: none; font-size: 26px; line-height: 1.05; white-space: nowrap; }
  .process-orbit { width: min(100%, 300px); }
  .process-steps h3 { font-size: 16px; white-space: nowrap; }

  .proof-layout { grid-template-columns: 1fr; gap: 30px; }
  .proof-intro { position: static; min-width: 0; }
  .proof-intro h2 { max-width: none; font-size: 32px; line-height: 1; white-space: nowrap; }
  .proof-registry { width: 100%; margin-right: 0; margin-left: 0; }
  .proof-record { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; padding: 20px 16px; }
  .proof-record__icon { width: 42px; height: 42px; }
  .proof-record__icon svg { width: 25px; height: 25px; }
  .proof-record__copy strong { max-width: none; font-size: 15px; line-height: 1.12; white-space: nowrap; }
  .proof-record__description { font-size: 13px; }
  .proof-record__action { grid-column: 2; font-size: 12px; }
  .proof-record__document { display: none; }

  /* Cards and service panels: compact, stable title sizes instead of ellipsis. */
  .direction-card h3,
  .direction-service-grid .service-panel h3,
  .direction-service-details .service-detail h2,
  .direction-aside h2,
  .direction-details-head h2,
  .ops-cta h2,
  .document-group__heading h2 {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap !important;
    word-break: normal;
    hyphens: none;
  }
  .direction-card h3,
  .direction-service-grid .service-panel h3 { font-size: 15px; line-height: 1.15; }
  .direction-service-details .service-detail h2,
  .direction-aside h2,
  .direction-details-head h2 { font-size: 15px; line-height: 1.18; }
  .ops-cta h2 { font-size: 24px; line-height: 1.05; }
  .document-group__heading h2 { font-size: 16px; line-height: 1.15; }
  .direction-service-grid .service-panel,
  .direction-card { min-width: 0; overflow: hidden; }

  /* Documents and contact data may be naturally long: they flow inside the card instead of leaving it. */
  .document-item,
  .document-item--polished {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
  }
  .document-item__copy { min-width: 0; }
  .document-item__copy strong { font-size: 14px; line-height: 1.32; overflow-wrap: anywhere; white-space: normal !important; }
  .document-item--polished em { grid-column: 2; justify-self: start; }
  .document-format { min-width: 44px; }
  .contact-list--polished strong { overflow-wrap: anywhere; white-space: normal; }
}

/* Narrow-phone title calibration: long Russian names stay on one line without clipping. */
@media (max-width: 640px) {
  .technical-hero .hero-content h1 {
    font-size: 45px !important;
    white-space: nowrap;
  }

  .direction-hero h1 { font-size: 24px; }
  .direction-copy h2 {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .direction-service-grid .service-panel h3,
  .direction-service-details .service-detail h2 { font-size: 12px; line-height: 1.2; }
}

@media (max-width: 640px) {
  .proof-section::after { display: none; }
  .direction-copy h2 { font-size: 13px; }
}

/* Desktop directions grid: the fifth direction completes the lower row. */
@media (min-width: 1241px) {
  #home-directions .five-grid .direction-card--5 {
    grid-column: 3 / -1;
  }
}

/* The electrical-laboratory diagram is contained and centred in its wide desktop card. */
@media (min-width: 1241px) {
  #home-directions .five-grid .direction-card--5 .direction-diagnostic {
    display: grid;
    place-items: center;
  }

  #home-directions .five-grid .direction-card--5 .direction-diagnostic svg {
    width: 78%;
    height: 86%;
  }
}

/* Extend the electrical trace to the edges without scaling the central diagram. */
@media (min-width: 1241px) {
  #home-directions .five-grid .direction-card--5 .direction-diagnostic::before,
  #home-directions .five-grid .direction-card--5 .direction-diagnostic::after {
    position: absolute;
    z-index: -1;
    top: 66.6%;
    height: 1px;
    background: rgba(201, 93, 43, .42);
    content: "";
  }

  #home-directions .five-grid .direction-card--5 .direction-diagnostic::before {
    left: 0;
    width: calc(50% - 135px);
  }

  #home-directions .five-grid .direction-card--5 .direction-diagnostic::after {
    right: 0;
    width: calc(50% - 135px);
  }
}

@media (min-width: 1241px) {
  #home-directions .five-grid .direction-card--5 .direction-diagnostic::before,
  #home-directions .five-grid .direction-card--5 .direction-diagnostic::after { z-index: 0; }

  #home-directions .five-grid .direction-card--5 .direction-diagnostic svg {
    position: relative;
    z-index: 1;
  }
}

/* Hero: the technical scale shares the CTA's left edge and ends at the secondary action. */
@media (min-width: 861px) {
  .technical-hero .hero-measure {
    width: min(411px, 100%);
  }
}

/* Launch QA: long Russian names wrap instead of shrinking or clipping. */
.hero-index__row strong,
.direction-service-grid .service-panel h3,
.direction-service-details .service-detail h2 {
  white-space: normal !important;
  text-wrap: balance;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 640px) {
  .direction-service-grid .service-panel h3 {
    font-size: 16px;
    line-height: 1.22;
  }

  .direction-service-details .service-detail h2 {
    max-width: none;
    font-size: 18px;
    line-height: 1.22;
  }
}

/* Restore the standard desktop header. Compact navigation starts only where the toggle exists. */
@media (min-width: 1541px) {
  .header-panel {
    display: grid;
    max-height: none;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border-color: transparent;
  }
}

/* Service details: titles and text share one card instead of competing for a narrow right column. */
@media (min-width: 861px) {
  .direction-service-details {
    display: block;
    max-width: 1360px;
    background: transparent;
  }

  .direction-details-head {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
    gap: clamp(28px, 6vw, 96px);
    align-items: end;
    margin-bottom: clamp(32px, 4vw, 54px);
  }

  .direction-details-head h2 {
    max-width: 19ch;
    margin: 0;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1.05;
  }

  .direction-details-head p {
    max-width: 42ch;
    margin: 0;
    font-size: 17px;
  }

  .direction-detail-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .direction-service-details .service-detail {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    gap: 22px;
    padding: clamp(28px, 3vw, 42px);
    border-radius: 14px;
  }

  .direction-service-details .service-detail h2 {
    max-width: 25ch;
    font-size: clamp(24px, 1.8vw, 31px);
    line-height: 1.1;
  }

  .direction-service-details .service-detail p {
    max-width: none;
    margin: 0;
    font-size: 17px;
    line-height: 1.58;
  }
}

/* A single normal header composition for every desktop width. */
@media (min-width: 1541px) {
  .header-shell { grid-template-columns: auto minmax(0, 1fr); }
  .nav-toggle { display: none; }

  .header-panel {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: clamp(8px, 1vw, 14px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
  }
}

/* A single operational marker links directions to the next section. */
.technical-hero .node { display: none; }

.directions-transition {
  position: relative;
  display: grid;
  height: 46px;
  place-items: center;
  background: var(--bg);
}

.directions-transition::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  background: rgba(13, 117, 107, .22);
  content: "";
}

.directions-transition__marker {
  width: 11px;
  height: 11px;
  border: 2px solid var(--signal);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 0 0 0 5px rgba(201, 93, 43, .08);
  transform: rotate(45deg);
  animation: pulse 3.8s ease-in-out infinite;
}

/* Keep the proof heading inside its column through the intermediate desktop range. */
@media (min-width: 861px) {
  .proof-intro h2 {
    font-size: clamp(46px, 3.65vw, 60px);
  }
}

/* Footer: calm left-aligned navigation and natural word wrapping. */
.site-footer {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  align-items: start;
}

.site-footer p,
.site-footer nav a {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  align-items: start;
  justify-items: start;
  justify-content: start;
  text-align: left;
}

.site-footer nav a {
  min-width: 0;
  text-align: left;
}

@media (max-width: 640px) {
  .site-footer nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .site-footer { grid-template-columns: 1fr; }
}

/* Direction pages: preserve whole words and give editorial copy enough breathing room. */
.direction-hero h1,
.direction-copy h2,
.direction-service-grid .service-panel h3,
.direction-service-details .service-detail h2,
.direction-details-head h2 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 861px) {
  .direction-details-head h2 {
    max-width: none;
    font-size: clamp(32px, 2.35vw, 38px);
    line-height: 1.08;
  }

  .direction-hero--ekzamenatsionnyy-tsentr ~ .direction-overview .direction-copy__text:first-of-type p:first-child {
    text-align: justify;
    text-align-last: left;
  }

  .direction-hero--ekzamenatsionnyy-tsentr ~ .direction-overview .direction-copy__text:first-of-type p + p {
    text-align: left;
  }

  .direction-hero--ekzamenatsionnyy-tsentr ~ .direction-overview .direction-highlight + h2 {
    margin-top: clamp(78px, 7vw, 112px);
  }
}

@media (min-width: 1100px) {
  .direction-details-head h2 { white-space: nowrap; }
}

/* The two CTA actions sit on a dark field, so their hover states need an explicit palette. */
.ops-actions .primary-btn.inverse-btn {
  color: #083f39;
  border-color: rgba(197, 239, 232, .58);
  background: linear-gradient(135deg, #c8eee7, #e8f8f5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}

.ops-actions .primary-btn.inverse-btn:hover,
.ops-actions .primary-btn.inverse-btn:focus-visible {
  color: #536360;
  border-color: #edf2f0;
  background: #edf2f0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .22);
}

.ops-actions .secondary-btn.inverse-btn {
  color: #e4eeeb;
  border-color: rgba(228, 238, 235, .42);
  background: rgba(255, 255, 255, .08);
}

.ops-actions .secondary-btn.inverse-btn:hover,
.ops-actions .secondary-btn.inverse-btn:focus-visible {
  color: #536360;
  border-color: #edf2f0;
  background: #edf2f0;
}

/* Header logo: retain the mark's natural silhouette without a tile behind it. */
.brand-logo-frame {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.brand-logo {
  width: 44px;
  height: 44px;
}

/* Footer: separate navigation from legal links and make interaction unmistakable. */
.site-footer {
  display: block;
}

.site-footer__layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(440px, 1.2fr);
  gap: clamp(40px, 7vw, 100px);
}

.site-footer__links {
  display: grid;
  gap: 28px;
  align-content: start;
}

.site-footer .site-footer__nav-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer .site-footer__nav-legal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.site-footer nav a {
  transition: color .2s ease, text-decoration-color .2s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #ff9a3d;
  text-decoration-color: currentColor;
}

.site-footer__bottom {
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.site-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

/* Direction cards: a stable layout with explicit actions and no expanding hover. */
.direction-service-grid .service-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: none;
}

.direction-service-grid .service-panel:hover,
.direction-service-grid .service-panel:focus-within {
  transform: translateY(-2px);
  border-color: #ff9a3d;
  box-shadow: 0 18px 34px rgba(4, 61, 55, .12);
}

.service-panel__summary {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 14px 0 22px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.service-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.service-panel__detail-link,
.direction-highlight__link {
  color: #a96012;
  font-weight: 700;
  text-underline-offset: 4px;
}

.service-panel__detail-link:hover,
.service-panel__detail-link:focus-visible,
.direction-highlight__link:hover,
.direction-highlight__link:focus-visible {
  color: #d66f00;
}

.service-detail {
  scroll-margin-top: 110px;
}

.direction-copy .direction-highlight + h2 {
  margin-top: clamp(64px, 7vw, 96px);
}

@media (max-width: 860px) {
  .site-footer__layout {
    grid-template-columns: 1fr;
  }

  .direction-copy .direction-highlight + h2 {
    margin-top: 52px;
  }
}

@media (max-width: 640px) {
  .brand-logo-frame {
    width: 44px;
    height: 44px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-footer .site-footer__nav-primary,
  .site-footer .site-footer__nav-legal {
    grid-template-columns: 1fr;
  }
}

/* Permanent header navigation: links stay visible at every width; no burger state. */
.nav-toggle {
  display: none !important;
}

.header-panel,
.header-panel.is-open {
  display: grid;
  max-height: none;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

@media (max-width: 1540px) {
  .header-shell {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .header-panel,
  .header-panel.is-open {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 2px;
    font-size: clamp(12px, .88vw, 14px);
    white-space: nowrap;
  }

  .main-nav a {
    padding-right: 5px;
    padding-left: 5px;
  }

  .utility-nav {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .header-actions .icon-link {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .phone-link {
    display: inline-flex;
    min-height: 36px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
  }

  .header-actions .search-link {
    display: inline-grid;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .header-actions .header-cta {
    min-height: 38px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 14px;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .header-panel,
  .header-panel.is-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-actions {
    display: none;
  }

  .brand-copy strong {
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
  }

  .header-shell {
    grid-template-columns: 1fr;
  }

  .header-panel,
  .header-panel.is-open {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 6px;
  }

  .main-nav a {
    justify-content: center;
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .utility-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .utility-nav a {
    justify-content: center;
    width: 100%;
  }

  .header-actions {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-copy span {
    display: none;
  }

  .main-nav {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav a,
  .utility-nav a {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 14px;
  }
}

/*
 * Header at compact desktop widths: keep every destination visible.
 * The brand remains on the first row and the permanent link list gets
 * the full second row instead of being squeezed behind the right edge.
 */
@media (max-width: 1300px) and (min-width: 981px) {
  .header-shell {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  .brand-copy span {
    display: none;
  }

  .header-panel,
  .header-panel.is-open {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .main-nav a {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 7px 8px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
  }

  .header-actions {
    display: none;
  }
}

/* Service summaries are informational cards, not links or interactive controls. */
.direction-service-grid .service-panel,
.direction-service-grid .service-panel:hover,
.direction-service-grid .service-panel:focus-within {
  cursor: default;
  transform: none;
  border-color: var(--line);
  box-shadow: 0 16px 36px rgba(16, 24, 28, .07);
}

.direction-service-grid .service-panel__summary {
  display: block;
  min-height: 0;
  margin-bottom: 0;
  overflow: visible;
  -webkit-line-clamp: initial;
}

/* Exam center: a complete, readable attestation reference. */
.exam-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: start;
}

.exam-intro__copy h2,
.exam-section__head h2 {
  max-width: 20ch;
}

.exam-intro__copy > p:not(.eyebrow) {
  max-width: 72ch;
  font-size: 18px;
  line-height: 1.7;
}

.exam-contents {
  display: grid;
  gap: 2px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.exam-contents span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.exam-contents a {
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
  color: var(--accent-dark);
  font-weight: 750;
}

.exam-contents a:last-child { border-bottom: 0; }
.exam-section,
.exam-contest { scroll-margin-top: 90px; }

.exam-contest {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  color: #fff;
  background: var(--graphite);
}

.exam-contest__intro h2 {
  max-width: 26ch;
  margin-bottom: 18px;
  color: #fff;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.exam-contest__intro > p:not(.eyebrow) {
  max-width: 62ch;
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
  line-height: 1.7;
}

.exam-contest__copy {
  max-width: none;
  margin-top: 18px;
  column-count: 2;
  column-gap: clamp(32px, 5vw, 72px);
}

.exam-contest__copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.7;
  break-inside: avoid;
}

.exam-contest__intro .secondary-btn {
  width: fit-content;
  margin-top: 18px;
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}

.exam-contest__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.exam-contest__facts div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.exam-contest__facts dt {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.exam-contest__facts dd {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.exam-section__head {
  align-items: end;
}

.exam-section__head > p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.exam-type-card,
.exam-level-card,
.exam-scope-grid > article,
.exam-decision-grid > article,
.exam-vision,
.exam-schedule-grid > article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.exam-type-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 26px;
}

.exam-type-card > span,
.exam-process > li > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.exam-type-card h3 { margin: 28px 0 14px; }
.exam-type-card p { color: var(--muted); line-height: 1.65; }
.exam-type-card strong { margin-top: auto; color: var(--accent-dark); }

.exam-result {
  display: grid;
  grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 26px 30px;
  border-left: 4px solid var(--signal);
  background: #fff9f4;
}

.exam-result p { margin: 0; line-height: 1.65; }

.exam-level-grid,
.exam-scope-grid,
.exam-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exam-level-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.exam-level-card__number {
  position: absolute;
  top: 16px;
  right: 28px;
  color: rgba(13, 117, 107, .08);
  font-size: 120px;
  font-weight: 950;
  line-height: 1;
}

.exam-level-card h3 { position: relative; font-size: 30px; }
.exam-level-card p,
.exam-level-card li { position: relative; line-height: 1.65; }
.exam-level-card ul { display: grid; gap: 10px; padding-left: 20px; }
.exam-note { color: var(--muted); font-size: 14px; line-height: 1.6; }

.exam-scope-grid > article { padding: clamp(26px, 4vw, 44px); }
.exam-tag-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.exam-tag-list li { padding: 10px 14px; border: 1px solid rgba(13, 117, 107, .18); border-radius: 999px; background: var(--accent-soft); }
.exam-object-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.exam-object-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.exam-object-list span { color: var(--signal); font-weight: 900; }

.exam-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.exam-process li {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 210px;
  align-content: start;
  gap: 42px;
  padding: 24px;
  background: var(--paper);
}

.exam-process strong { display: block; margin-bottom: 10px; font-size: 18px; }
.exam-process p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.exam-decision-grid { margin-top: 18px; }
.exam-decision-grid article { padding: 28px; }
.exam-decision-grid ul { margin-bottom: 0; padding-left: 20px; }

.exam-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exam-documents-grid ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  list-style: none;
}

.exam-documents-grid li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--soft-line);
  line-height: 1.45;
}

.exam-documents-grid li::before {
  margin-left: -28px;
  margin-right: 13px;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.exam-documents-grid li:last-child { border-bottom: 0; }

.exam-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.exam-downloads a {
  display: flex;
  min-width: 0;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
}

.exam-downloads a:hover,
.exam-downloads a:focus-visible {
  border-color: var(--accent);
}

.exam-downloads span {
  min-width: 0;
  font-weight: 750;
  line-height: 1.35;
}

.exam-downloads strong {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 13px;
}

.exam-downloads--dark {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exam-downloads--dark a {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.exam-downloads--dark strong {
  color: #fff;
}

.exam-center-documents {
  margin-top: 36px;
}

.exam-center-documents h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 30px);
}

.exam-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.exam-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.exam-table caption { padding: 22px; color: var(--ink); font-size: 20px; font-weight: 850; text-align: left; }
.exam-table th,
.exam-table td { padding: 16px 20px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
.exam-table thead th { color: var(--muted); background: #f7faf9; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.exam-table tbody th { color: var(--accent-dark); }
.exam-vision { margin-top: 20px; padding: clamp(26px, 4vw, 42px); }
.exam-vision p { max-width: 88ch; line-height: 1.65; }

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

.exam-schedule-grid article { display: grid; gap: 12px; padding: 24px; }
.exam-schedule-grid span { color: var(--muted); }
.exam-schedule-grid p { margin: 0; color: var(--accent-dark); font-weight: 800; }
.exam-schedule-note { display: flex; gap: 24px; align-items: center; margin-top: 18px; padding: 26px 30px; border: 1px solid rgba(13, 117, 107, .2); background: var(--accent-soft); }
.exam-schedule-note p { flex: 1; margin: 0; line-height: 1.55; }
.exam-schedule-note .primary-btn { flex: 0 0 auto; }

@media (max-width: 1050px) {
  .exam-type-grid,
  .exam-process,
  .exam-schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-intro { grid-template-columns: 1fr; }
  .exam-contest { grid-template-columns: 1fr; }
  .exam-contents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-contents > span { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .exam-type-grid,
  .exam-level-grid,
  .exam-scope-grid,
  .exam-process,
  .exam-decision-grid,
  .exam-documents-grid,
  .exam-schedule-grid { grid-template-columns: 1fr; }
  .exam-contents { grid-template-columns: 1fr; }
  .exam-downloads { grid-template-columns: 1fr; }
  .exam-contest__copy { column-count: 1; }
  .exam-contest__facts { grid-template-columns: 1fr; }
  .exam-contest__facts div { min-height: 0; }
  .exam-result { grid-template-columns: 1fr; }
  .exam-type-card { min-height: 0; }
  .exam-type-card strong { margin-top: 22px; }
  .exam-process li { min-height: 170px; gap: 26px; }
  .exam-schedule-note { align-items: stretch; flex-direction: column; }
}

@media (min-width: 981px) {
  .header-panel .main-nav {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
  }
}

/* Candidate admission: four focused cards instead of administrative tables. */
.candidate-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.candidate-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(16, 24, 28, .055);
}

.candidate-card > header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.candidate-card > header > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.candidate-card header p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.candidate-card header h3 {
  margin: 0;
  font-size: clamp(23px, 2vw, 30px);
}

.candidate-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.candidate-levels > div {
  padding: 22px;
  background: #f8faf9;
}

.candidate-levels strong,
.candidate-check-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.candidate-levels p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.candidate-card__note {
  margin: auto 0 0;
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.candidate-metric-head,
.candidate-metric-row {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(64px, .75fr));
  gap: 8px;
  align-items: center;
}

.candidate-metric-head {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.candidate-metric-head span:first-child { text-align: left; }

.candidate-metric-row {
  padding: 15px 12px;
  border-top: 1px solid var(--line);
}

.candidate-metric-row b {
  color: var(--accent-dark);
  font-size: 25px;
  text-align: center;
}

.candidate-metric-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.candidate-training-head > div,
.candidate-training-grid > div {
  display: grid;
  grid-template-columns: 1fr .75fr .75fr;
  align-items: center;
  text-align: center;
}

.candidate-training-head {
  display: block;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.candidate-training-head > div {
  padding-right: 15px;
  padding-left: 15px;
}

.candidate-training-head span:first-child { text-align: left; }

.candidate-training-head small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}

.candidate-training-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.candidate-training-grid > div {
  padding: 15px;
  background: #f8faf9;
}

.candidate-training-grid strong { text-align: left; }
.candidate-training-grid b { color: var(--accent-dark); font-size: 22px; }

.candidate-check-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.candidate-check-list li {
  position: relative;
  padding: 17px 0 17px 34px;
  border-top: 1px solid var(--line);
}

.candidate-check-list li::before {
  position: absolute;
  top: 18px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.candidate-check-list span {
  color: var(--muted);
  line-height: 1.5;
}

.candidate-card--vision {
  border-top: 3px solid var(--signal);
}

@media (max-width: 900px) {
  .candidate-requirements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .candidate-card {
    padding: 22px 18px;
    border-radius: 15px;
  }

  .candidate-levels {
    grid-template-columns: 1fr;
  }

  .candidate-metric-head,
  .candidate-metric-row {
    grid-template-columns: 1.1fr repeat(3, minmax(48px, .7fr));
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .candidate-metric-row b {
    font-size: 21px;
  }

  .candidate-training-grid {
    grid-template-columns: 1fr;
  }

}

/* Exam attestation process: a vertical route instead of a dense table. */
.exam-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.exam-process li {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-rows: auto;
  min-height: 0;
  gap: 22px;
  align-items: start;
  padding: 0 0 18px;
  background: transparent;
}

.exam-process li::after {
  position: absolute;
  z-index: 0;
  top: 54px;
  bottom: -2px;
  left: 26px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(13, 117, 107, .42), rgba(13, 117, 107, .12));
  content: "";
}

.exam-process li:last-child {
  padding-bottom: 0;
}

.exam-process li:last-child::after {
  display: none;
}

.exam-process > li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(13, 117, 107, .28);
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(7, 75, 68, .09);
  font-size: 14px;
  letter-spacing: .08em;
}

.exam-process > li > div {
  min-height: 126px;
  padding: 25px 30px 27px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 24, 28, .045);
}

.exam-process li:nth-child(even) > div {
  background: #f7faf9;
}

.exam-process strong {
  margin-bottom: 8px;
  font-size: 21px;
}

.exam-process p {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.6;
}

.exam-process li:nth-child(7) > span,
.exam-process li:nth-child(8) > span {
  border-color: #d27a31;
  color: #9b4e10;
  background: #fff8f1;
}

.exam-process li:nth-child(7) > div,
.exam-process li:nth-child(8) > div {
  border-left: 4px solid #d27a31;
  background: #fffaf5;
}

.exam-process li:nth-child(7)::after {
  background: linear-gradient(to bottom, rgba(210, 122, 49, .52), rgba(210, 122, 49, .2));
}

@media (max-width: 700px) {
  .exam-process li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 14px;
  }

  .exam-process li::after {
    top: 46px;
    left: 22px;
  }

  .exam-process > li > span {
    width: 46px;
    height: 46px;
    font-size: 12px;
  }

  .exam-process > li > div {
    min-height: 0;
    padding: 20px;
    border-radius: 13px;
  }

  .exam-process strong {
    font-size: 18px;
  }

  .exam-process p {
    font-size: 15px;
  }
}
