/* ИЗИ ПК — единая дизайн-система для главной, каталога и карточек товара. */
:root {
  --izi-container: 1200px;
  --izi-section-y: 36px;
  --izi-h1: clamp(40px, 5.2vw, 64px);
  --izi-title: clamp(30px, 3.6vw, 44px);
  --izi-sub: 16px;
  --izi-body: 14px;
  --izi-small: 13px;

  --izi-ink: #08040f;
  --izi-panel: #140a22;
  --izi-purple: #a855f7;
  --izi-purple-2: #6d28d9;
  --izi-cyan: #22d3ee;
  --izi-cream: #f6f4fa;
  --izi-text: #17121f;
  --izi-muted: #5d566b;
  --izi-line: #e8e3f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Общая сетка */
.container {
  width: min(var(--izi-container), calc(100% - 48px));
  margin: 0 auto;
}

/* Шапка — одинаковая на всех страницах */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 4, 15, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
}
.logo small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #9d93b2;
}
.logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  padding: 3px;
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #cfc7de;
}
.nav a:hover { color: #fff; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-social {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #d8c8ff;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.header-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.header-social:hover {
  color: #fff;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(196, 181, 253, .45);
}
.header-social.vk:hover {
  background: #2787f5;
  border-color: transparent;
}
.header-social.tg:hover {
  background: #229ed9;
  border-color: transparent;
}
.header-social:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}
.header-phone {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 14px;
  right: 14px;
  z-index: 79;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #12081f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.mobile-nav.open { display: grid; }
.mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #e9ddff;
}
.mobile-nav a:hover { background: rgba(168, 85, 247, .12); color: #fff; }

/* Кнопки — один размер на всех страницах */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--izi-purple), var(--izi-purple-2));
  box-shadow: 0 14px 34px rgba(124, 58, 237, .35);
}
.btn-primary:hover { box-shadow: 0 18px 44px rgba(124, 58, 237, .5); }
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}
.btn-light {
  color: #17121f;
  background: #fff;
  border-color: var(--izi-line);
}

/* Поля форм */
.field {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--izi-line);
  border-radius: 12px;
  background-color: #f8f6fc;
  color: var(--izi-text);
  outline: none;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field::placeholder { color: #8a94a8; }
.field:focus {
  border-color: var(--izi-purple);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .14);
}
select.field {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d566b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
textarea.field { min-height: 96px; padding: 12px 14px; resize: vertical; }

/* Заголовки и подзаголовки секций */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--izi-purple), var(--izi-cyan));
}
.section-title {
  margin: 12px 0 10px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: var(--izi-title);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-sub {
  margin: 0;
  font-size: var(--izi-sub);
  line-height: 1.7;
  color: var(--izi-muted);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.section-head .section-sub { margin-top: 0; }
.section-head .btn { flex: 0 0 auto; }
.section-actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: 10px; }
body.rubick .hero-v2 h1 { font-size: var(--izi-h1); }

/* Цены — тем же акцидентным шрифтом, что и на странице товара */
.lineup-price,
.card-price { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 800; letter-spacing: -.03em; }

/* Квадратное фото товара — одно на карточку */
body.rubick .lineup-media,
.card-media { height: auto; aspect-ratio: 1 / 1; }
body.rubick .lineup-card,
.card { min-height: 0; }
.lineup-media img,
.card-media img { filter: saturate(.92) contrast(1.04) brightness(.97); transition: transform .45s ease; }
body.rubick .lineup-media::after,
.card-media::after {
  background:
    radial-gradient(circle at 82% 10%, rgba(34, 211, 238, .1), transparent 46%),
    linear-gradient(180deg, rgba(168, 85, 247, .05), transparent 45%);
}
.lineup-card:hover .lineup-media img,
.card:hover .card-media img { transform: scale(1.04); }
.gallery img,
.review-photo,
.main-photo img { cursor: zoom-in; }

/* Просмотр фото */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 2, 10, .93);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }

/* Единый ритм секций главной */
body.rubick main > section:not(.hero-v2) {
  padding-top: var(--izi-section-y);
  padding-bottom: var(--izi-section-y);
}

/* Тексты карточек на главной — как на страницах товаров */
.feature p { font-size: var(--izi-body); line-height: 1.6; }
.step p { font-size: 13px; line-height: 1.55; }
.review p { font-size: var(--izi-body); line-height: 1.65; }
.quick-card small { font-size: 12px; }

/* Футер */
.footer {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: #05020a;
  color: #8d839f;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
}
.footer a { color: #b9a8d8; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
}
.footer-nav a:hover { color: #fff; }

/* Юридические страницы */
.legal-page { padding: 36px 0 56px; background: var(--izi-cream); color: var(--izi-text); }
.legal-page .container { max-width: 900px; }
.legal-page h1 { margin: 0 0 14px; font-family: "Unbounded", "Manrope", sans-serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.04em; }
.legal-page h2 { margin: 30px 0 10px; font-family: "Unbounded", "Manrope", sans-serif; font-size: 20px; line-height: 1.3; }
.legal-page p, .legal-page li { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: #3d465c; }
.legal-page ul, .legal-page ol { margin: 0 0 16px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: #6d28d9; text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { margin-bottom: 22px; font-size: 12px; color: #8a94a8; }
.legal-note { margin: 18px 0; padding: 14px 16px; border: 1px solid #e2d5ff; border-radius: 12px; background: #f0e9ff; color: #4c1d95; font-size: 13px; line-height: 1.65; }
.legal-back { margin-top: 24px; }
.legal-back a { font-weight: 800; text-decoration: none; }

/* Согласие в формах */
.consent-check { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; line-height: 1.5; color: #8a94a8; cursor: pointer; }
.consent-check input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: var(--izi-purple); cursor: pointer; }
.consent-check a { color: #c4b5fd; text-decoration: underline; }
body.rubick .quiz-form .field:focus { background-color: rgba(255, 255, 255, .07); color: #fff; }
.contact-form .consent-check,
.checkout-form .consent-check { color: #5d566b; }
.contact-form .consent-check a,
.checkout-form .consent-check a { color: #6d28d9; }

/* Cookie notice */
.cookie-banner { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 180; display: none; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(18,8,31,.97); color: #d8c8ff; box-shadow: 0 20px 60px rgba(0,0,0,.5); backdrop-filter: blur(16px); font-size: 11px; line-height: 1.5; }
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: #c4b5fd; text-decoration: underline; }
.cookie-banner button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #a855f7, #6d28d9); color: #fff; font-weight: 800; }
@media (min-width: 800px) { .cookie-banner { left: 14px; right: auto; max-width: 420px; } }

/* Мобильная панель покупки */
.product-buybar { display: none; }
@media (max-width: 760px) {
  body.product-page { padding-bottom: 78px; }
  .product-buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(8,4,15,.97); backdrop-filter: blur(16px); box-shadow: 0 -12px 40px rgba(0,0,0,.4); }
  .product-buybar .pb-price { flex: 1; min-width: 0; }
  .product-buybar .pb-price span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8d839f; }
  .product-buybar .pb-price b { display: block; margin-top: 2px; font-family: "Unbounded", sans-serif; font-size: 13px; line-height: 1.15; color: #fff; white-space: nowrap; }
  .product-buybar .btn { min-height: 44px; padding: 0 12px; border-radius: 11px; font-size: 11px; }
  .product-buybar .btn-ghost { flex: 0 0 auto; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand b { display: block; font-family: "Unbounded", "Manrope", sans-serif; font-size: 11px; color: #fff; }
.footer-brand small { display: block; margin-top: 2px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #8d839f; }
.footer-copy { font-size: 10px; color: #8d839f; }

/* Яндекс Сплит — аккуратная пометка рядом с ценой */
.lineup-price-wrap,
.card-price-wrap { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.split-price {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 7px 4px 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, rgba(47, 191, 74, .16), rgba(229, 37, 33, .09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .18);
  white-space: nowrap;
  color: #fff;
  cursor: default;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.split-price svg { width: 20px; height: 20px; flex: 0 0 20px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .28)); }
.split-price b { display: block; font-size: 8px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; color: #fff; }
.split-price small { display: block; font-size: 7px; font-weight: 600; line-height: 1.15; color: #9fe6b0; }
.card:hover .split-price,
.lineup-card:hover .split-price {
  border-color: rgba(47, 191, 74, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 0 1px rgba(47, 191, 74, .12), 0 4px 14px rgba(0, 0, 0, .24);
}
@media (max-width: 380px) {
  .split-price { gap: 4px; padding: 3px 5px; }
  .split-price svg { width: 16px; height: 16px; flex-basis: 16px; }
  .split-price b { font-size: 7px; }
  .split-price small { font-size: 6px; }
}

/* ---------- Страница товара ---------- */
.breadcrumbs {
  width: min(var(--izi-container), calc(100% - 48px));
  max-width: var(--izi-container);
  margin: 0 auto;
  padding: 18px 0 0;
  font-size: 12px;
  color: #8d839f;
}
.breadcrumbs a { color: #c4b5fd; }
.breadcrumbs a:hover { color: #fff; }

.product {
  position: relative;
  padding: 28px 0 var(--izi-section-y);
  background:
    radial-gradient(900px 600px at 18% 10%, rgba(124, 58, 237, .42), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(34, 211, 238, .1), transparent 60%),
    var(--izi-ink);
}
.pgrid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
  width: min(var(--izi-container), calc(100% - 48px));
  max-width: var(--izi-container);
  margin: 0 auto;
  padding: 0;
}
.gallery { position: sticky; top: 94px; }
.main-photo { min-height: 0; aspect-ratio: 1 / 1; }
.main-photo img { height: 100%; min-height: 0; }
.info h1 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.info .tier { font-size: 11px; letter-spacing: .18em; }
.photo-note { font-size: 12px; line-height: 1.55; }
.variants-hint { font-size: 12px; line-height: 1.55; }
.trust div { font-size: 11px; }

.content {
  padding: var(--izi-section-y) 0 40px;
  background: var(--izi-cream);
  color: var(--izi-text);
}
.content .container {
  width: min(var(--izi-container), calc(100% - 48px));
  max-width: var(--izi-container);
}
.content-block { margin-bottom: var(--izi-section-y); }
.content-block > .section-title { margin: 0 0 10px; }
.content-block > .section-sub { margin: 0 0 20px; }
.content .why,
.content .specs,
.content .includes,
.content .faq,
.content .delivery { margin-bottom: 0; }

.why-card h3 { font-size: 17px; }
.why-card p { font-size: var(--izi-body); line-height: 1.6; }
.specs td { font-size: var(--izi-body); }
.include b { font-size: var(--izi-body); }
.include span { font-size: var(--izi-small); }
.faq-item b { font-size: 15px; }
.faq-item p { font-size: var(--izi-body); line-height: 1.6; }
.delivery-card h3 { font-size: 17px; }
.delivery-card p { font-size: var(--izi-body); line-height: 1.6; }
.cta h2 { font-size: 28px; }
.cta p { font-size: var(--izi-body); }

/* ---------- Каталог ---------- */
.hero {
  position: relative;
  padding: var(--izi-section-y) 0 24px;
  background:
    radial-gradient(900px 600px at 18% 10%, rgba(124, 58, 237, .42), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(34, 211, 238, .1), transparent 60%),
    var(--izi-ink);
}
.hero h1 {
  margin: 12px 0 14px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: var(--izi-h1);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.04em;
  max-width: 800px;
}
.hero p {
  max-width: 760px;
  margin: 0;
  font-size: var(--izi-sub);
  line-height: 1.7;
  color: #b9a8d8;
}
.filters { padding: 0 0 20px; }
.grid { gap: 16px; padding-bottom: var(--izi-section-y); }

/* Магазин + карта */
.map-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.map-photo { height: 420px; overflow: hidden; border: 1px solid var(--izi-line); border-radius: 22px; background: #e9e5f2; box-shadow: 0 18px 40px rgba(24, 10, 48, .08); }
.map-photo img { width: 100%; height: 100%; object-fit: cover; }
main .note { font-size: 12px; line-height: 1.6; padding: 0 0 var(--izi-section-y); }

/* Карточки каталога — та же сетка, что у линейки на главной */
.lineup-specs,
.card-specs { align-items: flex-start; }
.card {
  min-height: 418px;
  border-radius: 24px;
}
.card-top { padding: 16px 16px 0; }
.card-body { padding: 0 16px 16px; }
.tag { font-size: 9px; }
.card-name { font-size: 19px; min-height: 44px; }
.card-code { font-size: 9px; }
.card-specs { min-height: 44px; }
.card-spec { font-size: 9px; padding: 4px 6px; }
.card-price { font-size: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .header-phone { display: none; }
}

@media (max-width: 1040px) {
  .nav,
  .header-phone { display: none; }
  .header-inner { justify-content: space-between; }
  .burger { display: flex; }
}

@media (max-width: 900px) {
  .pgrid { grid-template-columns: 1fr; gap: 26px; }
  .gallery { position: static; }
  .map-grid { grid-template-columns: 1fr; }
  .map-photo { height: 320px; }
}

@media (max-width: 680px) {
  :root {
    --izi-section-y: 28px;
    --izi-h1: clamp(32px, 9vw, 42px);
    --izi-title: clamp(27px, 8vw, 36px);
  }
  .container,
  .breadcrumbs,
  .pgrid,
  .content .container {
    width: min(100% - 28px, var(--izi-container));
  }
  .header-inner { min-height: 64px; }
  .logo { font-size: 17px; }
  .logo small { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn { display: none; }
  .header-socials { gap: 5px; }
  .header-social { width: 32px; height: 32px; flex-basis: 32px; }
  .header-social svg { width: 15px; height: 15px; }
  .mobile-nav { top: 64px; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 16px; }
  .content { padding-top: var(--izi-section-y); padding-bottom: var(--izi-section-y); }
  .content-block { margin-bottom: var(--izi-section-y); }
  .cta { flex-direction: column; align-items: flex-start; }
  .info h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .main-photo, .main-photo img { height: auto; min-height: 0; }

  /* Компактная сетка каталога на телефоне */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid .card { border-radius: 16px; min-height: 0; }
  .grid .card-top { padding: 10px 10px 0; }
  .grid .card-body { padding: 0 10px 10px; }
  .grid .card-name { font-size: 15px; line-height: 1.05; min-height: 38px; }
  .grid .card-code { font-size: 7px; }
  .grid .card-specs { display: none; }
  .grid .card-price { font-size: 15px; }
  .grid .card-btn { width: 28px; height: 28px; flex: 0 0 28px; font-size: 13px; }
  .grid .tag { font-size: 7px; padding: 4px 6px; }
}

/* ---------- Полировка дизайна (ноябрь 2026) ---------- */
::selection { background: rgba(168, 85, 247, .28); color: #fff; }

/* Плавное появление блоков при скролле */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16, .84, .3, 1), transform .7s cubic-bezier(.16, .84, .3, 1);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }

/* Блик по основной кнопке при наведении */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 120%; }

/* Кнопка «наверх» */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(18, 8, 31, .84);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: rgba(109, 40, 217, .92); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 760px) { body.product-page .to-top { bottom: 86px; } }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary::after { display: none; }
  .to-top { transition: none; }
}
