/* ============================================================
   КУБИК — магазин развивающих игрушек
   Белая бумага, округлая геометрия, основные цвета дозированно.
   Заголовки: Baloo 2. Интерфейс: Nunito. Цифры: Inter (tabular).
   ============================================================ */

:root {
  --blue: #1f5fe0;
  --blue-d: #133a8f;
  --blue-l: #e9f0ff;
  --yellow: #ffc42e;
  --yellow-l: #fff6dd;
  --red: #ef4a3c;
  --red-l: #ffeae8;
  --green: #17a06a;
  --green-l: #e3f6ee;

  --ink: #15171f;
  --ink-2: #565d70;
  --ink-3: #8b93a6;
  --line: #e7e9f0;
  --line-2: #f1f3f8;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --cream: #fff9ec;

  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --num: "Inter", system-ui, sans-serif;

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --tr: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 2px 4px rgba(21, 23, 31, 0.03), 0 12px 32px rgba(21, 23, 31, 0.06);
  --shadow-lg: 0 4px 10px rgba(21, 23, 31, 0.05), 0 26px 60px rgba(21, 23, 31, 0.12);
  --container: 1280px;
  --top-h: 118px; /* промо-полоса + шапка: первый экран должен помещаться целиком */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.num, .price, input[inputmode="numeric"], .tabular {
  font-family: var(--num);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.01em;
}

/* ---------- reveal: IntersectionObserver + transition ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.07s; }
.rv-d2 { transition-delay: 0.14s; }
.rv-d3 { transition-delay: 0.21s; }
.rv-d4 { transition-delay: 0.28s; }

/* ---------- знак бренда: стопка кубиков ---------- */
.mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 24px;
  height: 24px;
  flex: none;
}
.mark i {
  display: block;
  border-radius: 3px;
  background: var(--blue);
}
.mark i:nth-child(2) { background: var(--yellow); }
.mark i:nth-child(3) { background: var(--red); }
.mark i:nth-child(4) { background: var(--green); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--blue);
  transition: background var(--tr), border-color var(--tr), transform 0.14s ease, box-shadow var(--tr);
  box-shadow: 0 8px 20px rgba(31, 95, 224, 0.24);
}
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 10px rgba(31, 95, 224, 0.24); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--soft); border-color: var(--ink); color: var(--ink); }
.btn-white {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.btn-white:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-clear {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
.btn-clear:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- промо-полоса ---------- */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  position: relative;
  z-index: 30;
}
.topbar b { font-weight: 800; }
.promo-code {
  font-family: var(--num);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 2px 12px 3px;
  position: relative;
  transition: transform 0.14s ease;
}
.promo-code:hover { transform: translateY(-1px); }
.promo-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.promo-tip.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- шапка ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo .mark { transition: transform var(--tr); }
.logo:hover .mark { transform: rotate(-12deg); }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}
.nav a {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color var(--tr);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.hdr-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr-phone {
  font-weight: 700;
  font-size: 15px;
  margin-right: 10px;
  white-space: nowrap;
}
.icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background var(--tr);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 23px; height: 23px; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--num);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-count.on { opacity: 1; transform: scale(1); }
.burger { display: none; }

