/* Финал на основе 09 «Justice». База: токены, типографика, кнопки, шапка с росчерком, окна, подвал, панель.
   Шкала отступов (px): 4 8 12 16 24 32 48 64 96 128 (--s1…--s10). В первом экране вертикаль — clamp() по высоте окна в тех же пределах. */

:root {
  --haze: #EFEEEC; --white: #FFFFFF; --ink: #1F1F24; --ink-2: #5C5C66;
  --g9: #26262C; --g8: #2D2D34; --g7: #37373F; --g6: #42424B;
  --t-d: #F4F3F1; --t-d2: #B2B2B8;
  --line-d: rgba(255, 255, 255, .12); --line-l: rgba(31, 31, 36, .14);
  --gold: #B49C73; --gold-hi: #C9B48E; --gold-lo: #7E6841; --gold-disp: #8C7449;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gut: var(--s4); --wrap: 1120px; --sec: var(--s8); --gap-h: var(--s7); --hdr: 64px;

  /* шрифты утверждены: заголовки EB Garamond, текст и кнопки IBM Plex Sans; цифры (цены, телефон, годы, рег. №) — IBM Plex Sans.
     --k-h — поправка размера заголовков */
  --f-sans: "IBM Plex Sans", system-ui, sans-serif; --f-serif: "EB Garamond", Georgia, serif; --f-num: var(--f-sans);
  --k-h: 1.14; --w-h: 500; --w-gw: 600; --ls-h: -.005em; --w-btn: 600;
  --fs-h2: clamp(1.875rem, 1.3rem + 1.75vw, 3rem);
  --fs-h3: 1.25rem; --fs-lead: clamp(1.0625rem, .95rem + .35vw, 1.25rem);
  --fs-body: 1rem; --fs-cap: 1rem;
  --fs-num: clamp(2.75rem, 1.9rem + 2.4vw, 4.5rem);
  --fs-quote: clamp(1.5rem, 1.1rem + 1.25vw, 2.25rem);

  --r-pill: 999px; --r-card: 8px; --r-sm: 4px;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.77, 0, .175, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}
@media (min-width: 600px) { :root { --gut: var(--s6); } }
@media (min-width: 960px) { :root { --gut: var(--s7); --sec: var(--s8); --gap-h: var(--s6); --hdr: 72px; --fs-cap: .875rem; } }
/* ноутбуки (высота окна до 1000 px) — ещё плотнее */
@media (min-width: 960px) and (max-height: 1000px) { :root { --sec: 54px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); font-synthesis: none; }
body { margin: 0; background: var(--g7); color: var(--t-d); font: 400 var(--fs-body)/1.6 var(--f-sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; padding: var(--s3) var(--s4); background: var(--gold); color: var(--ink); }
.skip:focus { top: var(--s4); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* типографика */
.h2 { font-family: var(--f-serif); font-size: calc(var(--fs-h2) * var(--k-h)); line-height: 1.1; font-weight: var(--w-h); letter-spacing: var(--ls-h); color: var(--t-d); text-wrap: balance; }
.gw { color: var(--gold); font-weight: var(--w-gw); }
h3 { font-family: var(--f-serif); font-size: calc(var(--fs-h3) * var(--k-h)); line-height: 1.25; font-weight: var(--w-h); letter-spacing: var(--ls-h); }
.more { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--gold-hi); text-decoration: none; font-weight: 500; }
.more .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover .i { transform: translateX(4px); } }
.sample { display: inline-block; margin-left: var(--s2); padding: 0 6px; border: 1px dashed currentColor; border-radius: var(--r-sm); font: 400 .75rem/1.6 var(--f-sans); font-style: normal; letter-spacing: .02em; color: var(--t-d2); vertical-align: 2px; opacity: .85; }

