/* ===================================================================
   Страничные стили
   =================================================================== */

/* ---------- HERO: два баннера (промо + товар дня) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 340px;   /* карточка «товар дня» — узкая фикс ширина */
  grid-template-rows: 446px;          /* фикс высоты: коробки разного размера не меняют баннер */
  gap: 18px;
  align-items: stretch;
}
/* если «товара дня» нет — баннер на всю ширину, пустого бокса не остаётся */
.hero-split--solo { grid-template-columns: 1fr; }
.hero-split--solo > .deal-card { display: none; }

/* отступ сверху для героя: баннер стоит ПОД шапкой в покое;
   при скролле он уезжает под полупрозрачную шапку, затем шапка прячется вверх */
.hero-container { padding-top: 24px; }

/* ---------- Карусель баннеров ---------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}
.hero-slides { display: flex; height: 100%; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slide { min-width: 100%; }

.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(13, 14, 16, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--t-fast);
}
/* жёлтая только при нажатии — иначе на тач-экранах :hover «залипает» после тапа */
.hero-arrow:active { background: var(--brand-yellow); color: var(--on-yellow); border-color: transparent; }
@media (hover: hover) {
  .hero-arrow:hover { background: var(--brand-yellow); color: var(--on-yellow); border-color: transparent; }
}
.hero-arrow--prev { left: 6px; }
.hero-arrow--prev svg { transform: rotate(180deg); }
.hero-arrow--next { right: 6px; }

.hero-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.4);
  transition: var(--t-fast);
}
.hero-dots button.on { width: 26px; background: var(--brand-yellow); }
/* пейджер вынесен под карусель (моб): не абсолютный, по центру, точки видны на фоне страницы */
.hero-dots--ext {
  position: static; left: auto; bottom: auto; transform: none;
  justify-content: center; width: 100%; margin-top: 12px;
}
.hero-dots--ext button { background: var(--border-strong); }
.hero-dots--ext button.on { background: var(--brand-yellow); }

/* ---------- Карточка «Товар дня» ---------- */
.deal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.deal-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; padding-right: 16px; }
/* таймер в шапке «товара дня» — компактнее, чтобы был явный отступ от края карточки */
.deal-card__head .countdown b { font-size: 0.9rem; padding: 4px 6px; min-width: 26px; }
.deal-card__head .countdown i { margin: 0 1px; }
.deal-card__head h3 { font-size: 1.18rem; white-space: nowrap; }
.countdown { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); }
.countdown b {
  background: var(--surface-3);
  color: var(--text);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown i { color: var(--text-faint); font-style: normal; font-weight: 800; }

/* Карточка с фото товара: фото сверху (заполняет высоту), инфо снизу */
.deal-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 14px 0;
  min-height: 0;
  view-transition-name: dealbody;   /* свайп через View Transitions API */
}

/* Плавный свайп «товара дня» (View Transitions API): контент уезжает/приезжает,
   шапка/таймер/стрелки остаются на месте. Crossfade + горизонтальный сдвиг. */
::view-transition-group(dealbody) { animation-duration: 0.45s; }
::view-transition-old(dealbody),
::view-transition-new(dealbody) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  mix-blend-mode: normal;
}
html[data-deal-dir="next"]::view-transition-old(dealbody) { animation-name: dealOutLeft; }
html[data-deal-dir="next"]::view-transition-new(dealbody) { animation-name: dealInRight; }
html[data-deal-dir="prev"]::view-transition-old(dealbody) { animation-name: dealOutRight; }
html[data-deal-dir="prev"]::view-transition-new(dealbody) { animation-name: dealInLeft; }
@keyframes dealOutLeft  { to   { transform: translateX(-9%); opacity: 0; } }
@keyframes dealInRight  { from { transform: translateX(9%);  opacity: 0; } }
@keyframes dealOutRight { to   { transform: translateX(9%);  opacity: 0; } }
@keyframes dealInLeft   { from { transform: translateX(-9%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(dealbody),
  ::view-transition-old(dealbody),
  ::view-transition-new(dealbody) { animation-duration: 0.01ms; }
}
.deal-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;            /* строго клипуем — фото не вылезает за бокс */
  display: block;
}
.deal-card__media::before {                 /* мягкое жёлтое свечение за фото */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 64%; height: 78%;
  transform: translate(-50%, -50%);
  background: none;            /* свечение/«подложка» за обложкой убрана — просто фото */
  filter: none;
}
.deal-card__media img, .deal-card__media svg {
  position: absolute;
  inset: 8px 6px 6px;          /* область фото внутри бокса */
  width: calc(100% - 12px);
  height: calc(100% - 14px);
  object-fit: contain;         /* вписывается, сохраняя пропорции, без переполнения */
  object-position: center 62%; /* фото чуть ниже */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));   /* лёгкая тень-«земля», без серой подложки */
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.deal-card__media svg { color: var(--brand-yellow); }
.deal-card__media:hover img { transform: translateY(-4px) scale(1.03); }
/* аксессуары (не игры-коробки) — заметно меньше, чтобы не доминировали */
.deal-card__media:not(.is-cover) img { inset: 16px 19% 14px; width: 62%; height: calc(100% - 30px); }
.deal-card__off {
  position: absolute;
  top: 58px; left: 8px;        /* у левого края, под заголовком */
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  background: var(--accent-red);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  /* без свечения */
}

.deal-card__info { display: flex; flex-direction: column; gap: 6px; }
.deal-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 0.78rem; color: var(--text-muted);
}
.deal-card__meta .dm-plat { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-card__rate { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.deal-card__rate svg { color: var(--brand-yellow); }

.deal-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.deal-card__title:hover { color: var(--brand-yellow); }

.deal-card__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.deal-card__price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.deal-card__price .price__now { font-family: var(--font-display); font-weight: 800; font-size: 2.05rem; letter-spacing: -0.01em; }
.deal-card__price .price__old { font-size: 1.1rem; color: var(--text-faint); text-decoration: line-through; }
.deal-card__buy .btn--icon { flex-shrink: 0; width: 64px; height: 44px; aspect-ratio: auto; border-radius: var(--r-lg); }
.deal-card__buy .btn--icon svg { width: 22px; height: 22px; }

/* Стрелки — по краям карточки, по центру вертикали */
.deal-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  /* гласморфизм: светло-серое матовое стекло #F8F8FF */
  background: rgba(248, 248, 255, 0.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--brand-black);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
  transition: var(--t-fast);
}
.deal-nav:hover {
  background: #DCDCDC;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.24);
}
.deal-nav--prev { left: 3px; }
.deal-nav--prev svg { transform: rotate(180deg); }
.deal-nav--next { right: 3px; }
.deal-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.deal-dots i { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--surface-3); transition: var(--t-fast); }
.deal-dots i.on { width: 20px; background: var(--brand-yellow); }

/* Мобильная карусель: слайд «товара дня» чередуется с баннерами (как в veltoo.az).
   Горизонтальная компоновка: фото слева, инфо справа; высота как у баннера. */
@media (max-width: 980px) {
  .hero-deal-slide { display: flex; min-width: 100%; }
  .deal-card--slide {
    flex: 1; min-height: 300px;
    border-radius: var(--r-xl);
    border: 0;   /* слайд уже внутри рамки карусели — вторая обводка не нужна */
  }
  /* фото сверху (вертикально), название под ним — длинные уходят под многоточие,
     так фото крупное и меньше задевает боковые стрелки */
  .deal-card--slide .deal-card__body {
    flex-direction: column; align-items: center; gap: 8px;
    padding: 8px 16px 4px;
    view-transition-name: none;   /* несколько карточек — общее имя недопустимо */
  }
  .deal-card--slide .deal-card__media {
    width: 100%; align-self: stretch; height: 200px; min-height: 0;
    border-radius: var(--r-lg);
  }
  .deal-card--slide .deal-card__info { width: 100%; gap: 4px; text-align: center; }
  .deal-card--slide .deal-card__meta { justify-content: center; }
  .deal-card--slide .deal-card__title { -webkit-line-clamp: 1; font-size: 1.05rem; }
  .deal-card--slide .deal-card__price .price__now { font-size: 1.7rem; }
  /* цена + корзина — отдельной строкой на всю ширину снизу */
  .deal-card--slide .deal-card__buy--slide {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 4px 16px 16px;
  }
}
@media (max-width: 540px) {
  .deal-card--slide .deal-card__price .price__now { font-size: 1.5rem; }
  .deal-card--slide .deal-card__buy .btn--icon { width: 54px; height: 42px; }
}

