/* ПрокатАР — «Сигнальная лента». Правила и токены описаны в DESIGN.md. */

:root {
  /* Фон и поверхности */
  --bg: #f3f1ea;            /* тёплый светлый «бетон» */
  --paper: #ffffff;         /* карточки: фото техники сняты на белом */
  --paper-2: #faf8f3;       /* поля ввода, вложенные блоки */
  /* Текст */
  --ink: #1d242b;
  --muted: #56606a;
  --dim: #858e97;
  /* Графит из логотипа — шапка, подвал, тёмные секции */
  --graphite: #2c3740;
  --graphite-2: #222b33;
  --graphite-3: #3a4752;
  --on-dark: #eef1f3;
  --on-dark-muted: #aab4bd;
  /* Фирменный жёлтый из логотипа */
  --yellow: #fabb0c;
  --yellow-hi: #ffcd2e;
  --yellow-soft: #fff3c9;
  --yellow-line: rgba(250, 187, 12, .6);
  /* Линии */
  --line: rgba(44, 55, 64, .12);
  --line-2: rgba(44, 55, 64, .22);
  --line-dark: rgba(255, 255, 255, .12);
  /* Статусы — только для ошибок и «открыто/закрыто» */
  --danger: #c4372c;
  --ok: #2b8a52;
  /* Сигнальная лента */
  --tape: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--graphite-2) 12px 24px);
  /* Форма */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 0 rgba(44, 55, 64, .05), 0 14px 30px -18px rgba(44, 55, 64, .45);
  --shadow-lg: 0 30px 60px -30px rgba(29, 36, 43, .55);
  /* Шрифты */
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Сетка */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --hdr-h: 68px;
  --dock-h: 0px;
  /* Движение */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ───────── База ───────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-text);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--graphite-2); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--graphite-2); font-weight: 700; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Типографика ───────── */

.h1, .h2, .h3, .hero__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.h1 { font-size: clamp(30px, 5vw, 60px); }
.h2 { font-size: clamp(26px, 3.6vw, 46px); }
.h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
/* Выделенное слово — жёлтая полоса снизу, как кусок ленты */
.hl { background: linear-gradient(transparent 60%, var(--yellow) 60% 90%, transparent 90%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section--dark .hl { background: none; color: var(--yellow); }

.kicker { display: flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.kicker::before { content: ''; width: 26px; height: 10px; background: var(--tape); border-radius: 2px; flex: none; }
.kicker__num { font-family: var(--font-display); letter-spacing: 0; color: var(--ink); }
.section--dark .kicker, .section--dark .kicker__num { color: var(--on-dark-muted); }

/* ───────── Лента ───────── */

.tape { height: 10px; background: var(--tape); background-size: 34px 34px; }
.tape--thin { height: 5px; }

/* ───────── Кнопки и чипы ───────── */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font: 700 15px/1.1 var(--font-text); text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--y { background: var(--yellow); color: var(--graphite-2); }
/* Наведение: по кнопке «проезжает» сигнальная лента */
.btn--y::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tape); opacity: .18; transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn--y:hover { background: var(--yellow-hi); }
.btn--y:hover::before { transform: translateX(0); }
.btn--ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--graphite); background: var(--paper); }
.btn--dark { background: var(--graphite); color: var(--on-dark); }
.btn--dark:hover { background: var(--graphite-2); }
.btn--block { width: 100%; }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(4px); }
.section--dark .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; }
.icon-btn:hover { background: var(--line); }
.icon-btn .i { width: 22px; height: 22px; }

.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  font: 500 14px/1.2 var(--font-text); text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.chip:hover { border-color: var(--graphite); }
.chip[aria-pressed='true'] { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover .i:last-child { transform: translateX(5px); }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--graphite-2); font: 700 12px/1 var(--font-text); }
.count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ───────── Шапка ───────── */