/* ---------- мобильное меню ---------- */
.mnav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 88vw);
  background: var(--paper);
  z-index: 90;
  padding: 26px 24px 40px;
  transform: translateX(102%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mnav.open { transform: none; }
.mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mnav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.mnav a:hover { color: var(--blue); }
.mnav-foot { margin-top: 24px; font-size: 14px; color: var(--ink-2); }

/* ---------- вуаль ---------- */
.veil {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 25, 0.42);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.veil.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   ГЛАВНАЯ — первый экран
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--top-h));
  min-height: calc(100svh - var(--top-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--soft);
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 62%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 10, 18, 0.86) 0%, rgba(8, 10, 18, 0.66) 20%, rgba(8, 10, 18, 0.3) 44%, rgba(8, 10, 18, 0.04) 68%, rgba(8, 10, 18, 0) 84%),
    linear-gradient(to right, rgba(8, 10, 18, 0.34) 0%, rgba(8, 10, 18, 0.04) 48%, rgba(8, 10, 18, 0) 68%);
}
.hero-in {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(48px, 7vh, 92px);
  padding-top: 100px;
  color: #fff;
  max-width: 700px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-kicker .mark { width: 18px; height: 18px; }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.34);
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-sub {
  font-size: clamp(16.5px, 1.5vw, 20px);
  margin-top: 18px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-scroll {
  position: absolute;
  right: max(20px, calc(50vw - var(--container) / 2));
  bottom: clamp(64px, 9vh, 116px);
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 54px;
  background: currentColor;
}

/* ---------- подбор по возрасту (карточка внахлёст) ---------- */
.agebar-wrap {
  position: relative;
  z-index: 5;
  margin-top: -58px;
}
.agebar {
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 26px;
  align-items: center;
}
.agebar-t {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}
.agebar-t span { display: block; font-family: var(--body); font-size: 14.5px; font-weight: 600; color: var(--ink-3); margin-top: 4px; }
.age-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.age-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 78px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--paper);
  transition: border-color var(--tr), background var(--tr), transform var(--tr);
}
.age-pill b {
  font-family: var(--num);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.age-pill span { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.age-pill:nth-child(1):hover { border-color: var(--blue); background: var(--blue-l); }
.age-pill:nth-child(2):hover { border-color: var(--yellow); background: var(--yellow-l); }
.age-pill:nth-child(3):hover { border-color: var(--red); background: var(--red-l); }
.age-pill:nth-child(4):hover { border-color: var(--green); background: var(--green-l); }
.age-pill:hover { transform: translateY(-3px); }

/* ============================================================
   секции
   ============================================================ */
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section.soft { background: var(--soft); }
.section.tight { padding-top: clamp(30px, 4vw, 52px); }

.shead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}
.shead h2 {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.02em;
}
.shead p {
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 46em;
  font-size: 16.5px;
}
.slink {
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
}
.slink svg { width: 17px; height: 17px; transition: transform var(--tr); }
.slink:hover svg { transform: translateX(4px); }

/* ---------- категории ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 296px;
  gap: 16px;
}
.cat-tile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--soft);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  isolation: isolate;
}
.cat-tile:nth-child(1) { grid-column: span 2; }
.cat-tile:nth-child(6) { grid-column: span 2; }
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 14, 22, 0.72) 0%, rgba(12, 14, 22, 0.15) 48%, rgba(12, 14, 22, 0) 72%);
}
.cat-tile:hover img { transform: scale(1.06); }
.cat-meta { color: #fff; padding-right: 58px; }
.cat-meta b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  display: block;
  line-height: 1.1;
}
.cat-meta span {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.82;
}
.cat-go {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background var(--tr), color var(--tr), transform var(--tr);
}
.cat-go svg { width: 19px; height: 19px; }
.cat-tile:hover .cat-go { background: var(--yellow); transform: translateX(3px); }

/* ---------- карточка товара ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.pcard:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pc-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  overflow: hidden;
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pcard:hover .pc-media img { transform: scale(1.05); }
.pc-age {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--num);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(21, 23, 31, 0.1);
}
.pc-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}
.pc-badge.sale { background: var(--red); font-family: var(--num); }
.pc-badge.new { background: var(--green); }
.pc-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--tr), transform var(--tr), background var(--tr);
}
.pc-quick:hover { background: var(--blue); }
.pcard:hover .pc-quick { opacity: 1; transform: none; }
.pc-body {
  padding: 15px 17px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}
.pc-cat {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pc-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.pc-price {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.pc-price .price {
  font-weight: 700;
  font-size: 20px;
}
.pc-price .old {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-3);
  text-decoration: line-through;
}

/* ---------- лента (слайдер) ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color var(--tr), background var(--tr), color var(--tr);
}
.rail-btn svg { width: 19px; height: 19px; }
.rail-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.rail-btn[disabled] { opacity: 0.3; pointer-events: none; }

/* ---------- промо-баннер ---------- */
.promo {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  min-height: 380px;
}
.promo-txt {
  padding: clamp(32px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.promo-txt h2 { font-size: clamp(28px, 3.4vw, 44px); }
.promo-txt p { color: rgba(255, 255, 255, 0.86); max-width: 34em; }
.promo-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 4px;
}
.promo-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}
.promo-list svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--yellow); }
.promo-media { position: relative; min-height: 260px; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- о бренде ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 14px 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  max-width: 60%;
}
.about h2 { font-size: clamp(30px, 3.6vw, 46px); }
.about p { color: var(--ink-2); margin-top: 16px; font-size: 17px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.stat {
  border-radius: var(--r-md);
  padding: 18px 18px 20px;
  background: var(--soft);
}
.stat b {
  display: block;
  font-family: var(--num);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat span { font-size: 14px; font-weight: 600; color: var(--ink-2); display: block; margin-top: 7px; line-height: 1.35; }
.stat:nth-child(1) { background: var(--blue-l); }
.stat:nth-child(1) b { color: var(--blue); }
.stat:nth-child(2) { background: var(--yellow-l); }
.stat:nth-child(2) b { color: #a67400; }
.stat:nth-child(3) { background: var(--green-l); }
.stat:nth-child(3) b { color: var(--green); }

/* ---------- лукбук «как дома» ---------- */
.looks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.look {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  isolation: isolate;
  background: var(--soft);
}
.look img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.look::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 14, 22, 0.74) 0%, rgba(12, 14, 22, 0.16) 46%, rgba(12, 14, 22, 0) 70%);
}
.look:hover img { transform: scale(1.06); }
.look-cap {
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

/* ---------- преимущества ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.perk {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 28px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.perk-ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.perk-ic svg { width: 26px; height: 26px; }
.perk:nth-child(1) .perk-ic { background: var(--blue-l); color: var(--blue); }
.perk:nth-child(2) .perk-ic { background: var(--yellow-l); color: #a67400; }
.perk:nth-child(3) .perk-ic { background: var(--red-l); color: var(--red); }
.perk:nth-child(4) .perk-ic { background: var(--green-l); color: var(--green); }
.perk h3 { font-size: 20px; margin-bottom: 7px; }
.perk p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- отзывы ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stars { display: flex; gap: 3px; color: var(--yellow); }
.stars svg { width: 18px; height: 18px; }
.review p { color: var(--ink); font-size: 16px; flex: 1; }
.review-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.review-who b { display: block; font-size: 15.5px; }
.review-who span { font-size: 13.5px; color: var(--ink-3); }
.review:nth-child(1) .avatar { background: var(--blue-l); color: var(--blue); }
.review:nth-child(2) .avatar { background: var(--red-l); color: var(--red); }
.review:nth-child(3) .avatar { background: var(--green-l); color: var(--green); }

/* ---------- подписка ---------- */
.nl {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 66px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nl::before,
.nl::after {
  content: "";
  position: absolute;
  border-radius: 22px;
  opacity: 0.16;
}
.nl::before { width: 190px; height: 190px; background: var(--blue); left: -60px; top: -50px; transform: rotate(18deg); }
.nl::after { width: 220px; height: 220px; background: var(--yellow); right: -70px; bottom: -80px; transform: rotate(-14deg); }
.nl-in { position: relative; z-index: 1; }
.nl h2 { font-size: clamp(28px, 3.4vw, 44px); }
.nl p { color: rgba(255, 255, 255, 0.74); margin: 14px auto 0; max-width: 44em; }
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 28px auto 0;
}
.nl-form input {
  flex: 1;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 22px;
  color: #fff;
  font-weight: 600;
  transition: border-color var(--tr), background var(--tr);
}
.nl-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.nl-form input:focus { outline: none; border-color: var(--yellow); background: rgba(255, 255, 255, 0.13); }
.nl-done {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 20px 24px;
  max-width: 560px;
  margin: 28px auto 0;
  font-weight: 600;
}
.nl-note { font-size: 13.5px; color: rgba(255, 255, 255, 0.5); margin-top: 16px; }

/* ============================================================
   футер
   ============================================================ */
.footer {
  background: var(--ink);
  color: #fff;
  margin-top: clamp(48px, 6vw, 90px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: clamp(44px, 5vw, 68px) 0 40px;
}
.footer .logo { color: #fff; }
.footer-about {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-top: 16px;
  max-width: 30em;
}
.footer-col h4 {
  font-size: 15px;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15.5px;
  transition: color var(--tr);
}
.footer-col a:hover { color: var(--yellow); }
.footer-demo {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 30px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}
.footer-demo a { color: var(--yellow); font-weight: 700; }
.footer-demo a:hover { text-decoration: underline; }

/* ============================================================
   корзина-drawer
   ============================================================ */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 92vw);
  background: var(--paper);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.drawer.open { transform: none; }
.dr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.dr-head h3 { font-size: 24px; }
.dr-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.dr-empty {
  text-align: center;
  color: var(--ink-2);
  padding: 60px 10px;
  font-size: 16px;
}
.dr-empty .mark { width: 44px; height: 44px; margin-bottom: 16px; opacity: 0.5; }
.dr-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.dr-item img { width: 78px; height: 78px; object-fit: cover; border-radius: 14px; background: var(--soft); }
.dr-item .n { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.dr-item .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.dr-item .p { font-weight: 700; margin-top: 6px; }
.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  margin-top: 8px;
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-2);
  transition: background var(--tr), color var(--tr);
}
.qty button:hover { background: var(--blue); color: #fff; }
.qty .q { min-width: 26px; text-align: center; font-family: var(--num); font-weight: 700; font-size: 15px; }
.dr-rm {
  align-self: start;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  transition: background var(--tr), color var(--tr);
}
.dr-rm:hover { background: var(--red-l); color: var(--red); }
.dr-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.dr-total { display: flex; align-items: baseline; justify-content: space-between; }
.dr-total span { font-weight: 700; font-size: 16px; }
.dr-total b { font-family: var(--num); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; }
.dr-note { font-size: 13px; color: var(--ink-3); text-align: center; }

/* тост */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   внутренние страницы
   ============================================================ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-3);
  padding: 22px 0 6px;
}
.crumbs a { transition: color var(--tr); }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { opacity: 0.5; }
.page-title { font-size: clamp(32px, 4.4vw, 54px); margin-top: 6px; }
.page-sub { color: var(--ink-2); margin-top: 10px; font-size: 17px; max-width: 52em; }

