/* LR PARTS — общий стиль сайта
   1. токены и база   2. кнопки и поля   3. шапка и меню   4. главный экран
   5. ленты   6. секции главной   7. внутренние страницы   8. контакты, шаги, текст
   9. подвал   10. окно заявки, уведомления   11. адаптив и доступность
   12. каталог: вкладка слева, разделы, товар, оформление заказа, оплата */

/* ---------- 1. токены и база ---------- */
:root {
  --bg: #030303;
  --bg-2: #0c0c0c;
  --bg-3: #161616;
  --red: #d90f1b;
  --red-hot: #f4222e;
  --red-deep: #8e0a12;
  --red-ghost: #26070a;
  --white: #f4f2ef;
  --grey: #8d8d8d;
  --grey-2: #565656;
  --ghost: #1d1d1d;
  --line: rgba(217, 15, 27, 0.6);
  --line-soft: rgba(255, 255, 255, 0.12);
  --font: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --font-wide: "Unbounded", "Arial Black", var(--font);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r-btn: 24px;   /* единое заметное скругление кнопок и элементов управления */
  /* Та же сцена в bot/webapp/app.css: чёрный фон и фактурный тёмный стол. */
  --product-scene: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='floor' x2='0' y2='1'%3E%3Cstop stop-color='%23272727'/%3E%3Cstop offset='1' stop-color='%23090909'/%3E%3C/linearGradient%3E%3CradialGradient id='light'%3E%3Cstop stop-color='%234a1518' stop-opacity='.3'/%3E%3Cstop offset='1' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3C/defs%3E%3Cpath fill='%23040404' d='M0 0h800v800H0z'/%3E%3Cellipse fill='url(%23light)' cx='400' cy='450' rx='430' ry='370'/%3E%3Cpath fill='url(%23floor)' d='M0 632h800v168H0z'/%3E%3Csvg y='632' width='800' height='168' overflow='hidden'%3E%3Cpath filter='url(%23grain)' opacity='.13' d='M0 0h800v168H0z'/%3E%3C/svg%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.is-app, html.is-app body { overscroll-behavior-x: none; touch-action: pan-y; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; border-radius: var(--r-btn); padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--red); padding: 10px 16px; }
.skip:focus { top: 12px; }

.red { color: var(--red); }
.grey { color: var(--grey); }
.nowrap { white-space: nowrap; }

/* заголовок секции: первое слово белое, второе серое */
.h-sec {
  font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; text-transform: uppercase;
}
.h-sec span { color: var(--grey); }
.label { font-size: clamp(16px, 1.4vw, 20px); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.lead { color: var(--grey); font-size: 14px; line-height: 1.45; }

.display {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  line-height: 0.86; letter-spacing: 0.005em; color: var(--red);
}
.ghost {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.92;
  color: var(--ghost); user-select: none;
}

.section { position: relative; padding-block: clamp(64px, 9vw, 140px); }

/* красные уголки-скобки */
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; top: 0; width: 12px; height: 12px;
  border-top: 1px solid var(--red); pointer-events: none;
}
.corners::before { left: 0; border-left: 1px solid var(--red); }
.corners::after { right: 0; border-right: 1px solid var(--red); }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 2. кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--r-btn);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer; touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hot); }
.btn--line { border-color: var(--line); color: var(--white); }
.btn--line:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.12); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; border-radius: calc(var(--r-btn) - 2px); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: default; }

.field {
  width: 100%; min-height: 48px; padding: 0 16px;
  background: var(--bg-3); color: var(--white);
  border: 1px solid transparent; border-radius: 0; font-size: 14px;
  transition: border-color 0.2s, background-color 0.2s;
}
.field::placeholder { color: var(--grey); }
.field:hover { background: #1b1b1b; }
.field:focus { outline: none; border-color: var(--red); }
.field.is-bad { border-color: var(--red-hot); }
textarea.field { padding-block: 13px; min-height: 96px; resize: vertical; line-height: 1.4; }
select.field {
  appearance: none; padding-right: 40px; cursor: pointer; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f4f2ef' stroke-width='2.4'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.field:disabled { color: var(--grey-2); cursor: default; }
select.field option { background: var(--bg-3); color: var(--white); font-weight: 400; }
.field--line { background: transparent; border-color: var(--line-soft); text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; }
.field--line:hover { background: transparent; border-color: rgba(255, 255, 255, 0.3); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--grey); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.check a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-size: 12px; color: var(--grey); }
.form-error { font-size: 13px; color: var(--red-hot); min-height: 1.4em; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--white); transition: color 0.2s, background-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); }
.icon-btn:hover { color: var(--red-hot); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. шапка и меню ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.site-header.is-solid { background: rgba(3, 3, 3, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-soft); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }

.header-start { display: flex; align-items: center; gap: 18px; justify-self: start; }
.brand { display: inline-flex; }
.cat-toggle { gap: 8px; padding: 0 16px; }
.cat-toggle svg { width: 15px; height: 15px; }
.cat-toggle-tail { display: none; }
.cat-toggle-icon { display: none; }
.logo { width: 150px; height: auto; }

.nav { display: flex; gap: clamp(14px, 1.9vw, 28px); }
.nav a { position: relative; font-size: 12px; color: var(--white); padding: 6px 0; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--red-hot); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; justify-self: end; gap: 2px; }
.header-actions--left { display: none; }
.header-cta svg { width: 15px; height: 15px; }
.cart-link { margin-right: 6px; }
.count-badge {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font: 700 10px/17px var(--font); text-align: center; pointer-events: none;
}
.is-bump svg { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.28); } }
.burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(3, 3, 3, 0.98);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 88px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a:not(.btn) {
  font-size: clamp(24px, 7vw, 40px); font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1.15;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.menu a:not(.btn):hover { color: var(--red-hot); }
.menu .btn { margin-top: 28px; }
.menu-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  font-size: clamp(24px, 7vw, 40px); font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1.15;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--red);
}
.menu-cat svg { width: 0.8em; height: 0.8em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-cat:hover { color: var(--red-hot); }
/* в приложении пункт «Каталог товаров» в меню — белый (просьба владельца), на сайте остаётся красным */
.is-app .menu-cat { color: var(--white); }
.is-app .menu-cat:hover, .is-app .menu-cat:active { color: var(--red-hot); }
.menu-close { position: absolute; top: 16px; right: var(--gutter); }

/* ---------- 4. главный экран ---------- */
.hero { position: relative; height: calc(100svh + var(--run, 110vh)); }
.hero-stage {
  position: sticky; top: 0; height: 100svh; min-height: 540px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--header-h) + clamp(0px, 1.5svh, 18px));
  --title: min(17.6vw, 34svh);
  /* машина занимает то, что осталось по высоте между заголовком и формой подбора */
  --carw: min(58vw, 1120px, calc((100svh - 312px - var(--title) * 0.5) / 0.48));
}
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; left: 50%; top: 56%; width: 120vmax; height: 60vmax; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(217, 15, 27, 0.16), transparent 70%); pointer-events: none;
}

