/* ФОРМІРА — сливовая редакционная композиция.
   Одна светлая тема по брифу (палитра задана заказчиком), все цвета — токены. */

@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-serif-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-serif-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-sans-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-sans-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* палитра брифа */
  --bg: #F8F0F2;
  --surface: #FFFFFF;
  --ink: #3B2733;
  --plum: #834B70;
  --sage: #B6C8A8;
  /* производные (проверены на контраст ≥ 4.5:1 там, где несут текст) */
  --ink-2: #5C4452;
  --plum-deep: #6B3A5B;
  --plum-wash: #F1E2EA;
  --sage-wash: #E8EFE2;
  --sage-ink: #3A4D30;
  --line: #E3D2DA;
  --line-strong: #B99DAB;
  --on-ink: #F8F0F2;
  --on-ink-2: #DCC8D2;

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --maxw: 1240px;
  --hdr-h: 68px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: max(32px, env(safe-area-inset-left, 0px)); --gutter-r: max(32px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1280px) { :root { --gutter: max(40px, env(safe-area-inset-left, 0px)); --gutter-r: max(40px, env(safe-area-inset-right, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--bg); z-index: 40;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-deep); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* фокус: плавное «подтягивание» рамки */
:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  animation: focus-in 0.18s ease-out;
}
@keyframes focus-in { from { outline-offset: 7px; outline-color: rgba(131, 75, 112, 0.2); } to { outline-offset: 3px; outline-color: var(--plum); } }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 60;
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: var(--r-sm);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); color: var(--on-ink); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; background: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-deep); color: #fff; }
.btn--line { border-color: var(--plum); color: var(--plum); }
.btn--line:hover { background: var(--plum-wash); color: var(--plum-deep); }
.btn--quiet { color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; padding-inline: 12px; }
.btn--quiet:hover { color: var(--ink); }

/* ---------- шапка ---------- */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; flex: none; }
.logo:hover { color: var(--ink); }
.logo__word { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.08em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__list { list-style: none; display: flex; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-radius: var(--r-sm);
}
.nav__link:hover { color: var(--plum); background: var(--plum-wash); }
.hdr__tools { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.lang__item {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px;
  border-radius: 999px; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
}
.lang__item[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
a.lang__item:hover { background: var(--plum-wash); color: var(--plum-deep); }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 0.9375rem;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-btn__bars::before { position: absolute; top: -5px; }
.menu-btn__bars::after { position: absolute; top: 5px; }

@media (max-width: 1079px) {
  .menu-btn { display: inline-flex; }
  .hdr__tools { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter-r) 20px var(--gutter);
    box-shadow: 0 18px 30px -24px rgba(59, 39, 51, 0.45);
  }
  .nav.is-open { display: flex; }
  .no-js .nav { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 12px; }
  .nav__list { flex-direction: column; }
  .nav__link { font-size: 1.0625rem; padding: 0 8px; }
  .nav__cta { align-self: flex-start; }
}

/* ---------- первый экран ---------- */
.hero { padding-block: 40px 56px; }
.hero__grid { display: grid; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 22px; height: 10px; border-radius: 3px; background: var(--sage); }
.hero__title { margin-top: 18px; font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4.4rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 17ch; }
.hero__lead { margin-top: 24px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); max-width: 60ch; color: var(--ink); }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.call-hint { margin-top: 12px; max-width: 52ch; font-size: 0.9375rem; color: var(--plum-deep); font-weight: 600; }
.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line-strong); padding-top: 20px; max-width: 620px; }
.facts__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; min-width: 0; }
.facts dt { font-size: 0.875rem; color: var(--ink-2); line-height: 1.35; }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1; color: var(--plum); }
.hero__checked { margin-top: 18px; font-size: 0.875rem; color: var(--ink-2); }

.hero__figure { margin: 0; position: relative; max-width: 460px; width: 100%; justify-self: start; padding: 18px 18px 0 0; }
.hero__figure::before { /* статичная «пластина» за фото */
  content: ""; position: absolute; top: 0; right: 0; width: 72%; height: 64%;
  background: var(--sage); border-radius: var(--r-lg);
}
.hero__frame { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 40px -28px rgba(59, 39, 51, 0.5); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__figure figcaption { position: relative; margin-top: 14px; font-size: 0.9375rem; color: var(--ink); display: grid; gap: 4px; }
.hero__figure small { font-size: 0.8125rem; color: var(--ink-2); }

@media (min-width: 960px) {
  .hero { padding-block: 64px 88px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .hero__text { grid-column: 1 / span 7; }
  .hero__figure { grid-column: 9 / span 4; margin-top: 72px; justify-self: stretch; }
}

/* ---------- секции: номер слева, текст справа ---------- */
.sec { padding-block: 64px; border-top: 1px solid var(--line); }
.sec__grid { display: grid; gap: 16px 24px; }
.sec__mark { display: flex; align-items: baseline; gap: 12px; }
.sec__num { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; color: var(--plum); }
.sec__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.sec__head h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); max-width: 26ch; }
.sec__intro { margin-top: 16px; max-width: 64ch; color: var(--ink); }
.sec__body { margin-top: 24px; min-width: 0; }
@media (min-width: 960px) {
  .sec { padding-block: 96px; }
  .sec__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sec__mark { grid-column: 1 / span 3; flex-direction: column; gap: 6px; padding-top: 10px; }
  .sec__num { font-size: 3.25rem; line-height: 1; }
  .sec__head { grid-column: 4 / span 9; }
  .sec__body { grid-column: 4 / span 9; margin-top: 32px; }
}