/* ---------- каталог ---------- */
.catalog {
  display: grid;
  grid-template-columns: 266px 1fr;
  gap: 34px;
  align-items: start;
  margin: 34px 0 0;
}
.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
}
.f-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.f-group:first-child { padding-top: 0; }
.f-group h4 { font-size: 17px; margin-bottom: 12px; }
.f-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  color: var(--ink-2);
  transition: color var(--tr);
}
.f-opt:hover { color: var(--ink); }
.f-opt input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.f-opt .qty-n { margin-left: auto; font-family: var(--num); font-size: 13.5px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 56px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-family: var(--num);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  transition: border-color var(--tr), background var(--tr), color var(--tr);
}
.chip:hover { border-color: var(--ink-3); }
.chip.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip.off { opacity: 0.35; pointer-events: none; }
.price-in { display: flex; align-items: center; gap: 10px; }
.price-in input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 2px solid var(--line);
  padding: 0 14px;
  font-weight: 600;
  transition: border-color var(--tr);
}
.price-in input:focus { outline: none; border-color: var(--blue); }
.f-reset {
  margin-top: 14px;
  font-weight: 700;
  color: var(--blue);
  font-size: 15px;
}
.f-reset:hover { text-decoration: underline; }
.f-close { display: none; }

.cat-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.found { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.sort {
  margin-left: auto;
  height: 46px;
  border-radius: 999px;
  border: 2px solid var(--line);
  padding: 0 40px 0 18px;
  font-weight: 700;
  font-size: 15px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center / 17px;
  appearance: none;
  cursor: pointer;
}
.f-toggle { display: none; }
.catalog .grid-products { grid-template-columns: repeat(3, 1fr); }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-2);
  background: var(--soft);
  border-radius: var(--r-lg);
}
.empty b { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); margin-bottom: 8px; }