.hero-title {
  position: relative; z-index: 1; display: flex; justify-content: center; gap: 0.2em;
  font-size: var(--title); font-weight: 800; line-height: 0.8; letter-spacing: -0.055em; text-transform: uppercase;
  white-space: nowrap; user-select: none;
}
.hero-word { display: inline-flex; }
.hero-word--red { color: var(--red); }
.hero-letter { display: inline-block; transform-origin: 50% 100%; will-change: transform; animation: letter-in 1s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes letter-in { from { opacity: 0; transform: translateY(0.4em); } }

.hero-car {
  position: relative; z-index: 3; width: var(--carw); aspect-ratio: 1448 / 696; flex: none;
  margin-top: calc(var(--title) * -0.3); pointer-events: none;
  transform-origin: 46% 86%; will-change: transform;
}
.js .hero-car:not(.is-ready) { visibility: hidden; }
html:not(.js) .car-img--still { display: none; }
.car-axis, .car-unaxis, .car-tilt { position: absolute; inset: 0; }
.car-axis { transform: rotate(var(--axis)); }
.car-unaxis { transform: rotate(calc(var(--axis) * -1)); }
.car-tilt { transform-origin: 60% 88%; will-change: transform; }
.car-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.car-img--motion { opacity: 0; will-change: opacity; }
.car-wheels { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
/* пока второй кадр не загрузился, iPhone рисует пустую картинку серой рамкой вокруг машины — прячем её */
.car-img--motion:not(.is-loaded) { visibility: hidden; }

/* свет фар */
.car-light {
  position: absolute; width: 30%; aspect-ratio: 2.6; border-radius: 50%; opacity: 0.5;
  background: radial-gradient(closest-side, rgba(235, 242, 255, 0.95), rgba(190, 210, 255, 0.35) 38%, transparent 72%);
  mix-blend-mode: screen; transform: translate(-50%, -50%) rotate(-7deg); will-change: opacity;
}
.car-light--near { left: 37.5%; top: 54.5%; }
.car-light--far { left: 5.5%; top: 50%; width: 17%; }
.hero-car[data-model="bmw"] .car-light--near { left: 36%; top: 55%; }
.hero-car[data-model="bmw"] .car-light--far { left: 5.5%; top: 52%; }
.hero-car[data-model="mercedes"] .car-light--near { left: 37%; top: 56%; width: 24%; }
.hero-car[data-model="mercedes"] .car-light--far { left: 7%; top: 55%; width: 13%; filter: brightness(.55); }
.car-beam {
  position: absolute; left: -46%; top: 42%; width: 78%; height: 46%; opacity: 0;
  background: radial-gradient(ellipse at 100% 38%, rgba(225, 235, 255, 0.34), rgba(225, 235, 255, 0.08) 45%, transparent 70%);
  clip-path: polygon(100% 22%, 100% 52%, 0 100%, 0 0); filter: blur(10px); mix-blend-mode: screen; will-change: opacity;
}
/* световые шлейфы позади */
.car-trails { position: absolute; left: 62%; top: 0; width: 140%; height: 100%; transform-origin: 0 50%; opacity: 0; will-change: transform, opacity; }
.car-trails i { position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px; transform-origin: 0 50%; }
.car-trails i:nth-child(1) { top: 47%; background: linear-gradient(90deg, rgba(244, 34, 46, 0.95), transparent 85%); height: 3px; }
.car-trails i:nth-child(2) { top: 51%; background: linear-gradient(90deg, rgba(244, 34, 46, 0.6), transparent 70%); }
.car-trails i:nth-child(3) { top: 66%; background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 60%); height: 1px; }
.car-trails i:nth-child(4) { top: 78%; background: linear-gradient(90deg, rgba(244, 34, 46, 0.45), transparent 75%); height: 1px; }
.car-trails i:nth-child(5) { top: 36%; background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 55%); height: 1px; }

.hero-sides { display: contents; }
.hero-side {
  position: absolute; z-index: 2; top: calc(var(--header-h) + var(--title) * 0.8 + var(--carw) * 0.16); max-width: 230px;
  font-size: 11px; line-height: 1.7; letter-spacing: 0.2em; text-transform: uppercase; color: #b9b7b4; animation: fade-in 1s var(--ease) 0.9s both;
}
.hero-side::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 12px; background: var(--red); }
.hero-side--l { left: max(var(--gutter), (100% - var(--wrap)) / 2); }
.hero-side--r { right: max(var(--gutter), (100% - var(--wrap)) / 2); text-align: right; }
.hero-side--r::after { margin-left: auto; }
.hero-sides .perks {
  margin: auto auto clamp(14px, 3svh, 34px); width: min(720px, 100% - var(--gutter) * 2);
  animation: fade-in 1s var(--ease) 1.1s both;
}
.hero-sides .perks li { gap: 10px; font-size: 11px; }
.hero-sides .perks svg { width: 28px; height: 28px; }

.hero-cta {
  position: relative; z-index: 2; margin-top: clamp(6px, 1.8svh, 22px); width: min(var(--wrap), 100% - var(--gutter) * 2);
  display: grid; justify-items: center; gap: 14px; font-size: 13px; color: var(--grey);
  animation: fade-in 1s var(--ease) 1s both;
}
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-buttons .btn { min-height: 54px; padding: 0 clamp(24px, 3vw, 42px); font-size: 14px; }
.hero-buttons .btn svg { width: 16px; height: 16px; }
.hero-catalog svg { fill: none; stroke: currentColor; stroke-width: 1.7; }

@keyframes fade-in { from { opacity: 0; } }

