/* =========================================================
   Zoo Express — оформление сайта.
   Гамма в духе Royal Canin (красный + белый + светло-серый), без их знаков.
   Две темы: «день» (по умолчанию) и «ніч» — кнопка в шапке; без выбора — как в системе.
   ========================================================= */
:root {
  --red: #E2001A; --red-dark: #BD0016; --red-soft: #fde8ea; --on-red: #fff;
  --ink: #333333; --ink-2: #666666; --muted: #808285;
  --bg: #ffffff; --bg-2: #F6F6F6; --card: #ffffff; --line: #D7D7D7; --field: #ffffff;
  --hero: #F6F6F6; --footer: #333333; --footer-ink: #b5b5bd;
  --ok: #008900; --warn: #EE8B00; --info: #5CA9AD;
  --radius: 10px; --shadow: 0 2px 12px rgba(0,0,0,.06);
  --font: Inter, "Helvetica Neue", Arial, sans-serif; --font-h: Inter, "Helvetica Neue", Arial, sans-serif; --font-logo: "PT Serif", Georgia, serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --red: #E64A55; --red-dark: #ff5a6a; --red-soft: #3b1b22; --on-red: #fff;
  --ink: #EAEAEA; --ink-2: #b5b5bd; --muted: #808285;
  --bg: #141414; --bg-2: #1c1c1c; --card: #1e1e1e; --line: #333333; --field: #181818;
  --hero: #1c1c1c; --footer: #0e0e0e; --footer-ink: #9a9a9a;
  --ok: #4ade80; --warn: #fbbf24; --info: #7cb8ff;
  --shadow: 0 2px 12px rgba(0,0,0,.4); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #E64A55; --red-dark: #ff5a6a; --red-soft: #3b1b22; --on-red: #fff;
    --ink: #EAEAEA; --ink-2: #b5b5bd; --muted: #808285;
    --bg: #141414; --bg-2: #1c1c1c; --card: #1e1e1e; --line: #333333; --field: #181818;
    --hero: #1c1c1c; --footer: #0e0e0e; --footer-ink: #9a9a9a;
    --ok: #4ade80; --warn: #fbbf24; --info: #7cb8ff;
    --shadow: 0 2px 12px rgba(0,0,0,.4); color-scheme: dark;
  }
}

/* ---------- БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img, svg { display: block; max-width: 100%; }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--red); color: var(--on-red); padding: 10px 16px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 8px; color: var(--on-red); }
h1, h2, h3, .h3 { font-family: var(--font-h); font-weight: 700; letter-spacing: .01em; line-height: 1.2; margin: 0; }
.icon { width: 22px; height: 22px; flex: none; }
.section { padding: 40px 0; }
.section--grey { background: var(--bg-2); }
.section-title { font-size: clamp(22px, 4.5vw, 28px); margin-bottom: 20px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- КНОПКИ ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 0; border-radius: 6px;
  background: var(--red); color: var(--on-red); font: 600 14px/1 var(--font-h); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; text-align: center; transition: background .15s, transform .1s, box-shadow .2s; }
.btn:hover { background: var(--red-dark); color: var(--on-red); box-shadow: 0 2px 8px rgba(226,0,26,.25); }
.btn:active { transform: scale(.98); box-shadow: none; }
.btn .icon { width: 20px; height: 20px; }
.btn--ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); border-radius: 6px; }
.btn--ghost:hover { background: var(--red-soft); color: var(--red); }
.btn--big { min-height: 54px; font-size: 16px; flex: 1; }
.btn--wide { width: 100%; }
.btn.is-added { background: var(--ok); }
.act { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--ink); flex: none; }
.act:hover { background: var(--bg-2); color: var(--red); }
.act:active { background: var(--bg-2); filter: brightness(.85); transform: scale(.92); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--bg-2); color: var(--red); }
.icon-btn:active { background: var(--bg-2); filter: brightness(.85); transform: scale(.92); }
.badge-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: var(--on-red); font: 600 11px/18px var(--font-h); text-align: center; }
.badge-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }
/* Пульсуюча кнопка для головного CTA (клас btn-pulse) */
.btn-pulse { position: relative; }
.btn-pulse::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--red); opacity: 0; animation: pulse-ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(1.22); opacity: 0; } }

