/* ==========================================================================
   ЮгТест — мобильная версия сайта
   Визуальный язык: «технический паспорт» — нумерованные пункты, волосяные
   линейки, моноширинные метки, голубой фирменный акцент.
   ========================================================================== */

:root {
  --ink: #0D1B26;
  --ink-2: #3C5265;
  --ink-3: #6B8093;
  --brand: #1F5F8B;
  --brand-2: #2F6F97;
  --brand-3: #4E92BC;
  --brand-soft: #EAF2F8;
  --paper: #FFFFFF;
  --surface: #F4F7FA;
  --line: #DEE6ED;
  --line-2: #C4D2DE;
  --warn: #9C4A24;
  --warn-soft: #FBF2EB;
  --ok: #2C6E49;

  --font-display: 'Golos Text', 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 780px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
b, strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.mono-label {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* --- служебная полоса для десктопа ------------------------------------- */
.desk-notice {
  display: none;
  background: var(--ink);
  color: #DCE6EE;
  font-size: 13px;
  padding: 7px 0;
}
.desk-notice a { color: #fff; }

/* --- шапка --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__tel {
  font: 500 15px/1 var(--font-display);
  color: var(--ink); text-decoration: none;
  letter-spacing: .01em;
}
.topbar__tel:hover { color: var(--brand-2); }
.burger {
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-2); background: #fff;
  display: grid; place-content: center; gap: 4px; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- выдвижное меню ----------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(13, 27, 38, .48); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(90vw, 410px);
  background: var(--paper);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 34px rgba(13, 27, 38, .16);
  animation: drawerIn .22s ease;
}
@keyframes drawerIn { from { transform: translateX(16px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.drawer__close {
  border: 1px solid var(--line-2); background: #fff; width: 38px; height: 38px;
  font-size: 15px; color: var(--ink-2); cursor: pointer; line-height: 1;
}
.drawer__body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 28px; }
.drawer__link {
  display: block; padding: 13px 20px;
  color: var(--ink); text-decoration: none;
  font: 500 17px/1.3 var(--font-display);
  border-bottom: 1px solid var(--line);
}
.drawer__link:hover { background: var(--surface); }
.drawer__link--full { color: var(--brand-2); }
.drawer__sec { border-bottom: 1px solid var(--line); }
.drawer__sec > summary {
  list-style: none; cursor: pointer;
  padding: 13px 20px;
  font: 500 17px/1.3 var(--font-display);
  display: flex; align-items: baseline; gap: 10px;
}
.drawer__sec > summary::-webkit-details-marker { display: none; }
.drawer__sec > summary::after {
  content: '+'; margin-left: auto; color: var(--ink-3);
  font: 400 18px/1 var(--font-mono);
}
.drawer__sec[open] > summary::after { content: '–'; }
.drawer__sec > summary .n {
  font: 500 11px/1 var(--font-mono); letter-spacing: .12em; color: var(--brand-3);
  min-width: 20px;
}
.drawer__sec ul { list-style: none; margin: 0; padding: 0 0 8px; }
.drawer__sec li a {
  display: block; padding: 9px 20px 9px 50px;
  color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35;
}
.drawer__sec li a:hover { color: var(--brand-2); background: var(--surface); }
.drawer__sep { height: 22px; background: var(--surface); border-bottom: 1px solid var(--line); }

/* --- титульный блок ----------------------------------------------------- */
.tb { padding: 26px 0 18px; border-bottom: 1px solid var(--line); }
.tb__code { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.tb__code .code {
  font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 8px;
}
.tb h1 {
  font: 700 30px/1.16 var(--font-display);
  letter-spacing: -.02em; margin: 0 0 10px;
}
.tb__lede { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.tb__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tb__meta span { font: 400 12px/1.5 var(--font-mono); color: var(--ink-3); }

.crumbs { padding: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand-2); text-decoration: underline; }
.crumbs .sep { padding: 0 7px; color: var(--line-2); }

/* --- секции -------------------------------------------------------------- */
.clause { padding: 30px 0 26px; border-bottom: 1px solid var(--line); }
.clause__head { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 16px; }
.clause__num {
  font: 500 12px/1 var(--font-mono); letter-spacing: .1em;
  color: var(--brand-3); padding-top: 3px;
}
.band { margin: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.doccards { display: grid; gap: 12px; }
.doccard {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); background: var(--surface);
  color: inherit; text-decoration: none;
}
.doccard__num { font: 500 12px/1.4 var(--font-mono); color: var(--brand-3); padding-top: 2px; }
.doccard__thumb {
  flex: 0 0 auto; width: 62px; background: #fff; border: 1px solid var(--line);
  overflow: hidden; display: block;
}
.doccard__thumb img { width: 100%; height: auto; display: block; }
.doccard__body { flex: 1 1 auto; min-width: 0; }
.doccard__title { display: block; font: 500 16px/1.3 var(--font-display); }
.doccard__desc { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); margin-top: 4px; }
.doccard__meta {
  display: inline-block; margin-top: 9px; font: 500 11px/1 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2);
  border-bottom: 1px solid var(--brand-2); padding-bottom: 2px;
}
@media (min-width: 620px) { .doccards { grid-template-columns: 1fr 1fr; } }
.doccards--gallery { gap: 18px; }
.doccards--gallery .doccard { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.doccards--gallery .doccard__thumb {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  background: #f7f8f9; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
}
.doccards--gallery .doccard__thumb img { width: 100%; height: 100%; object-fit: contain; }
.doccards--gallery .doccard__body { padding: 16px 18px 18px; }
.doccards--gallery .doccard__title { font-size: 17px; }
.doccards--gallery .doccard__desc { font-size: 14px; }
@media (min-width: 620px) {
  .doccards--gallery { grid-template-columns: 1fr 1fr; }
  .doccards--gallery .doccard:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
.band img { width: 100%; height: auto; display: block; }
.band figcaption {
  padding: 10px 20px 12px; font-size: 13px; color: var(--ink-3);
  max-width: var(--maxw); margin: 0 auto; background: var(--surface);
}
.clause__title {
  font: 700 21px/1.25 var(--font-display); letter-spacing: -.015em; margin: 0;
}
.clause p { margin: 0 0 14px; }
.clause > p:last-child { margin-bottom: 0; }

/* --- список пунктов (оглавление раздела) -------------------------------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.row:hover { background: var(--surface); }
.row__n { font: 500 12px/1.5 var(--font-mono); color: var(--brand-3); min-width: 34px; padding-top: 2px; }
.row__body { flex: 1; }
.row__title { display: block; font: 500 17px/1.3 var(--font-display); color: var(--ink); }
.row__desc { display: block; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); margin-top: 3px; }
.row__arrow { color: var(--line-2); font: 400 16px/1.4 var(--font-mono); padding-top: 1px; }
.row:hover .row__arrow { color: var(--brand-2); }

/* --- текст --------------------------------------------------------------- */
.doc { padding: 22px 0 30px; }
.doc > *:first-child { margin-top: 0; }
.doc p { margin: 0 0 15px; }
.doc h2 {
  font: 700 20px/1.3 var(--font-display); letter-spacing: -.01em;
  margin: 32px 0 12px; padding-top: 18px; border-top: 1px solid var(--line);
}
.doc h3 { font: 600 17px/1.35 var(--font-display); margin: 24px 0 10px; }
.doc h4 { font: 600 15px/1.4 var(--font-display); margin: 18px 0 8px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
.doc ul li {
  position: relative; padding-left: 22px; margin-bottom: 9px;
}
.doc ul li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 12px; height: 1px; background: var(--brand-3);
}
.doc ol { counter-reset: n; }
.doc ol li { position: relative; padding-left: 30px; margin-bottom: 9px; counter-increment: n; }
.doc ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: .18em;
  font: 500 12px/1.4 var(--font-mono); color: var(--brand-3);
}
.doc figure { margin: 0 0 18px; }
.doc figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.doc img { border: 1px solid var(--line); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.doc blockquote {
  margin: 0 0 18px; padding: 2px 0 2px 16px; border-left: 3px solid var(--line-2);
  color: var(--ink-2);
}

/* --- таблицы ------------------------------------------------------------- */
.tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 0 18px; border: 1px solid var(--line);
}
.tablewrap table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14.5px; }
.tablewrap th, .tablewrap td {
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  padding: 10px 12px; text-align: left; vertical-align: top;
}
.tablewrap th {
  background: var(--surface); font: 600 12px/1.35 var(--font-mono);
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
}
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap td:last-child, .tablewrap th:last-child { border-right: 0; }
.tablewrap tbody tr:nth-child(even) td { background: #FBFCFD; }

/* --- уведомления --------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--brand-2); background: var(--brand-soft);
  padding: 14px 16px; margin: 0 0 20px; font-size: 15px; line-height: 1.5;
}
.notice--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice strong { display: block; font: 600 15px/1.4 var(--font-display); margin-bottom: 4px; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }

.mini-note {
  font-size: 14px; line-height: 1.55; color: var(--ink-3);
  border-left: 3px solid var(--warn); padding: 2px 0 2px 14px; margin: 0;
}

/* --- раскрываемый длинный текст ------------------------------------------- */
.doc__more { margin: 4px 0 20px; }
.doc__more > summary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border: 1px solid var(--line);
  background: var(--surface); font: 500 15px/1 var(--font-display);
  color: var(--brand-2); cursor: pointer; list-style: none;
}
.doc__more > summary::-webkit-details-marker { display: none; }
.doc__more > summary::after { content: "↓"; font-size: 14px; }
.doc__more[open] > summary::after { content: "↑"; }
.doc__more > summary:hover { border-color: var(--brand-2); }
.doc__rest { padding-top: 18px; }
.doc__rest > *:first-child { margin-top: 0; }

/* --- партнёры ------------------------------------------------------------- */
.plist { margin: 0 0 16px; padding: 0; list-style: none; }
.plist__i {
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.plist__i:last-child { border-bottom: 0; }
.plist__i b { display: block; font: 600 15.5px/1.35 var(--font-display); }
.plist__i span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin-top: 4px; }
.plist__site { display: inline-block; margin-top: 6px; font: 500 13px/1 var(--font-mono); color: var(--brand-3); }

/* --- кнопки --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px;
  font: 600 15px/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-2); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #17293a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.btn-row .btn { flex: 1 1 auto; }

/* --- герой ---------------------------------------------------------------- */
.hero { padding: 30px 0 26px; border-bottom: 1px solid var(--line); }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 16px; }
.hero__stamp { display: flex; align-items: center; gap: 10px; }
.hero__stamp img { height: 46px; width: auto; }
.hero h1 {
  font: 700 32px/1.12 var(--font-display); letter-spacing: -.025em; margin: 0 0 14px;
}
.hero__lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.hero__facts {
  margin-top: 22px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
}
.hero__fact { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); }
.hero__fact:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 14px; }
.hero__fact:nth-child(even) { padding-left: 14px; }
.hero__fact dt { font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero__fact dd { margin: 5px 0 0; font: 500 15px/1.35 var(--font-display); }

/* --- каталог направлений --------------------------------------------------- */
.cat { border-top: 1px solid var(--line); }
.cat__row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cat__code { font: 500 12px/1 var(--font-mono); color: var(--brand-3); letter-spacing: .06em; }
.cat__title { font: 500 17px/1.3 var(--font-display); margin: 6px 0 4px; }
.cat__desc { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
.cat__row a { text-decoration: none; }
.cat__row a:hover .cat__title { color: var(--brand-2); }

/* --- шаги ------------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); position: relative; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 15px;
  font: 500 12px/1 var(--font-mono); color: var(--brand-3);
}
.steps b { font: 500 16px/1.35 var(--font-display); display: block; }
.steps span { font-size: 14.5px; color: var(--ink-3); }

/* --- новости ---------------------------------------------------------------- */
.newslist { border-top: 1px solid var(--line); }
.yearfilter {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 0 8px; margin-bottom: 16px;
}
.yearfilter .btn { flex: 0 0 auto; padding: 0 16px; }
.btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.is-active:hover { background: var(--brand-2); }
.newsitem { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.newsitem:hover { background: var(--surface); }
.newsitem__thumb { flex: 0 0 92px; }
.newsitem__thumb img { width: 92px; height: 68px; object-fit: cover; border: 1px solid var(--line); }
.nthumb {
  display: block; background-color: #eef1f4; border: 1px solid var(--line);
  background-image: url('../img/news-sprite.jpg'); background-repeat: no-repeat;
  background-size: calc(var(--nw,120px) * 8) auto;
  background-position: var(--nx,0) var(--ny,0);
  width: var(--nw,120px); height: calc(var(--nw,120px) * .75); overflow: hidden;
}
.article { padding: 26px 0 6px; border-top: 1px solid var(--line); }
.article:first-of-type { border-top: 0; }
.article__date { font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--brand-3); text-transform: uppercase; }
.article__title { font: 600 22px/1.25 var(--font-display); margin: 6px 0 14px; }
.article .doc { padding-top: 0; }
.newsitem__body { flex: 1; min-width: 0; }
.newsitem__date { display: block; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--brand-3); }
.newsitem__title { display: block; font: 500 16.5px/1.3 var(--font-display); margin: 6px 0 0; }
.newsitem:hover .newsitem__title { color: var(--brand-2); }
.year { padding: 26px 0 6px; font: 600 14px/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-3); }