.sources { margin-top: 14px; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2); }
.sources__label { font-weight: 600; }
.sources a { color: var(--ink-2); }
.sources a:hover { color: var(--plum-deep); }

/* ---------- направления ---------- */
.dirs { list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.dir {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 22px;
}
.dir::before { /* маленькая пластина-метка, одинаковая для всех направлений */
  content: ""; width: 34px; height: 12px; border-radius: 4px; background: var(--plum); margin-bottom: 4px;
}
.dir__title { font-size: 1.375rem; }
.dir__text { color: var(--ink); }
.dir__count { font-size: 0.9375rem; font-weight: 600; color: var(--sage-ink); background: var(--sage-wash); align-self: flex-start; padding: 4px 12px; border-radius: 999px; }
.dir__btn { align-self: flex-start; margin-top: auto; }

/* «справка» — раскрывающийся пояснительный блок */
.ref { border-top: 1px dashed var(--line-strong); }
.ref__sum {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  min-height: 44px; font-weight: 600; font-size: 0.9375rem; color: var(--plum);
}
.ref__sum::-webkit-details-marker { display: none; }
.ref__sum::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 8px no-repeat;
  transition: transform 0.2s ease;
}
.ref[open] > .ref__sum::before { background: linear-gradient(currentColor, currentColor) center / 8px 1.5px no-repeat; transform: rotate(180deg); }
.ref__sum:hover { color: var(--plum-deep); }
.ref__body { padding: 2px 0 12px; display: grid; gap: 10px; font-size: 0.96875rem; }
.reveal { animation: reveal 0.32s cubic-bezier(.2, .7, .2, 1); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- подготовка ---------- */
.prep { display: grid; gap: 20px; }
@media (min-width: 1080px) { .prep { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 24px; } }
.prep__docs { display: grid; gap: 16px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.doc__title { font-size: 1.25rem; }
.doc__list { margin-top: 14px; list-style: none; display: grid; gap: 10px; }
.doc__list li { position: relative; padding-left: 26px; }
.doc__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-radius: 3px; background: var(--sage); }
.doc__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.ask { background: var(--sage-wash); border-radius: var(--r-lg); padding: 26px 24px; }
@media (min-width: 1080px) { .ask { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.ask__title { font-size: 1.25rem; color: var(--ink); }
.ask__list { margin-top: 16px; list-style: none; counter-reset: q; display: grid; gap: 12px; }
.ask__list li { counter-increment: q; position: relative; padding-left: 40px; }
.ask__list li::before {
  content: counter(q); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; background: var(--surface); color: var(--sage-ink); font-weight: 600; font-size: 0.875rem;
}
.price-note { margin-top: 20px; font-weight: 600; color: var(--plum-deep); background: var(--surface); border-radius: var(--r-sm); padding: 12px 14px; }
.price-note--sm { margin-top: 4px; font-size: 0.875rem; background: var(--plum-wash); }

/* ---------- процесс ---------- */
.steps { list-style: none; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
.step::before { /* статичная линия между шагами */
  content: ""; position: absolute; left: 27px; top: 50px; bottom: 6px; width: 1.5px; background: var(--line-strong);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  width: 56px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.125rem; color: var(--plum);
  background: var(--surface); border: 1.5px solid var(--plum);
}
.step__body { padding-top: 6px; min-width: 0; }
.step__title { font-size: 1.25rem; margin-bottom: 8px; }
@media (min-width: 960px) {
  .step { grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding-bottom: 36px; }
  .step::before { left: 35px; top: 56px; }
  .step__num { width: 72px; height: 50px; font-size: 1.375rem; }
  .step__body { max-width: 68ch; }
}

/* ---------- каталог ---------- */
.sec--catalog { background: var(--surface); }
.sec--catalog:focus { outline: none; }
.cat-summary {
  margin-top: 32px; display: grid; gap: 16px; align-items: center;
  background: var(--plum-wash); border-radius: var(--r-lg); padding: 22px 22px 22px 26px; position: relative; overflow: hidden;
}
.cat-summary::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 6px; border-radius: 0 6px 6px 0; background: var(--plum); }
.cat-summary__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum-deep); }
.cat-summary__title { margin-top: 6px; font-size: 1.375rem; }
.cat-summary__desc { margin-top: 6px; max-width: 70ch; }
.cat-summary__text > * { animation: reveal 0.3s ease-out; }
.cat-summary__reset { justify-self: start; background: var(--surface); }
@media (min-width: 768px) { .cat-summary { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 28px 26px 34px; } }

.nojs-note { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-2); }
.js .nojs-note { display: none; }
.no-js .filters, .no-js .cat-summary__reset, .no-js .lab__pick, .no-js [data-show-service] { display: none; }