/* росчерк «АВ» — рисуется штрихом; толщина задаётся в единицах viewBox под размер знака */
.sig { display: block; fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sig path { stroke-width: 14; }
.js-anim [data-sig="load"] path, .js-anim [data-sig="photo"] path, .js-anim [data-sig="scroll"] path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* кнопки: капсула Justice */
.btn {
  --bg: var(--gold); --fg: var(--ink); --bd: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s6); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: var(--w-btn) var(--fs-cap)/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { --bg: #C6B08A; --bd: #C6B08A; } }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(31, 31, 36, .4); }
.btn--ghost-d { --bg: transparent; --fg: var(--t-d); --bd: color-mix(in srgb, var(--t-d) 40%, transparent); }
.btn--ink { --bg: var(--ink); --fg: var(--t-d); --bd: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { --bg: var(--ink); --fg: var(--haze); --bd: var(--ink); }
  .btn--ghost-d:hover { --bg: var(--t-d); --fg: var(--ink); --bd: var(--t-d); }
  .btn--ink:hover { --bg: var(--g7); --bd: var(--g7); }
}
.btn--sm { min-height: 44px; padding: 0 var(--s5); }
.btn--wide { width: 100%; }
.round { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-l); color: var(--ink); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.round:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .round:hover { background: var(--haze); } }
.ico { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--gold-hi); transition: background-color 250ms ease, color 250ms ease; }
.ico .i { width: 22px; height: 22px; }

/* ---------- шапка: бургер · росчерк · «Пескова А. В. / Адвокатский кабинет» ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hdr); color: var(--ink); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.hdr__left { display: flex; align-items: center; gap: var(--s2); margin-right: auto; min-width: 0; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: calc(-1 * var(--s3)); border-radius: 50%; }
.burger .i { width: 24px; height: 24px; }
.lockup { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; text-decoration: none; color: inherit; }
.lockup .sig { height: 40px; width: auto; }
.lockup .sig path { stroke-width: 20; }
.lockup__t { display: flex; flex-direction: column; line-height: 1.1; }
.lockup__t b { font-family: var(--f-serif); font-size: calc(1.125rem * var(--k-h)); line-height: 1.1; font-weight: var(--w-h); letter-spacing: .005em; white-space: nowrap; }
.lockup__t span { margin-top: 2px; font-size: .8125rem; color: var(--gold-lo); letter-spacing: .02em; white-space: nowrap; }
.nav { display: none; gap: var(--s2); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: .9375rem; white-space: nowrap; color: var(--ink-2); text-decoration: none; transition: color 200ms ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.hdr__cta { display: flex; align-items: center; gap: var(--s4); }
.hdr__phone { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 44px; min-height: 44px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hdr__phone .i { color: var(--gold-lo); }
.hdr__phone span, .hdr .btn--sm { display: none; }
.hdr.is-solid { background: color-mix(in srgb, var(--g9) 95%, transparent); color: var(--t-d); box-shadow: 0 1px 0 var(--line-d); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hdr.is-solid .nav a { color: var(--t-d2); }
.hdr.is-solid .nav a:hover, .hdr.is-solid .nav a[aria-current="page"] { color: var(--t-d); }
.hdr.is-solid .lockup__t span, .hdr.is-solid .hdr__phone .i { color: var(--gold-hi); }
@media (max-width: 599px) { .hdr { background: var(--haze); } .lockup .sig { height: 34px; } .lockup__t b { font-size: calc(1rem * var(--k-h)); } }
@media (min-width: 768px) { .hdr .btn--sm { display: inline-flex; } .lockup__t b { font-size: calc(1.25rem * var(--k-h)); } .lockup .sig { height: 44px; } }
@media (min-width: 900px) { .hdr__phone span { display: inline; } }
@media (min-width: 1280px) { .nav { display: flex; gap: var(--s1); } .hdr__in { gap: var(--s4); } }

/* ---------- подвал ---------- */
.ftr { background: var(--g8); color: var(--t-d2); padding-top: var(--sec); }
.ftr__grid { display: grid; gap: var(--s6); }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.ftr__col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-hi); text-decoration: none; }
.ftr__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr__brand .lockup { color: var(--t-d); margin-bottom: var(--s3); }
.ftr__brand .lockup__t span { color: var(--gold-hi); }
.ftr__h { color: var(--t-d); font-weight: 500; margin-bottom: var(--s2); }
.ftr__soc { display: flex; gap: var(--s2); margin-top: var(--s3); }
.ftr__soc a { width: 44px; height: 44px; justify-content: center; border-radius: var(--r-sm); background: var(--gold); color: var(--ink); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s5); margin-top: var(--s8); padding-block: var(--s4); border-top: 1px solid var(--line-d); text-align: center; }
.ftr__bottom a, .ftr__bottom span { display: inline-flex; align-items: center; min-height: 44px; color: var(--t-d2); text-underline-offset: 3px; }
@media (min-width: 600px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s7); } .ftr__bottom { font-size: .875rem; } }