.hero-banner {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 2.6vw, 36px) clamp(44px, 4.2vw, 56px);
  min-height: 446px;
}
/* Слайды по платформам — сплошные бренд-цвета (без узоров) */
.hero-banner--ps       { background: linear-gradient(120deg, #0072d6 0%, #0053a6 100%); }       /* Sony синий */
.hero-banner--xbox     { background: linear-gradient(120deg, #1aa11a 0%, #0c6610 100%); }       /* Microsoft зелёный */
.hero-banner--nintendo { background: linear-gradient(120deg, #e8202a 0%, #b3000e 100%); }       /* Nintendo красный */
.hero-banner__copy { position: relative; z-index: 2; padding-left: clamp(12px, 1.6vw, 26px); color: #fff; } /* баннер всегда цветной — белый текст в любой теме */
/* фирменный лого-вордмарк в баннере — все три приведены к одной высоте */
.hero-brand { height: 19.5px; width: auto; display: block; margin-bottom: 14px; }   /* моб: −35% */
@media (min-width: 768px) { .hero-brand { height: 24px; } }   /* веб без изменений */
/* лого PS (чёрное) и Xbox (тёмно-зелёное) в файлах тёмные → делаем белыми для контраста;
   Nintendo светлый — не трогаем */
.hero-banner--ps .hero-brand,
.hero-banner--xbox .hero-brand { filter: brightness(0) invert(1); }
.hero-banner h2 { margin: 8px 0 10px; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; }
.hero-banner h2 .hl { color: var(--brand-yellow); }
.hero-banner .lead { font-size: clamp(0.98rem, 1.2vw, 1.12rem); color: rgba(255, 255, 255, 0.85); max-width: 430px; }

.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }   /* кнопка опущена ниже */
.hero-cta .btn { padding: 10px 20px; font-size: 0.9rem; }

.hero-banner__visual { position: relative; display: grid; place-items: center; height: 100%; min-height: 120px; z-index: 1; }
.hero-consoles {
  width: 100%;
  max-height: 352px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
}
.hero-consoles--sub { max-height: 231px; width: auto; max-width: 72%; }

/* Иконка-плейсхолдер в слайдах без фото */
.hero-glyph { display: grid; place-items: center; width: 100%; height: 100%; }
.hero-glyph svg {
  width: auto; height: 64%;
  max-height: 220px; max-width: 64%;
  color: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
}

/* Слайд «новые игры»: три обложки веером */
.hero-banner__visual--covers { perspective: 900px; }
.hero-cover {
  position: absolute;
  width: 43%;
  max-height: 270px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.hero-cover--1 { z-index: 3; transform: rotate(-8deg) translateX(-46%); }
.hero-cover--2 { z-index: 2; transform: translateY(-6px); }
.hero-cover--3 { z-index: 1; transform: rotate(8deg) translateX(46%); }
/* обложки в баннерах PS и Xbox — на 10% крупнее */
.hero-banner--ps .hero-cover,
.hero-banner--xbox .hero-cover { width: 47.3%; max-height: 297px; }

/* ---------- Лента преимуществ ---------- */
.usp-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
.usp {
  background: var(--bg);
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
}
.usp .ic {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 210, 30, 0.12);
  color: var(--brand-yellow);
}
.usp strong { display: block; font-size: 0.95rem; }
.usp span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Промо-баннер аренды ---------- */
.rent-promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--accent-blue-deep), #0a2a5e);
  border: 1px solid var(--border-strong);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.rent-promo::after { display: none; }   /* радиальный блик в углу убран */
.rent-promo .eyebrow { color: #fff; }
.rent-promo .eyebrow::before { background: #fff; }
.rent-promo { color: #fff; } /* блок всегда синий — белый текст в любой теме */
.rent-promo h2 { margin: 10px 0 14px; }
.rent-promo p { color: rgba(255, 255, 255, 0.85); max-width: 460px; }
.rent-steps { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.rent-step { display: flex; gap: 14px; align-items: flex-start; }
.rent-step .n {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--brand-yellow); color: var(--on-yellow);
  font-family: var(--font-display); font-weight: 800;
}
.rent-step strong { display: block; }
.rent-step span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Полоса CTA с контактами ---------- */
.cta-band {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Заголовок страницы / хлебные крошки ---------- */
.page-head {
  padding-block: 52px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.breadcrumbs { display: flex; gap: 9px; align-items: center; font-size: 0.95rem; color: var(--text-faint); margin-bottom: 16px; flex-wrap: wrap; }
/* «голый» page-head — только хлебные крошки (каталог) */
.page-head--bare { padding-block: 28px 0; background: transparent; border-bottom: none; }
.page-head--bare .breadcrumbs { margin-bottom: 0; }
/* крошки на страницах без page-head (товар) — отступ от шапки */
[data-page="product"] #product-root { padding-top: 28px; }
.breadcrumbs a:hover { color: var(--brand-yellow); }
.breadcrumbs .sep { opacity: 0.5; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: var(--text-muted); margin-top: 8px; max-width: 640px; }

/* ---------- Раскладка каталога ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 32px;
  align-items: start;
}
.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.filters__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; }
.filters__title { font-family: var(--font-display); font-size: 1.1rem; }
.filters__reset {
  border: none; background: none; cursor: pointer; padding: 0;
  color: var(--accent-red); font-weight: 700; font-size: 0.82rem;
}
.filters__reset:hover { text-decoration: underline; }

/* строка поиска */
.filter-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 0 14px; margin-bottom: 6px;
}
.filter-search svg { width: 17px; height: 17px; color: var(--text-faint); flex: none; }
.filter-search input { flex: 1; border: none; background: none; padding: 11px 0; font: inherit; color: var(--text); }
.filter-search input:focus { outline: none; }

/* сворачиваемая группа */
.filter-group { border-top: 1px solid var(--border); }
.filter-group__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 15px 0;
  font-family: var(--font-display); font-size: 0.92rem; color: var(--text);
}
.filter-group__head svg { width: 18px; height: 18px; color: var(--text-faint); transition: transform var(--t-fast); }
.filter-group.is-open .filter-group__head svg { transform: rotate(180deg); }
.filter-group__body { display: none; padding-bottom: 16px; }
.filter-group.is-open .filter-group__body { display: block; }

/* подпись-пояснение под заголовком фильтра */
.filter-note {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px; padding: 6px 9px;
  background: var(--surface-2, rgba(127,127,127,0.08)); border-radius: 9px;
  color: var(--text-muted); font-size: 0.74rem; font-weight: 600; line-height: 1.3;
}
.filter-note svg { width: 14px; height: 14px; flex: none; color: var(--brand-yellow); }

/* опция-чекбокс */
.filter-opt {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  cursor: pointer; color: var(--text-muted); font-size: 0.9rem; user-select: none;
}
.filter-opt:hover { color: var(--text); }
.filter-opt input { position: absolute; opacity: 0; pointer-events: none; }
.filter-opt__box {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-strong, var(--border)); background: var(--bg-elev);
  display: grid; place-items: center; transition: all var(--t-fast);
}
.filter-opt--radio .filter-opt__box { border-radius: 50%; }
.filter-opt__box::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-black); transform: scale(0); transition: transform var(--t-fast);
}
.filter-opt--radio .filter-opt__box::after { border-radius: 50%; }
.filter-opt.is-checked .filter-opt__box { background: var(--brand-yellow); border-color: var(--brand-yellow); }
.filter-opt.is-checked .filter-opt__box::after { transform: scale(1); }
.filter-opt.is-checked .filter-opt__name { color: var(--text); font-weight: 600; }
.filter-opt__name { display: flex; align-items: center; gap: 5px; }
.filter-opt .cnt { margin-left: auto; font-size: 0.76rem; color: var(--text-faint); }
.rating-stars svg { width: 14px; height: 14px; color: var(--brand-yellow); }

/* диапазон цены */
.price-range { padding-top: 4px; }
.price-fields { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 16px; }
.price-fields label { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.price-fields span { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.price-fields input {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 10px; font: inherit; font-weight: 600; color: var(--text);
}
.price-fields input:focus { outline: none; border-color: var(--brand-yellow); }
.price-dash { padding-bottom: 9px; color: var(--text-faint); }
.range-slider { position: relative; height: 22px; margin: 0 9px; }
.range-slider::before {
  content: ""; position: absolute; left: -9px; right: -9px; top: 9px; height: 4px;
  background: var(--border); border-radius: 4px;
}
.range-fill { position: absolute; top: 9px; height: 4px; background: var(--brand-yellow); border-radius: 4px; }
.range-input {
  position: absolute; left: -9px; right: -9px; top: 0; width: calc(100% + 18px);
  height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand-black);
  border: 3px solid var(--brand-yellow); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.range-input::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-black); border: 3px solid var(--brand-yellow); cursor: pointer;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.catalog-toolbar .result-count { color: var(--text-muted); font-size: 0.9rem; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }

/* кастомный селект */
.select { position: relative; }
.select__btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 9px 16px;
  font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--text); cursor: pointer;
  transition: border-color var(--t-fast);
}
.select__btn:hover { border-color: var(--border-strong, var(--text-faint)); }
.select.is-open .select__btn { border-color: var(--brand-yellow); }
.select__btn svg { width: 16px; height: 16px; color: var(--text-faint); transition: transform var(--t-fast); flex: none; }
.select.is-open .select__btn svg { transform: rotate(180deg); }
.select__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; z-index: 40; box-shadow: 0 16px 40px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.select.is-open .select__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.select__opt {
  display: block; width: 100%; text-align: left; white-space: nowrap;
  background: none; border: none; border-radius: 9px; padding: 10px 14px;
  font: inherit; color: var(--text-muted); cursor: pointer; transition: all var(--t-fast);
}
.select__opt:hover { background: var(--bg-elev); color: var(--text); }
.select__opt.is-active { background: var(--brand-yellow); color: var(--brand-black); font-weight: 700; }

.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
/* размер в один уровень с селектом сортировки (на моб. стоят рядом) */
.filters-toggle { display: none; padding: 9px 18px; font-size: 0.9rem; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--text-faint); }

/* ---------- Карточка товара (страница) ---------- */
/* страница товара читается лучше в ограниченной ширине, а не на всю простыню */
.product-page .container { max-width: 1180px; }
.product {
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-block: 32px;
  align-items: start;
}
/* без min-width:0 колонка 1fr=minmax(auto,1fr) раздувается min-content'ом каруселей → горизонтальное переполнение */
.product-info { min-width: 0; }
.product-rails, .rail, .rail__track { min-width: 0; max-width: 100%; }
.product-media { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.product-gallery {
  position: relative;
  background: transparent;        /* без серой подложки — просто фото */
  border: 0;
  border-radius: var(--r-xl);
  aspect-ratio: 87 / 110;   /* портретная рамка под диск; одинакова во всех состояниях — без «прыжка» при переключении медиа */
  display: grid;
  place-items: center;
  padding: 4%;
  overflow: hidden;
}
.gallery-stage { width: 100%; height: 100%; display: grid; place-items: center; }
.gallery-stage svg, .gallery-stage img { width: auto; height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); }
/* обложка диска — портретная карточка под пропорции коробки (≈348/440), диск в полный рост */
.product-gallery--cover { aspect-ratio: 87 / 110; padding: 6%; }
.product-gallery--cover .gallery-stage { width: 100%; height: 100%; }
.product-gallery--cover .gallery-stage img {
  width: 100%; height: 100%; max-width: none;
  object-fit: contain; border-radius: 8px;
}
/* видео-режим: широкий кадр 16:9 */
.product-gallery.is-video { aspect-ratio: 87 / 110; padding: 6%; }
.product-gallery.is-alt { aspect-ratio: 87 / 110; padding: 6%; }   /* та же портретная рамка, что и диск — высота не меняется */
/* доп. фото и видео прижаты к НИЗУ рамки (на уровне нижнего края диска), по центру по горизонтали */
.product-gallery.is-alt .gallery-stage,
.product-gallery.is-video .gallery-stage { align-items: end; }
.product-gallery.is-alt .gallery-stage img { object-position: center bottom; }
.product-gallery.is-video .gallery-stage iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; display: block; }
/* скидка показывается только на обложке (главном фото), не на скринах/видео */
.product-gallery.is-video .product-disc,
.product-gallery.is-alt .product-disc { display: none; }

/* главное фото открывается во весь экран — свой лёгкий лайтбокс (тап по фото) */
.gallery-stage img { cursor: zoom-in; filter: none; }   /* без тени-«подложки» — просто фото */

.lbx {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; grid-template-rows: 1fr auto;
  background: rgba(8, 9, 11, 0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s ease;
}
.lbx.is-open { opacity: 1; }
.lbx__stage {
  grid-row: 1; margin: 0; min-height: 0;
  display: grid; place-items: center; padding: 8px;   /* меньше отступ — фото крупнее */
}
.lbx__stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lbx__stage img.is-in { opacity: 1; transform: none; }
.lbx__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
}
.lbx__close svg { width: 22px; height: 22px; }
.lbx__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--t-fast);
}
.lbx__nav:active { background: var(--brand-yellow); color: var(--on-yellow); }
.lbx__nav svg { width: 20px; height: 20px; }
.lbx__prev { left: 12px; }
.lbx__prev svg { transform: rotate(180deg); }
.lbx__next { right: 12px; }
.lbx__bar {
  grid-row: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem; font-weight: 600;
}
.lbx__count { color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
body.lbx-open { overflow: hidden; }

/* миниатюры — лента с прокруткой стрелками */
.gallery-thumbs-wrap { display: flex; align-items: center; gap: 8px; }
.gallery-thumbs {
  display: flex; gap: 10px; flex: 1; min-width: 0;
  overflow-x: auto; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;            /* инерционный свайп на iOS */
  scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 2px;
}
.gallery-thumbs .gallery-thumb { scroll-snap-align: start; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
/* на тач-устройствах листаем свайпом — стрелки не нужны */
@media (hover: none) {
  .gallery-thumbs-wrap .thumbs-arrow { display: none !important; }
}
.thumbs-arrow {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: var(--t-fast);
}
.gallery-thumbs-wrap.has-scroll .thumbs-arrow { display: inline-flex; }
.thumbs-arrow:hover:not(:disabled) { background: var(--bg-elev); border-color: var(--border-strong); }
.thumbs-arrow:disabled { opacity: 0.35; cursor: default; }
.thumbs-arrow svg { width: 18px; height: 18px; }
.thumbs-arrow--prev svg { transform: rotate(90deg); }
.thumbs-arrow--next svg { transform: rotate(-90deg); }
.gallery-thumb {
  position: relative;
  width: 108px; aspect-ratio: 16 / 9;   /* прямоугольные — под ландшафтные скрины/видео */
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid transparent;     /* без серой обводки/фона — только фото */
  background: transparent;
  flex-shrink: 0;
  transition: var(--t-fast);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* рамка только у выбранной — толстая жёлтая с внутренним отступом-«фреймом» */
.gallery-thumb.is-active { border-color: var(--brand-yellow); border-width: 3px; padding: 2px; background: var(--bg-elev); }
.gallery-thumb.is-active img { border-radius: 9px; }
.gallery-thumb--video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.gallery-thumb__play {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  color: #fff;
}
.gallery-thumb__play svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.product-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 12px 0; }
.product-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; }
.product-price-row { display: flex; align-items: baseline; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
/* сначала зачёркнутая старая цена, затем текущая; обе крупнее */
.product-price-row .price__now { order: 0; font-size: 2.5rem; }
.product-price-row .price__old { order: 1; font-size: 1.75rem; margin-left: 4px; }
.product-price-row .product-stock { order: 2; margin-left: 4px; }

/* Переключатель Купить / Арендовать — Apple Liquid Glass (как на главной) */
.mode-switch {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: var(--r-pill);
  margin: 8px 0 22px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 32px -10px rgba(17, 24, 39, 0.2),
    inset 0 2px 2px -1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px -1px rgba(17, 24, 39, 0.06);
}
[data-theme="dark"] .mode-switch {
  background: rgba(40, 42, 48, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 32px -10px rgba(0, 0, 0, 0.65),
    inset 0 2px 2px -1px rgba(255, 255, 255, 0.18),
    inset 0 -2px 4px -1px rgba(0, 0, 0, 0.35);
}
.mode-switch::before {
  content: ""; position: absolute; top: 1px; left: 1px; right: 1px; height: 48%;
  border-radius: var(--r-pill) var(--r-pill) 22px 22px / var(--r-pill) var(--r-pill) 11px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  pointer-events: none; z-index: 3;
}
[data-theme="dark"] .mode-switch::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); }
.mode-switch__glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--r-pill);
  opacity: 0; transition: opacity 0.3s ease;
  /* значения свечения как на главной (.plat-switch): светлая 0.90 / тёмная 0.15 */
  background: radial-gradient(circle 85px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.90), transparent 100%);
  mix-blend-mode: overlay;
}
[data-theme="dark"] .mode-switch__glare {
  background: radial-gradient(circle 85px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.15), transparent 100%);
}
.mode-switch:hover .mode-switch__glare { opacity: 1; }
/* скользящая «пилюля»: жёлтая для покупки, синяя для аренды */
.mode-switch__pill {
  position: absolute; top: 0; left: 0; z-index: 1; width: 0; height: 0;
  border-radius: var(--r-pill);
  background: var(--brand-yellow);
  box-shadow: 0 4px 14px rgba(255, 210, 30, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    width 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    height 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    background 0.35s ease, box-shadow 0.35s ease;
}
.mode-switch__pill--rent { background: var(--accent-blue); box-shadow: 0 4px 14px rgba(20, 102, 214, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35); }
.mode-switch button {
  position: relative; z-index: 4;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}
.mode-switch button:active { transform: scale(0.94); }
.mode-switch button.is-active { color: var(--on-yellow); }
.mode-switch button.is-active[data-mode="rent"] { color: #fff; }

.rent-options { display: none; }
.rent-options.is-active { display: block; }
.buy-options.is-hidden { display: none; }

.rent-tier-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 16px 0; }
.rent-tier {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--t-fast);
  position: relative;
}
.rent-tier:hover { border-color: var(--border-strong); }
.rent-tier.is-active { border-color: var(--accent-blue); background: rgba(20, 102, 214, 0.08); }
.rent-tier .term { font-size: 0.82rem; color: var(--text-muted); }
.rent-tier .amt { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--accent-blue); }
.rent-tier .amt .cur { font-size: 0.6em; color: var(--text-muted); }