/* ---------- РЕКЛАМНА СТРІЧКА (promo-bar) ---------- */
.promo-bar { background: var(--red); color: #fff; font: 500 13px/1 var(--font-h); text-align: center; overflow: hidden; letter-spacing: .04em; text-transform: uppercase; }
.promo-bar__item { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 16px; }
.promo-bar__item.is-active { display: flex; animation: pb-in .35s ease; }
@keyframes pb-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- ВЕРХНЯЯ ПОЛОСА ---------- */
.topbar { background: var(--bg-2); font-size: 13px; color: var(--ink-2); }
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar nav { display: none; gap: 18px; margin-left: auto; }
.tb-phone { font-weight: 700; color: var(--ink); margin-left: auto; }
.topbar nav + .tb-phone { margin-left: 0; }
.tb-schedule { display: none; }

/* ---------- ШАПКА ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; white-space: nowrap; }
.logo:hover { color: inherit; opacity: .9; }
.logo-img { height: 52px; width: auto; display: block; }
@media (max-width: 639px) { .logo-img { height: 40px; } .header .wrap { flex-wrap: wrap; } }
.header .actions { margin-left: auto; display: flex; gap: 2px; }
.search { order: 3; flex: 1 1 100%; display: flex; height: 46px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--field); transition: border-color .15s; }
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 2px rgba(226,0,26,.08); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; background: none; outline: 0; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; background: none; padding: 0 16px; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.search button:hover { color: var(--red); }
.hd-phone { display: none; flex-direction: column; line-height: 1.2; font-size: 12px; color: var(--muted); }
.hd-phone b { font: 700 15px var(--font-h); color: var(--ink); }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; } :root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: block; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
/* подсказки под строкой поиска (рисует app.js) */
.sg-host { position: relative; }
.sg { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; margin: 6px 0 0; padding: 6px 0; list-style: none; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.sg li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.sg li small { color: var(--muted); font-size: 12px; white-space: nowrap; flex: none; }
.sg li:hover, .sg li.is-cur { background: var(--bg-2); color: var(--red); }
.sg li.sg-more { border-top: 1px solid var(--line); font-weight: 700; }

/* ---------- МЕНЮ РАЗДЕЛОВ ---------- */
.catnav { display: none; background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 45; }
.catnav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.cn-link { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; font: 600 13px var(--font-h); letter-spacing: .04em; text-transform: uppercase; border-bottom: 3px solid transparent; white-space: nowrap; }
.cn-ico { width: 26px; height: 26px; color: var(--red); flex: none; }
.cn-item:hover > .cn-link, .cn-item:focus-within > .cn-link { color: var(--red); border-color: var(--red); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transition: opacity .12s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { visibility: visible; opacity: 1; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 32px; padding-top: 26px; padding-bottom: 30px; max-height: 70vh; overflow-y: auto; }
.mega-h { display: block; font: 700 15px var(--font-h); margin-bottom: 6px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 3px 0; color: var(--ink-2); font-size: 14.5px; }
.mega-col li a:hover { color: var(--red); }
.mega small, .dr-l2 small, .dr-l3 small { color: var(--muted); font-weight: 400; font-family: var(--font); }

/* ---------- ВЫДВИЖНОЕ МЕНЮ (телефон) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer .panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--card); padding: 14px 16px 30px; overflow-y: auto; }
.drawer .panel-head { display: flex; justify-content: space-between; align-items: center; }
.drawer .panel h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 6px; }
.dr-node { border-bottom: 1px solid var(--line); }
.dr-node summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; font: 700 16px var(--font-h); cursor: pointer; }
.dr-node summary::-webkit-details-marker { display: none; }
.dr-arrow { margin-left: auto; transition: transform .15s; }
.dr-node[open] .dr-arrow { transform: rotate(180deg); }
.dr-all { display: block; padding: 6px 0 10px; color: var(--red); font-weight: 700; }
.dr-l2 { display: block; padding: 8px 0 4px; font-weight: 700; }
.dr-l3 { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); font-size: 15px; }
.dr-plain { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

/* ---------- КРОШКИ, ЗАГОЛОВОК ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 16px 0 6px; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--red); }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 6px 0 18px; }
.page-head h1 { font-size: clamp(26px, 5.5vw, 36px); }
.page-head .count { color: var(--muted); }
.page-head .count b { color: var(--red); }
.s-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 22px; }
.s-head h2 { font-size: clamp(22px, 4.5vw, 28px); }
.s-head > a { color: var(--red); font: 700 15px var(--font-h); white-space: nowrap; }

/* ---------- ГЛАВНАЯ: БАННЕРИ-СЛАЙДЕР ---------- */
.hero { padding: 18px 0 6px; }
.slider { position: relative; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.slider .slide { display: none; position: relative; color: var(--ink); flex-direction: column; }
.slider .slide.slide-active { display: flex; }
.slider .slide:hover { color: var(--ink); }
.slider .slide img, .slider .slide video { width: 100%; height: 230px; object-fit: cover; object-position: 50% 40%; }
.slide-txt { padding: 22px 20px 26px; }
.slide-h { display: block; font: 700 24px/1.2 var(--font-h); margin: 0 0 10px; }
.slider .slide--full img, .slider .slide--full video { height: auto; object-position: center; }
@media (max-width: 959px) {
  /* все слайды в одной клетке: высота баннера = самый высокий слайд, страница не прыгает при смене */
  .slider { display: grid; }
  .slider .slide { display: flex; grid-area: 1 / 1; visibility: hidden; }
  .slider .slide.slide-active { visibility: visible; }
  .slider .slide--full { justify-content: center; background: #e7e7e7; }
}
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.22); border: none; cursor: pointer; padding: 0; transition: background .2s; }
.dot.dot-active { background: var(--red); }
.kicker { display: inline-block; font: 700 12px var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.slide h1 { font-size: 27px; line-height: 1.12; margin: 0 0 12px; }
.slide p { color: var(--ink-2); margin: 0 0 20px; font-size: 16.5px; }
.side { display: grid; gap: 16px; }
.promo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 190px; display: flex; align-items: flex-end; padding: 20px; color: #fff; background: #333; }
.promo:hover { color: #fff; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.promo:hover img { transform: scale(1.03); }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0) 65%); }
.promo div { position: relative; z-index: 1; }
.promo b { display: block; font: 700 21px/1.2 var(--font-h); }
.promo span { font-size: 14px; opacity: .92; }

/* ---------- ГЛАВНАЯ: ДЛЯ КОГО, РАЗДЕЛЫ, БРЕНДЫ, ПРЕИМУЩЕСТВА ---------- */
.pet-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pet-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 20px 14px 22px; border-radius: var(--radius); min-height: 160px; color: #fff; text-align: center; transition: transform .2s, box-shadow .2s; overflow: hidden; background-size: cover; background-position: center; }
.pet-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.18); color: #fff; }
.pet-card__bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.pet-card--dog  { background-color: #1a3d6b; background-image: linear-gradient(145deg, #1a3d6b 0%, #2d6faf 100%); }
.pet-card--cat  { background-color: #5c1a32; background-image: linear-gradient(145deg, #5c1a32 0%, #a03055 100%); }
.pet-card--rodent { background-color: #2a4a1a; background-image: linear-gradient(145deg, #2a4a1a 0%, #4d8a32 100%); }
.pet-card--bird  { background-color: #3a2a64; background-image: linear-gradient(145deg, #3a2a64 0%, #6a4aad 100%); }
.pet-card[style] { background-image: var(--pet-bg); background-color: #e9e9ec; background-position: center 30%; min-height: 170px; }
.pet-card[style] .pet-card__bg-overlay { background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,0) 60%); }
.pet-card[style] .pet-card__name, .pet-card[style] .pet-card__count { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.pet-card[style] .pet-card__count { opacity: .95; }
.pet-card__icon { position: relative; margin-bottom: 4px; }
.pet-card__icon svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.pet-card__name { position: relative; font: 700 19px/1.1 var(--font-h); }
.pet-card__count { position: relative; font-size: 13px; opacity: .82; }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.cat:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--ink); }
.cat .pic { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; border-radius: 8px; overflow: hidden; }
.cat .pic img { max-height: 88%; object-fit: contain; }
.cat b { font: 700 15px/1.3 var(--font-h); }
.cat small { color: var(--muted); font-size: 13px; }
.ph { width: 46%; height: auto; color: var(--red); opacity: .35; }
.brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.brand-tile { min-height: 88px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px; text-align: center; transition: box-shadow .2s, transform .2s; }
.brand-tile b { font: 700 18px var(--font-h); }
.brand-tile small { color: var(--muted); font-size: 12.5px; }
.brand-tile:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); }
.benefits { display: grid; gap: 18px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .circle { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); color: var(--red); display: grid; place-items: center; }
.benefit .circle .icon { width: 26px; height: 26px; }
.benefit b { display: block; font: 700 15.5px var(--font-h); margin-bottom: 2px; }
.benefit span { font-size: 14px; color: var(--ink-2); }
.seo { color: var(--ink-2); max-width: 900px; }
.seo h2 { color: var(--ink); font-size: 22px; margin-bottom: 12px; }
.seo p { margin: 0 0 12px; }

/* ---------- ПЛИТКИ ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--ink); }
.tile-pic { aspect-ratio: 16 / 10; display: grid; place-items: center; background: #fff; border-radius: 8px; overflow: hidden; }
.tile-pic img { max-height: 90%; object-fit: contain; }
.tile-pic svg { width: 40%; color: var(--red); opacity: .55; }
.tile-letter { font: 800 38px var(--font-h); color: var(--red); }
.tile b { font: 700 15px/1.3 var(--font-h); }
.tile small { color: var(--muted); font-size: 13px; }
.tile--brand { align-items: center; text-align: center; }
.tile--brand .tile-pic { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.tile--brand .tile-pic img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-height: none; object-fit: contain; }
.tile-word { font: 700 22px/1.2 var(--font-logo); color: var(--ink); padding: 0 6px; }
.list-banner { border-radius: 18px; overflow: hidden; margin-bottom: 20px; max-height: 340px; }
.list-banner img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; object-position: center 15%; }
.list-banner--center img { object-position: center 35%; }
.list-banner--bottom img { object-position: center 85%; }
.no-products-yet { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; text-align: center; color: var(--ink-2); }
.no-products-yet__icon { width: 64px; height: 64px; opacity: .35; color: var(--red); }
.no-products-yet p { font-size: 17px; max-width: 360px; line-height: 1.5; }

/* ---------- ВКЛАДКИ ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: var(--card); color: var(--ink-2); font: 600 13px var(--font-h); letter-spacing: .02em; text-transform: uppercase; }
.tab:hover { color: var(--red); }
.tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }

/* ---------- КАРТОЧКИ ТОВАРОВ ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.products--row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.products--row .card { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.card .pic { position: relative; aspect-ratio: 1; border-radius: 8px; background: #fff; overflow: hidden; }
.card .pic-link { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.labels { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; pointer-events: none; }
.lbl { font: 700 11px var(--font-h); text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.lbl--new { background: var(--info); color: #fff; }
.lbl--sale { background: var(--red); color: #fff; }
.lbl--top { background: #1d1d1f; color: #fff; }
.fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(245,245,246,.92); cursor: pointer; display: grid; place-items: center; color: #4a4a4f; }
.fav .icon { width: 20px; height: 20px; }
.fav:hover, .fav[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.card .info { display: flex; flex-direction: column; gap: 6px; padding: 10px 2px 2px; flex: 1; }
.brand { font: 700 11.5px var(--font-h); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.card .name { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .name:hover { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips span { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.chips span.off { opacity: .45; text-decoration: line-through; }
.stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock--in { color: var(--ok); } .stock--low { color: var(--warn); } .stock--order { color: var(--info); } .stock--out { color: var(--muted); }
.stock--low::before { animation: blink-dot 1.5s infinite; }
@keyframes blink-dot { 50% { opacity: .25; } }
.buy { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font: 800 19px var(--font-h); white-space: nowrap; }
.price small { font: 600 13px var(--font); color: var(--muted); }
.price s { color: var(--muted); font: 600 13px var(--font); }
.card .btn { width: 100%; min-height: 42px; padding: 0 12px; font-size: 14px; }
.rating-mini { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.rating-mini .stars { font-size: 14px; }
.rating-mini--empty small { font-size: 12px; }
.rating-mini:hover { color: var(--ink); }

/* ---------- КАТАЛОГ: ФИЛЬТРЫ ---------- */
.listing { display: block; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters-btn { min-height: 46px; padding: 0 18px; flex: none; }
.filters-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.sort { flex: 1; max-width: 280px; margin-left: auto; }
.sort select { width: 100%; height: 46px; padding: 0 40px 0 16px; appearance: none; -webkit-appearance: none; background: var(--field); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 22px) 20px, calc(100% - 16px) 20px; background-size: 6px 6px; background-repeat: no-repeat; }
.filters { position: fixed; z-index: 110; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--card); border-radius: 12px 12px 0 0;
  box-shadow: 0 -16px 40px rgba(0,0,0,.25); transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
.filters.open { transform: none; visibility: visible; }
.filters-shade { position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,.45); display: none; }
.filters.open + .filters-shade { display: block; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 10px 18px; border-bottom: 1px solid var(--line); font: 800 18px var(--font-h); }
.filters-body { overflow-y: auto; padding: 4px 18px 16px; flex: 1; }
.filters-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.filters-foot .btn { flex: 1; padding: 0 12px; }
.facet { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facet legend { padding: 0; margin-bottom: 8px; font: 700 14px var(--font-h); }
.facet--scroll { max-height: 280px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 10px; min-height: 38px; cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border: 2px solid var(--line); background: var(--field); border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check:hover input { border-color: var(--red); }
.check span { flex: 1; }
.check small { color: var(--muted); font-size: 12px; }
.subs { padding-left: 32px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; }
.price-range input, .input input, .input select, .input textarea { width: 100%; height: 46px; padding: 0 14px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; }
.input textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input select { margin-top: 8px; }
.price-range input:focus, .input input:focus, .input select:focus, .input textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-soft); }
.input span, .input label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--bg-2); border-radius: var(--radius); }
.more-wrap { text-align: center; margin: 22px 0 8px; }
.more-wrap .btn { min-width: 240px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.pagination a:hover { border-color: var(--red); }
.pagination [aria-current] { background: var(--red); color: var(--on-red); border-color: var(--red); }

/* ---------- СТРАНИЦА ТОВАРА ---------- */
.pp { display: grid; gap: 22px; margin-bottom: 30px; }
.gallery { position: relative; min-width: 0; }
.gallery .labels { top: 14px; left: 14px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.slides::-webkit-scrollbar { display: none; }
.slide-img { flex: 0 0 100%; scroll-snap-align: center; margin: 0; aspect-ratio: 1; max-height: 560px; display: grid; place-items: center; position: relative; cursor: zoom-in; padding: 4%; }
.slide-img img { width: 100%; height: 100%; object-fit: contain; }
.slide-img--empty { cursor: default; background: var(--bg-2); }
.slide-img--empty svg { width: 40%; color: var(--red); opacity: .35; }
.slide-img figcaption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
.zoom-btn { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.9); color: #1d1d1f; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumb { flex: none; width: 72px; height: 72px; padding: 6px; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--red); }
.buybox { min-width: 0; }
.pp-brand { display: inline-block; font: 700 13px var(--font-h); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.buybox h1 { font-size: clamp(22px, 4.6vw, 30px); line-height: 1.2; }
.buybox .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 12px 0; font-size: 14px; color: var(--muted); }
.buybox .meta b { color: var(--ink); }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--info); font-size: 14px; }
.rating-line:hover span { text-decoration: underline; }
.variants { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font: 700 14px var(--font-h); margin-bottom: 8px; padding: 0; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; }
.variant > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; min-width: 76px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: center; line-height: 1.2; }
.variant > span b { font-weight: 700; }
.variant > span small { font-size: 12px; color: var(--muted); }
.variant input:checked + span { border-color: var(--red); background: var(--red-soft); }
.variant input:focus-visible + span { outline: 3px solid var(--red); }
.variant--off > span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.pp-price b { font: 800 34px var(--font-h); }
.pp-price s { color: var(--muted); font-size: 18px; }
.buy-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.qty { display: flex; border: 1px solid var(--line); background: var(--field); border-radius: 999px; flex: none; overflow: hidden; }
.qty button { width: 42px; border: 0; background: none; cursor: pointer; font-size: 22px; color: var(--red); }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 40px; border: 0; background: none; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fav--box { position: static; width: 54px; height: auto; border: 1px solid var(--line); border-radius: 50%; background: var(--card); flex: none; }
.out-note { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); color: var(--ink-2); margin: 0 0 10px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-top: 12px; }
.ask { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.ask:hover { color: var(--red); }
.ship-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.ship-note .icon { color: var(--red); flex: none; }
.ship-note b { color: var(--ink); }
.mini-delivery { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.mini-delivery li { display: flex; gap: 10px; align-items: flex-start; }
.mini-delivery .icon { color: var(--red); }
.ptabs { margin: 10px 0; }
.ptabs .tabs { margin-bottom: 12px; }
.ptab-panel { background: var(--card); border: 2px solid var(--red); border-radius: var(--radius); padding: 18px 16px; }
.prose { color: var(--ink-2); max-width: 900px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { color: var(--ink); font-size: 20px; margin: 22px 0 10px; }
.prose h3 { color: var(--ink); font-size: 17px; margin: 18px 0 8px; }
.prose b, .prose strong { color: var(--ink); }
.prose table, .specs { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 16px; }
.prose th, .prose td, .specs th, .specs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .specs th { color: var(--muted); font-weight: 600; width: 40%; }
.specs a { color: var(--red); }
.h3 { font-size: 18px; margin-bottom: 12px; }

/* ---------- ОКНА ---------- */
.dialog { width: min(92vw, 460px); padding: 0; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.dialog::backdrop, .lightbox::backdrop { background: rgba(0,0,0,.6); }
.lead-form { position: relative; padding: 24px 20px 22px; }
.lead-form h2 { font-size: 22px; padding-right: 44px; }
.lead-form p { color: var(--ink-2); font-size: 14px; margin: 10px 0 14px; }
.dialog-x { position: absolute; top: 10px; right: 10px; }
.lead-fields { display: grid; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dlg-product { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--bg-2); border-radius: 14px; color: var(--ink) !important; }
.dlg-product img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; }
.dlg-product svg { width: 48px; height: 48px; color: var(--red); flex: none; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(255,255,255,.98); }
.lb-body { width: 100%; height: 100%; display: grid; place-items: center; padding: 50px 16px; }
.lb-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.consent { font-size: 13px; align-items: flex-start; min-height: 0; }
.consent span { padding-top: 2px; }
.consent a { color: var(--red); text-decoration: underline; }
.co-step .consent { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: background .15s, border-color .15s; }
.co-step .consent:has(input:checked) { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: var(--ok); }
.co-step .co-remember { margin-top: 10px; }
.co-remember small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; }

/* ---------- отзывы ---------- */
.stars { --p: calc(var(--r, 0) / 5 * 100%); display: inline-block; font-size: 18px; letter-spacing: 1px; line-height: 1; white-space: nowrap;
  background: linear-gradient(90deg, #f5a300 var(--p), var(--line) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-big { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: 18px; }
.rating-big .stars, .rating-big b { font-size: 26px; }
.rating-big span { color: var(--muted); font-size: 15px; }
.reviews-layout { display: grid; gap: 22px; align-items: start; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.review { padding: 14px 16px; background: var(--card); border: 2px solid var(--red); border-radius: 14px; }
.review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; }
.review-head time { color: var(--muted); font-size: 13px; margin-left: auto; }
.review p { margin: 8px 0 0; white-space: pre-line; }
.verified { color: var(--ok); font-size: 12px; font-weight: 700; }
.review-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--red); background: var(--bg-2); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-2); }
.review-reply b { color: var(--ink); }
.review-list--row { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.review-form { display: grid; gap: 12px; padding: 18px; background: var(--bg-2); border-radius: var(--radius); }
.review-form h3 { margin: 0; font-size: 18px; }
.star-input { border: 0; padding: 0; margin: 0; min-width: 0; }
.star-input legend { padding: 0; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a300; }
.star-input input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- салют и подяка после заказа ---------- */
.fireworks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 400; pointer-events: none; }
.celebrate { position: fixed; inset: 0; z-index: 390; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.5); }
.celebrate[hidden] { display: none; }
.celebrate-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 22px 22px; text-align: center; background: var(--card); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.celebrate-box h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; }
.celebrate-box p { margin: 0 0 10px; font-size: 17px; }
.celebrate-num { color: var(--muted); }
.celebrate-num b { color: var(--red); }
.celebrate-btns { display: grid; gap: 10px; margin-top: 18px; }
.celebrate-btns .btn { min-height: 52px; width: 100%; }

