/* ==========================================================================
   ЛАПА — зоомагазин. Тёплая кремово-оранжевая палитра, округлые формы.
   Шрифты: Nunito (заголовки, бренд) + Manrope (текст, интерфейс, цифры).
   ========================================================================== */

:root {
  --cream:      #fff7ec;
  --cream-2:    #fdefdd;
  --sand:       #f7e5cd;
  --sand-line:  #ecd8bd;
  --white:      #ffffff;

  --ink:        #2c1d12;
  --ink-2:      #59452f;
  --ink-3:      #8b755c;

  --orange:     #f26a1b;
  --orange-d:   #d8540b;
  --orange-l:   #ffe6d3;
  --moss:       #3f7d5a;
  --moss-l:     #e2f0e6;

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

  --shadow-sm: 0 2px 10px rgba(90, 55, 20, 0.07);
  --shadow-md: 0 10px 30px rgba(90, 55, 20, 0.10);
  --shadow-lg: 0 22px 55px rgba(90, 55, 20, 0.16);

  --wrap: 1280px;
  --gut: 24px;
  --head-h: 72px;
  --top-h: 110px; /* промо-полоса + шапка, уточняется скриптом */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: "Nunito", "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

/* цифры — только гротеск, табличные */
.num, .price, .old, input[type="number"], .tel {
  font-family: "Manrope", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

::selection { background: var(--orange); color: #fff; }

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

/* ---------- reveal (IntersectionObserver + transition) ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }

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

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(242, 106, 27, 0.28);
}
.btn:hover { background: var(--orange-d); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 106, 27, 0.34); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--sand-line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--sand); border-color: var(--sand); transform: translateY(-2px); box-shadow: none; }

.btn-white {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: none;
}
.btn-white:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-wide { width: 100%; }
.btn-lg { padding: 18px 38px; font-size: 17px; }

/* ==========================================================================
   Промо-полоска и шапка
   ========================================================================== */
.promo-bar {
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 9px var(--gut);
  letter-spacing: 0.01em;
}
.promo-bar b { font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.stuck { box-shadow: 0 6px 22px rgba(90, 55, 20, 0.08); border-bottom-color: var(--sand-line); }

.header-in {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: var(--ink);
  flex: none;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}
.logo-mark svg { width: 21px; height: 21px; fill: #fff; }

.main-nav { display: flex; gap: 4px; margin-left: 14px; flex: 1; }
.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.main-nav a.active { background: var(--orange-l); color: var(--orange-d); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  cursor: pointer;
  color: var(--ink);
  transition: background 0.18s ease, transform 0.18s ease;
}
.icon-btn:hover { background: var(--orange-l); transform: translateY(-1px); }
.icon-btn svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.cart-count.on { transform: scale(1); }

.burger { display: none; }

/* мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  background: var(--cream);
  z-index: 90;
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1);
  padding: 22px 22px 40px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 19px;
}
.mobile-nav a:hover { background: var(--sand); }
.mn-close {
  align-self: flex-end;
  border: 0;
  background: var(--sand);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
}
.mn-foot { margin-top: auto; padding-top: 22px; color: var(--ink-3); font-size: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: calc(100vh - var(--top-h));
  height: calc(100svh - var(--top-h));
  min-height: 520px;
  max-height: 880px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero > picture,
.hero > picture img,
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(44, 29, 18, 0.42) 0%, rgba(44, 29, 18, 0.06) 32%, rgba(44, 29, 18, 0.30) 62%, rgba(44, 29, 18, 0.76) 100%);
}

.hero-content { padding-bottom: clamp(40px, 7vh, 84px); color: #fff; max-width: 780px; }
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
}
.hero h1 {
  font-size: clamp(38px, 5.8vw, 74px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 30px rgba(30, 18, 8, 0.35);
}
.hero-sub {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.93);
  max-width: 30em;
  text-shadow: 0 2px 18px rgba(30, 18, 8, 0.4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-scroll {
  position: absolute;
  right: max(var(--gut), calc(50vw - var(--wrap) / 2 + var(--gut)));
  bottom: clamp(40px, 7vh, 84px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-scroll span { width: 1px; height: 46px; background: rgba(255, 255, 255, 0.6); display: block; }

/* ==========================================================================
   Секции
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding-top: 0; }
.section-cream { background: var(--cream-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: clamp(28px, 3.8vw, 46px); }
.section-head p { margin: 10px 0 0; color: var(--ink-3); max-width: 46ch; }
.section-link {
  font-weight: 700;
  color: var(--orange-d);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.section-link:hover { border-color: var(--orange); gap: 11px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-l);
  color: var(--orange-d);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Категории ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-tile {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  background: var(--sand);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
}
.cat-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44, 29, 18, 0) 40%, rgba(44, 29, 18, 0.68) 100%);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-body {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cat-name { font-family: "Nunito", sans-serif; font-weight: 800; font-size: clamp(20px, 2vw, 26px); }
.cat-qty {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Карточка товара ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.pc-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.pc-media > a { display: block; width: 100%; height: 100%; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }
.product-card:hover .pc-media img { transform: scale(1.05); }

.pc-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}
.pc-badge.sale { background: var(--orange); }
.pc-badge.new { background: var(--moss); }

.pc-quick {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.pc-quick:hover { background: var(--orange); }
.product-card:hover .pc-quick { opacity: 1; transform: none; }

.pc-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.pc-rating { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--ink-2); }
.pc-rating svg { width: 13px; height: 13px; fill: var(--orange); }
.pc-name {
  display: block;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.28;
  color: var(--ink);
}
.pc-price-row { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.old { font-size: 15px; color: var(--ink-3); text-decoration: line-through; font-weight: 600; }

/* ---------- Слайдер ---------- */
.slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { flex: 0 0 calc(25% - 13.5px); scroll-snap-align: start; }
.slider-nav { display: flex; gap: 8px; }
.slider-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--sand-line);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.slider-btn svg { width: 19px; height: 19px; }
.slider-btn:hover { background: var(--sand); border-color: var(--sand); }
.slider-btn:disabled { opacity: 0.32; cursor: default; }

/* ---------- О бренде ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--r-xl); box-shadow: var(--shadow-md); width: 100%; }
.about-stamp {
  position: absolute;
  right: -14px; bottom: -22px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}
.about-stamp b { display: block; font-family: "Nunito", sans-serif; font-size: 32px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.about-stamp span { font-size: 13.5px; opacity: 0.95; display: block; margin-top: 5px; line-height: 1.35; }
.about-text h2 { font-size: clamp(28px, 3.6vw, 44px); }
.about-text p { color: var(--ink-2); font-size: 17px; }
.about-facts { display: grid; gap: 14px; margin-top: 28px; }
.about-fact { display: flex; gap: 14px; align-items: flex-start; }
.about-fact i {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange-l);
  display: grid; place-items: center;
}
.about-fact svg { width: 20px; height: 20px; stroke: var(--orange-d); fill: none; stroke-width: 1.8; }
.about-fact b { font-family: "Nunito", sans-serif; font-size: 16.5px; display: block; }
.about-fact p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-3); }

/* ---------- Преимущества ---------- */
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.perk:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.perk i {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--moss-l);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.perk svg { width: 24px; height: 24px; stroke: var(--moss); fill: none; stroke-width: 1.7; }
.perk h3 { font-size: 18.5px; margin-bottom: 8px; }
.perk p { margin: 0; color: var(--ink-3); font-size: 15px; }

/* ---------- Баннер-полоса ---------- */
.band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(44, 29, 18, 0.82) 0%, rgba(44, 29, 18, 0.55) 46%, rgba(44, 29, 18, 0.12) 100%);
}
.band-in { padding: clamp(34px, 5vw, 62px); color: #fff; max-width: 640px; }
.band-in h2 { font-size: clamp(26px, 3.4vw, 40px); }
.band-in p { color: rgba(255, 255, 255, 0.9); margin: 14px 0 26px; font-size: 17px; }

/* ---------- Отзывы ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rev-stars { display: flex; gap: 3px; }
.rev-stars svg { width: 17px; height: 17px; fill: var(--orange); }
.review p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.rev-who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.rev-ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sand);
  display: grid; place-items: center;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  color: var(--orange-d);
  flex: none;
}
.rev-who b { font-family: "Nunito", sans-serif; font-size: 15.5px; display: block; }
.rev-who span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Подписка ---------- */
.newsletter { text-align: center; }
.newsletter h2 { font-size: clamp(28px, 3.6vw, 44px); }
.newsletter > .container > p { color: var(--ink-3); max-width: 52ch; margin: 14px auto 0; font-size: 17px; }
.nl-form { display: flex; gap: 10px; max-width: 500px; margin: 30px auto 0; }
.nl-form input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--sand-line);
  background: var(--white);
  border-radius: 999px;
  padding: 15px 24px;
  outline: none;
  transition: border-color 0.2s ease;
}
.nl-form input:focus { border-color: var(--orange); }
.nl-done {
  background: var(--moss-l);
  color: var(--moss);
  border-radius: var(--r-md);
  padding: 20px 26px;
  font-weight: 600;
  max-width: 560px;
  margin: 30px auto 0;
}

/* ==========================================================================
   Футер
   ========================================================================== */
.site-footer { background: var(--ink); color: #f3e7d8; margin-top: clamp(40px, 6vw, 80px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: clamp(44px, 6vw, 72px) var(--gut) 44px;
}
.site-footer .logo { color: #fff; }
.footer-about { color: rgba(243, 231, 216, 0.62); font-size: 15px; margin: 16px 0 0; max-width: 34ch; }
.footer-col h4 { font-size: 16px; margin-bottom: 16px; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(243, 231, 216, 0.68); font-size: 15px; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--orange); }
.f-social { display: flex; gap: 9px; margin-top: 16px; }
.f-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.f-social a:hover { background: var(--orange); }
.f-social svg { width: 18px; height: 18px; fill: #f3e7d8; }

.footer-demo {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 26px;
  font-size: 13.5px;
  color: rgba(243, 231, 216, 0.5);
  line-height: 1.65;
}
.footer-demo a { color: var(--orange); font-weight: 600; }
.footer-demo a:hover { text-decoration: underline; }

/* ==========================================================================
   Корзина-drawer, вуаль, тост
   ========================================================================== */
.modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(44, 29, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 80;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-veil.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 94vw);
  background: var(--cream);
  z-index: 95;
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: none; }
.cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--sand-line);
}
.cd-head h3 { font-size: 22px; }
.cd-body { flex: 1; overflow-y: auto; padding: 8px 22px 20px; }
.cd-empty { text-align: center; color: var(--ink-3); padding: 56px 10px; }
.cd-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sand-line);
}
.cd-item img { width: 78px; height: 96px; object-fit: cover; border-radius: var(--r-sm); }
.cd-item .n { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.25; }
.cd-item .s { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.cd-item .p { font-weight: 800; font-size: 17px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.qty-ctl { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; background: var(--sand); border-radius: 999px; padding: 3px; }
.qty-ctl button {
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background 0.15s ease;
}
.qty-ctl button:hover { background: var(--white); }
.qty-ctl .q { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-remove {
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 22px; line-height: 1;
  align-self: flex-start; padding: 2px 4px;
  transition: color 0.15s ease;
}
.cd-remove:hover { color: var(--orange); }
.cd-foot { border-top: 1px solid var(--sand-line); padding: 20px 22px 24px; display: grid; gap: 12px; }
.cd-total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; }
.cd-total b { font-size: 26px; }
.cd-note { font-size: 13px; color: var(--ink-3); text-align: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  background: var(--ink);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  z-index: 120;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.3, 1.2, 0.5, 1), opacity 0.25s ease, visibility 0.25s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ==========================================================================
   Каталог
   ========================================================================== */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); padding: 22px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--orange-d); }