.deposit-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px;
  background: rgba(20, 102, 214, 0.08);
  border: 1px solid rgba(20, 102, 214, 0.3);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 16px 0;
}
.deposit-note svg { color: var(--accent-blue); flex-shrink: 0; }

/* единый блок покупки — цена, наличие, кнопки в одной карточке */
.buy-box {
  margin: 22px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.buy-box .mode-switch { margin: 0; align-self: flex-start; }
.buy-box .product-price-row { margin: 0; }
.buy-box .rent-options { margin: 0; }
.buy-box .deposit-note { margin: 0; }

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 160px; }

.spec-list { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-row .k { color: var(--text-muted); }
.spec-row .v { font-weight: 600; text-align: right; }

.trust-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 24px; }
.trust-row .trust { display: flex; gap: 11px; align-items: center; font-size: 1.05rem; font-weight: 600; color: var(--text-muted); }
.trust-row .trust svg { width: 26px; height: 26px; flex: none; color: var(--brand-yellow); }

/* ---------- Страница аренды ---------- */
.rental-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.return-tracker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
}
.return-tracker h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.return-tracker h3 svg { color: var(--accent-blue); }
.rental-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-top: 12px;
}
.rental-item .thumb {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  display: grid; place-items: center;
  color: var(--brand-yellow);
  flex-shrink: 0;
}
.rental-item .thumb svg { width: 28px; height: 28px; }
.rental-item .meta { flex: 1; min-width: 0; }
.rental-item .rental-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rental-item .rental-head strong { font-size: 0.95rem; line-height: 1.3; }
.rental-item .meta > span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.rental-item .due { flex-shrink: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; }
.rental-item .due.ok { color: var(--success); }
.rental-item .due.soon { color: var(--warning); }
.rental-item .due.late { color: var(--accent-red); }

.progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 16px;
}
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--accent-blue); }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.how-card .step-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: rgba(255, 210, 30, 0.18);
  line-height: 1;
}
.how-card h4 { margin: 8px 0 6px; }
.how-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Корзина ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; max-width: 1080px; margin-inline: auto; padding-block: 32px; }
.cart-layout h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cart-list { display: flex; flex-direction: column; gap: 0; }
.cart-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb {
  width: 84px; height: 84px;
  border-radius: var(--r-md);
  background: transparent;
  display: grid; place-items: center;
  padding: 0;
  color: var(--brand-yellow);
}
.cart-row .thumb svg, .cart-row .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-row .info { min-width: 0; }
.cart-row .info strong { display: block; overflow-wrap: anywhere; }
.cart-row .info .tag { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.cart-row .info .tag > * { overflow-wrap: anywhere; }
.cart-row .info .rent-tag { color: var(--accent-blue); font-weight: 600; }
.cart-row .controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.qty button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--text); }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.cart-row .rm { color: var(--text-faint); font-size: 0.82rem; }
.cart-row .rm:hover { color: var(--accent-red); }
.cart-row .line-price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; }
.cart-row .line-price .cur { font-size: 0.68em; color: var(--text-muted); }
/* кликабельные фото и название → страница товара */
.cart-row a.thumb { cursor: pointer; transition: box-shadow var(--t-fast); }
.cart-row a.thumb:hover { box-shadow: 0 0 0 2px var(--brand-yellow); }
.cart-name { display: inline-block; transition: color var(--t-fast); }
.cart-name:hover strong { color: var(--brand-yellow); }
/* строка скидки в сводке */
.summary-row--save { color: var(--success); }
.summary-row--save span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.summary-row--save svg { width: 15px; height: 15px; }

.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
}
.summary h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-muted); }
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 10px; padding-top: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}
.summary-row.total .cur { color: var(--text-muted); font-size: 0.7em; }
.promo-field { display: flex; gap: 8px; margin: 16px 0; }
.promo-field input {
  flex: 1;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 11px 16px;
}
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty > svg { display: block; width: 80px; height: 80px; color: var(--text-faint); margin: 0 auto 20px; }
.cart-empty .btn svg { width: 20px; height: 20px; margin: 0; }