.article__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.article__meta a { font-size: 13px; }
.article__date { font: 500 12px/1.5 var(--font-mono); color: var(--ink-3); }

/* --- форма ------------------------------------------------------------------ */
.form { padding: 22px 0 30px; }
.form__grid { display: grid; gap: 14px; }
.field label, .field__label {
  display: block; font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap);
  padding: 10px 12px; font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 108px; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-2); outline: 2px solid rgba(47, 111, 151, .22); outline-offset: 0;
}
.field__hint { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.field--wide { grid-column: 1 / -1; }
.form__foot { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.form__foot .btn { width: 100%; }
.consent { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.form__ok {
  border-left: 3px solid var(--ok); background: #EFF6F1; padding: 16px;
  font: 500 16px/1.45 var(--font-display);
}
.form__err {
  border-left: 3px solid var(--warn); background: var(--warn-soft); padding: 12px 14px;
  font-size: 14.5px; margin-bottom: 14px;
}

/* --- поиск ------------------------------------------------------------------ */
.search__bar { display: flex; gap: 8px; margin-bottom: 18px; }
.search__bar input {
  flex: 1; min-height: var(--tap); padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
}
.search__res { border-top: 1px solid var(--line); }
.search__item { padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; display: block; }
.search__item:hover { background: var(--surface); }
.search__item b { font: 500 16px/1.35 var(--font-display); display: block; }
.search__item span { font-size: 14px; color: var(--ink-3); display: block; margin-top: 3px; }
.search__empty { padding: 26px 0; color: var(--ink-3); }

/* --- подвал ------------------------------------------------------------------ */
.footer { margin-top: 20px; background: var(--ink); color: #C9D6E0; padding: 34px 0 26px; font-size: 14.5px; }
.footer a { color: #E6EEF4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__wordmark { font: 700 21px/1 var(--font-display); color: #fff; letter-spacing: -.01em; }
.footer__tag { color: #90A6B6; font-size: 13.5px; margin-top: 6px; }
.footer__cols { display: grid; gap: 26px; margin-top: 26px; }
.footer__h { font: 500 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #7E95A6; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer__bottom {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #90A6B6;
}
.footer__bottom a { color: #C9D6E0; }

/* --- нижняя панель действий ---------------------------------------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.actionbar__btn {
  flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--font-display); text-decoration: none;
  border: 1px solid var(--brand); color: var(--brand); background: #fff;
}
.actionbar__btn--cta { background: var(--brand); color: #fff; }
main { padding-bottom: 74px; }

/* --- адаптив ------------------------------------------------------------------- */
@media (min-width: 620px) {
  .tb h1 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .newsitem__thumb, .newsitem__thumb img { width: 120px; height: 84px; }
}

@media (min-width: 900px) {
  .desk-notice { display: block; }
  .actionbar { display: none; }
  main { padding-bottom: 0; }
  .topbar__tel { font-size: 16px; }
  .hero { padding-top: 44px; }
  .hero__facts { grid-template-columns: repeat(4, 1fr); }
  .hero__fact { border-right: 1px solid var(--line); padding: 14px 16px 14px 0; }
  .hero__fact:nth-child(odd) { padding-left: 0; }
  .hero__fact:nth-child(even) { padding-left: 16px; }
  .hero__fact:last-child { border-right: 0; }
  .footer__cols { grid-template-columns: 1.5fr 1fr; }
}

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

@media print {
  .topbar, .drawer, .actionbar, .desk-notice, .footer { display: none !important; }
  body { font-size: 12pt; }
  a::after { content: ''; }
  main { padding: 0; }
}