/* ---------- нижняя панель (телефон) ---------- */
.bar { position: fixed; z-index: 45; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); padding: var(--s2) var(--s2) calc(var(--s2) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--g9) 97%, transparent); box-shadow: 0 -1px 0 var(--line-d); }
.bar .btn { min-height: 48px; padding: 0 var(--s3); }
@media (max-width: 767px) { body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .bar { display: none; } }

/* ---------- окна: «Написать» (конструкция варианта 03), меню, документ ---------- */
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }   /* 05.11: с overflow:hidden Safari рисовал выезд панели с перелётом вверх и рывком вниз (все окна) */
.sheet::backdrop { background: rgba(20, 20, 26, 0); transition: background-color 300ms ease; }
.sheet.is-open::backdrop { background: rgba(20, 20, 26, .5); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--s7)); overflow: auto; overscroll-behavior: contain;
  padding: var(--s5) var(--gut) calc(var(--s6) + env(safe-area-inset-bottom));
  background: var(--white); color: var(--ink); border-radius: var(--r-card) var(--r-card) 0 0;
  box-shadow: 0 -24px 64px -24px rgba(20, 20, 26, .45);
  transform: translateY(100%); transition: transform 420ms var(--ease-drawer);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto var(--s4); border-radius: 4px; background: var(--line-l); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.sheet__title { font-family: var(--f-serif); font-size: calc(1.5rem * var(--k-h)); line-height: 1.2; font-weight: var(--w-h); }
