/*
Theme Name: AliSpark
Theme URI: https://alya-ulyu.ru
Author: AliSpark
Author URI: https://alya-ulyu.ru
Description: Тема витрины проверенных товаров с AliExpress: главная с поиском и подборкой последних товаров, страница товара (галерея, цена со скидкой, преимущества, ссылки на покупку), «почему нам верить» и CTA-блок со скидками. Подвал — общий для всех страниц.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alispark
Tags: blog, e-commerce, rtl-language-support
*/

/* ==========================================================================
   AliSpark — тема WordPress (перенос дизайна из статики + надстройки WP)
   Методология BEM · Mobile-first · CSS Custom Properties
   Шрифты: Unbounded (дисплейный) + Manrope (текстовый)
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  /* Цвет */
  --bg: #F5F2EB;            /* тёплый светлый фон */
  --surface: #FFFFFF;
  --ink: #16161C;           /* графит для текста */
  --muted: #65656F;
  --graphite: #191922;      /* тёмный hero/footer */
  --graphite-2: #23232E;
  --line: rgba(22, 22, 28, .09);
  --line-dark: rgba(255, 255, 255, .10);

  --accent: #FF4D1C;        /* фирменный оранжево-красный */
  --accent-2: #FF8A1F;
  --hot: #FF2E4C;           /* огненно-красный для скидок */
  --green: #2CE58B;         /* неоновый для «ХИТ» и выгоды */
  --gold: #FFC53D;          /* золотой для рейтингов */

  /* Типографика */
  --font-d: 'Unbounded', system-ui, sans-serif;
  --font-b: 'Manrope', system-ui, sans-serif;

  --fs-h1: clamp(1.9rem, 5vw + .6rem, 3.9rem);
  --fs-h2: clamp(1.4rem, 2.6vw, 2.1rem);
  --fs-price: clamp(1.45rem, 3vw, 2rem);

  /* Радиусы и тени */
  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 12px 34px rgba(20, 20, 28, .12);
  --shadow-soft: 0 6px 18px rgba(20, 20, 28, .07);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 138, 31, .08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; }

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

.skip {
  position: absolute; left: 12px; top: -70px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .95rem;
  padding: 14px 22px; border-radius: 14px;
  border: 0; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap; cursor: pointer; font-family: var(--font-b);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn--accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--hot));
  box-shadow: 0 12px 26px rgba(255, 77, 28, .35);
}
.btn--ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.btn--light {
  color: var(--graphite);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.header {
  position: relative; z-index: 60;
  background: rgba(245, 242, 235, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(20, 20, 28, .08); }

.header__bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-block: 12px;
}

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; flex: 1; }
.logo__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 8px rgba(255, 77, 28, .4)); }
.logo__img { width: 140px; height: auto; border-radius: 14px; object-fit: contain; }
.logo__text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-d); font-weight: 800; font-size: 1.12rem; letter-spacing: .2px;
}
.logo__text small { font-family: var(--font-b); font-weight: 600; font-size: .62rem; color: var(--muted); letter-spacing: .4px; }
.logo__text--dark { color: #fff; }
.logo__text--dark small { color: rgba(255, 255, 255, .6); }

/* Поиск */
.search {
  position: relative; display: flex; align-items: center;
  flex: 1 1 100%; order: 3;
}
.search__icon { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 16px 12px 46px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; transition: border-color .2s ease, box-shadow .2s ease;
}
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 77, 28, .14); }
.search__clear {
  position: absolute; right: 12px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px; border: 0;
  background: var(--bg); color: var(--muted); font-size: 15px; line-height: 1;
}
.search__clear svg { width: 14px; height: 14px; fill: none; }