/* ---------- ЗАГЛУШКИ ---------- */
.stub { padding: 30px 0 60px; color: var(--muted); }
.stub--404 { text-align: center; }
.big404 { font: 800 96px var(--font-h); color: var(--red); margin: 20px 0 0; line-height: 1; }
.stub--404 h1 { color: var(--ink); margin: 10px 0; }

/* ---------- КОРЗИНА, ОФОРМЛЕНИЕ ---------- */
.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-soft) !important; }
.cart-empty { padding: 30px 18px; background: var(--bg-2); border-radius: var(--radius); color: var(--ink-2); }
.cart-empty p { margin: 0 0 16px; }
.cart-layout { display: grid; gap: 18px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "pic info del" "pic qty sum"; gap: 8px 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item.is-off { opacity: .6; }
.ci-pic { grid-area: pic; width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; align-self: start; overflow: hidden; }
.ci-pic svg { width: 70%; color: var(--red); opacity: .4; }
.ci-pic img { width: 100%; height: 100%; object-fit: contain; }
.ci-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-info .stock { margin: 2px 0; }
.ci-name { font-weight: 700; line-height: 1.3; }
.ci-var, .ci-price { font-size: 13px; color: var(--muted); }
.ci-warn { font-size: 13px; color: var(--warn); }
.cart-item .qty { grid-area: qty; justify-self: start; height: 42px; }
.ci-sum { grid-area: sum; font: 800 18px var(--font-h); white-space: nowrap; }
.ci-del { grid-area: del; align-self: start; color: var(--muted); }
.cart-total, .co-summary { background: var(--card); border: 2px solid var(--red); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.sum-row b { color: var(--ink); }
.sum-row--total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; color: var(--ink); }
.sum-row--total b { font: 800 26px var(--font-h); color: var(--red); }
.checkout { display: grid; gap: 18px; align-items: start; }
.co-step { background: var(--card); border: 2px solid var(--red); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 12px; }
.co-step h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 14px; }
.co-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: 16px; }
.co-grid { display: grid; gap: 12px; }
.co-delivery { margin-top: 14px; }
.options { display: grid; gap: 8px; }
.option { position: relative; display: flex; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option > span { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; border: 2px solid var(--line); border-radius: 14px; background: var(--field); font-weight: 700; position: relative; }
.option > span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 50%; }
.option input:checked + span { border-color: var(--red); }
.option input:checked + span::before { border-color: var(--red); background: radial-gradient(circle, var(--red) 45%, transparent 50%); }
.option input:focus-visible + span { outline: 3px solid var(--red); }
.option small { font-weight: 400; font-size: 13px; color: var(--muted); }
.option--off { cursor: not-allowed; opacity: .5; }
.options--2col { grid-template-columns: 1fr 1fr; }
.option--call > span { justify-content: center; text-align: center; font-size: 15px; border-width: 2px; }
.co-call-section { border: 2px solid var(--red) !important; }
.co-note { color: var(--warn); font-size: 14px; margin: 12px 0 0; }
.co-note.co-ship { color: var(--muted); margin: 10px 0 0; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 280px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.combo-list li { padding: 10px 12px; cursor: pointer; }
.combo-list li:hover, .combo-list li:focus { background: var(--bg-2); color: var(--red); outline: none; }
.combo-list small { color: var(--muted); }
.co-summary-head { display: flex; justify-content: space-between; align-items: baseline; }
.co-summary-head h2 { font-size: 18px; }
.co-summary-head a { color: var(--red); font-size: 14px; text-decoration: underline; }
.co-items { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-items li { display: flex; justify-content: space-between; gap: 10px; }
.co-items small { color: var(--muted); }
.co-items b { white-space: nowrap; }
.co-offer { font-size: 13px; color: var(--muted); margin: 0; }
.co-offer a { color: var(--red); text-decoration: underline; }
.co-error { color: var(--red); font-size: 14px; margin: 0; }
.co-error a { color: var(--ink); font-weight: 700; }
.thanks { max-width: 620px; margin: 40px auto 20px; text-align: center; padding: 30px 18px; background: var(--card); border: 2px solid var(--red); border-radius: 12px; }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--ok); }
.thanks h1 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 12px; }
.thanks p { color: var(--ink-2); }
.thanks-num b { color: var(--red); font-size: 22px; }
.thanks-iban { text-align: left; margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); }
.thanks-iban h2 { margin: 0 0 10px; font-size: 18px; }
.thanks-iban dl { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; margin: 0; }
.thanks-iban dt { color: var(--muted); }
.thanks-iban dd { margin: 0; word-break: break-all; }

