/* Сайт «Взял-Вернул», стиль «Стройка» (макет Claude Design, вариант А, выбран Евгением 16.10.2026):
   чёрный и сигнальный жёлтый, заголовки — Unbounded, текст — Golos Text. Сначала телефон.
   Жёлтый — только заливка (под ним чёрный текст) или текст на чёрном: на светлом фоне жёлтый текст не читается. */
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap;
  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; }
/* только знак ₽ (U+20BD) — вырезан из latin-ext (50 КБ → ~1 КБ): остальная латиница-расширенная сайту не нужна */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-rub-700.woff2") format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+20BD; }

:root {
  --bg: #EDEAE3; --surface: #FFFFFF; --soft: #F2EFE8; --line: #DDD8CE; --line-strong: #C9C3B7;
  --text: #121212; --muted: #555555;
  --accent: #FFC700; --accent-hover: #FFD84D; --on-accent: #121212; --accent-soft: #FFF3C4;
  --ok: #2B6E35; --ok-soft: #EBFBEE;
  --dark: #121212; --dark-2: #1F1F1F; --dark-line: #333333; --on-dark: #FFFFFF; --on-dark-muted: #BDBDBD;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --surface: #1C1C1C; --soft: #262626; --line: #2E2E2E; --line-strong: #474747;
    --text: #F2F2F2; --muted: #A8A8A8; --accent-soft: #3A3000;
    --ok: #8BD39A; --ok-soft: #1D2E21;
    --dark: #0A0A0A; --dark-2: #1C1C1C;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--dark); border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* шапка — всегда тёмная */
.top { position: sticky; top: 0; z-index: 10; background: var(--dark); border-bottom: 1px solid #2A2A2A; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--on-dark); text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: none; gap: 2px; }
.nav a { padding: 10px 12px; border-radius: 10px; color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); background: var(--dark-2); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); font-weight: 600; }
.btn.ghost:hover { border-color: var(--text); color: var(--text); }
.top .btn.ghost, .hero .btn.ghost, .foot .btn.ghost { background: transparent; color: var(--on-dark); border-color: #5A5A5A; }
.top .btn.ghost:hover, .hero .btn.ghost:hover, .foot .btn.ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* первый экран — тёмная полоса с ценником и сигнальной лентой */
.hero { background: var(--dark); color: var(--on-dark); padding: 24px 0 0; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 8px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: 30px; line-height: 1.08; letter-spacing: -0.02em; max-width: 15ch; }
.hero .lead { font-size: 17px; color: var(--on-dark-muted); margin-top: 14px; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.where { margin-top: 16px; font-size: 14px; color: #9A9A9A; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.pricetag { position: relative; margin: 24px 4px 0; padding: 20px 20px 18px; border-radius: 16px; background: var(--accent); color: var(--on-accent); transform: rotate(-2deg); max-width: 360px; }
.pricetag::before { content: ""; position: absolute; top: 14px; right: 16px; width: 14px; height: 14px; border-radius: 7px; background: var(--dark); }
.pricetag .k { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding-right: 32px; }
.pricetag .v { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.05; margin-top: 2px; white-space: nowrap; }
.pricetag .s { font-weight: 600; font-size: 15px; margin-top: 6px; }
.pricetag .n { font-size: 14px; font-weight: 500; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--on-accent); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding-top: 24px; padding-bottom: 24px; }
.stats div { border-top: 2px solid var(--dark-line); padding-top: 10px; }
.stats b { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--accent); }
.stats span { display: block; margin-top: 2px; color: var(--on-dark-muted); font-size: 13px; }
.stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--dark) 14px 28px); }
@media (min-width: 960px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .pricetag { margin: 0 auto; padding: 32px 30px 26px; transform: rotate(-3deg); }
  .pricetag::before { top: 18px; right: 22px; width: 18px; height: 18px; border-radius: 9px; }
  .pricetag .k { font-size: 15px; }
  .pricetag .v { font-size: 50px; }
  .pricetag .s { font-size: 17px; }
  .pricetag .n { font-size: 15px; margin-top: 18px; padding-top: 16px; }
}

