/* Трёхэкранник · скин boyard · собрано конвейером, руками не править.
   Основа — preview-3e-1kuxni.html и CSS блоков build_blocks.py
   (STIKER_CSS, FAKTY_3E_CSS, BULLETY_3E_CSS, HERO_H1_3E_CSS, PLITKI_KVIZA_CSS,
   SHAPKA_3E_CSS, PODVAL_CSS, KVIZ_CSS); .screen-sm → ≤1000px, .screen-xs → ≤767px. */

:root {
  --accent: #D3202D;
  --accent-hover: #BE1D29;
  --ink: #333333;
  --dark: #111111;
  --soft: #F5F5F5;
  --footer: #1F1F1F;
  --font-head: "Inter", "Arial Black", Arial, sans-serif;
  --font-text: "Inter", Arial, system-ui, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 1200px; max-width: calc(100% - 2 * var(--gutter)); margin: 0 auto; }

/* ---------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 14px 30px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--font-text); font-size: 18px; font-weight: 600; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn.sm { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.btn.light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn.light:hover { background: rgba(255, 255, 255, .1); }

/* ---------- шапка */
.shapka { padding: 18px 0; border-bottom: 1px solid #ececec; background: #fff; }
.shapka-grid {
  display: grid;
  grid-template-columns: 30% 16% 24% 30%;
  grid-template-areas: "logo badge tel svyaz";
  align-items: center;
}
.logo { grid-area: logo; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.logo-mark { flex: 0 0 auto; width: 54px; height: auto; color: var(--ink); }
.logo-txt { display: block; min-width: 0; }
.logo-txt b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: .06em; white-space: nowrap; }
.deskriptor { display: block; margin-top: 5px; font-size: 13px; line-height: 1.35; opacity: .6; }
.badge-ya { grid-area: badge; }
.badge-ya iframe { display: block; width: 150px; height: 50px; border: 0; }
.shapka-tel { grid-area: tel; display: block; color: var(--ink); text-decoration: none; }
.shapka-tel b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.2; white-space: nowrap; }
.shapka-tel span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; opacity: .6; }
.svyaz { grid-area: svyaz; display: flex; align-items: center; gap: 10px; }
.msg {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; min-width: 48px; padding: 0 12px;
  border: 1px solid #d8d8d8; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.msg:hover { border-color: var(--accent); color: var(--accent); }
.shapka-btn { flex: 1 1 auto; }

/* ---------- первый экран */
.hero { position: relative; z-index: 1; padding: 88px 0 0; color: #fff; background: var(--dark); }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13, 13, 13, .84), rgba(13, 13, 13, .36)); }
.hero-wrap { position: relative; }
.hero-kol { width: 62%; padding-right: 40px; }
.pill {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
  padding: 7px 16px; font-size: 14px; line-height: 1.25; opacity: .95;
}
.hero h1 {
  margin-top: 20px; font-size: 46px; line-height: 1.1; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 18px; font-size: 17px; line-height: 1.55; opacity: .9; }
.vhodit { margin-top: 18px; font-size: 16px; line-height: 1.55; opacity: .88; }
.vhodit b { font-weight: 600; }
.vhodit .xs { display: none; }
.bul { display: flex; align-items: flex-start; gap: 14px; padding: 7px 0; margin-top: 10px; font-size: 17px; line-height: 1.5; opacity: .95; }
.bul:first-of-type { margin-top: 20px; }
.bul i {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-top: 1px; border-radius: 7px;
  background: var(--accent); color: #fff; font-style: normal;
}
.bul i svg { display: block; }
.knopki { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.knopki .btn { display: flex; width: 100%; }
.podpis { margin-top: 8px; font-size: 13px; line-height: 1.4; opacity: .62; text-align: center; }

/* стикер: на десктопе круг справа поверх фото, ниже 1000px — плашка под заголовком */
.stiker {
  position: absolute; right: 0; top: 32px;
  width: 178px; height: 178px; padding: 18px;
  border-radius: 999px; background: var(--accent); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-8deg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}
.stiker b { display: block; font-family: var(--font-head); font-size: 36px; line-height: 1; font-weight: 800; }
.stiker span { display: block; margin-top: 7px; font-size: 14px; line-height: 1.25; opacity: .92; }
.stiker .solo { margin-top: 0; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
/* длинная цифра на стикере («54 600 ₽») в 36 px упирается в край круга */
.stiker b { font-size: 30px; }

/* полоса фактов: свисает на следующий экран и сшивает их */
.fakty {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  margin: 46px 0 -64px; padding: 26px 30px;
  background: #fff; color: var(--ink); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
  position: relative; z-index: 2;
}
.fakt { display: flex; align-items: flex-start; gap: 12px; }
.fakt svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.fakt b { display: block; font-family: var(--font-head); font-size: 16px; line-height: 1.25; font-weight: 700; }
.fakt span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; opacity: .62; }

/* ---------- экран 2 */
.ekran2 { padding: 148px 0 84px; background: var(--soft); }
.ekran2 h2, .kviz h2, .kto h2 { font-size: 38px; line-height: 1.15; text-align: center; letter-spacing: .01em; }
.karty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.karta { background: #fff; border-radius: 14px; padding: 18px; }
.karta-foto { width: 100%; height: 176px; object-fit: cover; border-radius: 10px; }
.badge {
  display: inline-block; margin-top: 16px; padding: 5px 14px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.karta h3 { margin-top: 14px; font-size: 20px; line-height: 1.25; }
.karta p { margin-top: 10px; font-size: 15px; line-height: 1.5; opacity: .75; }
.knopka-centr { margin-top: 36px; text-align: center; }
.knopka-centr .btn { min-width: 48%; }
.snoska { margin-top: 22px; text-align: center; font-size: 14px; line-height: 1.5; opacity: .6; }

/* ---------- экран 3 · квиз */
.kviz { padding: 84px 0; scroll-margin-top: 12px; }
.kviz .sub { margin-top: 14px; text-align: center; font-size: 17px; line-height: 1.55; opacity: .75; }
.kplitki { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.kplitka { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 18px 20px; }
.kplitka svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.kplitka b { display: block; font-family: var(--font-head); font-size: 16px; line-height: 1.25; font-weight: 700; }
.kplitka span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.4; opacity: .62; }
.kviz-grid { display: grid; grid-template-columns: minmax(0, 71fr) minmax(0, 29fr); gap: 24px; margin-top: 36px; align-items: start; }
.kviz-vrezka { min-height: 560px; border: 1px solid #e3e3e3; border-radius: 14px; background: #fff; padding: 10px; overflow: hidden; }
.kviz-vrezka > [data-marquiz-id], .kviz-vrezka > .marquiz__container { width: 100%; }
.kviz-zapas { padding: 40px 20px; text-align: center; font-size: 15px; line-height: 1.6; opacity: .7; }
/* Marquiz заменяет div[data-marquiz-id] своим .marquiz__container — запасная строка уходит */
.kviz-vrezka > .marquiz__container + .kviz-zapas,
.kviz-vrezka > [data-marquiz-id]:not(:empty) + .kviz-zapas { display: none; }
.kviz-zapas a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.bok { background: var(--soft); border-radius: 14px; padding: 26px; }
.bok h3 { font-size: 21px; line-height: 1.2; }
.bok-foto { width: 100%; height: 230px; object-fit: cover; margin-top: 20px; border-radius: 12px; }
.imya-bok { margin-top: 16px; text-align: center; font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.25; }
.rol-bok { margin-top: 6px; text-align: center; font-size: 14px; line-height: 1.4; opacity: .6; }
.tihiy { margin-top: 20px; font-size: 14px; line-height: 1.5; opacity: .6; }

/* ---------- экран 4 · кто приедет и кто соберёт */
.kto { padding: 84px 0; background: var(--soft); }
.kto-karty { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.kto-karta { background: #fff; border-radius: 14px; padding: 26px; }
.kto-karta h3 { font-size: 23px; line-height: 1.2; }
.kto-karta p { margin-top: 14px; font-size: 16px; line-height: 1.55; opacity: .78; }
.plashki { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.plashki li { background: var(--accent); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; line-height: 1.25; }
.kto-sub { margin-top: 40px; text-align: center; font-size: 16px; line-height: 1.5; opacity: .75; }
.kto-foto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.kto-foto img { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; }

/* ---------- подвал */
.podval { padding: 54px 0; background: var(--footer); color: #fff; }
.podval-grid { display: grid; grid-template-columns: 58% 42%; gap: 0; }
.podval a { color: #fff; }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: #fff; width: 44px; }
.logo-light b { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.podval-about { margin-top: 14px; max-width: 520px; font-size: 14px; line-height: 1.5; opacity: .7; }
.rekv { margin-top: 18px; font-size: 13px; line-height: 1.5; opacity: .55; }
.adres { margin-top: 8px; font-size: 13px; line-height: 1.5; opacity: .55; }
.podval-tel { display: block; text-decoration: none; }
.podval-tel b { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.2; }
.podval-tel span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.4; opacity: .6; }
.socials { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 6px; padding: 8px 14px; font-size: 15px; text-decoration: none; }
.socials a:hover { border-color: #fff; }
.podval-links { margin-top: 18px; font-size: 13px; line-height: 1.9; opacity: .6; }

/* ---------- юрстраницы, «спасибо», 404 */
.shapka-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shapka-mini .logo-mark { width: 44px; }
.shapka-mini .shapka-tel b { font-size: 18px; }
.doc { padding: 48px 0 72px; }
.doc-wrap { width: 860px; }
.doc-back { font-size: 14px; }
.doc-back a { color: var(--accent); text-decoration: none; }
.doc h1 { margin-top: 18px; font-size: 34px; line-height: 1.2; }
.doc h2 { margin-top: 34px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.doc p { margin-top: 12px; font-size: 15px; line-height: 1.65; }
.doc ul { margin-top: 10px; padding-left: 20px; list-style: disc; }
.doc li { margin-top: 6px; font-size: 15px; line-height: 1.6; }
.doc a { color: var(--accent); overflow-wrap: anywhere; }
.doc-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc-table th, .doc-table td { padding: 12px 14px; border: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
.doc-table th { width: 32%; background: var(--soft); font-weight: 600; }
.doc-rekv { margin-top: 30px; padding: 20px 22px; border-radius: 12px; background: var(--soft); }
.doc-rekv p { margin-top: 4px; }
.doc-date { margin-top: 30px; font-size: 13px; opacity: .6; }
.prostaya { padding: 90px 0 110px; text-align: center; }
.prostaya h1 { font-size: 38px; line-height: 1.15; }
.prostaya p { margin: 16px auto 0; max-width: 560px; font-size: 17px; line-height: 1.55; opacity: .75; }
.prostaya .btn { margin-top: 30px; }

/* ---------- cookie */
.cookie {
  position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px 14px 20px; border-radius: 12px;
  background: rgba(23, 21, 15, .96); color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 14px; line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 auto; min-width: 0; }
.cookie a { color: #fff; }
.cookie-short { display: none; }
.cookie button {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font: 600 15px/1 var(--font-text); cursor: pointer;
}
.cookie button:hover { background: var(--accent-hover); }

/* ================= планшет: ≤1000px (.screen-sm) */
@media (max-width: 1000px) {
  .shapka-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo svyaz" "badge tel";
    column-gap: 16px; row-gap: 12px;
  }
  .shapka-tel { text-align: right; }
  .shapka-btn { flex: 0 0 auto; }

  .hero { padding: 64px 0 40px; }
  .hero h1 { font-size: 34px; }
  .hero-kol { width: 100%; padding-right: 0; }
  .stiker {
    position: static; transform: none;
    width: auto; height: auto; margin-top: 20px; padding: 10px 18px;
    display: inline-flex; flex-direction: row; align-items: baseline; gap: 10px;
    text-align: left; box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  }
  .stiker b { font-size: 26px; }
  .stiker span { margin-top: 0; font-size: 14px; }
  .fakty { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }

  .ekran2 { padding: 64px 0 60px; }
  .ekran2 h2, .kviz h2, .kto h2 { font-size: 30px; }
  .karty { gap: 16px; }
  .karta-foto { height: 150px; }
  .kplitki { grid-template-columns: 1fr; gap: 12px; }
  .kviz-grid { grid-template-columns: 1fr; }
  .bok-foto { height: 260px; }
  .kto { padding: 64px 0; }
  .podval-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ================= телефон: ≤767px (.screen-xs) */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .shapka { padding: 10px 0; }
  .shapka-grid { column-gap: 10px; row-gap: 8px; }
  .logo { gap: 9px; }
  .logo-mark { width: 38px; }
  .logo-txt b { font-size: 16px; letter-spacing: .04em; }
  .deskriptor { display: none; }
  .badge-ya { height: 40px; overflow: hidden; }
  .badge-ya iframe { transform: scale(.8); transform-origin: left top; }
  .shapka-tel b { font-size: 15px; }
  .shapka-tel span { display: none; }
  .svyaz { gap: 6px; }
  .msg { height: 40px; min-width: 44px; padding: 0 10px; font-size: 12px; }
  .shapka-btn { display: none; }

  .hero { padding: 26px 0 30px; }
  .pill { font-size: 12px; padding: 5px 11px; }
  .hero h1 { margin-top: 16px; font-size: 27px; line-height: 1.12; }
  .stiker { margin-top: 16px; padding: 8px 14px; }
  .stiker b { font-size: 22px; }
  .stiker span { font-size: 13px; }
  .lead { margin-top: 14px; font-size: 15px; }
  .vhodit { margin-top: 12px; font-size: 15px; }
  .vhodit .lg { display: none; }
  .vhodit .xs { display: inline; }
  .bul { gap: 12px; font-size: 15px; padding: 4px 0; }
  .bul:first-of-type { margin-top: 14px; }
  .bul i { width: 24px; height: 24px; }
  .knopki { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .btn { min-height: 54px; font-size: 17px; padding: 12px 20px; }
  .fakty { grid-template-columns: 1fr; gap: 16px; padding: 20px; margin-top: 28px; }

  .ekran2 { padding: 48px 0 44px; }
  .ekran2 h2, .kviz h2, .kto h2 { font-size: 25px; letter-spacing: 0; }
  .karty { grid-template-columns: 1fr; margin-top: 26px; }
  .karta { padding: 16px; }
  .karta-foto { height: 190px; }
  .karta h3 { font-size: 18px; }
  .karta p { font-size: 14px; }
  .knopka-centr { margin-top: 26px; }
  .knopka-centr .btn { display: flex; width: 100%; min-width: 0; }
  .snoska { font-size: 13px; }

  .kviz { padding: 48px 0 44px; }
  .kviz .sub { font-size: 15px; }
  .kplitki { margin-top: 24px; }
  .kplitka { padding: 16px; }
  .kviz-grid { margin-top: 24px; gap: 18px; }
  .kviz-vrezka { min-height: 0; padding: 8px; }
  .kviz-zapas { padding: 22px 12px; }
  .bok { padding: 20px; }
  .bok h3 { font-size: 19px; }
  .bok-foto { height: 200px; }

  .kto { padding: 48px 0 44px; }
  .kto-karty { grid-template-columns: 1fr; margin-top: 26px; }
  .kto-karta { padding: 20px; }
  .kto-karta h3 { font-size: 20px; }
  .kto-karta p { font-size: 15px; }
  .kto-sub { margin-top: 28px; font-size: 15px; }
  .kto-foto { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .kto-foto img { height: 180px; }

  .podval { padding: 36px 0 76px; }
  .podval-grid { grid-template-columns: 1fr; }

  .doc { padding: 28px 0 48px; }
  .doc h1 { font-size: 25px; }
  .doc h2 { font-size: 18px; }
  .doc-table th, .doc-table td { display: block; width: 100%; }
  .doc-table th { border-bottom: 0; }
  .prostaya { padding: 56px 0 72px; }
  .prostaya h1 { font-size: 27px; }

  /* на телефоне — одна короткая строка и маленькая кнопка, плашка не выше 64 px */
  .cookie { bottom: 8px; width: calc(100% - 16px); gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.35; }
  .cookie-long { display: none; }
  .cookie-short { display: inline; }
  .cookie button { min-height: 36px; padding: 0 14px; font-size: 14px; }
}

/* 361–400 px (частые Android 384/393 и любой телефон с полосой прокрутки):
   название в шапке не переносится и на 16 px заезжало на кнопку MAX. */
@media (max-width: 400px) {
  .logo { gap: 8px; }
  .logo-mark { width: 34px; }
  .logo-txt b { font-size: 14px; letter-spacing: .03em; }
  .msg { min-width: 40px; padding: 0 8px; font-size: 11px; }
}

@media (max-width: 360px) {
  .logo { gap: 7px; }
  .logo-txt b { font-size: 13px; letter-spacing: .02em; }
  .logo-mark { width: 30px; }
  .msg { min-width: 38px; padding: 0 7px; font-size: 11px; }
  .shapka-tel b { font-size: 14px; }
  .hero h1 { font-size: 24px; }
  .ekran2 h2, .kviz h2, .kto h2 { font-size: 23px; }
  .btn { font-size: 16px; }
}

/* ---------- мессенджеры логотипами (_messengers.html.j2), общее для всех стилей.
   Класс удвоен, чтобы перебить .msg/.top-msg стиля и в его медиазапросах. */
a.msg-ico.msg-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 0; padding: 0;
  border: 0; border-radius: 50%; background: none;
  transition: transform .15s ease, opacity .15s ease;
}
a.msg-ico.msg-ico:hover { transform: translateY(-1px); opacity: .9; }
.msg-ico .msg-svg { display: block; width: 100%; height: 100%; }
.socials a .msg-svg { width: 22px; height: 22px; margin-right: 8px; flex: none; }
@media (max-width: 767px) { a.msg-ico.msg-ico { width: 38px; height: 38px; } }
@media (max-width: 400px) { a.msg-ico.msg-ico { width: 34px; height: 34px; } }
@media (max-width: 360px) { a.msg-ico.msg-ico { width: 30px; height: 30px; } }

/* ================= меню шапки и каталог моделей (content.menu, content.catalog) */

/* меню — строкой под шапкой; выпадающий список видов — только мышью на
   широком экране, на телефоне и планшете «Каталог» ведёт на страницу каталога,
   где виды стоят кнопками */
.shapka.s-menu { padding-bottom: 0; }
.menu { margin-top: 16px; border-top: 1px solid #ececec; }
.menu-list { display: flex; flex-wrap: wrap; gap: 0 32px; }
.menu-item { position: relative; }
.menu-item > a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 48px;
  font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.menu-item > a[aria-current] { color: var(--accent); }
.menu-item > a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.menu-drop > a::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); opacity: .6;
}
.menu-sub {
  display: none; position: absolute; left: -14px; top: 100%; z-index: 40;
  min-width: 300px; padding: 8px; border-radius: 12px; background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
@media (hover: hover) and (min-width: 1001px) {
  .menu-drop:hover .menu-sub, .menu-drop:focus-within .menu-sub { display: block; }
}
.menu-sub a {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 11px 12px; border-radius: 8px;
  font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.menu-sub span { font-size: 13px; opacity: .5; }
#ekran2, #kto { scroll-margin-top: 12px; }

/* ---------- страницы каталога */
.kat { padding: 26px 0 0; }
.kroshki { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 1.4; }
.kroshki a { color: var(--ink); opacity: .6; text-decoration: none; }
.kroshki span { opacity: .35; }
.kroshki [aria-current] { opacity: .9; }
.kat h1 { margin-top: 18px; font-size: 38px; line-height: 1.15; }
.kat-lead { margin-top: 12px; max-width: 760px; font-size: 17px; line-height: 1.55; opacity: .75; }

.kat-vidy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.kat-vidy a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 1px solid #dcdcdc; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none;
}
.kat-vidy a[aria-current] { border-color: var(--accent); background: var(--accent); color: #fff; }
.kat-vidy span { font-size: 13px; font-weight: 400; opacity: .6; }

.kat-setka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 32px; }
.kk { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.kk-foto { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--soft); aspect-ratio: 4 / 3; }
.kk-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.kk-skidka {
  display: inline-block; padding: 5px 10px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2;
}
.kk-foto .kk-skidka { position: absolute; left: 12px; top: 12px; }
.kk-vid { margin-top: 14px; font-size: 13px; line-height: 1.3; opacity: .55; }
.kk-imya { margin-top: 4px; font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.2; }
.kk-cena { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; }
.kk-cena b { font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: 1.2; }
.kk-cena s, .tovar-cena s { font-size: 15px; opacity: .45; }
.kk-mat { margin-top: 6px; font-size: 14px; line-height: 1.4; opacity: .6; }

/* квиз на страницах каталога — полосой на сером фоне, как секции главной */
.kat-kviz { margin-top: 72px; background: var(--soft); }
.kat-kviz .bok { background: #fff; }
.pohozhie h2 { font-size: 30px; line-height: 1.2; }

/* ---------- страница модели */
.tovar { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 44px; margin-top: 22px; align-items: start; }
.galereya { position: relative; min-width: 0; }
.gal-lenta {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 14px; background: var(--soft); aspect-ratio: 4 / 3;
  scrollbar-width: none;
}
.gal-lenta::-webkit-scrollbar { display: none; }
.gal-foto { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.gal-str {
  position: absolute; top: calc((100% - 92px) / 2); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font: 400 30px/1 var(--font-text); cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.gal-str[hidden] { display: none; }
.gal-str:disabled { opacity: 0; pointer-events: none; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-mini { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.gal-mini a { flex: 0 0 auto; width: 92px; height: 70px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.gal-mini a.on { border-color: var(--accent); opacity: 1; }
.gal-mini img { width: 100%; height: 100%; object-fit: cover; }

.tovar-vid { font-size: 14px; line-height: 1.3; opacity: .6; }
.tovar-info h1 { margin-top: 6px; font-size: 36px; line-height: 1.15; }
.tovar-cena { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; }
.tovar-cena b { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.1; }
.tovar-cena s { font-size: 18px; }
.tovar-podpis { margin-top: 6px; font-size: 14px; line-height: 1.4; opacity: .6; }
.har { margin: 24px 0 0; border-top: 1px solid #e6e6e6; }
.har div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #e6e6e6; }
.har dt { font-size: 15px; line-height: 1.45; opacity: .55; }
.har dd { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; }
.tovar-info .btn { display: flex; width: 100%; margin-top: 28px; }
.tovar-kak { margin-top: 10px; font-size: 13px; line-height: 1.4; opacity: .6; text-align: center; }
.tovar-svyaz { margin-top: 18px; font-size: 15px; line-height: 1.5; }
.tovar-svyaz a { color: var(--accent); font-weight: 600; }

.pohozhie { padding: 72px 0 84px; }
.pohozhie .kat-setka { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.pohozhie .kk-imya { font-size: 19px; }
.pohozhie .kk-cena b { font-size: 18px; }

/* наведение — только мышью: на телефоне :hover залипает после нажатия */
@media (hover: hover) {
  .menu-item > a:hover { color: var(--accent); }
  .menu-sub a:hover { background: var(--soft); color: var(--accent); }
  .kroshki a:hover { color: var(--accent); opacity: 1; }
  .kat-vidy a:hover { border-color: var(--accent); color: var(--accent); }
  .kk:hover .kk-imya { color: var(--accent); }
  .kk:hover .kk-foto img { transform: scale(1.03); }
  .gal-mini a:hover { border-color: var(--accent); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kk-foto img { transition: none; }
  .kk:hover .kk-foto img { transform: none; }
}
.kat-vse { margin-top: 28px; font-size: 16px; font-weight: 600; }
.kat-vse a { color: var(--accent); text-decoration: none; }

/* ================= планшет: ≤1000px */
@media (max-width: 1000px) {
  .menu { margin-top: 12px; }
  .kat h1 { font-size: 32px; }
  .kat-setka { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .tovar { grid-template-columns: 1fr; gap: 28px; }
  .kat-kviz { margin-top: 56px; }
  .pohozhie { padding: 56px 0 64px; }
  .pohozhie .kat-setka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= телефон: ≤767px — меню лентой с прокруткой */
@media (max-width: 767px) {
  .menu { margin-top: 10px; }
  .menu-list {
    width: auto; max-width: none; margin: 0;
    flex-wrap: nowrap; gap: 22px; padding: 0 var(--gutter);
    overflow-x: auto; scrollbar-width: none;
  }
  .menu-list::-webkit-scrollbar { display: none; }
  .menu-item > a { min-height: 44px; font-size: 14px; }
  .menu-drop > a::after { display: none; }

  .kat { padding: 18px 0 0; }
  .kroshki { font-size: 13px; }
  .kat h1 { margin-top: 14px; font-size: 26px; }
  .kat-lead { font-size: 15px; }
  .kat-vidy {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 20px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter);
  }
  .kat-vidy::-webkit-scrollbar { display: none; }
  .kat-vidy a { white-space: nowrap; min-height: 40px; padding: 7px 14px; font-size: 14px; }
  .kat-setka { grid-template-columns: 1fr; gap: 28px; margin-top: 22px; }
  .kk-imya { font-size: 20px; }
  .kk-cena b { font-size: 19px; }
  .kat-kviz { margin-top: 44px; }
  .pohozhie h2 { font-size: 23px; }

  .tovar { margin-top: 16px; gap: 22px; }
  .gal-lenta { border-radius: 0; margin: 0 calc(-1 * var(--gutter)); }
  .gal-str { display: none; }
  .gal-mini a { width: 72px; height: 56px; }
  .tovar-info h1 { font-size: 27px; }
  .tovar-cena b { font-size: 28px; }
  .har div { grid-template-columns: 100px minmax(0, 1fr); }
  .pohozhie { padding: 44px 0 48px; }
  .pohozhie .kat-setka { grid-template-columns: 1fr; }
}