/* ---------- 5. ленты ---------- */
.tapes { position: relative; height: clamp(190px, 25vw, 380px); overflow: hidden; }
.tape {
  position: absolute; left: -6%; width: 112%; padding: 0.16em 0; overflow: hidden;
  font-family: var(--font-wide); font-weight: 900; font-size: clamp(30px, 5.6vw, 84px); line-height: 1;
  letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; font-style: italic;
}
.tape--a { top: 12%; transform: rotate(-4deg); background: #000; color: var(--white); border-block: 1px solid #222; z-index: 1; }
.tape--b { top: 40%; transform: rotate(3deg); background: var(--white); color: #000; z-index: 2; }
.tape--c { top: 62%; transform: rotate(-1.6deg); background: var(--red); color: #000; z-index: 0; }
.tape-track { display: flex; width: max-content; animation: tape 36s linear infinite; }
.tape--b .tape-track { animation-direction: reverse; animation-duration: 44s; }
.tape--c .tape-track { animation-duration: 52s; }
.tape-item { display: inline-flex; align-items: center; gap: 0.3em; padding-right: 0.45em; }
.tape-item svg { width: 1.5em; height: 0.62em; flex: none; overflow: visible; }
.tape-item svg path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tape--c .tape-item svg path { stroke: var(--white); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- 6. секции главной ---------- */
/* категории: карточки видны целиком — фото 4:3 без обрезки, подпись под ним */
.cats-head { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); }
.cat {
  position: relative; display: flex; flex-direction: column; width: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-btn); margin: -0.5px; text-align: left; cursor: pointer;
  transition: border-color 0.3s, background-color 0.4s;
}
.cat:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.06); z-index: 1; }
.cat-photo { display: block; overflow: hidden; }
.cat-photo img { display: block; width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.cat--oil .cat-photo, .cat--battery .cat-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #050505; }
.cat--oil .cat-photo img, .cat--battery .cat-photo img { width: 100%; height: 100%; object-fit: contain; }
.cat:hover .cat-photo img { transform: scale(1.05); }
.cat--oil:hover .cat-photo img, .cat--battery:hover .cat-photo img { transform: none; }
.cat-name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: clamp(11px, 1.1vw, 16px) clamp(12px, 1.2vw, 18px);
  font-size: clamp(12px, 1.05vw, 15px); font-weight: 600; color: var(--white); transition: color 0.3s;
}
.cat-name svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s var(--ease); flex: none; }
.cat:hover .cat-name { color: var(--red-hot); }
.cat:hover .cat-name svg { opacity: 1; transform: none; }
.cat-badge {
  position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 10px; border-radius: 6px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.cat--text { justify-content: center; padding: clamp(16px, 2vw, 28px); border-color: transparent; border-top-color: var(--line); cursor: default; pointer-events: none; }
.cat--text p { font-size: clamp(12px, 1vw, 14px); color: var(--grey); line-height: 1.5; }

.cats-more { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 48px); }

/* о нас */
.about { overflow: hidden; }
.about-top { display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; gap: 24px; align-items: start; }
.about-top .lead { text-align: center; color: var(--white); font-size: 13px; }
.about-stage { position: relative; display: grid; place-items: center; margin-top: clamp(20px, 3vw, 48px); }
.about-ghost { font-size: clamp(40px, 9.4vw, 150px); text-align: center; color: #262626; }
.about-ghost span { display: block; will-change: transform; }
.about-img { position: absolute; width: min(30vw, 430px); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.85)); will-change: transform; }

/* марки */
.brands { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 90px); }
.brands-ghost { font-size: clamp(64px, 15vw, 240px); white-space: nowrap; text-align: center; color: #151515; will-change: transform; }
.brands-row {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden;
  font-size: clamp(18px, 2.2vw, 32px); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red);
}
.brands-track { display: flex; width: max-content; animation: tape 48s linear infinite; }
.brands-track span { padding-inline: clamp(18px, 2.6vw, 44px); white-space: nowrap; }
.brands-track span::before { content: "/"; margin-right: clamp(36px, 5.2vw, 88px); color: var(--red-deep); }
.brands-note { text-align: center; margin-top: 18px; }

/* почему мы */
.why-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 110px); align-items: start; }
.why-text { display: grid; gap: 20px; max-width: 46ch; }
.why-text p { font-size: 15px; line-height: 1.5; }
.stats { border-top: 1px solid var(--line-soft); }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) 1fr; align-items: end; gap: 24px; border-bottom: 1px solid var(--line-soft); overflow: hidden; height: clamp(64px, 7.4vw, 108px); }
.stat-num { font-size: clamp(54px, 8.4vw, 128px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.74; color: var(--red); white-space: nowrap; transform: translateY(8%); }
.stat-text { align-self: center; color: var(--grey); font-size: clamp(13px, 1.2vw, 17px); }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(20px, 4vw, 64px); }
.faq-list { padding-top: 14px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; text-align: left; font-size: clamp(15px, 1.35vw, 19px); transition: color 0.25s; }
.faq-q:hover { color: var(--red-hot); }
.faq-q svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 22px 0; color: var(--grey); font-size: 14px; max-width: 70ch; }
.faq-a a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* как это работает */
.how-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: clamp(24px, 3vw, 40px); }
.how .steps { margin-bottom: 0; }

/* фирменные фото: вывеска квадратная, визитки и брелоки вертикальные — высота общая */
.shots { display: grid; grid-template-columns: 4fr 3fr 3fr; }
.shot { position: relative; margin: -0.5px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 3 / 4; background: #e9e9e9; }
.shot--sign { aspect-ratio: 1; background: #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shots-note { margin-top: 22px; text-align: center; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey); }

/* контейнер */
.ship { overflow: hidden; }
.ship-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(20px, 4vw, 64px); }
.ship-title { font-family: var(--font-wide); font-weight: 900; font-style: italic; font-size: clamp(24px, 3.3vw, 50px); line-height: 1.04; letter-spacing: -0.03em; text-transform: uppercase; }
.ship-text { display: grid; gap: 22px; justify-items: start; }
.ship-img { position: relative; }
.ship-img::before { content: ""; position: absolute; inset: 20% -10% -6%; background: radial-gradient(closest-side, rgba(217, 15, 27, 0.28), transparent 72%); z-index: -1; }
.ship-img img { width: 100%; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.9)); will-change: transform; }