.filters {
  margin-top: 20px; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--search, .chips { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); } .field--search { grid-column: auto; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 0.875rem; font-weight: 600; color: var(--ink); padding: 0; }
.field__ctl {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  padding: 0 14px; font-size: 1rem; color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
select.field__ctl {
  appearance: none; -webkit-appearance: none; padding-right: 42px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23834B70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field__ctl:hover { border-color: var(--plum); }
.field__ctl:focus-visible { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(131, 75, 112, 0.28); animation: none; }
.field__ctl::placeholder { color: #7A6370; opacity: 1; }
.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { margin-bottom: 6px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { border-color: var(--plum); color: var(--plum-deep); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }

.cat-status { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 900px) { .cat-status { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; } }
.cat-count { font-weight: 600; font-size: 1.0625rem; }
.picked {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: space-between;
  border: 1.5px solid var(--plum); border-radius: var(--r); padding: 8px 8px 8px 16px; background: var(--bg); min-width: 0;
}
.picked__text { min-width: 0; font-size: 0.9375rem; }
.picked__label { font-weight: 600; color: var(--plum-deep); }
.picked__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.zero { margin-top: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 28px 24px; display: grid; gap: 10px; justify-items: start; background: var(--bg); }
.zero__title { font-size: 1.375rem; }

.regions { margin-top: 28px; display: grid; gap: 40px; }
.region__title { font-size: 1.5rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.region__count { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.labs { margin-top: 16px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.lab {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lab:target { border-color: var(--plum); }
.lab.is-picked { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum) inset; background: var(--surface); }
.lab__title { font-size: 1.125rem; line-height: 1.3; overflow-wrap: anywhere; }
.lab__status { align-self: flex-start; font-size: 0.875rem; font-weight: 600; color: var(--surface); background: var(--ink); border-radius: 999px; padding: 3px 12px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: var(--sage-wash); color: var(--sage-ink); }
.lab__info { margin: 0; display: grid; gap: 10px; }
.lab__row { display: grid; gap: 2px; min-width: 0; }
.lab__row dt, .lab__extra dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.lab__row dd, .lab__extra dd { margin: 0; min-width: 0; }
.lab__addr { overflow-wrap: anywhere; margin-right: 4px; }
.phone { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 2px; margin-right: 10px; }
.phone__link { font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.copy {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-left: -4px;
  border: 0; background: none; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 0.25em; border-radius: 8px; vertical-align: middle;
}
.copy:hover { color: var(--plum-deep); background: var(--plum-wash); }
.copy.is-done { color: var(--sage-ink); text-decoration: none; }
.muted { color: var(--ink-2); }
.lab__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; }
.lab__pick[aria-pressed="true"] { background: var(--plum); color: #fff; }
.lab__more { flex: 1 1 100%; }
.lab__extra { margin: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.hours { display: block; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q {
  list-style: none; cursor: pointer; position: relative; display: block;
  padding: 20px 52px 20px 0; min-height: 44px;
  font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 10px;
  border: 1.5px solid var(--plum);
  background:
    linear-gradient(var(--plum), var(--plum)) center / 12px 2px no-repeat,
    linear-gradient(var(--plum), var(--plum)) center / 2px 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq__item[open] > .faq__q::after { background: linear-gradient(var(--plum), var(--plum)) center / 12px 2px no-repeat; transform: rotate(180deg); }
.faq__q:hover { color: var(--plum-deep); }
.faq__a { padding: 0 0 22px; max-width: 68ch; }

/* ---------- подвал ---------- */
.ftr { background: var(--ink); color: var(--on-ink); padding-block: 56px 28px; }
.ftr a { color: var(--on-ink); }
.ftr a:hover { color: #fff; }
.ftr :focus-visible { outline-color: var(--sage); }
.ftr__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .ftr__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; } }
.ftr__about { display: grid; align-content: start; gap: 12px; max-width: 56ch; font-size: 0.96875rem; color: var(--on-ink-2); }
.ftr__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.08em; }
.ftr__h { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.ftr ul { list-style: none; display: grid; gap: 2px; }
.ftr__nav a, .ftr__src a { display: inline-flex; align-items: center; min-height: 40px; font-size: 0.9375rem; line-height: 1.35; padding-block: 4px; }
.ftr__bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(248, 240, 242, 0.2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.875rem; color: var(--on-ink-2); }
.ftr__credit { flex: 1 1 320px; }
.ftr__bottom a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- 404 ---------- */
.nf { padding-block: 80px; display: grid; gap: 32px; }
.nf h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.nf h2 { font-size: 1.5rem; }
.nf__col { display: grid; gap: 14px; max-width: 52ch; }

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

/* узкие телефоны: кнопка меню без подписи */
@media (max-width: 419px) {
  .hdr__in { gap: 8px; }
  .logo__word { font-size: 1.0625rem; letter-spacing: 0.06em; }
  .logo__mark { width: 30px; height: 30px; }
  .menu-btn { padding: 0; width: 44px; justify-content: center; }
  .menu-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang__item { min-width: 40px; }
}