.crumbs .sep { opacity: 0.5; }

.page-head { padding: 18px 0 30px; }
.page-title { font-size: clamp(32px, 4.6vw, 54px); }
.page-sub { color: var(--ink-3); margin: 12px 0 0; max-width: 60ch; }

.catalog-layout { display: grid; grid-template-columns: 266px 1fr; gap: 30px; align-items: start; padding-bottom: 40px; }

.filters {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--head-h) + 16px);
  display: grid;
  gap: 22px;
}
.f-close { display: none; }
.f-group h4 { font-size: 15px; margin-bottom: 12px; }
.f-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-2);
}
.f-option input { accent-color: var(--orange); width: 17px; height: 17px; flex: none; }
.f-option .qty { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--sand-line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { background: var(--sand); }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--sand-line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s ease;
}
.price-inputs input:focus { border-color: var(--orange); }
.f-reset {
  border: 0;
  background: var(--sand);
  border-radius: 999px;
  padding: 11px;
  width: 100%;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}
.f-reset:hover { background: var(--orange-l); }

.catalog-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.found { color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
.sort-select {
  margin-left: auto;
  border: 2px solid var(--sand-line);
  background: var(--white);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  outline: none;
}
.filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--sand-line);
  background: var(--white);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-3);
  background: var(--white);
  border-radius: var(--r-lg);
}