/* ---------- Адаптив страниц ---------- */
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .hero-banner { grid-template-columns: 1fr; min-height: 300px; }
  .hero-banner__visual { min-height: 180px; margin-top: 8px; }
  .hero-consoles { max-height: 200px; }
  .usp-bar { grid-template-columns: 1fr 1fr; }
  .rent-promo { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; max-width: 380px; margin-inline: auto; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 18px; }
  .summary { position: static; padding: 18px; }
  .rental-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    z-index: 200;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform var(--t);
    overflow-y: auto;
  }
  .filters.is-open { transform: translateX(0); }
  .filters-toggle { display: inline-flex; }
}
@media (max-width: 540px) {
  .hero-banner__visual { display: none; }
  .hero-banner { min-height: 220px; }
  .product-media { max-width: 260px; }                 /* главное фото товара заметно меньше */
  .deal-card__off { font-size: 0.94rem; padding: 4px 13px; }  /* этикетка скидки чуть крупнее */
  /* переключатель «Satın al / İcarəyə götür» — текст в одну строку, не переносится */
  .mode-switch button { padding: 9px 14px; font-size: 0.9rem; white-space: nowrap; }
  .mode-switch button svg { width: 15px; height: 15px; }
  /* доставка/гарантия/таксит — в один ряд мелким шрифтом */
  .trust-row { flex-wrap: nowrap; gap: 8px; margin-top: 18px; justify-content: space-between; }
  .trust-row .trust { font-size: 0.62rem; gap: 6px; white-space: nowrap; }
  .trust-row .trust svg { width: 14px; height: 14px; }
  /* попап рейтинга — прижать к правому краю чипа, чтобы влезал в экран */
  .product-meta .pm-rate__pop { left: auto; right: 0; width: min(244px, 84vw); }
  .product-meta .pm-rate__pop::before { left: auto; right: 22px; }
  .usp-bar { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 60px minmax(0, 1fr); }
  .cart-row .thumb { width: 60px; height: 60px; }
  .cart-row .controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 8px; }
}

/* =========================================================
   Авторизация (auth.html)
   ========================================================= */
.auth-wrap { display: flex; justify-content: center; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-lg);
}
.auth-card__brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card__brand img { height: 40px; width: auto; }
/* Liquid-glass переключатель (как .mode-switch) */
.auth-tabs {
  position: relative; display: flex; padding: 5px;
  border-radius: var(--r-pill); margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 32px -10px rgba(17, 24, 39, 0.2),
    inset 0 2px 2px -1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px -1px rgba(17, 24, 39, 0.06);
}
[data-theme="dark"] .auth-tabs {
  background: rgba(40, 42, 48, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 32px -10px rgba(0, 0, 0, 0.65),
    inset 0 2px 2px -1px rgba(255, 255, 255, 0.18),
    inset 0 -2px 4px -1px rgba(0, 0, 0, 0.35);
}
.auth-tabs::before {
  content: ""; position: absolute; top: 1px; left: 1px; right: 1px; height: 48%;
  border-radius: var(--r-pill) var(--r-pill) 22px 22px / var(--r-pill) var(--r-pill) 11px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  pointer-events: none; z-index: 3;
}
[data-theme="dark"] .auth-tabs::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); }
.auth-switch__glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--r-pill);
  opacity: 0; transition: opacity 0.3s ease;
  /* значения свечения как на главной (.plat-switch): светлая 0.90 / тёмная 0.15 */
  background: radial-gradient(circle 85px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.90), transparent 100%);
  mix-blend-mode: overlay;
}
[data-theme="dark"] .auth-switch__glare {
  background: radial-gradient(circle 85px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.15), transparent 100%);
}
.auth-tabs:hover .auth-switch__glare { opacity: 1; }
.auth-switch__pill {
  position: absolute; top: 0; left: 0; z-index: 1; width: 0; height: 0;
  border-radius: var(--r-pill);
  background: var(--brand-yellow);
  box-shadow: 0 4px 14px rgba(255, 210, 30, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    width 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    height 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    background 0.35s ease, box-shadow 0.35s ease;
}
.auth-tab {
  position: relative; z-index: 4;
  flex: 1; padding: 11px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--text-muted); background: transparent; cursor: pointer;
  transition: color 0.3s ease, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-tab:active { transform: scale(0.96); }
.auth-tab.is-active { color: var(--on-yellow); }

.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.is-active { display: flex; }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); cursor: pointer; }
.auth-check input { accent-color: var(--brand-yellow); width: 16px; height: 16px; }
.auth-link { color: var(--accent-blue); font-weight: 600; }
.auth-link:hover { color: var(--brand-yellow); }
.auth-terms { font-size: 0.78rem; color: var(--text-faint); line-height: 1.5; margin-top: 2px; }
.auth-terms a { color: var(--text-muted); text-decoration: underline; }
.auth-terms a:hover { color: var(--brand-yellow); }

.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-faint); font-size: 0.85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-socials { display: flex; gap: 12px; justify-content: center; }
.auth-social {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--bg-elev); border: 1px solid var(--border);
  transition: var(--t-fast);
}
.auth-social:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.auth-social svg { width: 24px; height: 24px; }

/* Общее поле формы (auth + profile) */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .set-select {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: 0.92rem; color: var(--text);
  transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-yellow); }
.field input::placeholder { color: var(--text-faint); }

/* =========================================================
   Профиль (profile.html)
   ========================================================= */
.profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; max-width: 980px; margin-inline: auto; }

.profile-side {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px; overflow: hidden;
}
.profile-user { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.profile-ava {
  width: 76px; height: 76px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  color: var(--on-yellow);
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
}
.profile-ava--lg { width: 72px; height: 72px; font-size: 1.6rem; margin: 0; }
.profile-user__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.profile-user__email { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.profile-badge {
  display: inline-block; margin-top: 12px;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--brand-yellow); color: var(--on-yellow);
  font-size: 0.76rem; font-weight: 800;
}
.profile-nav { display: flex; flex-direction: column; gap: 2px; }
.profile-nav__tabs { display: contents; }   /* на десктопе обёртка прозрачна; на мобиле — лента вкладок */
.profile-nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
  transition: var(--t-fast);
}
.profile-nav__item:hover { background: var(--surface-2); color: var(--text); }
.profile-nav__item.is-active { background: var(--brand-yellow); color: var(--on-yellow); }
.profile-nav .pn-ic { display: inline-flex; }
.profile-nav .pn-ic svg { width: 20px; height: 20px; }
.profile-nav__logout { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 16px; color: var(--accent-red); }
.profile-nav__logout:hover { background: rgba(232, 32, 42, 0.1); color: var(--accent-red); }
.profile-nav__logout .pn-ic svg { transform: rotate(180deg); }
/* «Çıxış» + «Hesabı sil» в одном ряду */
.profile-nav__bottom { display: flex; gap: 8px; margin-top: 8px; }
.profile-nav__bottom .profile-nav__item { flex: 1; justify-content: center; gap: 6px; margin: 0; border-top: 0; padding: 11px 6px; font-size: 0.85rem; white-space: nowrap; }
.profile-nav__bottom .pn-ic svg { width: 16px; height: 16px; }
.profile-nav__bottom .profile-nav__logout { color: var(--text-muted); background: var(--surface-2); }
.profile-nav__bottom .profile-nav__logout:hover { color: var(--text); background: var(--surface-3); }
.profile-nav__bottom .profile-nav__delete { color: var(--accent-red); background: rgba(232, 32, 42, 0.08); }
.profile-nav__bottom .profile-nav__delete:hover { background: rgba(232, 32, 42, 0.14); }