.hdr { position: sticky; top: 0; z-index: 30; background: var(--graphite); color: var(--on-dark); }
.hdr__bar { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); height: var(--hdr-h); }
.logo { flex: none; }
.logo img { width: 138px; height: auto; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-right: auto; }
.nav a { position: relative; padding: 8px 0; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--on-dark); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.hdr__info { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-dark-muted); }
.status .i { width: 15px; height: 15px; }
.status.is-open { color: #8fdcab; }
.hdr__phone { font: 600 16px/1.3 var(--font-display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.hdr__phone:hover { color: var(--yellow); }
.hdr__call { display: none; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--yellow-line); border-radius: var(--radius-sm); background: transparent; color: var(--on-dark); font-weight: 700; transition: background-color .3s var(--ease), color .3s var(--ease); }
.cart-btn:hover { background: var(--yellow); color: var(--graphite-2); }
.cart-btn .count { margin-left: 2px; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--on-dark); place-items: center; }
.burger .i { width: 24px; height: 24px; }

/* ───────── Шторки (dialog): справа на десктопе, снизу на телефоне ───────── */

.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
}
.sheet[open] { display: flex; animation: sheet-in .45s var(--ease); }
.sheet.is-closing { animation: sheet-out .25s var(--ease) forwards; }
.sheet::backdrop { background: rgba(20, 26, 31, .55); backdrop-filter: blur(2px); animation: fade .3s var(--ease); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes sheet-out { to { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); background: var(--paper); position: relative; }
.sheet__head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--tape); }
.sheet__head h2 { font: 700 18px/1.2 var(--font-display); }
/* Меню — с тем же логотипом и графитом, что и шапка сайта */
.sheet__head--dark { background: var(--graphite); border-bottom-color: var(--line-dark); color: var(--on-dark); }
.sheet__head--dark .icon-btn { color: var(--on-dark); }
.sheet__head--dark .icon-btn:hover { background: var(--line-dark); }

.menu__nav { display: grid; padding: 12px 24px; }
.menu__nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 20px/1.2 var(--font-display); text-decoration: none; }
.menu__nav a:last-child { font: 500 15px/1.4 var(--font-text); color: var(--muted); border: 0; }
.menu__contacts { display: grid; gap: 14px; padding: 12px 24px 32px; margin-top: auto; }
.menu__contacts p { display: flex; gap: 10px; color: var(--muted); }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--graphite-2); }

/* ───────── Hero ───────── */

.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(36px, 6.2vw, 80px); line-height: 1.02; margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }

.search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; padding: 6px; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .3s var(--ease); }
.search:focus-within { border-color: var(--graphite); }
.search__icon { margin-left: 10px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font-size: 17px; outline: none; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search--sm { box-shadow: none; padding: 2px 4px; }
.search--sm input { height: 44px; font-size: 16px; }

.suggest { position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 8px); z-index: 20; background: var(--paper); border: 1.5px solid var(--graphite); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--yellow-soft); }
.suggest img { width: 44px; height: 44px; border-radius: 6px; }
.suggest__t { font-size: 14px; line-height: 1.3; }
.suggest__t small { color: var(--muted); }
.suggest__p { font: 600 13px/1 var(--font-display); white-space: nowrap; }
.suggest__all { display: block !important; padding: 12px 14px !important; font-weight: 700; font-size: 14px; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.hero__stage { position: relative; height: clamp(360px, 40vw, 520px); }
.hero__card { position: absolute; display: block; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; transition: transform .6s var(--ease); }
.hero__card img { border-radius: calc(var(--radius-lg) - 8px); }
.hero__card .tag { position: absolute; }
/* Ценники стоят на краях, которые не перекрывает соседняя карточка */
.hero__card--1 { width: 50%; left: 0; top: 4%; transform: rotate(-4deg); z-index: 2; }
.hero__card--1 .tag { left: -12px; top: 22px; }
.hero__card--2 { width: 44%; right: 0; top: 10%; transform: rotate(3deg); }
.hero__card--2 .tag { right: -10px; top: 18px; }
.hero__card--3 { width: 58%; left: 24%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.hero__card--3 .tag { right: -10px; bottom: 26px; }
.hero__card:hover { transform: rotate(0) translateY(-6px); z-index: 4; }
.hero__tape { position: absolute; left: -10%; right: -10%; top: 54%; height: 34px; transform: rotate(-8deg); z-index: 1; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 72px); margin-bottom: clamp(32px, 5vw, 56px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--paper); padding: 18px 20px; }
.facts dt { font: 700 clamp(20px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -.02em; }
.facts dd { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ───────── Бегущая лента ───────── */

.marquee { overflow: hidden; background: var(--graphite-2); color: var(--on-dark); border-block: 6px solid transparent; border-image: var(--tape) 6; }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 22px; padding: 16px 0 16px 22px; font: 600 clamp(15px, 1.5vw, 19px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee span::after { content: ''; width: 10px; height: 10px; background: var(--yellow); transform: rotate(45deg); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Секции ───────── */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--first { padding-top: clamp(24px, 4vw, 48px); }
.section--dark { background: var(--graphite); color: var(--on-dark); }
.section__head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 860px; }
.section__head .link-arrow { justify-self: start; margin-top: 4px; }
.section__head--row { display: flex; align-items: baseline; justify-content: space-between; max-width: none; gap: 16px; margin-bottom: 20px; }

/* Категории */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile a { position: relative; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; height: 100%; padding: 12px 40px 12px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile a:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__img { grid-row: span 2; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.tile__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.tile a:hover .tile__img img { transform: scale(1.07); }
.tile__name { align-self: end; font-weight: 700; line-height: 1.25; }
.tile__meta { align-self: start; font-size: 13px; color: var(--muted); margin-top: 2px; }
.tile__arrow { position: absolute; right: 14px; top: 50%; margin-top: -10px; color: var(--dim); transition: transform .35s var(--ease), color .35s var(--ease); }
.tile a:hover .tile__arrow { color: var(--ink); transform: translateX(4px); }

/* Как взять в аренду */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line-dark); }
.step { position: relative; padding: 28px 24px 28px 0; border-right: 1px solid var(--line-dark); }
.step:not(:first-child) { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step__num { display: block; font: 700 clamp(44px, 5vw, 64px)/1 var(--font-display); color: var(--yellow); margin-bottom: 16px; }
.step p { color: var(--on-dark); }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.docs__col { padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--graphite-3); }
.docs__col h3, .docs__col h2 { display: flex; align-items: center; gap: 10px; font: 600 18px/1.25 var(--font-display); margin-bottom: 14px; }
.docs__col h3 .i, .docs__col h2 .i { color: var(--yellow); }
.docs__col li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--on-dark-muted); }
.docs__col li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); }
.docs__col p { color: var(--on-dark-muted); margin-bottom: 14px; }
.docs__col--note { border-color: var(--yellow-line); }
.docs__col .link-arrow { color: var(--yellow); }
.docs--light { margin-top: 0; }
.docs--light .docs__col { background: var(--paper); border-color: var(--line); }
.docs--light .docs__col li, .docs--light .docs__col p { color: var(--muted); }
.docs--light .docs__col--note { border-color: var(--yellow); }
.docs--light .docs__col h2 .i { color: var(--ink); }

/* Почему мы */
.why__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why__list li { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.why__list li:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: var(--yellow); border-color: var(--yellow); background-image: linear-gradient(var(--yellow), var(--yellow)), var(--tape); background-size: 100% calc(100% - 12px), 100% 100%; background-repeat: no-repeat; }
.why__list h3 { font: 600 18px/1.25 var(--font-display); margin-bottom: 8px; }
.why__list li:first-child h3 { font-size: clamp(22px, 2.4vw, 30px); }
.why__list p { color: var(--muted); }
.why__list li:first-child p { color: var(--graphite-2); }
.save { margin-top: 12px; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.save h3 { display: flex; align-items: center; gap: 10px; font: 600 18px/1.25 var(--font-display); margin-bottom: 12px; }
.save ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.save li { color: var(--muted); padding-left: 18px; position: relative; }
.save li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); }

