/* ============================================================
   Сувенир Плюс — тема v3 (редизайн 2026)
   Чистый современный e-commerce. Без jQuery, без WP-наследия.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --ink: #1c2333;          /* основной текст */
  --navy: #2f374d;         /* фирменный тёмно-синий (сохранён) */
  --navy-700: #262d40;
  --navy-600: #3c4660;
  --muted: #67708a;
  --accent: #e04444;       /* фирменный красный — главный акцент */
  --accent-hover: #c43636;
  --accent-soft: #fdecec;
  --blue: #4a90e2;         /* вспомогательный синий из старой палитры */
  --blue-soft: #eaf2fc;
  --amber: #f5a623;        /* тёплый акцент */
  --amber-soft: #fdf3e1;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-navy-grad: linear-gradient(135deg, #2f374d 0%, #232a3e 100%);
  --line: #e6e9f1;
  --ok: #2e9e5b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 35, 51, .06);
  --shadow-md: 0 6px 24px -6px rgba(28, 35, 51, .12);
  --shadow-lg: 0 24px 64px -16px rgba(28, 35, 51, .28);
  --container: 1200px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 800; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.025em; line-height: 1.12; }
h3 { font-size: 20px; }
h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p { margin: 0 0 1em; }
table { border-collapse: collapse; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Каркас ---------- */
.container { width: 100%; }
.container > .content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-order:hover, .btn-form-submit:hover { transform: translateY(-2px) scale(1.02); }
.btn-order, .btn-form-submit {
  background: linear-gradient(135deg, #ea5454 0%, #cf3a3a 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(224, 68, 68, .55);
}
.btn-order:hover, .btn-form-submit:hover {
  background: linear-gradient(135deg, #d94545 0%, #b93030 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -6px rgba(224, 68, 68, .65);
}
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ============================================================
   Шапка
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 900; }

.header-topbar { background: var(--navy); color: #c9d0de; font-size: 13.5px; }
.header-topbar .content {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.header-topbar a { color: #e7ebf4; font-weight: 600; }
.header-topbar a:hover { color: #fff; }
.topbar-msgrs { display: inline-flex; align-items: center; gap: 10px; }
.topbar-msgrs img { width: 18px; height: 18px; display: block; }
.topbar-schedule { color: #97a0b6; }

.header-main {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.is-scrolled .header-main { box-shadow: var(--shadow-md); }
.header-main .content {
  display: flex; align-items: center; gap: 28px; min-height: 76px;
}

/* Логотип */
.site-logo a { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 46px; flex-shrink: 0;
  background: var(--navy); border-radius: 13px;
}
.logo-mark img { width: 38px; height: auto; }
.logo-text { line-height: 1.15; }
.logo-sign { font-size: 19px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.logo-sub { font-size: 11.5px; color: var(--muted); }

/* Навигация */
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.open > a { background: var(--accent-soft); color: var(--accent); }
.nav-caret { display: inline-block; margin-left: 5px; width: 8px; height: 8px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-3px); opacity: .55; }

/* Мега-меню услуг */
.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 26px 30px; min-width: 640px; z-index: 950;
}
.main-nav li:hover > .mega, .main-nav li.open > .mega { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.mega-group { break-inside: avoid; margin-bottom: 14px; }
.mega-group h5 { margin: 0 0 8px; font-size: 12px; }
.mega-group a {
  display: block; padding: 5px 0; font-size: 14.5px; color: var(--ink); font-weight: 500;
}
.mega-group a:hover { color: var(--accent); }

/* Поиск */
.header-search { position: relative; }
.header-search input {
  width: 44px; height: 44px; padding: 0 0 0 44px;
  border: 1.5px solid transparent; border-radius: 999px; background: var(--bg-soft);
  font: inherit; font-size: 14.5px; color: var(--ink);
  cursor: pointer; transition: width .25s ease, border-color .2s, background .2s;
}
.header-search.active input, .header-search input:focus {
  width: 230px; cursor: text; border-color: var(--line); background: #fff; outline: none;
}
.header-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; pointer-events: none; color: var(--muted);
}

/* CTA + бургер */
.header-cta { flex-shrink: 0; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 12px 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ============================================================
   Хлебные крошки
   ============================================================ */
.menu-container { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.navigation-menu {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 12px 0; font-size: 13.5px; color: var(--muted);
}
.navigation-menu a { color: var(--muted); font-weight: 600; }
.navigation-menu a:hover { color: var(--accent); }
.navigation-menu .dash { width: 4px; height: 4px; border-radius: 50%; background: #c3c9d8; }
.navigation-menu .current, .navigation-menu > span:last-child:not(:first-child) { color: var(--ink); font-weight: 600; }

/* ============================================================
   Главная
   ============================================================ */
/* Hero */
.hero { background: linear-gradient(140deg, #353e58 0%, #272e44 45%, #1d2335 100%); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 75%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(224,68,68,.28), transparent 65%); pointer-events: none; }
.hero .content {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 110px; position: relative; z-index: 1;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffb1aa; margin-bottom: 22px; }
.hero h1 .accent { color: #ff8d85; }
.hero-lead { font-size: 19px; line-height: 1.7; color: #b9c1d4; max-width: 46ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 56px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat { padding: 22px 38px 0 0; margin-right: 38px; }
.hero-stat:last-child { margin-right: 0; }
.hero-stat b { display: block; font-size: 32px; font-weight: 800; color: #ff8d85; letter-spacing: -.02em; }
.hero-stat span { font-size: 13.5px; color: #97a0b6; }

/* плавающие карточки с продукцией — наследник старого parallax-блока */
.hero-visual { position: relative; min-height: 560px; }
.hv {
  position: absolute; margin: 0; height: auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45));
  animation: hv-float 8s ease-in-out infinite;
  --r: 0deg;
}
@keyframes hv-float {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-14px); }
}
.hv-1 { width: 38%; top: 0; right: 4%; --r: 5deg; z-index: 3; }          /* футболка */
.hv-2 { width: 34%; top: 8%; left: 0; --r: -7deg; animation-delay: -2.4s; z-index: 4; }  /* кружка */
.hv-3 { width: 30%; bottom: 0; left: 6%; --r: -4deg; animation-delay: -4.2s; z-index: 2; } /* рюкзак */
.hv-4 { width: 22%; bottom: 4%; left: 41%; --r: 6deg; animation-delay: -1.2s; z-index: 3; } /* блокнот */
.hv-5 { width: 30%; top: 40%; left: 27%; --r: -12deg; animation-delay: -5.6s; z-index: 1; } /* ручка */
.hv-6 { width: 34%; bottom: 0; right: 0; --r: 4deg; animation-delay: -3.1s; z-index: 2; }  /* зонт */
.hv-7 { width: 15%; top: 34%; right: 2%; --r: 8deg; animation-delay: -6.8s; }  /* термокружка */
.hv-8 { width: 13%; top: 2%; left: 38%; --r: -9deg; animation-delay: -7.7s; }  /* бутылка */
@media (prefers-reduced-motion: reduce) { .hv { animation: none; } }
.hero-visual .blob {
  position: absolute; inset: 8% 4%; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(224, 68, 68, .38), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(74, 144, 226, .25), transparent 60%),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), rgba(255,255,255,.02) 70%);
}

/* Преимущества */
.features { background: var(--bg); }
.features .content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-top: 96px; padding-bottom: 96px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 30px; transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card h3, .feature-card p { padding: 0 16px; }
.feature-card .icon {
  width: 100%; height: 140px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.feature-card:nth-child(2) .icon { background: var(--blue-soft); color: var(--blue); }
.feature-card:nth-child(3) .icon { background: var(--amber-soft); color: var(--amber); }
.feature-card { border-top: 3px solid var(--accent); }
.feature-card:nth-child(2) { border-top-color: var(--blue); }
.feature-card:nth-child(3) { border-top-color: var(--amber); }
.feature-card .icon svg { width: 64px; height: 64px; stroke-width: 1.4; }
.vote svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; text-transform: none; margin-bottom: 8px; }
.feature-card p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

/* О компании / «запомнят» */
.remember { background: var(--bg-soft); }
.remember .content { padding-top: 90px; padding-bottom: 90px; }
.remember-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.remember p { font-size: 16.5px; color: var(--navy-600); }
.estimate {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 30px; text-align: center;
}
.estimate h3 { font-size: 16px; }
.estimate .votes { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.vote { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; transition: .15s; }
.vote:hover { transform: scale(1.08); }
.vote.like:hover { border-color: var(--ok); color: var(--ok); }
.vote.dislike:hover { border-color: var(--accent); color: var(--accent); }

/* Категории-промо (бывший слайдер) */
.promo-banner {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--navy) center/cover no-repeat; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 400px; padding: 44px;
}
.promo-banner::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,42,62,.05) 20%, rgba(35,42,62,.85) 100%); }
.promo-banner > * { position: relative; }
.promo-banner .slide-caption { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; margin-bottom: 18px; max-width: 22ch; }

/* Отзывы */
.comments .content { padding-top: 96px; padding-bottom: 100px; }
.comments-sub { color: var(--muted); margin-top: -8px; }
.comments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.comment {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.comment:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.comment-header { position: relative; aspect-ratio: 16/9; background: var(--navy); }
.comment-header iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.comment-veil {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  background: rgba(35,42,62,.35); display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.comment-veil::after {
  content: ""; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.92) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e04444'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;
  box-shadow: var(--shadow-md); transition: transform .2s;
}
.comment-veil:hover { background: rgba(35,42,62,.18); }
.comment-veil:hover::after { transform: scale(1.1); }
.comment-body { padding: 20px 22px 22px; }
.comment-body p:first-child { font-size: 15.5px; font-weight: 600; color: var(--navy-600); }
.comment-body h3 { font-size: 16px; margin: 0; }
.comment-body p:last-child { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.production { text-align: center; margin-top: 44px; font-size: 19px; font-weight: 700; color: var(--navy); }
.production .nowrap { color: var(--accent); }

/* CTA-полоса */
.cta-strip { background: linear-gradient(135deg, #d94848 0%, #b32f2f 100%); color: #fff; }
.cta-strip p { color: #ffd9d4 !important; }
.cta-strip .content {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0; font-size: clamp(20px, 2.6vw, 28px); }
.cta-strip p { margin: 6px 0 0; color: #b9c1d4; }

/* ============================================================
   Каталог: индекс категорий
   ============================================================ */
.catalog .content { padding-top: 56px; padding-bottom: 80px; }
.catalog-head { margin-bottom: 36px; }
.catalog-sub { color: var(--muted); font-size: 17px; margin: -6px 0 0; }
.index-catalog-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.catalog-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.catalog-block:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.catalog-cover {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 210px; background: var(--bg-soft); overflow: hidden;
}
.catalog-cover img { max-height: 82%; max-width: 78%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .35s ease; }
.catalog-block:hover .catalog-cover img { transform: scale(1.08); }
.catalog-count {
  position: absolute; top: 14px; right: 14px; padding: 4px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--muted); box-shadow: var(--shadow-sm);
}
.catalog-block-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.catalog-block a.title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.catalog-block a.title:hover { color: var(--accent); }
.catalog-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 13px; border-radius: 999px; background: var(--bg-soft);
  font-size: 12.5px; font-weight: 600; color: var(--navy-600); transition: .15s;
}
.chip:hover { background: var(--accent-soft); color: var(--accent); }
.chip-more { background: transparent; border: 1px dashed var(--line); color: var(--muted); }

/* ============================================================
   Каталог: категория
   ============================================================ */
.catalog-category .content { padding-top: 40px; padding-bottom: 64px; }
.category-description { color: var(--muted); max-width: 75ch; }
.category-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; margin-top: 26px; }

.left-block { position: sticky; top: 140px; align-self: start; }
.filter-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.filter-block h5 { margin-bottom: 14px; }
.price_slider_amount input {
  width: 100%; padding: 10px 14px; margin-bottom: 10px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; background: #fff;
}
.price_slider_amount input:focus { border-color: var(--navy-600); outline: none; }
.price_slider_amount .btn { width: 100%; padding: 11px; }
.subcategories div { padding: 4px 0; }
.subcategories a { font-size: 14.5px; font-weight: 600; color: var(--navy-600); }
.subcategories a:hover { color: var(--accent); }

/* Сортировка */
.select-container { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.woocommerce-ordering select {
  appearance: none; -webkit-appearance: none;
  padding: 10px 40px 10px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--navy-600);
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367708a' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/16px no-repeat;
  cursor: pointer;
}

/* Сетка товаров */
.items-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.item-inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 18px; height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s; position: relative;
}
.item-inner:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.item-img { display: block; }
.item-img > div {
  aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px;
}
.item-img img { mix-blend-mode: multiply; max-height: 86%; max-width: 86%; object-fit: contain; transition: transform .35s ease; }
.item-inner:hover .item-img img { transform: scale(1.08); }
.item-name {
  font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em; margin-bottom: 10px;
}
.item-name:hover { color: var(--accent); }
.item-stock { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.stock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: var(--bg-soft);
  font-size: 11.5px; font-weight: 600; color: #9aa1b5;
}
.stock-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c9cedb; }
.stock-pill.on { color: var(--ok); background: #edf7f1; }
.stock-pill.on::before { background: var(--ok); }
.item-bottom { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.item-price { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.item-article { font-size: 11.5px; color: #aab0c0; }
.count-shop, .count-order { font-size: 12.5px; color: var(--muted); }
.count-shop span, .count-order span { font-weight: 600; color: var(--ok); }
.count-shop .out-of-stock, .count-order .out-of-stock { color: var(--accent); }
/* тулбар листинга */
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.listing-count { font-size: 14px; font-weight: 700; color: var(--muted); }

/* Показать ещё */
.show-more-container { text-align: center; margin-top: 34px; color: var(--muted); font-size: 14px; }
.show-more-container .btn-more { margin-bottom: 12px; }
.btn-more .plus { font-size: 19px; line-height: 1; }
.ajax-loader { display: block; margin: 0 auto 12px; }

/* ============================================================
   Карточка товара
   ============================================================ */
.catalog-item .content { padding-top: 40px; padding-bottom: 64px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
.item-pictures .big {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  padding: 28px; overflow: hidden;
}
.item-pictures .big img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.item-info h1, .item-info h2 { margin-bottom: 10px; }
.item-info .article { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.item-info .colors { font-size: 14.5px; margin-bottom: 12px; }
.item-info .stock { font-size: 14.5px; margin: 4px 0; color: var(--muted); }
.item-info .stock span { font-weight: 700; color: var(--ok); }
.item-info .stock .out-of-stock { color: var(--accent); }
.item-info .price { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 22px 0 20px; }
.item-info .price::after { content: " / шт."; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.item-details { margin-top: 56px; }
.item-details h2 { font-size: 22px; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; }
.details-container p { color: var(--navy-600); }
.table-container table { width: 100%; font-size: 14.5px; }
.table-container th, .table-container td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table-container th { color: var(--muted); font-weight: 600; width: 38%; }
.table-container p { margin: 0; }

/* ============================================================
   Текстовые страницы, поиск, 404
   ============================================================ */
.about-header { background: var(--bg-navy-grad); color: #fff; }
.about-header .content { padding-top: 44px; padding-bottom: 44px; }
.about-header h1, .about-header h2 { color: #fff; margin: 0; }

.page-body .content, .search .content, .error-404 .content { padding-top: 44px; padding-bottom: 64px; }
.page-body .content { max-width: 980px; }
.page-body { font-size: 16.5px; line-height: 1.75; }
.page-body img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); height: auto; }
.page-body iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }
.page-body iframe[src*="youtube"] { width: 100%; aspect-ratio: 16/9; height: auto; }
.page-body h2, .page-body h3 { margin-top: 1.6em; }
.page-body ul, .page-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.page-body li { margin-bottom: .4em; }
.page-body table { width: 100%; font-size: 15px; margin: 0 0 1.4em; }
.page-body table td, .page-body table th { padding: 10px 14px; border: 1px solid var(--line); }
.page-body blockquote { margin: 0 0 1.2em; padding: 16px 22px; background: var(--bg-soft);
  border-left: 3px solid var(--navy); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
/* легаси <center> со стопкой картинок -> аккуратная сетка */
.page-body center { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 0 0 1.4em; }
.page-body center img { width: calc(33.333% - 10px); min-width: 240px; object-fit: contain; margin: 0; }
.page-body center br { display: none; }
/* легаси <pre> с прайсами -> карточка */
.page-body pre {
  font-family: inherit; font-size: 15px; white-space: pre-wrap; overflow: auto;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 0 0 1.4em;
}
.page-body p > img:only-child { display: block; margin: 0 auto; }
.page-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }

/* Легаси-компоненты из контента старых страниц */
.service { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 26px; align-items: start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 0 0 22px; }
.service-image img { border-radius: var(--radius-sm); width: 100%; object-fit: cover; }
.service-info h3 a { color: var(--ink); }
.service-info h3 a:hover { color: var(--accent); }
.service .line { display: none; }
.learn-more { font-weight: 700; color: var(--accent); }
.sort-menu { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.sort-menu-item {
  padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; background: #fff;
}
.sort-menu-item:hover { border-color: var(--accent); color: var(--accent); }
.sort-menu-item.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.photos { display: none; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photos.active { display: grid; }
.photos img { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; }
.contact__phonesItem { margin-bottom: 10px; }
.contact__phonesItemLinkNumber { font-weight: 800; font-size: 18px; color: var(--navy); }
.contact__phonesItemComment { color: var(--muted); font-size: 13.5px; }
.fact { background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 22px; margin: 0 0 18px; }

/* Pagefind */
.search .content { max-width: 880px; }
#pagefind-search { --pagefind-ui-primary: var(--navy); --pagefind-ui-text: var(--ink);
  --pagefind-ui-border: var(--line); --pagefind-ui-border-radius: var(--radius-sm);
  --pagefind-ui-font: var(--font); }

.error-404 .content { text-align: center; max-width: 640px; }

/* ============================================================
   Формы и модалка заявки
   ============================================================ */
.suvenir-lead-form p, .wpcf7-form p { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--navy-600); }
.suvenir-lead-form p:has(input), .suvenir-lead-form p:has(textarea) { margin-bottom: 16px; }
.suvenir-lead-form input[type="text"], .suvenir-lead-form textarea,
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; background: #fff; transition: border-color .15s;
}
.suvenir-lead-form input:focus, .suvenir-lead-form textarea:focus,
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--navy-600); outline: none; }
.suvenir-lead-form textarea, .wpcf7-form textarea { resize: vertical; min-height: 96px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-response-output { display: none; margin-top: 14px; padding: 12px 16px;
  border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-hover);
  font-size: 14.5px; font-weight: 600; }
.wpcf7-response-output.visible { display: block; }
.wpcf7-response-output.success { background: #e9f7ef; color: var(--ok); }
.suvenir-inline-lead { max-width: 560px; margin: 26px 0; padding: 26px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.lead-form-product { color: var(--muted); }

/* Модалка */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(28, 35, 51, .55);
  backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 34px 36px;
  position: relative; animation: modal-in .22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 19px; padding-right: 36px; margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--bg-soft); cursor: pointer;
  font-size: 17px; line-height: 1; color: var(--muted); transition: .15s;
}
.modal-close:hover { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   Подвал
   ============================================================ */
.footer { background: var(--navy-700); color: #aab2c5; font-size: 14.5px; margin-top: auto; }
.footer .content {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px;
  padding-top: 56px; padding-bottom: 40px;
}
.footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.footer a { color: #cdd4e2; font-weight: 500; }
.footer a:hover { color: #fff; }
.footer .links div, .footer .navigation div { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .content {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #7d869c;
}

/* ---------- Появление при скролле ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: .08s; }
  .reveal:nth-child(3) { transition-delay: .16s; }
  .reveal:nth-child(4) { transition-delay: .24s; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .items-container { grid-template-columns: repeat(3, 1fr); }
  .index-catalog-list { grid-template-columns: repeat(2, 1fr); }
  .comments-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero .content { grid-template-columns: 1fr; padding-bottom: 56px; }
  .hero-visual { min-height: 380px; }
  .hv-5, .hv-7 { display: none; }
  .remember-grid { grid-template-columns: 1fr; }
  .features .content { grid-template-columns: 1fr; }
  .product-layout, .details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .main-nav {
    position: fixed; inset: 0; top: 0; background: #fff; z-index: 980;
    padding: 86px 24px 40px; overflow: auto; display: none; margin: 0;
  }
  body.nav-open .main-nav { display: block; }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { font-size: 18px; padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .mega { position: static; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 8px 4px 16px; }
  .main-nav li.open > .mega { display: block; }
  .main-nav li:hover > .mega { display: none; }
  .main-nav li.open:hover > .mega { display: block; }
  .nav-burger { display: flex; margin-left: auto; z-index: 990; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .header-cta { display: none; }
  .header-search.active input, .header-search input:focus { width: 160px; }
  .category-layout { grid-template-columns: 1fr; }
  .footer .content { grid-template-columns: 1fr; gap: 28px; }
  .service { grid-template-columns: 1fr; }
  .photos.active { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .items-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .index-catalog-list { grid-template-columns: 1fr; }
  .header-topbar .topbar-schedule { display: none; }
  .hero-stats { gap: 22px; }
  .section, .features .content, .remember .content, .comments .content { padding-top: 44px; padding-bottom: 44px; }
  .modal { padding: 26px 22px; }
}