.sheet__list { margin-top: var(--s5); display: grid; gap: var(--s2); }
.opt { display: flex; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s3) var(--s4); border-radius: var(--r-card); background: var(--haze); text-decoration: none; font-weight: 500; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.opt:active { transform: scale(.98); }
.opt__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.opt__t { flex: 1; font-size: 1.0625rem; }
.opt__go { color: var(--gold-lo); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .opt:hover { background: #E6E1D6; } .opt:hover .opt__go { transform: translate(2px, -2px); } }
@media (min-width: 768px) {
  .sheet__panel { left: 50%; top: 50%; bottom: auto; width: min(460px, calc(100% - 2 * var(--gut))); padding: var(--s6); border-radius: var(--r-card);
    opacity: 0; transform: translate(-50%, -47%) scale(.97); transition: transform 260ms var(--ease-out), opacity 200ms ease; }
  .sheet.is-open .sheet__panel { opacity: 1; transform: translate(-50%, -50%); }
  .sheet__panel::before { display: none; }
}
/* меню — выезжает слева, от бургера */
.sheet--menu .sheet__panel { top: 0; left: 0; right: auto; bottom: 0; width: min(400px, 100%); height: 100%; max-height: none; border-radius: 0; opacity: 1;
  padding: var(--s4) var(--gut) calc(var(--s6) + env(safe-area-inset-bottom)); transform: translateX(-100%); transition: transform 420ms var(--ease-drawer); }
.sheet--menu.is-open .sheet__panel { opacity: 1; transform: none; }
.sheet--menu .sheet__panel::before { display: none; }
.menu-nav { display: grid; margin: var(--s5) 0; }
.menu-nav a { display: flex; align-items: center; min-height: 52px; font: var(--w-h) calc(1.375rem * var(--k-h))/1.2 var(--f-serif); text-decoration: none; border-bottom: 1px solid var(--line-l); }
.menu-nav .menu-nav__sub { min-height: 44px; padding-left: var(--s5); font: 400 1rem/1.3 var(--f-sans); color: var(--gold-lo); }
.menu-nav [aria-current="page"] { color: var(--gold-lo); }
.menu-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.375rem; font-weight: 500; color: var(--ink); text-decoration: none; }

/* ---------- переход между страницами (Page Transitions / 3) ---------- */
.pt { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.pt__l { position: absolute; inset: 0; clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); }
.pt__l--gold { background: var(--gold); }
.pt__l--g { background: var(--g8); }
.pt-enter .pt__l--g { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
.sheet-open, .sheet-open body { overflow: hidden; }

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

/* 14.10: плотнее по вертикали — меньше пустых отступов между блоками */
:root { --sec: 44px; }
@media (min-width: 960px) { :root { --sec: 48px; --gap-h: var(--s5); } }
@media (min-width: 960px) and (max-height: 1000px) { :root { --sec: 42px; } }
.ftr__bottom { margin-top: var(--s6); }

/* 25.10: в шапке телефон только значком на всех страницах и ширинах — номер в строке меню не появляется */
.hdr .hdr__phone span { display: none; }

/* 26.10: инструменты утверждения (переключатели вариантов, карта/визитка, «Утверждение ✓», строка комбинации)
   посетители не видят; включаются ссылкой с ?review, выключаются ?review=0 */
html:not(.is-review) :is(.combo, .rv-tg, .rv, .map-sw, .card-sw, .vsw, .theme-switch, .logo-switch, .hx-sw, .hs-sw, .qt-sw) { display: none !important; }

/* 27.10 (юрист): оговорка в подвале — тексты сайта не консультация */
.ftr__note { flex-basis: 100%; margin: 0; padding-top: 2px; font-size: .8125rem; line-height: 1.5; color: var(--t-d2); }
@media (max-width: 599px) { .ftr__note { font-size: .875rem; } }

/* 29.10: окно документа — место под скан занято сразу (пропорция миниатюры), миниатюра видна, пока грузится полный скан */
.doc-big.has-img .doc-ld { position: relative; width: 100%; max-width: calc(min(78vh, 100vh - 250px) * var(--r, .7)); aspect-ratio: var(--r, .7); margin-inline: auto; }
.sheet .doc-big.has-img .doc-ld img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: contain; }
.doc-ld__ph { filter: blur(1.5px); }
.doc-ld__full { opacity: 0; transition: opacity 250ms ease; }
.doc-ld.is-loaded .doc-ld__full { opacity: 1; }
.doc-ld.is-loaded .doc-ld__ph, .doc-ld.is-loaded .doc-ld__msg { visibility: hidden; }
.doc-ld__msg { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(43, 36, 29, .78); color: #fff; font-size: .875rem; white-space: nowrap; }
.doc-ld.is-error .doc-ld__msg { white-space: normal; text-align: center; width: max-content; max-width: 90%; }
@media (max-width: 767px) { .doc-big.has-img .doc-ld { max-width: calc(60vh * var(--r, .7)); } .doc-ld__msg { font-size: .9375rem; } }

/* 05.11 (тестирование, телефоны 320–400 px): длинные кнопки переносят текст, а не раздвигают страницу;
   длинные слова заголовков переносятся; подписи табло не мельче 12 px */
@media (max-width: 400px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; }
  h1, .h1, .xh__t, .h2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  [class^="tb__"] span, .tb__c { font-size: max(12px, 1em); }
}

/* 05.11: логотип «В», надпись 2 (утверждено 01.10) — раньше вставлял logos.js, теперь в разметке */
.lockup.has-logo .sig--hdr,.lockup.has-logo .lockup__t{display:none!important}
.logo-pair{--lh:clamp(44px,4.2vw,58px);display:flex;align-items:center;gap:8px}
.logo-pair img{display:block;width:auto;max-width:none}
.lg-full,.lg-mark{height:var(--lh)}
.lg-text{height:calc(var(--lh) * var(--tr,.42))}
.lt-2{--tr:.42}
.lt-3{--tr:.5}
.lt-4{--tr:.58}
.lt-5{--lh:clamp(40px,3.4vw,48px);gap:12px}
.lg-inline{display:flex;align-items:center;gap:12px}
.lg-name{height:calc(var(--lh) * .46)}
.lg-sub{height:calc(var(--lh) * .25)}
.lg-inline i{width:1px;height:calc(var(--lh) * .6);background:currentColor;opacity:.25}
@media (max-width:599px){.logo-pair{--lh:40px}
.lt-5{--lh:38px;gap:8px}
.lg-inline{flex-direction:column;align-items:flex-start;gap:3px}
.lg-inline i{display:none}
.lg-name{height:18px}
.lg-sub{height:10px}
}
.hdr .hdr__left{flex:none}
@media (min-width:1280px){.hdr:has(.lt-5) .hdr__in{max-width:min(1440px,100%)}
}
@media (min-width:1280px) and (max-width:1439px){.hdr:has(.lt-5) .nav a{padding:0 6px}
}


/* ---------- 05.11, заказчик: подвал компактный и одинаковый на всех страницах и экранах ----------
   компьютер — 4 колонки; планшет — реквизиты строкой сверху, под ними 3 колонки ссылок; телефон — 2 колонки ссылок */
.ftr { padding-top: var(--s7); font-size: .9375rem; line-height: 1.45; }
.ftr__grid { gap: var(--s5) var(--s6); }
.ftr__col { gap: 0; min-width: 0; }
.ftr__col a { min-height: 34px; }
.ftr__h { margin: 0 0 var(--s1); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t-d); }
.ftr__brand .lockup { margin-bottom: var(--s2); }
.ftr__brand p { margin: 0 0 4px; }
.ftr__c { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin-top: var(--s1); }
.ftr__muted { color: var(--t-d2); }
.ftr__soc { margin-top: var(--s2); }
.ftr__soc a { width: 40px; height: 40px; min-height: 40px; }
.ftr__bottom { margin-top: var(--s5); padding-block: var(--s2); gap: 0 var(--s4); font-size: .8125rem; }
.ftr__bottom a, .ftr__bottom span { min-height: 32px; }
@media (max-width: 599px) {
  .ftr { padding-top: var(--s6); }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ftr__brand { padding-bottom: var(--s4); }
  .ftr__col a { min-height: 40px; }
  /* разделы — строки-переключатели (main.js): свёрнуты, пока не нажмёшь */
  .ftr nav.ftr__col { align-items: stretch; border-top: 1px solid var(--line-d); }
  .ftr nav.ftr__col:last-of-type { border-bottom: 1px solid var(--line-d); }
  .ftr nav.ftr__col .ftr__h { margin: 0; font-size: 1rem; letter-spacing: 0; text-transform: none; }
  .ftr nav.ftr__col:not(.is-open) .ftr__links { display: none; }
  .ftr__links { overflow: hidden; padding-bottom: var(--s2); }
  .ftr__bottom { justify-content: flex-start; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: var(--s6); align-items: start; }
  .ftr__brand .lockup { grid-row: span 5; }
}
@media (min-width: 960px) { .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr .9fr; gap: var(--s6); } }
@media (pointer: coarse) { .ftr__col a { min-height: 40px; } }

.ftr__links { display: flex; flex-direction: column; align-items: flex-start; }
.ftr__links a[aria-current="page"] { color: var(--t-d); font-weight: 500; }
.ftr__tg { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; color: inherit; font: inherit; font-weight: 500; text-align: left; }
.ftr__tg small { min-width: 26px; padding: 1px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--gold) 18%, transparent); font-size: .875rem; font-weight: 500; text-align: center; color: var(--t-d2); }
.ftr__tg .i { margin-left: auto; width: 18px; height: 18px; color: var(--gold-hi); transition: transform 300ms var(--ease-out); }
.ftr__tg[aria-expanded="true"] .i { transform: rotate(45deg); }
/* 05.11: нижняя панель прячется, пока видны кнопки первого экрана (main.js) */
.bar { transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.bar.is-off { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