/* Бренды */
.brands { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.brands a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .25s var(--ease), transform .3s var(--ease); }
.brands a:hover { border-color: var(--graphite); transform: translateY(-2px); }
.brands b { font: 700 16px/1 var(--font-display); letter-spacing: -.01em; }
.brands span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; background: var(--bg); font-size: 13px; color: var(--muted); }

/* Контакты */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.contacts__list { display: grid; gap: 18px; margin: 28px 0; }
.contacts__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contacts__list .i { width: 44px; height: 44px; padding: 11px; border-radius: var(--radius-sm); background: var(--yellow); color: var(--graphite-2); }
.contacts__list div { display: grid; gap: 2px; }
.contacts__list b { font-weight: 700; font-size: 17px; }
.contacts__list span, .contacts__list a:not(:first-child) { color: var(--muted); }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover b { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.status-line.is-open { color: var(--ok); }
.status-line.is-closed { color: var(--danger); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map { position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--graphite); background-image: linear-gradient(rgba(44, 55, 64, .92), rgba(44, 55, 64, .92)), repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .08) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .08) 39px 40px); color: var(--on-dark); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.map__icon { width: 56px; height: 56px; color: var(--yellow); stroke-width: 1.4; }
.map__cover p { max-width: 34ch; color: var(--on-dark-muted); font-size: 14px; }
.map__cover p b { display: block; color: var(--on-dark); font: 600 18px/1.3 var(--font-display); margin-bottom: 6px; }
.map__cover .btn--dark { background: var(--yellow); color: var(--graphite-2); }
.map__ext { font-size: 14px; color: var(--on-dark-muted); }

/* ───────── Каталог ───────── */

.crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--dim); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cat-head, .page-head { padding-block: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 32px); display: grid; gap: 10px; }
.page-head .lead { margin-top: 6px; }
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: var(--section); }
.catalog__side { position: sticky; top: calc(var(--hdr-h) + 20px); max-height: calc(100vh - var(--hdr-h) - 40px); overflow: auto; overscroll-behavior: contain; padding-right: 4px; }
.side-cats { display: grid; gap: 2px; }
.side-cats a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 15px; line-height: 1.3; transition: background-color .2s var(--ease); }
.side-cats a span { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.side-cats a:hover { background: var(--paper); }
.side-cats a[aria-current='page'] { background: var(--graphite); color: var(--on-dark); font-weight: 600; }
.side-cats a[aria-current='page'] span { color: var(--yellow); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1; max-width: none; }
.select { position: relative; }
.select select { appearance: none; min-height: 50px; padding: 0 40px 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--paper); font-size: 15px; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.btn--cats { display: none; min-height: 50px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.result-info { min-height: 24px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 12px; }
.grid--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(214px, 240px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.grid--row .card { scroll-snap-align: start; }
.card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); animation: card-in .5s var(--ease) both; }
/* Подсветка карточки за курсором */
.card::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(250, 187, 12, .16), transparent 60%); opacity: 0; transition: opacity .3s var(--ease); }
.card:hover { border-color: var(--yellow-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card.is-added { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.card__link { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 0; text-decoration: none; }
.card__img { display: block; aspect-ratio: 1; margin: 0 -2px 10px; overflow: hidden; border-radius: var(--radius-sm); }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__group { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.card__title { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title small, .item__title small { font-size: 1em; font-weight: 400; color: var(--muted); }
.card__foot { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; column-gap: 8px; padding: 12px; margin-top: auto; }
.card__foot .tag { grid-column: 1; justify-self: start; }
.card__extra { grid-column: 1; font-size: 13px; color: var(--muted); margin-top: 6px; }
.card__foot .add { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

/* Бирка с ценой — как складской ценник с отверстием */
.tag { position: relative; display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px 6px 22px; background: var(--yellow); color: var(--graphite-2); border-radius: 4px 8px 8px 4px; font-size: 13px; line-height: 1; white-space: nowrap; font-weight: 600; }
.tag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(34, 43, 51, .5); }
.tag b { font: 700 19px/1 var(--font-display); letter-spacing: -.02em; }
.tag small { font-size: 12px; }
.tag span { color: rgba(34, 43, 51, .75); font-weight: 500; }
.tag--ask { background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 13px; padding-block: 9px; }

.add { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease); }
.add:hover { border-color: var(--graphite); background: var(--yellow); }
.add .i { position: absolute; width: 20px; height: 20px; stroke-width: 2.2; transition: transform .35s var(--ease), opacity .25s var(--ease); }
.add__check { opacity: 0; transform: scale(.4); }
.add[aria-pressed='true'] { background: var(--graphite); border-color: var(--graphite); color: var(--yellow); }
.add[aria-pressed='true'] .add__plus { opacity: 0; transform: rotate(90deg) scale(.4); }
.add[aria-pressed='true'] .add__check { opacity: 1; transform: none; }

.empty { display: grid; justify-items: start; gap: 14px; padding: 28px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.btn--more { margin: 24px auto 0; display: flex; width: fit-content; }

/* ───────── Позиция ───────── */

.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 24px clamp(40px, 5vw, 64px); align-items: start; }
.item__media { position: sticky; top: calc(var(--hdr-h) + 20px); }
.item__photo { position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(12px, 2vw, 28px); border: 1px solid var(--line); }
.item__photo::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: -5px; height: 10px; background: var(--tape); border-radius: 2px; }
.item__photo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.item__title { font: 700 clamp(24px, 3vw, 38px)/1.15 var(--font-display); letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.item__title small { font-weight: 400; }
.prices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.price span { display: block; }
.price { display: block; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); font-size: 14px; color: var(--muted); line-height: 1.2; }
.price b { font: 700 22px/1.1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.price span { font-size: 13px; }
.price--main { background: var(--yellow); border-color: var(--yellow); color: var(--graphite-2); }
.price--main b { font-size: 30px; color: var(--graphite-2); }
.prices--ask { display: grid; gap: 4px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.prices--ask b { font: 700 22px/1.2 var(--font-display); }
.prices--ask span { color: var(--muted); }

.calc { display: grid; gap: 14px; padding: clamp(16px, 2vw, 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
/* minmax(0) — иначе поле даты на iPhone не сжимается уже своей ширины и выталкивает соседнее за край */
.calc__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { min-width: 0; }
.field input { min-width: 0; }
.field input[type='date'] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.field input[type='date']::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink); font-size: 16px; font-weight: 500; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--graphite); background: var(--paper); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.calc__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.calc__quick .chip { min-height: 34px; font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--graphite); }
/* Шкала срока: заполняется лентой до недели */
.calc__bar { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.calc__bar span { display: block; height: 100%; width: 0; background: var(--tape); background-size: 17px 17px; transition: width .6s var(--ease); }
.calc__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 20px; line-height: 1; }
.qty button:hover { background: var(--yellow-soft); }
.qty input { width: 40px; height: 44px; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc__total { display: grid; justify-items: end; text-align: right; }
.calc__total output { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; }
.calc__total span { font-size: 13px; color: var(--muted); }
.calc__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.calc__note { font-size: 13px; color: var(--muted); }
.notes { display: grid; gap: 12px; margin-top: 22px; }
.notes li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14px; color: var(--muted); }
.notes .i { color: var(--ink); width: 22px; height: 22px; }

.item-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
.specs h2, .about h2 { margin-bottom: 16px; }
.specs dl { border-top: 1px solid var(--line-2); }
.specs dl > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: right; }
.specs__line dd { text-align: left; font-weight: 500; grid-column: 1 / -1; }
.about p, .about ul { color: var(--muted); margin-bottom: 12px; max-width: 70ch; }
.about ul li, .seo-text ul li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.about ul li::before, .seo-text ul li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); }
.about .link-arrow { margin-top: 6px; }
.about h3, .seo-text h3 { font: 600 17px/1.3 var(--font-display); color: var(--ink); margin: 20px 0 8px; max-width: 70ch; }
.item__where { margin: -10px 0 18px; font-size: 15px; color: var(--muted); }

/* Текст о категории или группе со старого сайта — под каталогом, спокойным серым */
.catalog:has(+ .seo-text) { padding-bottom: clamp(32px, 4vw, 48px); }
.seo-text { padding-bottom: var(--section); }
.seo-text > * { max-width: 75ch; }
.seo-text > .h3 { padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-2); max-width: none; margin-bottom: 14px; }
.seo-text p, .seo-text ul { color: var(--muted); margin-bottom: 12px; }
.related { padding-bottom: var(--section); }