/* остались вопросы */
.ask { text-align: center; }
.ask-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 20px; text-align: left; }
.ask-top .lead { text-align: center; color: var(--white); font-size: 13px; }
.ask-title { font-size: clamp(64px, 15.5vw, 250px); margin: clamp(16px, 2vw, 28px) 0 clamp(24px, 3vw, 44px); }
.ask-form { width: min(440px, 100%); margin-inline: auto; display: grid; gap: 10px; text-align: left; }
/* форма заявки: подписи сверху, пояснения снизу, на широком экране — две колонки */
.lead-form { display: grid; gap: 12px; }
.lead-f { display: grid; gap: 6px; align-content: start; }
.lead-lab { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); }
.lead-lab i { font-style: normal; color: var(--red); }
.lead-hint { font-size: 11px; line-height: 1.35; color: var(--grey-2); }
.lead-form textarea.field { min-height: 72px; }
/* ловушка для спам-ботов: человек её не видит и табом в неё не попадёт */
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 720px) {
  .lead-form { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .lead-f--wide { grid-column: 1 / -1; }
  .ask .lead-form { width: min(760px, 100%); }
  .modal-box.lead-form { width: min(680px, 100%); }
}

/* ---------- 7. внутренние страницы ---------- */
.page { padding-top: calc(var(--header-h) + clamp(20px, 3vw, 44px)); min-height: 70vh; }
.page-head { display: grid; grid-template-columns: 1fr minmax(0, 330px); gap: 32px; align-items: end; margin-bottom: clamp(20px, 3vw, 40px); }
.page-title { font-size: clamp(76px, 12.5vw, 200px); }
.page-head-side { display: grid; gap: 14px; }
.page-head-side p { font-size: 13px; line-height: 1.45; }

/* три преимущества с иконками */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 8px; }
.perks li { display: grid; justify-items: center; gap: 8px; padding: 4px 8px; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; color: #c9c7c4; }
.perks li + li { border-left: 1px solid var(--line-soft); }
.perks svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 8. контакты, шаги, текст ---------- */

.contact-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: clamp(24px, 3vw, 44px); }
.contact-btns:empty { display: none; }
.contact-btn { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--r-btn); font-size: 15px; transition: border-color 0.25s, background-color 0.25s; }
.contact-btn:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.12); }
.contact-btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-btn span { flex: 1; }
.contact-btn svg:last-child { width: 18px; height: 18px; color: var(--grey); }
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(64px, 8vw, 120px); }
.contact-list { display: grid; align-content: start; }
.contact-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.contact-row dt { color: var(--grey); font-size: 13px; }
.contact-row a:hover { color: var(--red-hot); }
.contact-card { border: 1px solid var(--line); padding: clamp(20px, 3vw, 40px); display: grid; gap: 16px; align-content: start; }
.contact-card h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.05; }
.map { margin-top: 28px; border: 1px solid var(--line-soft); aspect-ratio: 16 / 7; min-height: 260px; width: 100%; filter: grayscale(1) invert(0.92) contrast(0.9); }

.prose { max-width: 820px; padding-bottom: clamp(64px, 8vw, 120px); display: grid; gap: 14px; }
.prose h2 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin-top: 26px; }
.prose h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 10px; color: var(--white); }
.prose p, .prose li { color: #c2c0bd; font-size: 15px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--red); }
.prose a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-hot); }
.prose .doc-date { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-2); }
.prose b { color: var(--white); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: clamp(40px, 5vw, 72px); }
.step { border: 1px solid var(--line); margin: -0.5px; padding: clamp(16px, 1.8vw, 26px); display: grid; gap: 12px; align-content: start; min-height: 220px; }
.step-num { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 0.8; color: var(--red); }
.step h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; }
.step p { font-size: 13px; color: var(--grey); }

/* ---------- 9. подвал ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-top: clamp(36px, 5vw, 72px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; }
.footer-col h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--grey); transition: color 0.2s; }
.footer-col a:hover { color: var(--red-hot); }
.socials { display: grid; gap: 8px; align-content: start; }
.social { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-soft); color: var(--white); transition: border-color 0.25s, color 0.25s, background-color 0.25s; }
.social:hover { border-color: var(--red); background: var(--red); }
.social svg, .btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social svg { width: 17px; height: 17px; }
.footer-word { display: block; width: 100%; height: auto; margin-top: clamp(28px, 4vw, 56px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 22px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.footer-bottom a:hover { color: var(--red-hot); }
.footer-seller { margin-top: -10px; padding-bottom: 22px; font-size: 11px; letter-spacing: 0.04em; color: var(--grey); }
.footer-seller a:hover { color: var(--red-hot); }

/* ---------- 10. окно заявки, уведомления ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); display: grid; gap: 12px; transform: translateY(16px); transition: transform 0.4s var(--ease); }
.modal.is-open .modal-box { transform: none; }
.modal-box h2 { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; padding-right: 40px; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.modal-sum { border: 1px solid var(--line-soft); padding: 12px 14px; font-size: 13px; color: #c2c0bd; white-space: pre-wrap; max-height: 180px; overflow: auto; }

/* приложение на телефоне: плашка «Установить» и окно с шагами для iPhone */
.app-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 85;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 10px 6px 10px 10px; background: rgba(12, 12, 12, 0.94); border: 1px solid var(--line);
  border-radius: calc(var(--r-btn) + 4px); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(24px); transition: opacity 0.35s, transform 0.45s var(--ease);
}
.app-banner.is-on { opacity: 1; transform: none; }
.app-banner img { width: 44px; height: 44px; border-radius: 10px; }
.app-banner p { display: grid; min-width: 0; font-size: 12px; line-height: 1.3; color: var(--grey); }
.app-banner b { font-size: 13px; color: var(--white); }
.app-banner .btn { padding: 0 12px; letter-spacing: 0.03em; }
.app-banner-close { width: 34px; height: 34px; }
.app-banner-close svg { width: 16px; height: 16px; }
.menu .btn + .btn { margin-top: 10px; }

.install-steps { display: grid; gap: 10px; margin: 6px 0 4px; }
.install-steps li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-soft); }
.install-steps b { display: block; font-size: 14px; color: var(--white); }
.install-steps li > span:last-child { font-size: 12px; line-height: 1.35; color: var(--grey); }
.install-num { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1; color: var(--red); width: 14px; }
.install-ic { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-btn); }
.install-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.install-ic circle { fill: currentColor; stroke: none; }