.profile-panel { display: none; }
.profile-panel.is-active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.profile-h { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.profile-count { font-family: var(--font-display); font-size: 1rem; color: var(--on-yellow); background: var(--brand-yellow); padding: 2px 11px; border-radius: var(--r-pill); }
.profile-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px; }
.profile-avarow { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.profile-form__foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 2px; }
.profile-form__foot .btn { padding: 11px 26px; font-size: 0.95rem; }

/* Заказы */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.order__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order__head strong { font-family: var(--font-display); font-size: 1.02rem; }
.order__status { font-size: 0.78rem; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); }
.order__status--ok { background: rgba(52, 199, 89, 0.15); color: var(--success); }
.order__status--soon { background: rgba(255, 176, 32, 0.15); color: var(--warning); }
.order__status--late { background: rgba(232, 32, 42, 0.15); color: var(--accent-red); }
.order__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-muted); font-size: 0.9rem; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.order__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
.order__total { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }

/* Адреса */
.addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.addr-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.addr-card strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.addr-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.addr-card__main { position: absolute; top: 16px; right: 16px; font-size: 0.72rem; font-weight: 700; color: var(--brand-yellow); background: rgba(255, 210, 30, 0.12); padding: 3px 10px; border-radius: var(--r-pill); }
.addr-card__actions { display: flex; gap: 8px; margin-top: 14px; }
.addr-act { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); color: var(--text-muted); transition: var(--t-fast); }
.addr-act:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.addr-act[data-act="del"]:hover { color: var(--accent-red); border-color: rgba(232, 32, 42, 0.4); background: rgba(232, 32, 42, 0.08); }
.addr-act svg { width: 16px; height: 16px; }
.addr-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 110px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-muted); font-weight: 600; transition: var(--t-fast); }
.addr-add:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }
.addr-add svg { width: 18px; height: 18px; }

/* Настройки */
.settings-list { display: flex; flex-direction: column; gap: 4px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.set-select { padding: 9px 14px; }
.switch-ui { position: relative; width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--surface-3); transition: var(--t-fast); cursor: pointer; flex-shrink: 0; }
.switch-ui.on { background: var(--brand-yellow); }
.switch-ui input { position: absolute; opacity: 0; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: var(--t); }
.switch-ui.on .switch__knob { left: 23px; }
.profile-danger { margin-top: 20px; color: var(--accent-red); border-color: rgba(232, 32, 42, 0.4); }
.profile-danger:hover { background: rgba(232, 32, 42, 0.1); }

/* ===== Профиль на мобильных: вкладки слева, контент справа ===== */
@media (max-width: 860px) {
  [data-page="profile"] .page-head { padding-block: 22px 12px; }
  [data-page="profile"] .section--tight { padding-block: 16px; }

  /* шапка сверху на всю ширину; ниже — вкладки слева | контент справа */
  .profile-grid {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas: "user user" "nav main";
    gap: 10px; align-items: start;
  }
  .profile-side { display: contents; }   /* дети раскладываются по областям грида */

  /* Шапка профиля */
  .profile-user {
    grid-area: user;
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "ava name" "ava email" "badge badge";
    column-gap: 14px; row-gap: 1px; align-items: center; text-align: left;
    background: linear-gradient(135deg, var(--surface), var(--bg-elev));
    border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 16px;
  }
  .profile-user .profile-ava { grid-area: ava; width: 56px; height: 56px; margin: 0; font-size: 1.3rem; }
  .profile-user__name { grid-area: name; align-self: end; font-size: 1.08rem; }
  .profile-user__email { grid-area: email; align-self: start; }
  .profile-badge { grid-area: badge; justify-self: start; margin-top: 12px; }

  /* Вкладки — вертикальная липкая лента слева */
  .profile-nav {
    grid-area: nav; display: flex; flex-direction: column; gap: 8px;
    position: sticky; top: calc(var(--header-h) + 6px); align-self: start;
  }
  .profile-nav__tabs { display: flex; flex-direction: column; gap: 6px; }
  .profile-nav__tabs .profile-nav__item {
    align-items: center; justify-content: center; gap: 0;
    padding: 13px 0; border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 0;   /* подпись скрыта — остаётся иконка */
  }
  .profile-nav__tabs .pn-ic svg { width: 22px; height: 22px; }
  .profile-nav__tabs .profile-nav__item.is-active { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-yellow); }

  /* Çıxış / Hesabı sil — внизу ленты, тоже только иконки */
  .profile-nav__bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
  .profile-nav__bottom .profile-nav__item {
    align-items: center; justify-content: center; gap: 0;
    padding: 11px 0; font-size: 0; min-height: 0;
  }
  .profile-nav__bottom .pn-ic svg { width: 20px; height: 20px; }
  .profile-nav__bottom .profile-nav__logout { background: var(--surface); border: 1px solid var(--border-strong); }

  /* === Контент справа: всё подгоняется под узкую колонку === */
  .profile-main { grid-area: main; }
  .profile-main, .profile-panel { min-width: 0; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-box { padding: 14px; }
  .profile-h { font-size: 1.25rem; margin-bottom: 12px; }

  /* адреса и избранное — в одну колонку (убираем фикс. мин-ширину) */
  .addr-list { grid-template-columns: 1fr; gap: 12px; }
  .addr-card { padding: 16px; }
  .addr-card strong, .addr-card p { overflow-wrap: anywhere; }
  .profile-main .grid--cards { grid-template-columns: minmax(0, 1fr); }

  /* аренда — бейдж срока переносится под название */
  .return-tracker { padding: 14px; }
  .rental-item { gap: 12px; padding: 12px; }
  .rental-item .thumb { width: 44px; height: 44px; }
  .rental-item .thumb svg { width: 22px; height: 22px; }
  .rental-item .rental-head { flex-wrap: wrap; gap: 1px 10px; }
  .rental-item .rental-head strong { overflow-wrap: anywhere; }
  .rental-item .due { font-size: 0.85rem; }

  /* заказы — строки переносятся, ничего не вылезает */
  .order { padding: 14px; }
  .order__head, .order__body, .order__foot { flex-wrap: wrap; gap: 6px 12px; }

  /* настройки — селект языка на всю ширину под подписью */
  .setting-row { flex-wrap: wrap; gap: 8px 12px; }
  .setting-row .select { width: 100%; }
  .setting-row .select__btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .profile-form { grid-template-columns: 1fr; }
}

/* =========================================================
   Страница товара (расширенная)
   ========================================================= */
.product-gallery { position: relative; }
.product-disc {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  background: var(--accent-red); color: #fff;
  padding: 5px 14px; border-radius: var(--r-pill);
}
.product-gallery__plat {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: rgba(13, 14, 16, 0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-weight: 700; font-size: 0.8rem; color: var(--text);
}
.product-gallery__plat .ui-png, .product-gallery__plat svg { width: 18px; height: 18px; }
/* платформенное свечение убрано — чистое фото без подложки/каймы */
.product-gallery--ps5, .product-gallery--ps4,
.product-gallery--xbox, .product-gallery--switch { box-shadow: none; }

.product-meta .pm-rate { position: relative; display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); cursor: help; outline: none; }
.product-meta .pm-rate .stars { color: var(--brand-yellow); letter-spacing: 1px; }
.product-meta .pm-rate__val { font-weight: 700; color: var(--text-strong, var(--text-main)); }
.product-meta .pm-rate__src {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-yellow) 18%, transparent);
  color: var(--text-main); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.product-meta .pm-rate__src svg { width: 13px; height: 13px; }