/* ==========================================================================
   Карточка товара (страница)
   ========================================================================== */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 60px); padding: 18px 0 20px; align-items: start; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.gallery-thumbs { display: grid; gap: 12px; align-content: start; }
.gallery-thumbs button {
  border: 3px solid transparent;
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 0;
  background: var(--sand);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: border-color 0.2s ease;
}
.gallery-thumbs button.on { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { border-radius: var(--r-xl); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.p-cat { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-d); }
.p-info h1 { font-size: clamp(27px, 3.4vw, 42px); margin: 12px 0 14px; }
.p-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-3); font-size: 14.5px; }
.p-meta .stars { display: inline-flex; gap: 2px; }
.p-meta .stars svg { width: 15px; height: 15px; fill: var(--orange); }
.p-instock { color: var(--moss); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.p-instock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }

.p-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 24px 0 6px; }
.p-price-row .price { font-size: clamp(34px, 4.4vw, 46px); }
.p-price-row .old { font-size: 21px; }
.p-save {
  background: var(--orange-l);
  color: var(--orange-d);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.p-bonus { color: var(--ink-3); font-size: 14.5px; margin: 0 0 24px; }

.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.opt-row .lbl { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 15.5px; }
.opt-row .cur { color: var(--ink-3); font-size: 14.5px; }
.p-opts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }

.p-actions { display: flex; gap: 12px; align-items: stretch; margin-bottom: 26px; }
.p-actions .btn { flex: 1; }
.p-qty { display: inline-flex; align-items: center; background: var(--white); border: 2px solid var(--sand-line); border-radius: 999px; padding: 4px; }
.p-qty button { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 19px; transition: background 0.15s ease; }
.p-qty button:hover { background: var(--sand); }
.p-qty .q { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.p-desc { color: var(--ink-2); font-size: 16.5px; margin: 0 0 24px; }
.p-specs { margin: 0 0 26px; display: grid; gap: 0; }
.p-specs .row { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--sand-line); }
.p-specs dt { color: var(--ink-3); font-size: 15px; flex: none; }
.p-specs .dots { flex: 1; border-bottom: 1px dotted var(--sand-line); transform: translateY(-4px); }
.p-specs dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }

.p-perks { display: grid; gap: 12px; background: var(--white); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.p-perks div { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.p-perks svg { width: 21px; height: 21px; stroke: var(--orange-d); fill: none; stroke-width: 1.6; flex: none; }

/* ==========================================================================
   Оформление заказа
   ========================================================================== */
.checkout-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: start; padding-bottom: 30px; }
.co-card { background: var(--white); border-radius: var(--r-lg); padding: 26px 26px 28px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.co-card h2 { font-size: 21px; margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.co-step {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange-l);
  color: var(--orange-d);
  display: grid; place-items: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.field-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: 13.5px; color: var(--ink-3); font-weight: 600; padding-left: 4px; }
.field input, .field textarea {
  border: 2px solid var(--sand-line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--orange); background: var(--white); }
.field input:invalid:not(:placeholder-shown) { border-color: #d84a2f; }

.radio-list { display: grid; gap: 10px; }
.radio-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 2px solid var(--sand-line);
  border-radius: var(--r-md);
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-row:hover { background: var(--cream); }
.radio-row input { accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.radio-row.on { border-color: var(--orange); background: #fff9f4; }
.radio-row b { font-family: "Nunito", sans-serif; font-size: 15.5px; display: block; }
.radio-row span { display: block; font-size: 13.5px; color: var(--ink-3); }
.radio-row > span { flex: 1; min-width: 0; }
.radio-row .cost { margin-left: auto; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

.summary { position: sticky; top: calc(var(--head-h) + 16px); background: var(--white); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.summary h2 { font-size: 21px; margin-bottom: 18px; }
.sum-items { display: grid; gap: 14px; max-height: 300px; overflow-y: auto; margin-bottom: 18px; }
.sum-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.sum-item img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--r-sm); }
.sum-item .n { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.sum-item .s { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.sum-item .p { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-lines { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--sand-line); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); }
.sum-line b { font-variant-numeric: tabular-nums; color: var(--ink); }
.sum-line.free b { color: var(--moss); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 20px; border-top: 2px solid var(--sand-line); font-weight: 700; }
.sum-total b { font-size: 30px; font-variant-numeric: tabular-nums; }
.sum-note { font-size: 13px; color: var(--ink-3); text-align: center; margin: 12px 0 0; }
.co-empty { text-align: center; padding: 70px 20px; background: var(--white); border-radius: var(--r-lg); }

.thanks { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(40px, 8vw, 90px) 0; }
.thanks-ico {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--moss-l);
  display: grid; place-items: center;
  margin: 0 auto 26px;
}
.thanks-ico svg { width: 46px; height: 46px; stroke: var(--moss); fill: none; stroke-width: 2.2; }
.thanks h1 { font-size: clamp(30px, 4.4vw, 46px); }
.thanks p { color: var(--ink-2); font-size: 17px; margin: 16px 0 0; }
.thanks-order {
  display: inline-block;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px 26px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.thanks-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ==========================================================================
   Адаптив — все переопределения ПОСЛЕ базовых правил
   ========================================================================== */
@media (max-width: 1180px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .slider > * { flex-basis: calc(33.333% - 12px); }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --gut: 18px; }

  .main-nav { display: none; }
  .burger { display: grid; }

  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .filters {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    max-height: 86vh;
    overflow-y: auto;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    z-index: 95;
    transform: translateY(102%);
    transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1);
    box-shadow: var(--shadow-lg);
  }
  .filters.open { transform: none; }
  .f-close {
    display: block;
    justify-self: end;
    border: 0;
    background: var(--sand);
    border-radius: 999px;
    padding: 9px 20px;
    font-weight: 700;
    cursor: pointer;
  }
  .filters-toggle { display: inline-flex; }

  .product-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stamp { right: 14px; bottom: -18px; }
  .rev-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .slider > * { flex-basis: calc(50% - 9px); }
  .perk-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-scroll { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-auto-flow: column; grid-auto-columns: 74px; justify-content: start; order: 2; }
  .gallery-main { order: 1; }
  .slider-nav { display: none; }
  .pc-quick { opacity: 1; transform: none; padding: 10px; font-size: 13.5px; }
  .pc-media { aspect-ratio: 1 / 1; }
  .p-actions { flex-wrap: wrap; }
  .p-actions .btn { flex: 1 1 100%; order: 2; }
  .p-qty { order: 1; }
}

@media (max-width: 460px) {
  .logo { font-size: 22px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-mark svg { width: 19px; height: 19px; }
  .promo-bar { font-size: 12.5px; }
  .pc-body { padding: 13px 14px 16px; }
  .pc-name { font-size: 15px; }
  .price { font-size: 19px; }
  .cat-body { left: 15px; right: 15px; bottom: 14px; }
  .cat-qty { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cd-item { grid-template-columns: 64px 1fr auto; }
  .cd-item img { width: 64px; height: 80px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
}