/* ---------- карточка товара (страница) ---------- */
.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  margin: 26px 0 0;
  align-items: start;
}
.gallery { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.thumbs { display: grid; gap: 12px; align-content: start; }
.thumbs button {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--line);
  aspect-ratio: 1 / 1;
  transition: border-color var(--tr);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on { border-color: var(--blue); }
.gmain {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 1 / 1;
}
.gmain img { width: 100%; height: 100%; object-fit: cover; }

.p-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag {
  font-weight: 700;
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
}
.tag.age { background: var(--blue-l); color: var(--blue); font-family: var(--num); }
.tag.sale { background: var(--red); color: #fff; font-family: var(--num); }
.tag.new { background: var(--green); color: #fff; }
.tag.hit { background: var(--yellow); color: var(--ink); }
.product h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 0; }
.p-art { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.p-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 22px 0 0;
  flex-wrap: wrap;
}
.p-price .price { font-family: var(--num); font-weight: 700; font-size: 38px; letter-spacing: -0.03em; }
.p-price .old { font-family: var(--num); font-size: 20px; color: var(--ink-3); text-decoration: line-through; }
.p-stock { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); font-size: 15px; margin-top: 10px; }
.p-stock i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: block; }
.p-buy { display: flex; gap: 12px; align-items: center; margin: 26px 0 0; flex-wrap: wrap; }
.qty-big {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  height: 52px;
  padding: 0 6px;
}
.qty-big button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: background var(--tr), color var(--tr);
}
.qty-big button:hover { background: var(--soft); color: var(--ink); }
.qty-big span { min-width: 34px; text-align: center; font-family: var(--num); font-weight: 700; font-size: 17px; }
.p-desc { margin-top: 26px; color: var(--ink-2); font-size: 16.5px; }
.p-specs { margin-top: 26px; border-top: 1px solid var(--line); }
.p-specs .row {
  display: grid;
  grid-template-columns: minmax(140px, 40%) 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 15.5px;
}
.p-specs dt { color: var(--ink-3); font-weight: 600; }
.p-specs dd { font-weight: 600; }
.p-perks { margin-top: 26px; display: grid; gap: 10px; }
.p-perks div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--soft);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}
.p-perks svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }

/* ---------- оформление ---------- */
.checkout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
  margin: 30px 0 0;
}
.co-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  margin-bottom: 18px;
}
.co-block h3 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.step {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--num);
  font-size: 16px;
  font-weight: 700;
  flex: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea {
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--line);
  padding: 0 16px;
  font-weight: 600;
  transition: border-color var(--tr);
  width: 100%;
}
.field textarea { height: 92px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field input.err { border-color: var(--red); background: var(--red-l); }

.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
}
.radio-card:hover { border-color: var(--ink-3); }
.radio-card.on { border-color: var(--blue); background: var(--blue-l); }
.radio-card input { accent-color: var(--blue); width: 20px; height: 20px; flex: none; }
.radio-card .t { font-weight: 700; font-size: 16.5px; }
.radio-card .d { font-size: 14px; color: var(--ink-2); }
.rc-price { margin-left: auto; font-weight: 700; white-space: nowrap; }

.summary {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
  background: var(--paper);
}
.summary h3 { font-size: 21px; margin-bottom: 16px; }
.sum-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 600;
  align-items: center;
}
.sum-item img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.sum-item .meta { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.promo-field { display: flex; gap: 8px; margin: 18px 0 0; }
.promo-field input {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  border: 2px solid var(--line);
  padding: 0 18px;
  font-weight: 600;
  min-width: 0;
  transition: border-color var(--tr);
}
.promo-field input:focus { outline: none; border-color: var(--blue); }
.promo-field button {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--soft);
  font-weight: 700;
  font-size: 15px;
  transition: background var(--tr), color var(--tr);
}
.promo-field button:hover { background: var(--ink); color: #fff; }
.promo-msg { font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.promo-msg.ok { color: var(--green); }
.promo-msg.bad { color: var(--red); }
.sum-rows { margin: 18px 0; display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.sum-row .price { color: var(--ink); font-weight: 700; }
.sum-row.total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 17px;
  color: var(--ink);
  font-weight: 800;
}
.sum-row.total .price { font-size: 25px; letter-spacing: -0.02em; }

.thanks {
  text-align: center;
  max-width: 620px;
  margin: 30px auto 0;
  background: var(--soft);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 70px) 30px;
}
.tk-icon {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}
.tk-icon svg { width: 38px; height: 38px; }
.thanks h2 { font-size: clamp(30px, 4vw, 44px); }
.thanks p { color: var(--ink-2); margin-top: 14px; font-size: 16.5px; }
.thanks .demo-note { font-size: 14.5px; color: var(--ink-3); margin-top: 10px; }
.thanks .btn { margin-top: 26px; }
.co-empty { text-align: center; padding: 70px 20px; background: var(--soft); border-radius: var(--r-xl); margin-top: 26px; }
.co-empty h2 { font-size: 30px; }
.co-empty p { color: var(--ink-2); margin: 12px 0 24px; }

/* ============================================================
   адаптив — переопределения ПОСЛЕ базовых правил
   ============================================================ */
@media (max-width: 1180px) {
  .hdr-phone { display: none; }
  .nav { gap: 20px; }
  .catalog { grid-template-columns: 230px 1fr; gap: 26px; }
  .catalog .grid-products { grid-template-columns: repeat(2, 1fr); }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 960px) {
  :root { --top-h: 110px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hdr-in { height: 68px; }
  .container { width: min(var(--container), 100% - 32px); }

  .agebar { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .age-pills { gap: 10px; }
  .age-pill { min-height: 68px; padding: 10px 14px; }
  .age-pill b { font-size: 22px; }
  .age-pill span { font-size: 12px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .cat-tile:nth-child(1), .cat-tile:nth-child(6) { grid-column: span 1; }
  .promo { grid-template-columns: 1fr; }
  .promo-media { min-height: 260px; order: -1; }
  .about { grid-template-columns: 1fr; }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }

  .catalog { grid-template-columns: 1fr; gap: 0; }
  .catalog .grid-products { grid-template-columns: repeat(3, 1fr); }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(370px, 92vw);
    background: var(--paper);
    z-index: 90;
    padding: 22px 22px 40px;
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: block;
    top: 0;
  }
  .filters.open { transform: none; }
  .f-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: var(--display);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 12px;
  }
  .f-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 2px solid var(--line);
    font-weight: 700;
    font-size: 15px;
  }
  .f-toggle:hover { border-color: var(--ink); }
}