/* Навигация (десктоп) — меню WordPress */
.nav { display: none; align-items: center; font-weight: 700; font-size: .95rem; }
.nav .menu-primary,
.nav .nav__list { display: flex; gap: 26px; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a { opacity: .85; transition: opacity .15s ease, color .15s ease; }
.nav a:hover { opacity: 1; color: var(--accent); }
.nav .nav__cta a {
  color: var(--accent); border: 1.5px solid rgba(255, 77, 28, .4);
  padding: 9px 16px; border-radius: 999px;
}
.nav .nav__cta a:hover { background: rgba(255, 77, 28, .08); }

/* Бургер */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
}
.burger span { height: 2.4px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* Мобильное меню */
.menu { border-top: 1px solid var(--line); background: var(--bg); }
.menu nav { display: grid; gap: 2px; padding-block: 10px; }
.menu .menu-primary { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a { padding: 13px 4px; font-weight: 700; border-bottom: 1px solid var(--line); }
.menu a:last-child { border-bottom: 0; }

/* Быстрые фильтры-чипсы (категории) */
.chips {
  display: flex; gap: 10px; padding-bottom: 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: .88rem; color: var(--ink);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { transform: translateY(-1px); border-color: rgba(255, 77, 28, .5); }
.chip.is-active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px rgba(255, 77, 28, .3);
}

/* ==========================================================================
   HERO (главная)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 420px at 15% 0%, rgba(255, 138, 31, .22), transparent 62%),
    radial-gradient(640px 420px at 95% 15%, rgba(255, 46, 76, .20), transparent 60%),
    linear-gradient(160deg, var(--graphite-2), var(--graphite));
}
.hero__glow {
  position: absolute; inset: auto -6% -45% 30%; height: 70%;
  background: radial-gradient(closest-side, rgba(255, 77, 28, .38), transparent 72%);
  filter: blur(10px); pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(52px, 9vw, 108px) clamp(56px, 9vw, 112px); }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .3px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
}
.hero__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(44, 229, 139, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 229, 139, .55); }
  70% { box-shadow: 0 0 0 9px rgba(44, 229, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 229, 139, 0); }
}

.hero__title {
  font-family: var(--font-d); font-weight: 800;
  font-size: var(--fs-h1); letter-spacing: .3px;
  margin-top: 22px; max-width: 15ch; text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-2), var(--hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub {
  margin-top: 20px; max-width: 54ch;
  font-size: clamp(1rem, 1.3vw + .6rem, 1.15rem);
  color: rgba(255, 255, 255, .78); font-weight: 500;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 60px);
  margin-top: clamp(34px, 5vw, 48px);
}
.hero__stats b {
  display: block; font-family: var(--font-d); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(120deg, #fff, rgba(255, 255, 255, .65));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { font-size: .82rem; color: rgba(255, 255, 255, .6); font-weight: 600; }

/* «Висящие» ценники (декор) */
.hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tag {
  position: absolute;
  font-family: var(--font-d); font-weight: 800; color: #fff;
  padding: 12px 20px; border-radius: 14px 14px 14px 3px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  animation: bob 5s ease-in-out infinite;
}
.tag--a { top: 24%; right: 7%; transform: rotate(8deg); background: linear-gradient(135deg, var(--accent-2), var(--hot)); }
.tag--b { top: 52%; right: 19%; transform: rotate(-7deg); background: linear-gradient(135deg, #34E58B, #0DA06A); animation-delay: 1.2s; }
.tag--c { top: 15%; right: 26%; transform: rotate(-4deg); font-size: .85rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); animation-delay: 2.1s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ==========================================================================
   СЕКЦИИ И ПОДБОРКА
   ========================================================================== */
.section { padding-block: clamp(46px, 7vw, 84px); }
.section--why { background: var(--surface); border-block: 1px solid var(--line); }

.section__head { margin-bottom: 34px; }
.section__title { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-h2); letter-spacing: .3px; }
.section__sub { color: var(--muted); font-weight: 600; margin-top: 10px; max-width: 62ch; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px;
  margin-bottom: 28px;
}
.count { display: inline-block; font-weight: 800; color: var(--accent); font-size: .9rem; margin-bottom: 8px; }

.sort { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.sort select {
  font: inherit; font-weight: 700; color: var(--ink);
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2365656F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.sort select:focus { outline: none; border-color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2.4vw, 26px);
}

/* ---------- Карточка товара ---------- */
.card { position: relative; }
.card__link {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; height: 100%;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card__link:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #12121a; }
.card__media img.ph,
.card__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__media svg.ph { width: 100%; height: 100%; }
.card__link:hover .card__media .ph { transform: scale(1.06); }

.card__badge {
  position: absolute; font-family: var(--font-d); font-weight: 800; font-size: .74rem;
  color: #fff; padding: 7px 12px 7px 10px; z-index: 2;
}
.card__badge--discount {
  top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--hot));
  border-radius: 10px 10px 10px 2px;
  box-shadow: 0 8px 18px rgba(255, 46, 76, .35);
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 7px) 100%, 0 100%);
}
.card__badge--hit {
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #3AE98F, #0DA06A);
  border-radius: 999px; padding-inline: 14px;
  box-shadow: 0 8px 18px rgba(13, 160, 106, .35);
}

.card__quick {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; font-weight: 800; font-size: .86rem; color: #fff;
  background: linear-gradient(to top, rgba(10, 10, 16, .9), transparent);
  transform: translateY(100%); transition: transform .25s ease;
}
.card__quick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.card__link:hover .card__quick { transform: translateY(0); }

.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }

.card__rating {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--gold); font-size: .88rem;
}
.card__rating svg { width: 15px; height: 15px; fill: var(--gold); }
.card__rating span { color: var(--muted); font-weight: 600; font-size: .8rem; }

.card__title {
  font-weight: 700; font-size: 1rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}

.card__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price__now {
  font-family: var(--font-d); font-weight: 800; font-size: var(--fs-price);
  color: var(--accent); letter-spacing: .3px;
}
.price__old {
  color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px;
  font-weight: 600; font-size: .92rem; opacity: .75;
}

.card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; font-weight: 800; font-size: .9rem; color: var(--ink);
  transition: color .15s ease, gap .15s ease;
}
.card__cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.card__link:hover .card__cta { color: var(--accent); gap: 12px; }
.card__link:hover .card__cta svg { transform: translateX(2px); }

/* Пустое состояние */
.empty {
  text-align: center; padding: 60px 20px;
  border: 1.5px dashed var(--line); border-radius: var(--r);
}
.empty svg { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--muted); fill: none; stroke-width: 1.8; }
.empty h3 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; }
.empty p { color: var(--muted); margin: 8px 0 18px; }

/* ==========================================================================
   БЛОК ДОВЕРИЯ
   ========================================================================== */
.why { display: grid; gap: 18px; grid-template-columns: 1fr; }
.why__item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.why__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 138, 31, .18), rgba(255, 77, 28, .18));
  color: var(--accent); margin-bottom: 16px;
}
.why__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why__item h3 { font-family: var(--font-d); font-size: 1.02rem; font-weight: 700; }
.why__item p { color: var(--muted); font-weight: 500; margin-top: 8px; font-size: .95rem; }

/* ==========================================================================
   CTA-БАННЕР
   ========================================================================== */
.ctaband {
  background:
    radial-gradient(560px 300px at 90% 0%, rgba(255, 46, 76, .25), transparent 60%),
    linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fff;
}
.ctaband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: clamp(40px, 6vw, 64px); }
.ctaband__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.9rem); max-width: 22ch; text-wrap: balance; }
.ctaband__sub { margin-top: 10px; font-weight: 600; color: rgba(255, 255, 255, .85); }

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.footer {
  color: rgba(255, 255, 255, .72);
  background: linear-gradient(180deg, var(--graphite), #12121a);
  padding-block: clamp(44px, 6vw, 70px) 30px;
}
.footer__grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
.footer__about { margin-top: 16px; max-width: 42ch; font-weight: 500; font-size: .92rem; }

.social { display: flex; gap: 10px; margin-top: 20px; }
.social__link {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark);
  color: #fff; transition: transform .15s ease, background .2s ease;
}
.social__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social__link:hover { transform: translateY(-3px); background: var(--accent); border-color: transparent; }

.footer__col h4 { font-family: var(--font-d); font-size: .86rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer__col a { display: block; width: fit-content; font-weight: 600; font-size: .92rem; padding-block: 5px; transition: color .15s ease; }
.footer__col a:hover { color: var(--accent-2); }
.footer__col p { font-size: .9rem; font-weight: 500; }
.footer__mail { color: var(--accent-2); margin-top: 10px; }

.footer__disclaimer {
  margin-top: clamp(28px, 5vw, 44px); padding: 16px 18px;
  font-size: .84rem; line-height: 1.55; color: rgba(255, 255, 255, .55);
  border: 1px dashed var(--line-dark); border-radius: 12px;
}

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-size: .84rem; color: rgba(255, 255, 255, .5);
}
.footer__bottom a:hover { color: var(--accent-2); }

