/* ═══════════════════════════════════════════════════════════════
   LUMÉ — главная страница
   Промокод, лента товаров в стиле каталога, «Вы смотрели».
   ═══════════════════════════════════════════════════════════════ */

/* ── Промокод ─────────────────────────────────────────── */
.home .home-promo { background: var(--indigo-soft); }
.home .home-promo__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 14px;
  padding-top: 10px; padding-bottom: 10px;
  font-size: 14px;
}
.home .home-promo__text { margin: 0; }
.home .home-promo__text b { font-weight: 700; }
.home .home-promo__code { font-size: 13px; padding: 6px 12px 6px 13px; user-select: all; }
.home .home-promo__copy { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.home .home-promo__copy.is-done { border-color: var(--moss); color: var(--moss); }
.home .home-promo__copy.is-done:hover { background: transparent; }

.home .home-offline {
  display: flex; align-items: baseline; gap: 10px;
  margin: 20px 0 0; padding: 11px 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13.5px;
}
.home .home-offline::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--weld-dot); transform: translateY(-1px);
}

/* ── Fashion film ──────────────────────────────────────────────── */
.home-film {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(460px, calc(76svh / var(--zoom, 1)), 680px);
  min-height: 460px; background: #262d2b; color: #fff;
}
.home-film__video {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.home-film::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 16 17 / .48), transparent 74%),
    linear-gradient(0deg, rgb(10 16 17 / .42), transparent 65%);
}
.home-film__inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: flex-end;
  padding-top: 48px; padding-bottom: clamp(48px, 5vw, 72px);
}
.home-film__story { max-width: 580px; }
.home-film__eyebrow {
  display: block; margin-bottom: 22px;
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.home-film__story h2 {
  margin: 0 0 20px; color: inherit;
  font-family: var(--font);
  font-size: clamp(44px, 5.2vw, 76px); font-weight: 700;
  line-height: .98; letter-spacing: -.03em;
}
.home-film__story h2 em { font-weight: 400; }
.home-film__eyebrow > span { margin-right: 8px; }
.home-film__story p { margin: 24px 0 25px; font-size: 12px; line-height: 1.6; letter-spacing: .015em; }
.home-film__collection {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 48px; padding: 0 0 5px; border-bottom: 1px solid rgb(255 255 255 / .7);
  background: transparent; color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .035em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.home-film__collection:hover { text-decoration: none; border-color: #fff; }
.home-film__collection > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgb(255 255 255 / .5); border-radius: 50%; font-size: 18px; font-weight: 400; }
.home-film__controls {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.home-film__credit { font-size: 9px; letter-spacing: .06em; text-shadow: 0 1px 4px #000; }
.home-film__toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgb(255 255 255 / .7); border-radius: 50%;
  background: rgb(10 16 17 / .35); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.home-film__toggle[hidden] { display: none; }
.home-film__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.home-film__toggle .home-film__play-icon { fill: currentColor; stroke: none; }
.home-film__toggle .home-film__pause-icon,
.home-film__toggle.is-playing .home-film__play-icon { display: none; }
.home-film__toggle.is-playing .home-film__pause-icon { display: block; }
.home-film__toggle:hover { background: rgb(255 255 255 / .2); }
.home-film a:focus-visible, .home-film button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
@media (max-width: 759px) {
  .home-film { height: clamp(430px, calc(72svh / var(--zoom, 1)), 560px); min-height: 430px; }
  .home-film__video { object-position: 58% center; }
  .home-film::after { background: linear-gradient(0deg, rgb(10 16 17 / .7), rgb(10 16 17 / .12) 85%); }
  .home-film__inner { padding-top: 28px; padding-bottom: 88px; }
  .home-film__eyebrow { margin-bottom: 18px; font-size: 9px; }
  .home-film__story h2 { font-size: clamp(40px, 12vw, 58px); }
  .home-film__story p { margin-bottom: 24px; font-size: 13px; }
  .home-film__controls { left: var(--gutter); right: var(--gutter); bottom: 18px; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .home-film__collection { transition: none; }
}
/* ── Адаптив ───────────────────────────────────────────────────── */
@media (max-width: 759px) {
  .home .home-promo__inner { justify-content: flex-start; font-size: 13.5px; }
}

/* ═══ Лента на главной: как каталог, вместо фильтров — кнопки подборок ═══ */
.home .home-feed { margin-top: 0; padding-top: 8px; }
.home .home-feed .plp-head { padding-top: 40px; }
.home-feed__bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 1106px; margin-top: 30px;
  padding: 12px clamp(12px, 3vw, 32px);
  background: var(--plp-box); border: 1px solid var(--plp-box-line); border-radius: 6px;
}
.home-feed__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  background: var(--plp-panel); color: var(--text);
  border: 1px solid var(--plp-box-line); border-radius: 999px;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.home-feed__btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-feed__btn svg .is-fill { fill: currentColor; stroke: none; }
.home-feed__btn > svg:last-child { width: 14px; height: 14px; stroke-width: 2; margin-right: -4px; transition: transform .2s var(--ease); }
.home-feed__btn:hover { border-color: var(--text); }
.home-feed__btn:active { transform: scale(.97); }
.home-feed__btn.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.home-feed__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* повторное нажатие «Рандом» и «Другой стиль» — лёгкий поворот иконки */
.home-feed__btn.is-on[data-feed="random"]:hover svg,
.home-feed__btn.is-on[data-feed="style"]:hover svg { transform: rotate(-20deg); transition: transform .3s var(--ease); }

.home-feed__color { position: relative; }
.home-feed__color.is-open .home-feed__btn > svg:last-child { transform: rotate(180deg); }
.home-feed__sw {
  flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sw, #ccc);            /* плоский кружок — просто цвет */
}
.home-feed__sw.is-light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
/* «Все цвета» на кнопке — чистое цветовое колесо с белым кольцом */
.home-feed__sw--all {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .95) 0 22%, rgba(255, 255, 255, 0) 60%),
    conic-gradient(from 200deg, #ff5f6d, #ffa45b, #ffd86b, #7ed98a, #4cc9f0, #6c7cff, #c77dff, #ff5f6d);
  box-shadow: 0 0 0 1.5px var(--plp-panel), 0 0 0 2.5px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .15);
}
.home-feed__pop {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 30;
  transform: translateX(-50%);
  width: 240px; max-height: 360px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--plp-panel);
  border: 1px solid var(--plp-box-line); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
  animation: svDd .16s var(--ease);
}
.home-feed__opt {
  width: 100%; min-height: 38px;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  background: none; border: 0; border-radius: 8px;
  color: var(--text); font-family: var(--font); font-size: 13.5px; text-align: left;
  cursor: pointer;
}
.home-feed__opt span { flex: 1; }
.home-feed__opt small {
  min-width: 24px; padding: 2px 7px; border-radius: 999px;
  background: var(--plp-page); color: var(--text-dim); font-size: 11px; text-align: center;
}
.home-feed__opt:hover, .home-feed__opt:focus-visible { background: var(--plp-page); outline: 0; }
.home-feed__opt[aria-selected="true"] { background: var(--plp-page); font-weight: 600; }
.home-feed__opt[aria-selected="true"] .home-feed__sw { box-shadow: 0 0 0 2px var(--plp-panel), 0 0 0 3.5px var(--text); }

/* Название подборки — шапка белой панели, над сеткой товаров */
.home-feed__meta {
  margin: 0 0 24px; padding: 0 0 18px;
  border-bottom: 1px solid var(--plp-box-line);
  text-align: left;
}
.home-feed__meta p { margin: 0; max-width: 72ch; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.home-feed__meta .home-feed__head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin-bottom: 6px; max-width: none;
  font-size: 20px; letter-spacing: -.01em; color: var(--text);
}
.home-feed__meta .home-feed__head b { font-weight: 700; }
.home-feed__meta .home-feed__head { margin-bottom: 0; }
.home-feed__meta .home-feed__open { margin-left: auto; font-size: 13.5px; }
.home-feed__meta .home-feed__n { font-size: 14px; color: var(--text-dim); }
.home-feed__meta .home-feed__n::before { content: none; }
.home-feed__meta .home-feed__step { vertical-align: 2px; }
.home-feed__meta b { color: var(--text); font-weight: 600; }
.home-feed__meta a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.home-feed__n { color: var(--text); white-space: nowrap; }
.home-feed__n::before { content: "·"; margin: 0 8px; color: var(--text-dim); }
.home-feed__step {
  display: inline-block; margin: 0 2px; padding: 1px 8px; border-radius: 999px;
  background: var(--plp-box); color: var(--text-dim); font-size: 12px; vertical-align: 1px;
}
.home .home-feed .plp-results { margin-top: 22px; }
.home .home-feed .plp-results .pgrid { margin-top: 0; }
.home .plp .home-feed__panel { padding-top: clamp(20px, 3vw, 40px); }
.home .home-feed .plp-more__bar i { background: var(--text); }
.home .home-feed .plp-more { padding-bottom: 12px; }

/* Keep the recent shelf on the catalogue background; its default margin
   otherwise collapses outside the wrapper and reveals a white strip. */
.home .home-feed:has(+ .home-recent) { padding-bottom: clamp(28px, 3vw, 44px); }
.home .home-recent {
  display: flow-root; margin: 0; padding-top: 0;
  padding-bottom: clamp(32px, 4vw, 64px);
}
.home .home-recent .shelf { margin-top: 0; }
.home .home-recent .shelf__head { margin-bottom: 22px; }
.home .home-recent .section-title {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 600;
  line-height: 1.15; letter-spacing: -.02em;
}

@media (max-width: 760px) {
  .home .home-feed .plp-head { padding-top: 28px; }
  .home-feed__bar {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
    margin-top: 22px; padding: 10px;
    width: calc(100% - 2 * var(--gutter)); overflow: visible;
  }
  .home-feed__bar::-webkit-scrollbar { display: none; }
  .home-feed__btn { min-height: 42px; padding: 8px 10px; font-size: 13.5px; line-height: 1.35; width: 100%; }
  .home-feed__color { position: static; }
  .home-feed__pop { position: fixed; top: auto; bottom: calc(12px + var(--tabbar-h, 0px)); left: 12px; right: 12px; width: auto; transform: none; max-height: 60vh; }
  .home-feed__meta { margin-bottom: 18px; padding-bottom: 14px; }
  .home-feed__meta .home-feed__head { font-size: 17px; }
  .home-feed__meta .home-feed__n { font-size: 14px; }
  .home-feed__meta .home-feed__open { flex-basis: 100%; margin: 8px 0 0; font-size: 14px; }
  .home-feed__meta p { font-size: 15px; }
}