/* ---------- ШВИДКИЙ ВІДГУК ---------- */
.qr-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; }
.qr-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 24px;
  border: 2px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer;
  font-size: 36px; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s;
  min-width: 110px; }
.qr-btn span { font-size: 14px; }
.qr-btn:hover, .qr-btn:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.qr-btn--bad:hover, .qr-btn--bad:focus-visible { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.qr-btn--good:hover, .qr-btn--good:focus-visible { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--card)); }
.fld-input { width: 100%; box-sizing: border-box; padding: 10px 14px; font: inherit;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  resize: vertical; margin: 8px 0; }
.fld-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ---------- ИНФО-СТРАНИЦЫ ---------- */
.prose--page { max-width: 860px; padding-bottom: 24px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card); border: 2px solid var(--red); border-radius: 14px; color: var(--ink) !important; text-decoration: none !important; }
.contact-card b { font: 700 13px var(--font-h); text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
a.contact-card:hover { box-shadow: var(--shadow); }
.sitemap-cols { display: grid; gap: 24px; padding-bottom: 20px; }
.sitemap-cols ul { list-style: none; padding: 0; margin: 6px 0 18px; }
.sitemap-cols ul ul { padding-left: 16px; margin: 4px 0 8px; font-size: 14px; }
.sitemap-cols a { display: inline-block; padding: 3px 0; }
.sitemap-cols small { color: var(--muted); }
.search--page { max-width: 640px; margin-bottom: 18px; order: 0; }
.map-box { max-width: 860px; margin: 10px 0 30px; display: grid; gap: 12px; justify-items: start; }
.map-addr { margin: 0; font-weight: 700; }
.map-frame { width: 100%; aspect-ratio: 16 / 9; min-height: 240px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 16px; background: var(--bg-2); border-radius: 16px; }
.map-frame small { color: var(--muted); }
.map-frame.is-on { padding: 0; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- ПОДВАЛ ---------- */
.footer { background: var(--footer); color: var(--footer-ink); padding: 40px 0 90px; margin-top: 30px; font-size: 14.5px; }
.footer .cols { display: grid; gap: 28px; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .logo-img { border-radius: 8px; height: 44px; }
.ft-about { margin: 14px 0 0; }
.footer .fop { font-size: 14px; line-height: 1.65; margin: 0; }
.footer .copy { border-top: 1px solid #333338; margin-top: 28px; padding-top: 16px; font-size: 13px; color: #9a9aa1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- TELEGRAM FAB ---------- */
.tg-fab { position: fixed; left: 16px; bottom: 16px; z-index: 61; width: 54px; height: 54px; border-radius: 50%; background: #2AABEE; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(42,171,238,.45); text-decoration: none; animation: tg-pulse 2.4s ease-in-out infinite; }
@keyframes tg-pulse { 0%,100% { box-shadow: 0 4px 16px rgba(42,171,238,.45); } 50% { box-shadow: 0 4px 28px rgba(42,171,238,.75); transform: scale(1.04); } }
/* ---------- КНОПКА СВЯЗИ, COOKIE, СООБЩЕНИЯ ---------- */
.contact-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.contact-fab .main { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(200,16,46,.35); }
.contact-fab .list { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.contact-fab.open .list { display: flex; }
.contact-fab .list a, .contact-fab .list button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); }
.cookie { position: fixed; left: 16px; right: 90px; bottom: 16px; z-index: 55; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 14px; display: none; box-shadow: var(--shadow); }
.cookie.show { display: block; }
.cookie p { margin: 0 0 10px; color: var(--ink-2); }
.cookie p a { color: var(--red); text-decoration: underline; }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { min-height: 40px; padding: 0 18px; font-size: 13px; }
.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -20px); z-index: 300; background: var(--ink); color: var(--bg); font-weight: 700; padding: 12px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ПЛАНШЕТ ---------- */
@media (min-width: 640px) {
  .side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .pet-cards { grid-template-columns: repeat(4, 1fr); }
  .pet-card { min-height: 180px; }
  .pet-card[style] { min-height: 200px; }
  .cats, .tiles { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .products--row { grid-template-columns: none; grid-auto-columns: 31%; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .buy { flex-direction: row; align-items: center; justify-content: space-between; }
  .card .btn { width: auto; }
  .card { padding: 14px; }
  .lead-form { padding: 28px 28px 24px; }
  .co-grid { grid-template-columns: 1fr 1fr; }
  .input--wide { grid-column: 1 / -1; }
  .cart-item { grid-template-columns: 80px 1fr auto auto 44px; grid-template-areas: "pic info qty sum del"; }
  .ci-pic { width: 80px; height: 80px; align-self: center; }
  .ci-del { align-self: center; }
  .sitemap-cols { grid-template-columns: repeat(3, 1fr); }
  .tb-schedule { display: inline; }
}
/* ---------- КОМПЬЮТЕР ---------- */
@media (min-width: 960px) {
  html { scroll-padding-top: 150px; }
  .topbar nav { display: flex; }
  .header .wrap { flex-wrap: nowrap; gap: 24px; min-height: 78px; padding-top: 0; padding-bottom: 0; }
  .search { order: 0; flex: 1 1 auto; max-width: 560px; }
  .hd-phone { display: flex; }
  .burger { display: none !important; }
  .catnav { display: block; }
  .logo-img { height: 60px; }
  .hero { padding-top: 24px; }
  .slider .slide.slide-active { min-height: 440px; display: block; background: linear-gradient(90deg, var(--card) 0 42%, var(--hero) 42%); }
  .slider .slide img, .slider .slide video { position: absolute; top: 0; right: 0; width: 58%; height: 100%; object-position: 50% 40%; }
  .slide-txt { position: relative; max-width: 46%; padding: 46px 40px; }
  .slider .slide--full.slide-active { background: none; }
  .slider .slide--full img, .slider .slide--full video { position: absolute; inset: 0; width: 100%; height: 100%; object-position: left top; }
  .slide h1 { font-size: 40px; }
  .side { grid-column: auto; grid-template-columns: 1fr; gap: 20px; }
  .promo { min-height: 210px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .cat { padding: 18px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tiles--big { grid-template-columns: repeat(4, 1fr); }
  .tiles--brands { grid-template-columns: repeat(5, 1fr); }
  .products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .products--row { grid-template-columns: none; grid-auto-columns: calc(25% - 15px); }
  .brands { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .benefits { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
  .cookie { right: auto; max-width: 440px; }
  .section { padding: 46px 0; }
  /* каталог: фильтры слева */
  .listing { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
  .filters { position: sticky; top: 150px; z-index: 1; max-height: calc(100vh - 170px); transform: none; visibility: visible; transition: none;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
  .filters-head .icon-btn, .filters-head [data-close-filters], .filters-foot .btn:last-child, .filters-shade, .filters-btn { display: none !important; }
  .products--listing { grid-template-columns: repeat(3, 1fr); }
  /* товар: фото слева, покупка справа */
  .pp { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
  .gallery { position: sticky; top: 150px; }
  .ptab-panel { padding: 24px 26px; }
  .reviews-layout { grid-template-columns: 1fr 380px; }
  .review-list--row { grid-auto-columns: calc(33.3% - 7px); }
  .cart-layout, .checkout { grid-template-columns: 1fr 360px; gap: 24px; }
  .cart-total, .co-summary { position: sticky; top: 150px; }
}
@media (min-width: 1200px) {
  .products--listing { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- SPLIT-БАННЕР (фото по центру, текст з боків) ---------- */
.slide--split { text-decoration: none; }
.slide-split { display: flex; flex-direction: column; align-items: center; padding: 24px 16px; gap: 16px; }
.slide-split-l, .slide-split-r { text-align: center; max-width: 340px; }
.slide-split-paw { font-size: 28px; margin-bottom: 8px; }
.slide-split-h { display: block; font: 800 18px/1.2 var(--font-h); margin-bottom: 10px; color: var(--red); }
.slide-split-l p, .slide-split-r p { color: var(--ink-2); font-size: 15px; margin: 0; }
.slide-split-c img { width: 180px; height: 220px; object-fit: cover; object-position: center 20%; border-radius: 18px; box-shadow: 0 8px 32px rgba(0,0,0,.14); }
@media (min-width: 640px) {
  .slide-split { flex-direction: row; justify-content: center; align-items: center; padding: 32px 24px; gap: 24px; min-height: 300px; }
  .slide-split-c img { width: 200px; height: 260px; }
}
@media (min-width: 960px) {
  .slide-split { padding: 44px 48px; gap: 40px; min-height: 400px; }
  .slide-split-l, .slide-split-r { flex: 1; text-align: left; max-width: none; }
  .slide-split-r { text-align: right; }
  .slide-split-paw { font-size: 36px; margin-bottom: 12px; }
  .slide-split-h { font-size: 24px; margin-bottom: 14px; }
  .slide-split-l p, .slide-split-r p { font-size: 16px; line-height: 1.6; }
  .slide-split-c img, .slide-split-c video { width: 240px; height: 320px; border-radius: 24px; }
}
/* Скасовуємо загальні правила слайдера для split-банера */
@media (min-width: 960px) {
  .slide--split.slide-active { display: flex !important; min-height: 0 !important; background: none !important; }
  .slide--split .slide-split { width: 100%; }
  .slide--split .slide-split-c img,
  .slide--split .slide-split-c video { position: static !important; right: auto !important; top: auto !important; width: 240px !important; height: 320px !important; object-fit: cover !important; object-position: center 20% !important; }
  .slide--split .slide-split { justify-content: center; align-items: center; }
}
/* Банер вміщається в екран ноутбука разом із шапкою: висота від висоти вікна, від 300 до 440 */
@media (min-width: 960px) {
  :root { --hero-h: clamp(300px, calc(100vh - 250px), 440px); }
  .slider .slide.slide-active { min-height: var(--hero-h); }
  .slider .slide--full.slide-active { background: linear-gradient(90deg, #ddd, #ebebeb); }
  .slider .slide--full img { object-fit: contain; object-position: center; }
  .slide--split .slide-split { min-height: var(--hero-h); padding: 24px 48px; }
  .slide--split .slide-split-c img,
  .slide--split .slide-split-c video { width: auto !important; height: calc(var(--hero-h) - 60px) !important; aspect-ratio: 3 / 4; }
}

/* Логотип і назва бренду — декоративним шрифтом, решта заголовків — Inter */
.logo, .brand, .pp-brand { font-family: var(--font-logo); }

/* ---------- КОТИК І ЦУЦЕНЯ (static/js/pets.js) ---------- */
/* шар під меню (z 45) і шапкою (z 50): звірятко, що біжить ховатися, пірнає за меню */
.pets { position: fixed; inset: 0; z-index: 44; pointer-events: none; overflow: hidden; }
.pet { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.pet.is-away { display: none; }
.pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.pet.is-left .pet-flip { transform: scaleX(-1); }
.pet .legs-a, .pet .legs-b, .pet .pet-tail { transform-box: fill-box; }
.pet .legs-a, .pet .legs-b { transform-origin: 50% 0; }
.pet .pet-tail { transform-origin: 100% 100%; animation: pet-tail 1.4s ease-in-out infinite alternate; }
.pet--dog .pet-tail { animation-duration: .28s; }
.pet.is-walk { --step: .34s; }
.pet.is-run { --step: .12s; }
.pet.is-walk .legs-a, .pet.is-run .legs-a { animation: pet-leg var(--step) ease-in-out infinite alternate; }
.pet.is-walk .legs-b, .pet.is-run .legs-b { animation: pet-leg var(--step) ease-in-out infinite alternate-reverse; }
.pet.is-walk .pet-body, .pet.is-run .pet-body { animation: pet-bob var(--step) ease-in-out infinite alternate; }
.pet.is-scared .pet-hop { animation: pet-jump .45s ease-out; }
.pet-oops { position: absolute; left: 50%; top: -22px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: var(--red); color: #fff; font: 800 15px/22px var(--font-h); text-align: center; display: none; }
.pet.is-scared .pet-oops { display: block; animation: pet-oops .7s ease-out forwards; }
@keyframes pet-leg { from { transform: rotate(26deg); } to { transform: rotate(-26deg); } }
@keyframes pet-bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes pet-tail { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
@keyframes pet-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-26px) rotate(-6deg); } 70% { transform: translateY(0); } 85% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
@keyframes pet-oops { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }

/* сховався за розділом: видно вушка й оченята */
.has-pet-peek { position: relative; }
.pet-peek { position: absolute; pointer-events: none; display: block; transform-origin: 50% 100%;
  animation: pet-peek-in .45s ease-out, pet-peek-look 3.2s ease-in-out .45s infinite; }
.pet-peek svg { display: block; width: 100%; height: auto; }
/* у меню — позаду слова (z-index: -1 усередині .catnav: над її фоном, під текстом) */
.cn-link > .pet-peek { z-index: -1; width: 34px; left: calc(50% + 4px); top: 0; }
.cn-link.has-pet-peek { animation: pet-rustle .5s ease-in-out 2; }
.pet-card > .pet-peek { z-index: 3; width: 56px; right: 14px; top: 12px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
@keyframes pet-peek-in { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pet-peek-look { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 84% { transform: rotate(6deg); } 90% { transform: rotate(-2deg); } }
@keyframes pet-rustle { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