/* ───────── Условия, статьи, текст ───────── */

.terms-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.term-card { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.term-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.term-card p { color: var(--muted); }
.rules__list { counter-reset: r; display: grid; gap: 0; max-width: 900px; }
.rules__list li { counter-increment: r; position: relative; padding: 16px 0 16px 64px; border-top: 1px solid var(--line); color: var(--ink); }
.rules__list li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 700 20px/1 var(--font-display); color: var(--dim); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--graphite); color: var(--on-dark); border-top: 10px solid; border-image: var(--tape) 10; }
.cta p { color: var(--on-dark-muted); margin-top: 6px; }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: var(--section); }
.articles--row { padding-bottom: 0; }
.article-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.article-card a:hover { border-color: var(--yellow); transform: translateY(-3px); }
.article-card__num { font: 700 14px/1 var(--font-display); color: var(--dim); }
.article-card h2 { font: 600 19px/1.3 var(--font-display); letter-spacing: -.01em; }
.article-card p { color: var(--muted); font-size: 15px; flex: 1; }
.prose { max-width: 820px; padding-block: 24px clamp(40px, 5vw, 64px); }
.prose .h1 { margin-bottom: 24px; font-size: clamp(28px, 4vw, 46px); }
.prose p, .prose ul { font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.prose h2 { font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--font-display); margin: 32px 0 12px; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); }
.prose__cta { margin-top: 32px; }
.related .articles { margin-top: 16px; }

.requisites dl { display: grid; gap: 0; max-width: 900px; margin-top: 16px; border-top: 1px solid var(--line-2); }
.requisites dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); }

.page-head--404 { padding-block: clamp(48px, 8vw, 120px); justify-items: start; }
.tape--sign { width: 120px; height: 24px; border-radius: 3px; margin-bottom: 12px; }
.page-head--404 .search { width: 100%; margin-block: 12px; }

/* Политика */
.legal { padding-block: 24px var(--section); }
.legal__draft { padding: 12px 16px; margin-bottom: 24px; border-radius: var(--radius-sm); background: var(--yellow-soft); border: 1.5px solid var(--yellow); font-weight: 600; }
.legal__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--hdr-h) + 20px); font-size: 14px; }
.legal__toc ol { display: grid; gap: 4px; list-style: decimal; padding-left: 20px; color: var(--muted); }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal__doc { max-width: 820px; }
.legal__doc .h1 { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 10px; }
.legal__meta { color: var(--muted); margin-bottom: 24px; }
.legal__doc section { padding-top: 12px; margin-bottom: 20px; }
.legal__doc h2 { display: flex; align-items: center; gap: 12px; font: 600 20px/1.3 var(--font-display); margin-bottom: 12px; }
.legal__doc h2 span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 6px; background: var(--yellow); font-size: 15px; }
.legal__doc p, .legal__doc ul { margin-bottom: 12px; }
.legal__doc ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.legal__doc ul li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); }
.legal__summary { padding: 20px 24px !important; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: var(--radius); }
.legal__table { overflow-x: auto; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.legal__table table { border-collapse: collapse; min-width: 640px; font-size: 14px; }
.legal__table th, .legal__table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { background: var(--graphite); color: var(--on-dark); font-weight: 600; }
.legal__note { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--line-2); }
mark.fill { background: var(--yellow-soft); color: var(--ink); padding: 0 4px; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--yellow); }