/* установленное приложение: страницы каталога — его экраны, а не сайт (просьба пользователя).
   В шапке «назад», «три палочки», логотип и каталог — без пунктов сайта и кнопки бота; внизу вкладки приложения,
   подвала сайта нет. В меню приложения один пункт — каталог товаров (appMenu в js/app.js) */
.app-back, .app-tabbar { display: none; }
.is-app .header-inner { grid-template-columns: 1fr auto 1fr; }
.is-app .header-start { grid-column: 2; grid-row: 1; justify-self: center; }
.is-app .header-actions--left { display: flex; grid-column: 1; grid-row: 1; justify-self: start; }
.is-app .header-start .cat-toggle, .is-app .nav, .is-app .header-cta, .is-app .site-footer { display: none; }
.is-app .cat-toggle-icon--app, .is-app .app-back, .is-app .burger { display: inline-grid; }
.is-app .cat-toggle-icon--site, .is-app .profile-link { display: none; }
.is-app .app-back { order: -2; margin-left: -10px; }
.is-tg .app-back { display: none; }                 /* в Telegram «назад» — его кнопка в шапке Mini App */
.is-app .menu { justify-content: flex-start; }
.is-app .cart-link { display: none; }                 /* корзина в приложении — вкладка внизу */
.is-app .cat-toggle-icon--app { margin-right: -10px; }
.is-app body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.is-app .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* вкладки — как в bot/webapp/app.css (.tabbar): прижаты к низу, под ними полоска «домой» iPhone */
.is-app .app-tabbar {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 2px;
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgba(8, 8, 8, 0.94); border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.app-tabbar a {
  position: relative; flex: 1; max-width: 150px; display: grid; justify-items: center; gap: 5px; padding: 9px 4px 8px;
  border-radius: calc(var(--r-btn) - 2px);
  font: 600 9.5px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey);
  transition: background-color 0.2s, color 0.2s;
}
.app-tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.app-tabbar a.on { color: #fff; background: var(--red); }
.app-tabbar .count-badge { top: 3px; right: auto; left: calc(50% + 5px); }
.app-tabbar a.on .count-badge { background: #fff; color: var(--red); }
/* у админа шесть вкладок — на узком телефоне ужимаем отступы, чтобы подписи не налезали */
@media (max-width: 380px) {
  .is-app .app-tabbar { gap: 1px; padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); }
  .app-tabbar a { min-width: 0; padding-left: 1px; padding-right: 1px; letter-spacing: 0.02em; }
}

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 20px); max-width: calc(100% - 32px); background: var(--white); color: #000; padding: 12px 18px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 12. каталог ---------- */
/* вкладка слева */
.drawer { position: fixed; inset: 0; z-index: 95; visibility: hidden; transition: visibility 0s 0.45s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.35s; }
.drawer.is-open .drawer-veil { opacity: 1; }
.drawer-panel {
  position: absolute; inset: 0 auto 0 0; width: min(420px, 88vw); display: flex; flex-direction: column;
  background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%); transition: transform 0.45s var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header-h); padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line-soft);
}
.drawer-title { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 0.9; text-transform: uppercase; color: var(--red); }
.drawer-title:hover { color: var(--red-hot); }
.drawer-cat {
  display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line-soft); transition: background-color 0.25s, color 0.25s;
}
.drawer-cat:hover { background: rgba(217, 15, 27, 0.08); color: var(--red-hot); }
.drawer-cat img { width: 72px; height: 54px; object-fit: cover; border: 1px solid var(--line-soft); }
.drawer-cat b { display: block; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.drawer-cat small { display: block; margin-top: 2px; font-size: 12px; color: var(--grey); }
.drawer-cat svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--red); }
.drawer-note { margin-top: auto; padding: 24px 20px; display: grid; justify-items: start; gap: 10px; font-size: 13px; color: var(--grey); }

/* Короткие пометки с красной чертой */
.growing { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.growing::before { content: ""; width: 24px; height: 2px; background: var(--red); flex: none; }

/* страницы каталога */
.shop { padding-bottom: clamp(64px, 8vw, 120px); }
.crumbs { display: flex; flex-wrap: wrap; row-gap: 6px; margin-bottom: clamp(14px, 2vw, 26px); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.crumbs > * + *::before { content: "/"; margin: 0 10px; color: var(--red); }
.crumbs a:hover { color: var(--red-hot); }
.crumbs [aria-current] { color: var(--white); }
.shop-title { font-size: clamp(56px, 10vw, 160px); overflow-wrap: anywhere; }
.shop-empty { color: var(--grey); font-size: 15px; }
.shop-empty a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.shop-card {
  position: relative; display: flex; flex-direction: column; margin: -0.5px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-btn); transition: border-color 0.3s, background-color 0.4s;
}
.shop-card:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.06); z-index: 1; }
.shop-card svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; color: var(--red); transition: transform 0.4s var(--ease); }
.shop-card:hover svg { transform: translateX(4px); }
.shop-card-photo { display: block; overflow: hidden; }
.shop-card-photo img { width: 100%; transition: transform 0.7s var(--ease); }
.shop-card--original .shop-card-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #050505; }
.shop-card--original .shop-card-photo img { width: 100%; height: 100%; object-fit: contain; }
.shop-card--cutout .shop-card-photo {
  position: relative; aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at 50% 80%, rgba(95, 8, 15, .12), transparent 65%), #050505;
}
.shop-card--cutout .shop-card-photo::before {
  content: ""; position: absolute; z-index: 2; inset: 2% 19% auto; height: 30%;
  background: url("../assets/img/logo.webp") center / contain no-repeat; pointer-events: none;
}
.shop-card--cutout .shop-card-photo::after {
  /* Последние 50px фирменной карточки LIQUI MOLY — только фактурный стол, без товара. */
  content: ""; position: absolute; z-index: 0; inset: auto 0 0; height: 7.4%;
  background: url("../assets/img/cat-oil.webp") center bottom / 100% auto no-repeat;
  transform: scaleY(3); transform-origin: bottom; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .38) 42%, #000 90%);
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .38) 42%, #000 90%);
}
.shop-card--cutout .shop-card-photo img {
  position: absolute; z-index: 1; bottom: 4%; width: 100%; height: 68%; object-fit: contain; padding: 0;
  transform-origin: 50% 94%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .8));
}
.shop-card:hover .shop-card-photo img { transform: scale(1.04); }
.shop-card--original:hover .shop-card-photo img { transform: none; }
.shop-card-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 16px; }
.shop-card-name b { display: block; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.shop-card-name small { display: block; margin-top: 2px; font-size: 12px; color: var(--grey); }

/* Фото остаётся прозрачным: единая сцена под ним работает и для новых товаров из админки. */
.product-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  background: var(--product-scene) center / 100% 100% no-repeat, var(--bg-2);
}
.product-media::before {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 8%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), transparent);
}
.product-media--original { background: var(--bg-2); }
.product-media--original::before { display: none; }