/* Кнопка «Наверх» */
.backtop {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  border: 0; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 28px rgba(255, 77, 28, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.backtop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { transform: translateY(-3px); }

/* ==========================================================================
   СТРАНИЦА ТОВАРА
   ========================================================================== */
.header--pp { background: rgba(245, 242, 235, .92); }
.header--pp .header__bar { flex-wrap: nowrap; }

.backbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .92rem; color: var(--ink);
  padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.backbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.backbtn:hover { color: var(--accent); border-color: rgba(255, 77, 28, .5); transform: translateX(-2px); }

.logo--pp { flex: 0 1 auto; justify-content: center; }
.header--pp .logo__img { width: 44px; } /* компактная шапка страницы товара */
.pp__spacer { flex: 1; }

.pp { padding-block: clamp(28px, 5vw, 54px) clamp(50px, 7vw, 80px); }

/* Hero товара */
.pp-hero { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: 1fr; }

/* Галерея */
.gallery__main {
  position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  background: #12121a; overflow: hidden;
}
.gallery__main a { display: block; width: 100%; cursor: zoom-in; }
.gallery__main img.ph { width: 100%; height: auto; object-fit: contain; display: block; }
.gallery__main svg.ph { width: 100%; height: 100%; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.gthumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
  border: 2px solid transparent; padding: 0; background: #12121a;
  transition: border-color .2s ease, transform .15s ease;
}
.gthumb img.ph { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s ease; }
.gthumb:hover { transform: translateY(-2px); }
.gthumb.is-active { border-color: var(--accent); }
.gthumb.is-active .ph { opacity: 1; }

/* Лайтбокс */
.lightbox {
  display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95); align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.lightbox.is-open { display: flex; }
.lightbox__content { position: relative; max-width: 95vw; max-height: 95vh; }
.lightbox__image { max-width: 100%; max-height: 95vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%; color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Информация о товаре */
.p-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-meta__cat {
  font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent);
}
.p-badge {
  font-family: var(--font-d); font-weight: 800; font-size: .72rem; color: #fff;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #3AE98F, #0DA06A);
}

.p-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin-top: 14px; text-wrap: balance; }
.p-desc { color: var(--muted); font-weight: 500; margin-top: 14px; max-width: 60ch; }

.p-rating { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.p-rating__stars { display: inline-flex; gap: 2px; }
.p-rating__stars svg { width: 18px; height: 18px; fill: var(--gold); }
.p-rating__stars svg.is-off { fill: var(--line); }
.p-rating__num { font-weight: 800; font-size: 1.05rem; }
.p-rating__count { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* Цена + таймер */
.p-price { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-block: 20px; border-block: 1px solid var(--line); }
.p-price__now { font-family: var(--font-d); font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.p-price__old { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2.5px; font-weight: 700; font-size: 1rem; }
.p-price__save {
  font-weight: 800; font-size: .82rem; color: #0c8a55;
  background: rgba(44, 229, 139, .18); border: 1px solid rgba(44, 229, 139, .35);
  padding: 5px 11px; border-radius: 999px;
}

.countdown { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.countdown__label { font-weight: 700; font-size: .86rem; color: var(--muted); margin-right: 4px; }
.countdown__cell {
  font-family: var(--font-d); font-weight: 800; font-size: 1.25rem; color: #fff;
  background: linear-gradient(160deg, var(--graphite-2), var(--graphite));
  min-width: 52px; text-align: center; padding: 10px 8px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.countdown__sep { font-family: var(--font-d); font-weight: 800; color: var(--accent); font-size: 1.2rem; }
.countdown__unit { display: block; font-family: var(--font-b); font-size: .62rem; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, .55); margin-top: 3px; }

/* Чек-лист преимуществ */
.checklist { margin-top: 22px; }
.checklist h3 { font-family: var(--font-d); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.checklist ul { display: grid; gap: 9px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.checklist li svg {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* CTA + ссылки на покупку */
.p-cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
.p-buy { margin-top: 26px; }
.p-buy__title { font-family: var(--font-d); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.p-buy__list { display: grid; gap: 12px; }
.btn--buy {
  justify-content: center; font-size: 1.05rem; padding: 18px 24px; border-radius: 16px;
  animation: glow 2.4s ease-in-out infinite;
}
.btn--buy b { font-weight: 900; }
@keyframes glow {
  0%, 100% { box-shadow: 0 12px 26px rgba(255, 77, 28, .35), 0 0 0 0 rgba(255, 77, 28, .45); }
  50% { box-shadow: 0 12px 30px rgba(255, 77, 28, .5), 0 0 0 12px rgba(255, 77, 28, 0); }
}
.p-cta__note { text-align: center; font-size: .84rem; font-weight: 600; color: var(--muted); }

/* ==========================================================================
   СЕКЦИИ ЛЕНДИНГА ТОВАРА
   ========================================================================== */
.pp-section { margin-top: clamp(48px, 7vw, 72px); }
.pp-section__head { margin-bottom: 28px; }
.pp-kicker { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); }

/* «О товаре» (HTML-блок) */
.pp-about {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-soft);
}
.pp-about h2, .pp-about h3, .pp-about h4 { font-family: var(--font-d); margin: 18px 0 8px; }
.pp-about h3 { font-size: 1.05rem; }
.pp-about p { margin: 0 0 12px; }
.pp-about ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.pp-about ul li { list-style: disc; }
.pp-about ol { list-style: decimal; padding-left: 20px; margin: 0 0 12px; }
.pp-about ol li { list-style: decimal; }
.pp-about a { color: var(--accent); text-decoration: underline; }
.pp-about img { border-radius: 12px; margin: 6px 0; }
.pp-about blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 14px 0; color: var(--muted); }
.pp-about table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.pp-about td, .pp-about th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

.why--pp { grid-template-columns: 1fr; }
.why__item .pp-why-icon svg { width: 30px; height: 30px; }

/* ==========================================================================
   ОБЩИЕ СТРАНИЦЫ (поиск, категории, обычные записи)
   ========================================================================== */
.content-page { padding-block: clamp(46px, 7vw, 84px); }

.page-content,
.entry-content {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-soft);
}
.page-content h1, .page-content h2, .page-content h3, .page-content h4,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-d); margin: 18px 0 8px; }
.page-content h1:first-child, .entry-content h1:first-child { margin-top: 0; }
.entry-content p, .page-content p { margin: 0 0 14px; }
.entry-content ul, .page-content ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.entry-content ul li, .page-content ul li { list-style: disc; }
.entry-content ol, .page-content ol { list-style: decimal; padding-left: 20px; }
.entry-content ol li, .page-content ol li { list-style: decimal; }
.entry-content a, .page-content a { color: var(--accent); text-decoration: underline; }
.entry-content img, .page-content img { border-radius: 12px; margin: 6px 0; }
.entry-content table, .page-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.entry-content td, .entry-content th, .page-content td, .page-content th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

.search-head__title { font-family: var(--font-d); font-weight: 800; font-size: var(--fs-h2); margin-bottom: 26px; }
.search-head__title b { color: var(--accent); }
.search-note { color: var(--muted); font-weight: 600; margin-bottom: 26px; }

.category-head { margin-bottom: 30px; }
.category-head__title { font-family: var(--font-d); font-weight: 800; font-size: var(--fs-h2); }
.category-head__desc { color: var(--muted); font-weight: 500; margin-top: 8px; }

/* ==========================================================================
   АДАПТИВ (планшет + десктоп)
   ========================================================================== */
@media (min-width: 640px) {
  .why { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .pp-hero { grid-template-columns: 1.05fr 1fr; }
  .why--pp { grid-template-columns: 1fr; gap: 18px; }
}

@media (min-width: 900px) {
  .search { flex: 0 1 420px; order: 0; }
  .nav { display: flex; }
  .burger { display: none; }
  .menu { display: none !important; }
  .backtop { right: 28px; bottom: 28px; }
}

@media (min-width: 1100px) {
  .why--pp { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   ДОСТУПНОСТЬ: отключаем анимации по предпочтению пользователя
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}