@media (max-width: 720px) {
  :root { --top-h: 104px; }
  body { font-size: 15.5px; }
  .topbar { font-size: 12.5px; padding: 8px 14px; }
  .tb-long { display: none; }
  .hero-scroll { display: none; }
  .hero > img { object-position: 16% 60%; }
  .hero::after {
    background:
      linear-gradient(to top, rgba(8, 10, 18, 0.92) 0%, rgba(8, 10, 18, 0.78) 26%, rgba(8, 10, 18, 0.44) 52%, rgba(8, 10, 18, 0.1) 76%, rgba(8, 10, 18, 0) 92%);
  }
  .hero-in { padding-top: 80px; padding-bottom: 74px; }
  .agebar-wrap { margin-top: -30px; }
  .sort { width: 100%; margin-left: 0; }
  .cat-top { gap: 10px; }
  .found { margin-left: auto; }
  .hero-kicker { font-size: 11.5px; padding: 6px 13px 6px 9px; margin-bottom: 16px; }
  .hero-cta .btn { height: 50px; padding: 0 24px; font-size: 15px; }
  .age-pills { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .age-pill { padding: 10px 8px; align-items: center; text-align: center; min-height: 62px; }
  .age-pill span { font-size: 11px; }

  .grid-products, .catalog .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-body { padding: 12px 13px 15px; }
  .pc-name { font-size: 15.5px; }
  .pc-price .price { font-size: 17px; }
  .pc-price .old { font-size: 13.5px; }
  .pc-quick { opacity: 1; transform: none; height: 40px; font-size: 13.5px; left: 8px; right: 8px; bottom: 8px; }
  .pc-age { font-size: 11.5px; padding: 4px 9px; left: 8px; top: 8px; }
  .pc-badge { font-size: 11px; padding: 4px 9px; right: 8px; top: 8px; }

  .cat-grid { grid-auto-rows: 176px; gap: 10px; }
  .cat-tile { padding: 16px; }
  .cat-meta b { font-size: 19px; }
  .cat-meta span { font-size: 12.5px; }
  .cat-go { width: 36px; height: 36px; right: 14px; bottom: 16px; }
  .stats { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .looks { gap: 10px; }
  .look { padding: 14px; }
  .look-cap { font-size: 15px; }
  .shead { flex-direction: column; align-items: flex-start; gap: 12px; }

  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-auto-flow: column; grid-auto-columns: 72px; overflow-x: auto; order: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .p-price .price { font-size: 30px; }
  .p-specs .row { grid-template-columns: 1fr; gap: 2px; }
  .nl-form { flex-direction: column; }
  .nl-form input, .nl-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .toast { bottom: 18px; }
}

@media (max-width: 440px) {
  .age-pills { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .age-pill { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; min-height: 58px; padding: 10px 16px; }
  .age-pill b { font-size: 22px; }
  .age-pill span { font-size: 13px; }
}

@media (max-width: 400px) {
  .logo { font-size: 23px; }
  .logo .mark { width: 20px; height: 20px; }
  .grid-products, .catalog .grid-products { gap: 10px; }
  .pc-name { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.05s !important; }
}