/* разделы */
section.block { padding: 40px 0 8px; }
.block > .wrap > h2, .block h2.h { font-size: 24px; margin-bottom: 16px; }
.block .sub { color: var(--muted); margin: -6px 0 18px; max-width: 62ch; }
.grid { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--muted); margin-top: 6px; }

.stack > * + * { margin-top: 8px; }
.note { margin-top: 10px; }

/* как это работает: шаги с картинками (картинки — illustrations.py, цвета — отсюда) */
.how { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; align-content: start; padding: 14px; }
.how .pic { position: relative; }
.how .pic::before { counter-increment: s; content: "0" counter(s); position: absolute; left: -2px; top: -2px; z-index: 1; width: 34px; height: 34px; border-radius: 9px; background: var(--dark); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.how h3 { font-size: 17px; }
.how p { font-size: 15px; }
.how .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.how .tags span { padding: 3px 10px; border-radius: 8px; background: var(--soft); color: var(--text); font-size: 13px; }
.il { width: 100%; height: auto; }
.il .bg { fill: var(--accent-soft); }
.il .s, .il .so, .il .sa, .il .mu { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.il .s { stroke: var(--text); }
.il .so { stroke: var(--surface); }
.il .sa { stroke: var(--on-accent); }
.il .mu { stroke: var(--muted); stroke-width: 2; }
.il .w { fill: var(--surface); }
.il .a { fill: var(--accent); }
.il .ok { fill: var(--ok); }
.il .soft { fill: var(--soft); }
.il text { font: 700 12px "Golos Text", system-ui, sans-serif; fill: var(--on-accent); }
.il text.big { font-size: 17px; }
.il text.on-ok { fill: var(--surface); }
@media (min-width: 1060px) {
  .how { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .how li { grid-template-columns: 1fr; gap: 10px; position: relative; padding: 16px; }
  .how li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 72px; z-index: 2; width: 26px; height: 26px; border-radius: 8px; background: var(--dark); color: var(--accent); font-size: 14px; display: flex; align-items: center; justify-content: center; }
  .how .pic { padding: 0 6px; }
}

/* фото инструмента: карточка, мелкий инструмент, страница позиции */
.tool .t-pic { display: block; margin: -18px -18px 14px; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--soft); }
.tool .t-pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-h { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
#instrument h2 + .cat-h { margin-top: 4px; }
.minis { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mini img, .mini .noimg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.mini div { padding: 8px 10px 10px; display: grid; gap: 2px; }
.mini b { font-size: 14px; line-height: 1.25; }
.mini span { font-size: 13px; color: var(--muted); }
.t-fig { position: relative; margin: 24px 0 30px; }
.t-fig img { width: 100%; height: auto; border-radius: 20px; background: var(--soft); }
.t-fig .pricetag { position: absolute; left: -6px; bottom: -26px; margin: 0; max-width: 280px; padding: 14px 16px 12px; }
.t-fig .pricetag .v { font-size: 32px; }
.t-fig .pricetag .n { display: none; }
.t-spec { color: var(--muted); margin-bottom: 14px; }
.t-spec b { color: var(--text); }
@media (min-width: 960px) { .t-fig { margin: 0; } .t-fig .pricetag { left: -24px; bottom: -22px; } }
/* мелкий инструмент — ссылка на свою страницу; увеличение фото (static/zoom.js) */
.mini a { display: block; color: inherit; text-decoration: none; }
.mini a:hover b { text-decoration: underline; }
.t-fig .zoom { display: block; position: relative; cursor: zoom-in; border-radius: 20px; }
.t-fig .zoom::after { content: ""; position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(18, 18, 18, .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 22px no-repeat; }
.lb { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(0, 0, 0, .88); }
.lb img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; background: transparent; }
.lb-x { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* страница позиции /arenda/<slug>/ */
.crumbs { font-size: 14px; color: #9A9A9A; margin-bottom: 14px; }
.crumbs a { color: var(--on-dark-muted); }
.prices.big { margin-top: 0; }
.prices.big div.main { background: var(--accent); }
.prices.big div.main dt, .prices.big div.main dd { color: var(--on-accent); }
.kit { list-style: none; margin: 0; padding: 8px 18px; display: grid; gap: 0; }
.kit li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.kit li:first-child { border-top: 0; }
.kit svg { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.steps-short { margin: 0; padding: 14px 18px 14px 36px; display: grid; gap: 8px; }
.steps-short li { color: var(--muted); }
.steps-short b { color: var(--text); }
.tool h3 a { color: var(--text); text-decoration: none; }
.tool h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
table.price td:first-child a { color: var(--text); }
@media (min-width: 720px) { .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .kit li:nth-child(2) { border-top: 0; } }

/* залог: развилка после проверки (на тёмной плашке) */
.fork { margin: 20px 0 6px; display: grid; gap: 10px; }
.f-start { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--dark-2); }
.f-start b { color: var(--on-dark); font-size: 18px; }
.f-start span, .f-way > span:last-child { color: var(--on-dark-muted); font-size: 14px; }
.f-ways { display: grid; gap: 10px; position: relative; }
.f-way { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--dark-line); }
.f-way b { color: var(--on-dark); font-family: var(--display); font-size: 26px; line-height: 1.2; }
.f-way.yes { border-color: var(--accent); }
.f-way.yes b { color: var(--accent); font-size: 34px; }
.f-tag { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--on-dark-muted); }
.yes .f-tag { color: var(--accent); }
.f-tag svg { width: 18px; height: 18px; flex: none; }
.dark p.f-end { color: var(--on-dark); font-weight: 600; margin-top: 4px; font-size: 17px; }
@media (min-width: 720px) {
  .f-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 22px; }
  .f-ways::before { content: ""; position: absolute; top: 4px; left: 25%; right: 25%; height: 18px; border: 2px solid var(--dark-line); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .f-ways::after { content: ""; position: absolute; top: -10px; left: calc(50% - 1px); width: 2px; height: 14px; background: var(--dark-line); }
  .f-way.yes b { font-size: 44px; }
}

/* сроки: полоса «сутки + льгота» и что делать, если что-то пошло не так */
.tl-bar { display: flex; border-radius: 12px; overflow: hidden; }
.tl-bar > div { display: grid; gap: 2px; padding: 10px 14px; min-width: 0; }
.tl-bar b { font-family: var(--display); font-size: 14px; }  /* переносится на узких: «Пн 15:00 → / Вт 15:00» */
.tl-bar span { font-size: 13px; }
.tl-rent { flex: 2; background: var(--accent); color: var(--on-accent); }
.tl-grace { flex: 1; background: var(--ok-soft); color: var(--ok); border-left: 2px dashed var(--surface); }
.tl p { margin-top: 12px; }
.cases { margin-top: 12px; }
.case { display: flex; gap: 12px; align-items: flex-start; }
.case svg { width: 36px; height: 36px; flex: none; padding: 7px; border-radius: 9px; background: var(--dark); color: var(--accent); }
.case h3 { font-size: 17px; }
.case p { margin-top: 2px; }
@media (min-width: 720px) {
  .tl-rent { flex: 3; }
  .tl-bar b { font-size: 17px; }
}

/* позиции: цена суток — на жёлтом ценнике */
.tool h3 { font-size: 18px; line-height: 1.25; }
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sticker { flex: none; padding: 5px 10px 4px; border-radius: 8px; background: var(--accent); color: var(--on-accent); text-align: center; transform: rotate(2deg); line-height: 1.1; }
.card p.sticker { color: var(--on-accent); margin-top: 0; }
.sticker b { display: block; font-family: var(--display); font-size: 16px; white-space: nowrap; }
.sticker span { display: block; font-size: 11px; font-weight: 600; }
.tool .for { color: var(--muted); margin-top: 8px; font-size: 15px; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }  /* 5 тарифов кроме суток — 3 + 2 */
.prices div { background: var(--soft); border-radius: 10px; padding: 8px; min-width: 0; }
.prices dt { font-size: 12px; color: var(--muted); white-space: nowrap; }
.prices dd { margin: 0; font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 340px) { .prices dd { font-size: 14px; white-space: normal; } }
.dep { margin-top: 10px; font-size: 14px; color: var(--muted); }
.dep b { color: var(--text); font-weight: 700; }
.card.tool { display: flex; flex-direction: column; }
.tool .take { margin-top: auto; padding-top: 12px; }
table.price td.take { width: 1%; padding-top: 6px; padding-bottom: 6px; }
.more { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span, .chips a { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.chips a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.chips a:hover { border-color: var(--text); }

.dark { background: var(--dark); color: var(--on-dark); border-radius: 20px; padding: 24px 18px; }
.dark h2 { color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); margin-top: 10px; }
.dark p:first-of-type { color: var(--on-dark); }
@media (prefers-color-scheme: dark) { .dark { border: 1px solid var(--line); } }

.why .card { display: flex; gap: 12px; align-items: flex-start; }
.why svg { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 7px; background: var(--accent); color: var(--on-accent); margin-top: 0; }
.why h3 { font-size: 17px; }
.why p { margin-top: 2px; }

/* вопросы */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 16px; font-weight: 600; position: relative; min-height: 48px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

/* как найти */
.find dl { margin: 0; display: grid; gap: 12px; }
.find dt { font-size: 13px; color: var(--muted); }
.find dd { margin: 2px 0 0; font-weight: 600; }

/* прайс */
.page-head { padding: 28px 0 4px; }
.page-head h1 { font-size: 30px; }
.notes { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.notes li { padding-left: 18px; position: relative; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.group { margin-top: 32px; }
.group h2 { font-size: 22px; }
.group .gnote { color: var(--muted); margin-top: 6px; }
.group h3.cat { font-size: 15px; font-weight: 600; color: var(--muted); margin: 18px 0 8px; text-transform: none; }
table.price { width: 100%; border-collapse: collapse; }
table.price caption { text-align: left; }
table.price th { font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; padding: 8px 10px; white-space: nowrap; }
table.price th:first-child, table.price td:first-child { text-align: left; }
table.price td { padding: 12px 10px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
table.price td:first-child { white-space: normal; font-weight: 600; }
table.price td.day { font-weight: 700; background: var(--accent-soft); }
.tablecard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px; margin-top: 8px; }

/* документы: политика, правила, оферта (site/docs, tools/docs.py) */
.doc .wrap { max-width: 820px; }
.doc { padding: 8px 0 24px; }
.doc h2, .doc h3 { font-family: "Golos Text", system-ui, sans-serif; font-weight: 700; margin: 28px 0 10px; }
.doc h2 { font-size: 22px; } .doc h3 { font-size: 19px; }
.doc p, .doc li { color: var(--text); }
.doc p + p, .doc ul, .doc ol { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 4px; }
.doc .tbl { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc table { border-collapse: collapse; min-width: 640px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.doc th { border-top: 0; background: var(--soft); font-weight: 600; }
.doc code { font-size: 0.9em; }

/* на телефоне таблица — карточками: подпись столбца из data-label */
@media (max-width: 719px) {
  table.price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.price, table.price tbody, table.price tr, table.price td { display: block; }
  table.price tr { padding: 12px 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
  table.price tbody tr:first-child { border-top: 0; }
  table.price td { border: 0; padding: 0; text-align: left; }
  table.price td.day { background: none; }
  table.price td.day::after { content: ""; display: block; height: 3px; width: 32px; margin-top: 2px; background: var(--accent); }
  table.price td:first-child { grid-column: 1 / -1; font-size: 16px; margin-bottom: 2px; }
  table.price td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
  table.price td.empty { display: none; }
  table.price td.take { grid-column: 1 / -1; width: auto; padding: 4px 0 0; }
  table.price td.take:empty { display: none; }
  table.price td.take .btn { width: 100%; }
}

/* подвал — тёмный, три колонки */
footer.foot { margin-top: 48px; background: var(--dark); color: var(--on-dark-muted); font-size: 14px; }
footer.foot .stripe { height: 8px; }
footer.foot .wrap { display: grid; gap: 14px; padding-top: 32px; padding-bottom: 32px; }
.f-cols { display: grid; gap: 22px; }
.f-k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #8A8A8A; }
.f-v { margin-top: 4px; color: var(--on-dark); font-weight: 600; font-size: 16px; }
.f-cols p + p { margin-top: 2px; }
footer.foot a.f-phone { display: inline-block; margin-top: 4px; color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 20px; text-decoration: none; }
footer.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
/* 21.10: ссылки и «Настройки cookie» — одной высоты (44 px для пальца), подчёркивание одинаковое; иначе кнопка ниже строки */
footer.foot nav a, footer.foot nav .linklike { min-height: 44px; display: inline-flex; align-items: center;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
footer.foot nav .linklike:hover, footer.foot nav a:hover { text-decoration-color: currentColor; }
footer.foot a { color: var(--on-dark-muted); }
.f-copy { color: #8A8A8A; }

/* плашка о cookie (consent.js): компактная полоска внизу, кнопка «Хорошо» справа; «Отказаться» — ссылкой в тексте */
.cookie { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 30; max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px;
  background: var(--dark); color: var(--on-dark); border: 1px solid var(--dark-line); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.cookie p { flex: 1; font-size: 13px; line-height: 1.35; color: var(--on-dark-muted); }
.cookie a, .cookie-no { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #666; }
.cookie-no { background: none; border: 0; padding: 4px 0; min-height: 28px; font: inherit; cursor: pointer; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 719px) { .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); } }  /* над нижней панелью */
.cookie a:hover, .cookie-no:hover { color: var(--on-dark); }
.cookie .btn.small { flex: none; min-height: 40px; padding: 0 16px; }
@media (min-width: 720px) { .cookie { left: 16px; right: auto; bottom: 16px; margin: 0; } }
.cookie[hidden] { display: none; }  /* display: flex выше иначе перебивает атрибут hidden */

/* нижняя панель на телефоне */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--dark); border-top: 1px solid #2A2A2A; }
.cta-bar .btn { flex: 1; }
.cta-bar .btn.ghost { background: transparent; color: var(--on-dark); border-color: #5A5A5A; }
body.has-bar { padding-bottom: 76px; }
/* панель выезжает, когда пролистан первый экран: анимация по прокрутке, без скриптов (Safari 26+, Chrome 115+);
   где не поддерживается — панель видна сразу, как раньше */
@keyframes bar-in { 0%, 70% { transform: translateY(110%); visibility: hidden; } 100% { transform: none; visibility: visible; } }
@supports (animation-timeline: scroll()) {
  .cta-bar { animation: bar-in linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
}

.err { padding: 72px 0 24px; text-align: center; }
.err h1 { font-size: 34px; }
.err p { color: var(--muted); margin-top: 12px; }
.err .actions { justify-content: center; }

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .nav { display: flex; }
  .brand { font-size: 18px; }
  .hero { padding: 56px 0 0; }
  .hero h1 { font-size: 54px; }
  .hero .lead { font-size: 20px; }
  .where { font-size: 15px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 48px; padding-bottom: 44px; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 15px; }
  .stripe { height: 14px; background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, var(--dark) 18px 36px); }
  .block > .wrap > h2, .block h2.h { font-size: 36px; }
  .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dark { padding: 36px; }
  .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .cta-bar { display: none; }
  body.has-bar { padding-bottom: 0; }
  .find dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head h1 { font-size: 44px; }
  .f-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .err h1 { font-size: 44px; }
}
@media (min-width: 1000px) {
  .grid.tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (max-width: 999px) {
  .grid.tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .top, .cta-bar, .actions, .stripe { display: none; } .hero, footer.foot { background: none; color: #000; } }
/* QR «Написать в Max» (22.10.2026): в «Как нас найти» — на компьютере (на телефоне есть кнопка), в подвале — только на бумаге */
.max-qr { display: none; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.max-qr img { width: 112px; height: 112px; flex: none; }
.max-qr p { margin: 0; max-width: 260px; color: var(--muted); font-size: 14px; }
@media (min-width: 720px) and (hover: hover) { .max-qr { display: flex; } }
.f-qr { display: none; }
@media print { .f-qr { display: flex; align-items: center; gap: 12px; color: #000; break-inside: avoid; } .f-qr img { width: 30mm; height: 30mm; } .max-qr { display: none; }
  .cookie { display: none !important; } footer.foot .f-v, footer.foot .f-k, footer.foot a, footer.foot .f-copy { color: #000; } }  /* подвал на бумаге — чёрным */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 720px) { .mob { display: none; } }
@media (max-width: 719px) { .desk { display: none; } }
.addon-note { color: var(--muted); margin-top: -6px; }

/* поиск и корзина (static/shop.js, 20.10.2026) */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--on-dark); flex: none; }
.cart-link:hover, .cart-link[aria-current="page"] { background: var(--dark-2); }
.cart-link svg { width: 24px; height: 24px; }
.cart-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.search-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--on-dark); cursor: pointer; flex: none; }
.search-btn:hover, .search-btn[aria-expanded="true"] { background: var(--dark-2); }
.search-btn svg { width: 22px; height: 22px; }
.searchbar { border-top: 1px solid #2A2A2A; padding: 10px 0 12px; }
.searchbar .wrap { display: flex; gap: 8px; align-items: center; }
.searchbar .search { flex: 1; }
.search-x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--on-dark-muted); font-size: 28px; line-height: 1; cursor: pointer; }
.search-x:hover { color: var(--on-dark); background: var(--dark-2); }
.search { position: relative; }
.search input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px 0 42px; border-radius: 12px; border: 1.5px solid #3A3A3A; background: #1E1E1E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20'/%3E%3C/svg%3E") 13px center / 20px no-repeat; color: #F2F2F2; font: inherit; font-size: 16px; }
.search input::placeholder { color: #8A8A8A; }
.search input:focus { border-color: var(--accent); outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.hero-search { margin-top: 20px; max-width: 560px; }
.search.big input { min-height: 56px; border-radius: 14px; padding-left: 50px; font-size: 17px; background-color: #FFFFFF; background-position: 16px center; background-size: 22px; color: #121212; border: 2px solid var(--accent); }
.search.big input::placeholder { color: #6A6A6A; }
.search.big input:focus { box-shadow: 0 0 0 4px rgba(255, 199, 0, .3); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.quick a { padding: 5px 11px; border-radius: 999px; border: 1px solid #3A3A3A; color: var(--on-dark-muted); text-decoration: none; font-size: 14px; }
.quick a:hover { border-color: var(--accent); color: var(--on-dark); }
.sr { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.25); max-height: 70vh; overflow-y: auto; }
.sr li { display: flex; align-items: center; gap: 8px; border-radius: 10px; }
.sr li.cur, .sr li:hover { background: var(--soft); }
.sr li > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; color: var(--text); text-decoration: none; }
.sr img, .sr .noimg { width: 64px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; background: var(--soft); }
.sr-t { display: grid; min-width: 0; }
.sr-t b { font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.sr-t span { font-size: 13px; color: var(--muted); }
.sr li .btn { margin-right: 6px; flex: none; }
.sr .sr-none { display: block; padding: 12px; color: var(--muted); }
.btn.in { border-color: var(--accent) !important; }
.mini { display: flex; flex-direction: column; }
.mini > a, .mini > div { flex: 1; }
.mini-add { margin: 0 10px 10px; min-height: 36px; font-size: 14px; }
.kit li .btn { margin-left: auto; flex: none; }
.kit li { align-items: center; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 50; padding: 12px 16px; border-radius: 12px; background: var(--dark); color: var(--on-dark); font-size: 15px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); }
.cart-term { margin-top: 18px; }
.cart-term h2 { margin: 0 0 10px; font-size: 18px; }
.cart-dates { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.cart-dates label { flex: 1 1 200px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-weight: 600; font-size: 14px; }
/* iPhone: у datetime-local своя ширина — без appearance:none и min-width:0 поле вылезает за карточку (24.10.2026) */
.cart-dates input { min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: left; }
.cart-dates input::-webkit-date-and-time-value { text-align: left; }
.cart-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cart-dep { margin: 12px 0; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--soft); font-size: 15px; color: var(--text); }
.cart-dep p, .cart-dep li { margin: 0 0 6px; color: var(--text) !important; }
.cart-dep ul { margin: 0 0 6px; padding-left: 20px; }
.cart-dep-h { font-weight: 700; font-size: 17px; }
.cart-checkout { margin-top: 14px; scroll-margin-top: 80px; }
.cart-checkout h2 { margin: 0 0 10px; font-size: 18px; }
.cart-checkout .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; }
.cart-checkout .field { margin-bottom: 10px; }
.cart-checkout label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-checkout .opt { font-weight: 400; color: var(--muted); }
.cart-checkout input:not([type=checkbox]), .cart-checkout textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.cart-checkout label.inline, .cart-checkout label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; }
.cart-checkout label.consent { font-size: 13px; line-height: 1.4; color: var(--muted); }
.cart-checkout input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.cart-checkout .btn.big { margin-top: 8px; }
.field-err, .form-err, .card p.field-err, .card p.form-err { margin: 4px 0 0; color: #B42318; font-size: 14px; }  /* .card p красил их серым */
.field-err:empty, .form-err:empty { display: none; }
.field-hint { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.cart-checkout input[aria-invalid] { border-color: #B42318; }
.field-hint:empty { display: none; }
.mailfix { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cart-checkout .hp { position: absolute; left: -9999px; }
.cart-done { margin-top: 18px; }
.cart-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.cart-quick .btn.on { background: var(--text); border-color: var(--text); color: var(--surface); }
.cart-total.bad { font-size: 16px; color: #B42318 !important; }
.cart-list { list-style: none; margin: 18px 0 0; padding: 6px 14px; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-pic img { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--soft); display: block; }
.cart-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cart-txt a { font-weight: 600; }
.cart-x { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer; flex: none; }
.cart-kits { margin: 12px 0 0; padding-left: 20px; }
.cart-sum { margin-top: 14px; }
.cart-total { font-size: 20px; color: var(--text) !important; }
.cart-total b { font-family: var(--display); font-size: 26px; }
.cart-sum .btn { margin-top: 8px; }
.cart-sum .linklike { display: block; margin-top: 12px; }
.cart-sug { list-style: none; padding: 0; display: grid; gap: 10px; }
.kit-card { margin-top: 12px; }
.kit-h { margin: 0 0 10px; }
.kit-card > .btn { margin-top: 12px; }
.mc-row, .mc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mc-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: stretch; }
.mc-row .mc-plus { display: none; }
.mc-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 10px; }
.mc { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.mc.in { border-color: var(--text); }
.mc-pic img, .mc-pic .noimg { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 10px; object-fit: cover; background: var(--soft); }
.mc-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.mc-price { font-size: 14px; color: var(--muted, #6b665e); }
.mc .btn { margin-top: auto; }
.mc-in { margin-top: auto; font-size: 14px; font-weight: 600; }
.cart-sug li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 960px) { .searchbar .search { max-width: 720px; } }
.top .sr .btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.top .sr .btn.ghost:hover { border-color: var(--text); color: var(--text); }
.brand { white-space: nowrap; }
@media (max-width: 420px) {
  .top .wrap { gap: 6px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand svg { width: 26px; height: 26px; }
  .top .btn.mob { padding: 0 10px; }
  .sr li .btn { padding: 0 10px; font-size: 13px; min-height: 36px; }
  .sr img, .sr .noimg { width: 52px; height: 39px; }
}
/* аудит 21.10: зоны нажатия не меньше 44 px (плашка cookie, «Настройки cookie» в подвале, «Очистить корзину», крестик) */
.cookie-no { min-height: 44px; padding: 0 4px; }
.cookie .btn.small { min-height: 44px; }
.linklike { min-height: 44px; display: inline-flex; align-items: center; }
.cart-sum .linklike { display: flex; }
.cart-x { min-width: 44px; min-height: 44px; }