.product-meta .pm-rate__pop {
  position: absolute; top: calc(100% + 9px); left: 0; z-index: 40;
  width: 244px; padding: 12px 13px 9px;
  background: var(--brand-black); color: #fff;
  border-radius: 13px; font-size: 0.78rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.product-meta .pm-rate__pop::before { display: none; }   /* убрали чёрную стрелку-хвостик сверху */
.product-meta .pm-rate__pop-head { display: flex; align-items: baseline; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.product-meta .pm-rate__pop-head strong { color: var(--brand-yellow); font-size: 1rem; }
.product-meta .pm-rate__pop-head span { color: rgba(255,255,255,0.62); font-size: 0.72rem; }
.product-meta .pm-rate__critics { display: flex; flex-direction: column; }
.product-meta .pm-critic { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; }
.product-meta .pm-critic + .pm-critic { border-top: 1px solid rgba(255,255,255,0.06); }
.product-meta .pm-critic__name { color: rgba(255,255,255,0.82); font-weight: 600; }
.product-meta .pm-critic__score { font-weight: 800; color: #fff; }
.product-meta .pm-critic__score i { font-style: normal; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.72rem; }
.product-meta .pm-rate:hover .pm-rate__pop,
.product-meta .pm-rate.is-open .pm-rate__pop { opacity: 1; visibility: visible; transform: translateY(0); }
.product-meta .pm-sku { color: var(--text-faint); }
.product-pub { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }
.product-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); }
.product-stock svg { width: 15px; height: 15px; }
.product-stock.in { background: rgba(52, 199, 89, 0.14); color: var(--success); }
.product-stock.out { background: rgba(255, 176, 32, 0.14); color: var(--warning); }
.product-price-row { align-items: center; }

.mode-switch button { display: inline-flex; align-items: center; gap: 8px; }
.mode-switch button svg { width: 17px; height: 17px; }

/* Быстрые характеристики (иконки) */
.quick-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.quick-spec { display: flex; align-items: center; gap: 9px; padding: 11px 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); min-width: 0; }
.qs-ic { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--r-sm); background: rgba(255, 210, 30, 0.1); color: var(--brand-yellow); }
.qs-ic svg { width: 16px; height: 16px; }
.qs-ic .ui-png { width: 17px; height: 17px; object-fit: contain; }   /* реальный лого платформы */
.quick-spec > div { display: flex; flex-direction: column; min-width: 0; }
.qs-k { font-size: 0.64rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-v { font-weight: 700; font-size: 0.78rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Секции под товаром */
.product-details {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
  align-items: start;
  padding-top: clamp(28px, 4vw, 48px);
}
.product-details__main { display: flex; flex-direction: column; gap: 18px; }

/* ===== Полноширинные детали под товаром (галерея открепляется здесь) ===== */
/* карусели кросс-продаж в правой колонке (после Taksit) */
.product-info .product-rails { margin-top: 24px; padding: 0; }
@media (min-width: 981px) {
  /* ровно 3 карточки, остальное свайпом */
  .product-info .rail__track { grid-auto-columns: calc(100% / 3); }
  .product-info .rail__title { font-size: 1.12rem; }
  .product-info .rail-card { padding: 12px 14px; gap: 10px; }
  .product-info .rail-card__media { flex: 0 0 56px; width: 56px; height: 56px; }
  .product-info .rail-card__media svg { width: 28px; height: 28px; }
  .product-info .rail-card__body { gap: 6px; }
  .product-info .rail-card__title { font-size: 0.8rem; line-height: 1.25; }
  .product-info .rail-card__foot { gap: 6px; }
  .product-info .rail-price__now { font-size: 0.98rem; }
  .product-info .rail-price__old { font-size: 0.72rem; }
  .product-info .rail-card__add { width: 34px; height: 34px; padding: 7px; }
  .product-info .rail-card__add svg { width: 18px; height: 18px; }
  .product-info .rail-svc { font-size: 1.5rem; }
}

/* карточка «Niyə KonsolOyun» — внизу страницы, во всю ширину */
.pd-card--end { margin-top: clamp(28px, 4vw, 44px); }
.pd-card--end .pd-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 30px; }
.pd-card--end .btn--block { max-width: 340px; }
.product-details2 {
  display: flex; flex-direction: column;
  padding-top: clamp(28px, 4vw, 44px);
  margin-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--border);
}
/* плоский «не контейнерный» вид: без карточек, только строки-разделители */
.product-details2 .pd-sec { background: none; border: 0; border-radius: 0; padding: 0; }
.product-details2 .pd-sec + .pd-sec {
  margin-top: clamp(28px, 3.5vw, 40px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--border);
}
.product-details2 .pd-sec h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 800; margin-bottom: 18px; }

/* шапка характеристик: заголовок + ссылка «сообщить о несоответствии» */
.specs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.specs-head h2 { margin-bottom: 0; }
.specs-report { font-size: 0.88rem; color: var(--text-muted); }
.specs-report b { color: #2f6bff; font-weight: 700; }

/* характеристики двумя колонками строк */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 6vw, 80px); }
.specs-col { display: flex; flex-direction: column; }
.product-details2 .spec-row { padding: 13px 2px; }
.specs-col .spec-row:first-child { border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .specs-grid { grid-template-columns: 1fr; column-gap: 0; }
  .specs-col:last-child .spec-row:first-child { border-top: 0; }
}
.pd-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 30px); }
.pd-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 16px; }
.pd-sec h2 svg { width: 22px; height: 22px; color: var(--brand-yellow); }
.pd-text { color: var(--text-muted); line-height: 1.7; font-size: 0.98rem; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.ftag { padding: 5px 12px; border-radius: var(--r-pill); background: var(--bg-elev); border: 1px solid var(--border); font-size: 0.74rem; font-weight: 600; color: var(--text-muted); }
/* кликабельный жанр → переход в каталог с этим фильтром */
.quick-spec--link { cursor: pointer; text-decoration: none; transition: var(--t-fast); }
.quick-spec--link:hover { border-color: var(--brand-yellow); }
.quick-spec--link:hover .qs-v { color: var(--brand-yellow); }
.ftag--link { cursor: pointer; transition: var(--t-fast); }
.ftag--link:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }

/* ---------- Калькулятор рассрочки ---------- */
.installment { margin-top: 24px; }
.installment__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.installment__title--sm { font-size: 1rem; margin-top: 24px; }
.installment__sub { color: var(--text-muted); font-size: 0.82rem; margin: 4px 0 12px; }
.installment__calc {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.06);
}
.inst-terms { flex: 1 1 300px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; padding: 16px; align-items: center; }
.inst-term {
  padding: 10px 2px; border-radius: var(--r-pill);
  background: var(--bg-elev); font-weight: 700; font-size: 0.8rem;
  color: var(--text-muted); transition: var(--t-fast);
  white-space: nowrap; text-align: center; min-width: 0;
}
.inst-term:hover { color: var(--text); background: var(--surface-2); }
.inst-term.is-active { background: var(--text); color: var(--bg); box-shadow: 0 5px 14px rgba(20, 22, 26, 0.25); }
.inst-monthly {
  flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 14px 22px; border-left: 1px solid var(--border);
}
.inst-monthly__label { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.inst-monthly__val { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; white-space: nowrap; line-height: 1; }
.installment__note { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 0.78rem; margin-top: 10px; }
.installment__note svg { width: 15px; height: 15px; flex-shrink: 0; }
.inst-banks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.inst-bank { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.inst-bank__ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.82rem; }
.inst-bank__ic svg { width: 20px; height: 20px; }
.inst-bank__ic--birbank { background: #e30613; }
.inst-bank__ic--leo { background: #141414; }
.inst-bank__txt { display: flex; flex-direction: column; min-width: 0; }
.inst-bank__txt strong { font-size: 0.92rem; white-space: nowrap; }
.inst-bank__txt span { font-size: 0.78rem; color: #c0913a; }   /* «faizsiz ödə» — золотистый акцент */
@media (max-width: 560px) { .inst-banks { grid-template-columns: 1fr; } }
@media (max-width: 470px) { .inst-monthly { border-left: 0; border-top: 1px solid var(--border); } }

/* FAQ-аккордеон */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: none; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 2px; text-align: left;
  font-weight: 700; font-size: 1rem; color: var(--text);
}
.faq__q svg { width: 20px; height: 20px; color: var(--text-faint); flex-shrink: 0; transition: transform var(--t); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); color: var(--brand-yellow); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq__item.is-open .faq__a { max-height: 260px; }
.faq__a p { color: var(--text-muted); line-height: 1.65; padding: 0 2px 16px; }

/* Sticky инфоблок */
.product-details__side { position: sticky; top: calc(var(--header-h) + 16px); }
.pd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; }
.pd-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.pd-points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.pd-points li { display: flex; align-items: center; gap: 11px; font-size: 0.9rem; color: var(--text-muted); }
.pd-points svg { width: 19px; height: 19px; color: var(--brand-yellow); flex-shrink: 0; }

@media (max-width: 920px) {
  .product-details { grid-template-columns: 1fr; }
  .product-details__side { position: static; }
}
@media (max-width: 560px) {
  .quick-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   СВЕТЛАЯ ТЕМА — точечные правки мест, захардкоженных под тёмную.
   (Основные цвета приходят из токенов :root[data-theme="light"].)
   =================================================================== */
/* Стеклянная шапка — светлая */
[data-theme="light"] .site-header { background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.70)); }
[data-theme="light"] .site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); }