/* поиск по товарам и «Избранное» над каталогом; поле — с острыми углами, как остальные поля сайта */
.shop-tools { display: flex; gap: 10px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.shop-search {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  background: var(--bg-3); border: 1px solid transparent; transition: border-color 0.2s;
}
.shop-search:focus-within { border-color: var(--red); }
.shop-search svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--grey); stroke-width: 1.7; stroke-linecap: round; }
.shop-search input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; border-radius: 0; -webkit-appearance: none; appearance: none; background: none; color: var(--white); font: inherit; font-size: 16px; outline: none; }
.shop-search input::placeholder { color: var(--grey); }
.shop-fav-link {
  position: relative; display: grid; place-items: center; width: 48px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--white); transition: border-color 0.2s, background-color 0.2s;
}
.shop-fav-link:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.12); }
.shop-fav-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.shop-fav-link .count-badge { top: -7px; right: -7px; }

/* товары: по два в ряд на телефоне, фото поменьше, сердечко на фото и «В корзину» внизу (просьба владельца) */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); transition: border-color 0.3s, background-color 0.4s;
}
.pcard:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.06); }
.pcard-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  background: radial-gradient(closest-side at 50% 56%, rgba(217, 15, 27, 0.22), transparent 74%), var(--bg-2);
}
.pcard-media img { width: 68%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.7s var(--ease); }
.pcard-media--original { background: var(--bg-2); }
.pcard-media--original img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.pcard:hover .pcard-media img { transform: translateY(-4px) scale(1.03); }
.pcard:hover .pcard-media--original img { transform: none; }
.pcard-body { flex: 1; display: grid; align-content: start; gap: 6px; padding: 12px 12px 10px; border-top: 1px solid var(--line-soft); }
.pcard-price { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.pcard-price b { margin-left: 2px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); text-transform: none; white-space: nowrap; }
.pcard-title { font-size: 13px; font-weight: 700; line-height: 1.25; text-transform: uppercase; overflow-wrap: anywhere; }
.pcard-cart { margin: 0 12px 12px; padding: 0 10px; gap: 7px; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(3, 3, 3, 0.6); color: var(--white); transition: color 0.2s, background-color 0.2s;
}
.fav-btn:hover { color: var(--red-hot); }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fav-btn[aria-pressed="true"] { color: var(--red-hot); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.product-media .fav-btn { top: 14px; right: 14px; width: 44px; height: 44px; }
.product-media .fav-btn svg { width: 23px; height: 23px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-actions .btn { padding: 0 14px; }

/* «В корзину» с карточки: выбор объёма */
.pick-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 40px; }
.pick-item img { width: 76px; height: 76px; object-fit: contain; background: var(--bg-3); padding: 6px; }
.pick-item h2 { padding: 0; font-size: 16px; line-height: 1.2; }
.pick-price { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pick-box .vols { margin-bottom: 8px; }

/* корзина */
.cart, .cart-checkout { max-width: 760px; }
.cart-lines { display: grid; border-top: 1px solid var(--line-soft); }
.cart-line { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px 40px 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line-media {
  display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line);
  background: radial-gradient(closest-side at 50% 56%, rgba(217, 15, 27, 0.2), transparent 74%), var(--bg-2);
}
.cart-line-media img { width: 76%; }
.cart-line-info { display: grid; align-content: start; gap: 4px; min-width: 0; }
.cart-line-title { font-size: 14px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.cart-line-title:hover { color: var(--red-hot); }
.cart-line-meta { font-size: 12px; color: var(--grey); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-line-sum { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.cart-line-remove { position: absolute; top: 8px; right: -10px; color: var(--grey); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--red); border-radius: calc(var(--r-btn) - 2px); }
.qty button { display: grid; place-items: center; width: 36px; height: 36px; font-size: 18px; color: var(--white); transition: color 0.2s; }
.qty button:hover:not(:disabled) { color: var(--red-hot); }
.qty button:disabled { color: var(--grey-2); cursor: default; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; }
.cart-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 14px; color: var(--grey); }
.cart-sum b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); white-space: nowrap; }
.cart-buy { min-height: 56px; font-size: 14px; }
.cart-checkout:not(:empty) { margin-top: 8px; }
.cart-empty { display: grid; justify-items: start; gap: 16px; max-width: 520px; color: var(--grey); font-size: 15px; }

.shop-growing { display: grid; justify-items: start; gap: 10px; max-width: 520px; margin-top: clamp(32px, 4vw, 56px); font-size: 13px; color: var(--grey); }

/* страница товара */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.product-media { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); }
.product-media img { position: relative; width: 84%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.65)); }
.product-media.product-media--original img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; filter: none; }
.product-info { display: grid; gap: 22px; }
.product-kicker { margin-bottom: -14px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.product-title { font-size: clamp(28px, 3.4vw, 48px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; }
/* цена — поменьше (просьба владельца 2026-10-26): была 36–54px */
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.product-price span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.product-price b { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.product-vols { display: grid; gap: 10px; }
/* объёмы: три квадратика в красной рамке, выбранный залит; 46px и на телефоне — владелец дважды просил «поменьше» */
.vols { display: flex; gap: 8px; }
.vol {
  display: grid; place-items: center; width: 46px; aspect-ratio: 1; border: 1px solid var(--red); border-radius: calc(var(--r-btn) - 2px);
  font-size: 13px; font-weight: 800; color: var(--white); transition: background-color 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.vol:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.14); }
.vol[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 12px 30px -12px rgba(217, 15, 27, 0.8); }
.specs { display: grid; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.spec h2 { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.spec ul { display: grid; gap: 8px; }
.spec li { position: relative; padding-left: 20px; font-size: 15px; color: #c2c0bd; }
.spec li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 1px; background: var(--red); }
.spec b { color: var(--white); font-weight: 600; }
.product-buy { min-height: 58px; font-size: 15px; }
.product-summary { margin-top: -12px; font-size: 15px; color: #c2c0bd; }
.product-terms { display: grid; gap: 6px; margin-top: -8px; font-size: 13px; color: var(--grey); }
.product-terms b { color: var(--white); font-weight: 600; }
.product-terms a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* подробности о товаре под сеткой: описание, свойства, технические данные, как заказать */
.product-about {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line);
}
.about-block { padding: clamp(22px, 2.6vw, 36px) clamp(0px, 2vw, 32px) clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 12px; align-content: start; }
.about-block:nth-child(even) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-soft); }
.about-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.about-block p { font-size: 15px; line-height: 1.55; color: #c2c0bd; max-width: 68ch; }
.about-list, .about-steps { display: grid; gap: 8px; font-size: 15px; color: #c2c0bd; }
.about-list li { position: relative; padding-left: 20px; }
.about-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 1px; background: var(--red); }
.about-steps { counter-reset: step; }
.about-steps li { position: relative; padding-left: 30px; counter-increment: step; }
.about-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; color: var(--red); }
.about-table { display: grid; margin: 0; }
.about-table > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.about-table dt { color: var(--grey); }
.about-table dd { margin: 0; color: var(--white); }
.about-note { font-size: 12px !important; color: var(--grey-2) !important; }
.about-note a { color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .product-about { grid-template-columns: 1fr; }
  .about-block, .about-block:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* оформление заказа */
[data-checkout]:empty { display: none; }   /* пустой блок формы не должен давать лишний отступ над характеристиками */
.checkout { padding: clamp(18px, 2.4vw, 30px); border: 1px solid var(--line); background: var(--bg-2); scroll-margin-top: calc(var(--header-h) + 16px); }
.checkout h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.checkout-item { margin-top: -6px; font-size: 13px; color: var(--grey); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-btn {
  display: grid; place-content: center; gap: 2px; min-height: 58px; padding: 6px 10px; text-align: center;
  border: 1px solid var(--red); border-radius: var(--r-btn); font-size: 14px; font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s;
}
.seg-btn small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--grey); }
.seg-btn:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.14); }
.seg-btn[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.seg-btn[aria-checked="true"] small { color: rgba(255, 255, 255, 0.85); }
.seg-btn:disabled { opacity: 0.45; cursor: default; }
.seg-btn:disabled:hover { background: none; border-color: var(--red); }
[data-balance-hint] a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.lead-hint.is-err { color: var(--red-hot); }
.sum { display: grid; gap: 8px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line-soft); }
.sum > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--grey); }
.sum dd { margin: 0; color: var(--white); white-space: nowrap; }
.sum .sum-total { align-items: baseline; padding-top: 4px; }
.sum-total dt { color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.sum-total dd { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.checkout .form-error a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.checkout--done { display: grid; justify-items: start; gap: 14px; outline: none; }
.checkout--done p:not(.growing) { color: #c2c0bd; font-size: 15px; }

/* возврат с оплаты */
.pay-result { min-height: 56vh; display: grid; align-content: center; padding-block: clamp(24px, 6vw, 80px); }
.pay-result [data-pay] { display: grid; justify-items: start; gap: 18px; max-width: 760px; }
.pay-title { font-size: clamp(64px, 12vw, 180px); }
.pay-result p:not(.growing) { max-width: 60ch; font-size: 15px; color: #c2c0bd; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  /* фото пониже, чтобы цена, объём и «В корзину» были видны сразу (просьба владельца «сделай меньше фотку») */
  .product-media { position: relative; top: auto; aspect-ratio: 4 / 3; }
  .product-media img { width: auto; height: 62vw; }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- 13. профиль: вход через Telegram, баланс, личные данные ---------- */
/* некликабельные блоки — острые, как весь сайт; всё, что нажимается, — со скруглением --r-btn */
.pf-login {
  display: grid; justify-items: start; gap: 14px; max-width: 580px; padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(217, 15, 27, 0.18), transparent 55%), var(--bg-2);
}
.pf-login-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 14px 34px -12px rgba(217, 15, 27, 0.9); }
.pf-login-ic svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.pf-login h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.pf-login p { max-width: 46ch; font-size: 15px; color: #c2c0bd; }

.pf-head {
  display: flex; align-items: center; gap: 18px; padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line); background: radial-gradient(120% 160% at 0% 0%, rgba(217, 15, 27, 0.22), transparent 55%), var(--bg-2);
}
.pf-ava {
  width: 74px; height: 74px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(140deg, var(--red-hot), var(--red-deep)); color: #fff;
  box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4px var(--line), 0 14px 34px -12px rgba(217, 15, 27, 0.9);
  font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: 0.04em;
}
.pf-who { flex: 1; min-width: 0; }
.pf-name { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.pf-sub { margin-top: 6px; font-size: 13px; color: var(--grey); overflow-wrap: anywhere; }
.pf-logout { flex: none; align-self: flex-start; }

.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pf-stats a {
  display: grid; justify-items: center; gap: 6px; padding: 14px 8px; text-align: center;
  border: 1px solid var(--line-soft); border-radius: var(--r-btn); background: var(--bg-2); transition: border-color 0.2s, background-color 0.2s;
}
.pf-stats a:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.08); }
.pf-stats b { font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 1; }
.pf-stats span { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }

.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.pf-card { display: grid; gap: 12px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line-soft); background: var(--bg-2); }
.pf-wallet {
  border-color: var(--line); scroll-margin-top: calc(var(--header-h) + 16px);
  background: radial-gradient(120% 120% at 100% 0%, rgba(217, 15, 27, 0.24), transparent 55%), var(--bg-2);
}
.pf-k { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.pf-k svg { width: 17px; height: 17px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-money { font-family: var(--font-display); font-weight: 900; font-size: clamp(58px, 7vw, 88px); line-height: 0.9; letter-spacing: 0.01em; }
.pf-note { font-size: 13px; color: var(--grey); }
.pf-notice { display: flex; gap: 10px; padding: 12px; border: 1px solid rgba(224, 168, 60, 0.4); background: rgba(224, 168, 60, 0.08); font-size: 13px; color: #e8d8b3; }
.pf-notice svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #e0a83c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-topup { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pf-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pf-chip { min-height: 40px; border: 1px solid var(--line); border-radius: calc(var(--r-btn) - 2px); font-size: 13px; font-weight: 700; transition: background-color 0.2s, border-color 0.2s; }
.pf-chip:hover { border-color: var(--red-hot); }
.pf-chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.pf-topup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pf-topup-row .field { font-size: 16px; }
.pf-topup-row .btn { padding: 0 18px; }
.pf-hist { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pf-op { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pf-op + .pf-op { border-top: 1px solid var(--line-soft); }
.pf-op-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: var(--grey); }
.pf-op-ic.in { background: rgba(87, 201, 138, 0.12); color: #57c98a; }
.pf-op-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-op-t { flex: 1; min-width: 0; }
.pf-op-t b { display: block; font-size: 14px; font-weight: 600; }
.pf-op-t small { display: block; margin-top: 2px; font-size: 12px; color: var(--grey); }
.pf-op-v { font-size: 15px; white-space: nowrap; }
.pf-op-v.in { color: #57c98a; }
.pf-small { font-size: 11.5px; color: var(--grey-2); }
.pf-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }

.pf-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pf-links a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line-soft); border-radius: var(--r-btn); background: var(--bg-2); transition: border-color 0.2s, background-color 0.2s;
}
.pf-links a:hover { border-color: var(--red-hot); background: rgba(217, 15, 27, 0.06); }
.pf-links a > svg:first-child {
  width: 38px; height: 38px; padding: 9px; flex: none; border-radius: 10px; background: rgba(217, 15, 27, 0.12);
  fill: none; stroke: var(--red-hot); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.pf-links span { flex: 1; min-width: 0; }
.pf-links b { display: block; font-size: 14.5px; font-weight: 600; }
.pf-links small { display: block; margin-top: 2px; font-size: 12px; color: var(--grey); }
.pf-links a > svg:last-child { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--grey-2); stroke-width: 1.8; }

/* вход: слева Telegram, справа — по паролю (вход / регистрация) */
.pf-auth { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.pf-auth .pf-login { max-width: none; }
.pf-auth-note { margin-bottom: 12px; }
.pf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-soft); border-radius: var(--r-btn); }
.pf-tab {
  min-height: 40px; border-radius: calc(var(--r-btn) - 4px); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey); transition: background-color 0.2s, color 0.2s;
}
.pf-tab:hover { color: var(--white); }
.pf-tab.is-on { background: var(--red); color: #fff; }
.pf-form[hidden] { display: none; }
.pf-forgot { justify-self: center; padding: 6px 10px; border-radius: calc(var(--r-btn) - 4px); font-size: 13px; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
.pf-forgot:hover { color: var(--white); }
.pf-note a, .pf-todo a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.pf-todo { margin-top: 12px; }
.pf-ways { display: grid; gap: 2px; }
.pf-ways li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.pf-ways li + li { border-top: 1px solid var(--line-soft); }
.pf-ways svg {
  width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 50%; background: rgba(217, 15, 27, 0.12);
  fill: none; stroke: var(--red-hot); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.pf-ways span { min-width: 0; }
.pf-ways b { display: block; font-size: 14px; font-weight: 600; }
.pf-ways small { display: block; margin-top: 2px; font-size: 12px; color: var(--grey); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .pf-grid, .pf-links, .pf-auth { grid-template-columns: 1fr; }
  .pf-head { flex-wrap: wrap; gap: 14px; }
  .pf-ava { width: 62px; height: 62px; font-size: 25px; }
  .pf-logout { order: 3; }
}

/* ---------- 11. адаптив и доступность ---------- */
@media (max-width: 1100px) {
  .hero-side { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1360px) {
  .cat-toggle-tail { display: inline; }
}

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .header-cta { min-height: 38px; width: 38px; padding: 0; }
  .header-cta span { display: none; }
  .burger { display: inline-grid; order: -1; }
  .header-start { justify-self: center; grid-column: 2; grid-row: 1; }
  .header-start .cat-toggle { display: none; }
  .cat-toggle-icon--site { display: inline-grid; }
  .header-actions--left { display: flex; grid-column: 1; grid-row: 1; justify-self: start; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .logo { width: 120px; }

  .hero { --run: 85vh; }
  .hero-stage { --title: min(19.6vw, 20svh); --carw: min(98vw, 58svh); padding-top: calc(var(--header-h) + 6px); }
  .hero-car { margin-top: calc(var(--title) * -0.2); }
  .hero-sides { display: flex; flex: 1; align-items: center; width: calc(100% - var(--gutter) * 2); min-height: 64px; }
  .hero-side { display: none; }
  .hero-sides .perks { display: grid; width: 100%; margin: 0; }
  .hero-cta { gap: 10px; }
  .hero-buttons { width: 100%; gap: 8px; }
  .hero-buttons .btn { flex: 1 1 100%; min-height: 48px; }

  .cat-name svg { opacity: 1; transform: none; color: var(--red); }

  .about-top, .ask-top { grid-template-columns: 1fr; text-align: left; }
  .about-top .lead, .ask-top .lead { text-align: left; max-width: 46ch; }
  .about-top > :last-child, .ask-top > :last-child { display: none; }
  .about-stage { margin-top: 56px; }
  .about-ghost { font-size: 13.4vw; }
  .about-img { width: min(46vw, 300px); }
  .why-grid, .faq-grid, .ship-grid, .contacts { grid-template-columns: 1fr; }
  .stat { grid-template-columns: auto 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot--sign { grid-column: 1 / -1; }
  .contact-btns { grid-template-columns: 1fr; gap: 10px; }
  .ship-img { order: -1; }
  .faq-a p { padding-right: 0; }

  .page-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .socials { grid-auto-flow: column; justify-content: start; grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .cats { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
}

/* низкий экран (телефон боком): без закрепления, всё идёт обычным потоком */
@media (max-height: 520px) {
  .hero { --run: 0px; height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100svh; --title: min(17.6vw, 120px); --carw: min(60vw, 520px); padding-bottom: 12px; }
  .hero-sides { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { --run: 0px; }
  .car-wheels { display: none; }
  .hero-letter, .hero-side, .hero-cta, .perks { animation: none; }
  .tape-track, .brands-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