/* ───────── Подвал ───────── */

.ftr { background: var(--graphite-2); color: var(--on-dark-muted); font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 6vw, 64px) 24px; }
.ftr__brand img { width: 160px; margin-bottom: 16px; }
.ftr__brand p { margin-bottom: 18px; max-width: 42ch; }
.ftr .social a { border-color: var(--line-dark); color: var(--on-dark); }
.ftr__col { display: grid; align-content: start; gap: 8px; }
.ftr__col h2 { font: 600 14px/1.2 var(--font-display); color: var(--on-dark); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.ftr__col a { text-decoration: none; color: var(--on-dark); }
.ftr__col a:hover { color: var(--yellow); }
.ftr__note { grid-column: 1 / -1; padding: 16px 0 0; border-top: 1px solid var(--line-dark); font-size: 14px; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px 28px; font-size: 13px; }
.ftr__legal a { color: var(--on-dark-muted); }

/* ───────── Нижняя панель на телефоне ───────── */

.dock { display: none; }

/* ───────── Заявка (шторка) ───────── */

.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 28px; }
.req-empty { display: grid; justify-items: start; gap: 14px; padding: 12px 0; color: var(--muted); }
.req-empty b { color: var(--ink); font: 600 18px/1.3 var(--font-display); }
.req-lines { display: grid; gap: 8px; margin-bottom: 18px; }
.req-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); animation: card-in .4s var(--ease) both; }
.req-line img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }
.req-line__t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.req-line__t a { text-decoration: none; }
.req-line__p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.req-line__side { display: grid; justify-items: end; gap: 6px; }
.req-line .qty button, .req-line .qty input { height: 34px; width: 32px; font-size: 15px; }
.req-line__rm { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 2px; }
.req-line__rm:hover { color: var(--danger); }
.req-block { display: grid; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.req-block h3 { font: 600 15px/1.2 var(--font-display); }
.req-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px; margin: 4px 0 16px; border-radius: var(--radius); background: var(--graphite); color: var(--on-dark); }
.req-total span { font-size: 14px; color: var(--on-dark-muted); }
.req-total b { font: 700 26px/1 var(--font-display); color: var(--yellow); white-space: nowrap; }
.req-hint { font-size: 13px; color: var(--muted); }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-row label { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.radio-row input { accent-color: var(--graphite); width: 18px; height: 18px; margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--graphite); background: var(--paper); }
.err { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(196, 55, 44, .08); color: var(--danger); font-size: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req-success { display: grid; gap: 14px; justify-items: start; padding-top: 8px; }
.req-success__num { font: 700 clamp(28px, 6vw, 40px)/1 var(--font-display); }
.req-success__badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); }
.req-success__badge .i { width: 32px; height: 32px; stroke-width: 2.4; }
.req-success p { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 20px); z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 12px 12px 18px; background: var(--graphite-2); color: var(--on-dark); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 15px; animation: toast-in .45s var(--ease); }
.toast button { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--yellow); color: var(--graphite-2); font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* Согласие на cookie счётчиков: одна плашка внизу, не перекрывает нижнюю панель на телефоне */
.consent { position: fixed; left: 16px; bottom: calc(var(--dock-h) + 16px); z-index: 55; display: grid; gap: 12px; width: min(520px, calc(100vw - 32px)); padding: 16px 18px; background: var(--paper); border: 1px solid var(--line-2); border-top: 6px solid; border-image: var(--tape) 6; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.5; animation: consent-in .45s var(--ease); }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
.consent p { color: var(--muted); }
.consent a { color: var(--ink); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.ftr__btn { border: 0; padding: 0; background: none; color: var(--on-dark-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ftr__btn:hover { color: var(--yellow); }

/* ───────── Появление при прокрутке ───────── */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal[data-d='1'] { transition-delay: .08s; }
.js .reveal[data-d='2'] { transition-delay: .16s; }
.js .reveal[data-d='3'] { transition-delay: .24s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── Адаптивность ───────── */

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hdr__info .status { display: none; }
}

@media (max-width: 1024px) {
  .nav, .hdr__info { display: none; }
  .burger { display: grid; }
  .cart-btn { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { height: clamp(300px, 62vw, 460px); max-width: 640px; width: 100%; justify-self: center; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .catalog__side { display: none; }
  .btn--cats { display: inline-flex; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .step:nth-child(3) { padding-left: 0; }
  .docs, .terms-top { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr 1fr; }
  .why__list li:first-child { grid-row: auto; grid-column: 1 / -1; }
  .save ul { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .item, .item-more { grid-template-columns: 1fr; }
  .item__media { position: static; max-width: 560px; }
  .articles { grid-template-columns: 1fr 1fr; }
  .legal__layout { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --hdr-h: 58px; --dock-h: calc(64px + env(safe-area-inset-bottom)); }
  .logo img { width: 116px; }
  .cart-btn { display: none; }
  .hdr__call { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: var(--radius-sm); background: var(--yellow); color: var(--graphite-2); }
  .burger { margin-right: -8px; }

  .sheet { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 90dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .sheet__head { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
  @keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } }
  @keyframes sheet-out { to { transform: translateY(80px); opacity: 0; } }
  .menu { max-height: 92dvh; }
  .drawer { height: 92dvh; }

  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); height: var(--dock-h); padding-bottom: env(safe-area-inset-bottom); background: var(--graphite); color: var(--on-dark); border-top: 4px solid; border-image: var(--tape) 4; }
  .dock a, .dock button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: inherit; font: 600 12px/1 var(--font-text); text-decoration: none; }
  .dock .i { width: 22px; height: 22px; }
  .dock [aria-current='page'] { color: var(--yellow); }
  .dock .count { position: absolute; top: 6px; left: calc(50% + 6px); }

  .hero__title { font-size: clamp(32px, 10vw, 46px); }
  .search input { font-size: 16px; }
  .search .btn { padding: 0 16px; }
  .quick { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  .hero__stage { height: 300px; }
  .hero__card .tag b { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 14px 16px; }

  .tiles { grid-template-columns: 1fr; gap: 8px; }
  .tile a { grid-template-columns: 60px 1fr; padding: 10px 36px 10px 10px; }
  .tile__img { width: 60px; height: 60px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { padding: 20px 0; border-right: 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; }
  .step__num { margin: 0; font-size: 40px; }
  .why__list { grid-template-columns: 1fr; }

  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar .select { flex: 1; }
  .toolbar .select select { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid--row { grid-template-columns: none; grid-auto-columns: 46%; }
  .card__link { padding: 8px 10px 0; }
  .card__title { font-size: 14px; }
  .card__group { font-size: 11px; }
  /* На телефоне «+» — в углу фото, чтобы не наезжать на название */
  .card__foot { position: static; padding: 10px; grid-template-columns: 1fr; }
  .card__foot .add { position: absolute; z-index: 2; right: 8px; top: 8px; width: 38px; height: 38px; box-shadow: var(--shadow); }
  .card__extra { font-size: 12px; }
  .tag { padding: 5px 10px 5px 20px; }
  .tag b { font-size: 17px; }
  .tag span { font-size: 12px; }

  .calc__actions { grid-template-columns: 1fr; }
  .price--main b { font-size: 26px; }
  .specs dl > div { grid-template-columns: 1fr; gap: 2px; }
  .specs dd { text-align: left; }
  .articles { grid-template-columns: 1fr; }
  .requisites dl > div { grid-template-columns: 1fr; gap: 2px; }
  .rules__list li { padding-left: 48px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .toast { bottom: calc(var(--dock-h) + 12px); }
}

@media (max-width: 400px) {
  .calc__row { grid-template-columns: 1fr; }
  .radio-row { grid-template-columns: 1fr; }
  .facts dt { font-size: 18px; }
}

@media (hover: none) {
  .card:hover { transform: none; }
}

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