/* Грид-фон шапки-заголовка — тёмные линии вместо белых */
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px);
}

/* Светлые служебные подложки */
[data-theme="light"] .badge--platform { background: rgba(17, 24, 39, 0.06); }
[data-theme="light"] .mega__wm { color: rgba(17, 24, 39, 0.05); }

/* Hover иконки-кнопки в карточке: на белой карточке белый фон невидим → тёмный */
[data-theme="light"] .card__foot .btn--icon:hover,
[data-theme="light"] .deal-card__buy .btn--icon:hover {
  background: var(--brand-black); color: #fff; border-color: var(--brand-black);
}

/* Белые PNG-иконки аксессуаров на светлых табах → делаем тёмными */
[data-theme="light"] .plat-switch__btn--gamepad .ui-png,
[data-theme="light"] .plat-switch__btn--vr .ui-png,
[data-theme="light"] .plat-switch__btn--headset .ui-png,
[data-theme="light"] .plat-switch__btn--other .ui-png { filter: brightness(0); }

/* Eyebrow-иконка (белый PNG) в обычных секциях → тёмная. В цветных баннерах не трогаем. */
[data-theme="light"] .section-head .eyebrow__ic-img { filter: brightness(0); }

/* Тёмная тема: монохромные PNG-иконки должны быть белыми (как SVG, наследующие цвет текста).
   :not(.is-active) — на активном жёлтом табе иконка аксессуара остаётся чёрной.
   Цветные лого консолей (ps/xbox/nintendo) сюда не входят — остаются в своих цветах. */
[data-theme="dark"] .plat-switch__btn--gamepad:not(.is-active) .ui-png,
[data-theme="dark"] .plat-switch__btn--vr:not(.is-active) .ui-png,
[data-theme="dark"] .plat-switch__btn--headset:not(.is-active) .ui-png,
[data-theme="dark"] .plat-switch__btn--other:not(.is-active) .ui-png { filter: brightness(0) invert(1); }
/* eyebrow теперь жёлтый бейдж — PNG-иконка на нём тёмная в обеих темах */
.section-head .eyebrow__ic-img { filter: brightness(0); }

/* На цветных/тёмных фонах бейдж не нужен — текст остаётся жёлтым без подложки */
.rent-promo .eyebrow,
.rental-hero .eyebrow {
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--brand-yellow);
}

/* фон галереи полностью убран и в светлой теме — просто фото товара */
[data-theme="light"] .product-gallery { background: transparent; }

/* Переключатель темы: показываем одну иконку по теме */
#themeToggle .material-symbols-outlined { font-size: 22px; }
#themeToggle .ms-moon { display: none; }
[data-theme="light"] #themeToggle .ms-sun { display: none; }
[data-theme="light"] #themeToggle .ms-moon { display: inline-block; }

/* Логотипы под тему: тёмная тема — белые лого, светлая — тёмные */
.brand__logo--l, .flogo--l { display: none; }
[data-theme="light"] .brand__logo--d { display: none; }
[data-theme="light"] .brand__logo--l { display: block; }
[data-theme="light"] .flogo--d { display: none; }
[data-theme="light"] .flogo--l { display: block; }

/* ===================== Карусели кросс-продаж (страница товара) ===================== */
.product-rails { display: flex; flex-direction: column; gap: 30px; padding-top: 4px; padding-bottom: 8px; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rail__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.rail__nav { display: flex; gap: 8px; flex-shrink: 0; }
.rail__arrow {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.rail__arrow svg { width: 18px; height: 18px; }
.rail__arrow[data-rail-prev] svg { transform: rotate(90deg); }
.rail__arrow[data-rail-next] svg { transform: rotate(-90deg); }
@media (hover: hover) { .rail__arrow:hover { background: var(--surface-2); border-color: var(--border-strong); } }
.rail__arrow[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }

.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 0;
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity;
  scrollbar-width: none; padding-bottom: 2px;
}
.rail__track::-webkit-scrollbar { display: none; }

/* плоский «не контейнерный» вид (как на референсе): без рамок, тонкие разделители между карточками */
.rail-card {
  scroll-snap-align: start; display: flex; gap: 14px;
  padding: 14px 22px;
  border-right: 1px solid var(--border);
  transition: background var(--t-fast);
}
.rail__track > .rail-card:first-child { padding-left: 0; }
.rail__track > .rail-card:last-child { border-right: 0; }
@media (hover: hover) { .rail-card:hover { background: var(--surface-2); } }
.rail-card__media {
  flex: 0 0 84px; width: 84px; height: 84px; display: grid; place-items: center;
  border-radius: 8px; background: none; overflow: hidden;
}
.rail-card__media img { width: 100%; height: 100%; object-fit: contain; }
.rail-card__media--cover img { object-fit: cover; }
.rail-card__media svg { width: 40px; height: 40px; color: var(--text-faint); }

.rail-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rail-card__title {
  font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) { a.rail-card__title:hover { color: var(--brand-yellow-deep); } }
.rail-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

.rail-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.rail-price__old { font-size: 0.8rem; color: var(--text-faint); text-decoration: line-through; }
.rail-price__now { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }
.rail-price--sale .rail-price__now { color: var(--danger); }
.rail-price__now .cur { font-size: 0.6em; color: var(--text-muted); margin-left: 2px; }

.rail-card__add {
  flex: 0 0 auto; align-self: flex-end;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
@media (hover: hover) { .rail-card__add:hover { background: var(--surface); border-color: var(--border-strong); } }
.rail-card__add svg { width: 20px; height: 20px; }

/* услуги — цветной бейдж с буквой вместо фото */
.rail-svc { font-family: var(--font-display); font-weight: 900; font-size: 2.1rem; color: #fff; }
.rail-svc--red { background: var(--accent-red); }
.rail-svc--blue { background: #1e63e9; }
.rail-svc--green { background: #1f9d57; }
.rail-svc--dark { background: #141414; }

@media (max-width: 560px) {
  .product-rails { gap: 26px; padding-bottom: 40px; }
  .rail__track { grid-auto-columns: min(82vw, 300px); }
  .rail__title { font-size: 1.15rem; }
  .rail__arrow { width: 34px; height: 34px; }
  .rail-card { padding: 12px; gap: 12px; }
  .rail-card__media { flex-basis: 72px; width: 72px; height: 72px; }
  .rail-svc { font-size: 1.8rem; }
}
