/* Оформление v2: подключается после shop.css и дополняет его. Цвета по-прежнему меняются по сезону (html[data-season]).
   Анимации появления включаются только при работающем JS (html.js) и отключаются при prefers-reduced-motion. */
:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 26px;
  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --shadow-lg: 0 34px 70px -34px rgb(23 20 18 / .5);
}
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Шкала прокрутки и шапка ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 130; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--panel-b)); }
.head { transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.head__in { transition: height .35s var(--ease); }
.head.is-scrolled { background: color-mix(in srgb, var(--surface) 93%, transparent); border-bottom-color: transparent; box-shadow: 0 16px 36px -26px rgb(23 20 18 / .55); }
.head.is-scrolled .head__in { height: 60px; }
.nav__link { position: relative; }
.nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--soon::after { display: none; }

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] { opacity: 0; translate: 0 38px; transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease); }
.js [data-reveal='scale'] { translate: 0 26px; scale: .94; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
.js .tile[data-reveal] { transition: opacity .9s var(--ease), translate .9s var(--ease), transform .35s var(--ease), box-shadow .35s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; transition: none; }
  .marquee__track, .stage__chip, .hero__scroll span { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Кнопки и заголовки ---------- */
.btn { box-shadow: 0 12px 26px -16px rgb(23 20 18 / .65); transition: background .25s, transform .2s var(--ease), box-shadow .25s; }
.btn:hover { box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(-1px); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: #fff; color: var(--ink); box-shadow: none; }
.btn--light:hover { background: var(--accent); color: #fff; }
.eyebrow { width: max-content; max-width: 100%; padding: 6px 13px; border-radius: 999px; background: var(--accent-soft); }
.block { padding-block-start: clamp(52px, 7.2vw, 108px); }
.block__head h2 { font-size: clamp(30px, 4.2vw, 56px); letter-spacing: -.048em; line-height: 1; }

/* ---------- Первый экран ---------- */
.hero--v2 { position: relative; overflow: hidden; padding-block: clamp(26px, 4.6vw, 70px) clamp(44px, 6vw, 96px); }
.hero__glow { position: absolute; top: -26%; right: -14%; width: min(70vw, 920px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--panel-b) 60%, transparent), transparent 72%); opacity: .75; pointer-events: none; }
.hero--v2 .hero__in { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
.hero--v2 .hero__title { font-size: clamp(42px, 7vw, 104px); line-height: .94; letter-spacing: -.058em; margin-bottom: 24px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 18px clamp(22px, 3.2vw, 46px); margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.hero__stats div { display: grid; gap: 2px; }
.hero__stats dt { font-size: clamp(22px, 2.5vw, 34px); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero__stats dd { margin: 0; font-size: 13px; color: var(--muted); }
.hero--v2 .hero__stage { aspect-ratio: 1 / 1.04; border-radius: 46px; box-shadow: var(--shadow-lg); }
.stage__word { position: absolute; left: -3%; right: -3%; top: 6%; text-align: center; font-size: clamp(84px, 12.6vw, 190px); font-weight: 900; letter-spacing: -.065em; line-height: 1; text-transform: uppercase; color: rgb(255 255 255 / .42); pointer-events: none; translate: 0 var(--py, 0px); white-space: nowrap; }
.stage__item { margin-top: var(--py, 0px); }
.stage__chip { position: absolute; display: inline-flex; gap: 8px; align-items: center; padding: 10px 15px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 650; font-size: 13px; box-shadow: var(--shadow); animation: float 6.5s ease-in-out infinite; }
.stage__chip .ic { color: var(--accent); width: 17px; height: 17px; }
.stage__chip--a { left: 5%; top: 7%; }
.stage__chip--b { right: 5%; bottom: 6%; animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-9px); } }
.hero__scroll { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 2; width: 26px; height: 42px; border: 2px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 999px; display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--ink); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Лента брендов ---------- */
.marquee { overflow: hidden; background: var(--ink); color: #f6efe6; padding-block: clamp(16px, 2vw, 24px); }
.marquee__track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee__list li { display: flex; align-items: center; }
.marquee__list li::after { content: '✦'; margin-inline: clamp(20px, 3vw, 38px); color: var(--panel-b); font-size: 15px; }
.marquee__list a { font-size: clamp(24px, 3.2vw, 42px); font-weight: 850; letter-spacing: -.035em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.3px #f6efe6; transition: color .25s; white-space: nowrap; }
.marquee__list a:hover { color: #f6efe6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Преимущества ---------- */
.usp { border-block: 0; background: transparent; padding-block: clamp(24px, 3vw, 40px) 0; }
.usp__grid { gap: 14px; }
.usp__item { padding: 20px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.usp__item + .usp__item { border-left: 1px solid var(--line); }
.usp__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usp__item .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); }

/* ---------- Карусели ---------- */
.rail__ctl { display: flex; align-items: center; gap: 24px; }
.rail__nav { display: flex; gap: 8px; }
.rail__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.rail__btn:first-child .ic { transform: rotate(180deg); }
.rail__btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail__btn:disabled { opacity: .32; cursor: default; }
.rail__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 6px 30px; margin-inline: -6px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .card { flex: 0 0 clamp(214px, 22.4vw, 296px); scroll-snap-align: start; }

/* ---------- Карточки товара ---------- */
.card__media { border-radius: 26px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.card:hover .card__media { transform: translateY(-6px); box-shadow: 0 32px 46px -30px rgb(23 20 18 / .55), inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.card__media::after { content: 'Смотреть'; position: absolute; left: 50%; bottom: 14px; translate: -50% 14px; opacity: 0; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; transition: opacity .35s var(--ease), translate .35s var(--ease); pointer-events: none; z-index: 3; }
.card:hover .card__media::after { opacity: 1; translate: -50% 0; }
@media (hover: none) { .card__media::after { display: none; } }
.card__title { font-size: 18px; letter-spacing: -.02em; }
.price { letter-spacing: -.025em; }

/* ---------- Плитки категорий ---------- */
.tiles { gap: 18px; }
.tile { border-radius: 32px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile__t b { font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.035em; }
.tile--dark { background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 40%, #1d1713), #15110e 70%); color: #fff; }
.tile--dark img { mix-blend-mode: normal; background: #fff; border-radius: 22px; inset: 9% 17% 27% 17%; width: 66%; height: 64%; padding: 5%; }
.tile--dark .tile__t i { color: #cfc4b7; }
.tile--dark .tile__go { background: #fff; color: var(--ink); }

/* ---------- Электроника на главной ---------- */
.promo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(26px, 4vw, 60px); align-items: center; padding: clamp(26px, 4.6vw, 68px); border-radius: 44px; color: #f6efe6; background: radial-gradient(120% 150% at 0% 0%, color-mix(in srgb, var(--accent) 40%, #1b1613), #15110e 62%); position: relative; overflow: hidden; }
.promo h2 { color: #fff; font-size: clamp(42px, 5.6vw, 80px); letter-spacing: -.055em; margin-bottom: 16px; }
.promo p { color: #cfc4b7; max-width: 30em; margin-bottom: 28px; }
.promo .eyebrow { background: rgb(255 255 255 / .13); color: #fff; }
.promo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promo__item { display: grid; gap: 2px; padding: 12px 12px 16px; border-radius: 26px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .1); transition: transform .45s var(--ease), background .3s; }
.promo__item:nth-child(even) { translate: 0 18px; }
.promo__item:hover { transform: translateY(-6px); background: rgb(255 255 255 / .15); }
.promo__img { aspect-ratio: 1; border-radius: 20px; background: #fff; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.promo__img img { width: 88%; height: 88%; object-fit: contain; transition: transform .6s var(--ease); }
.promo__item:hover img { transform: scale(1.07); }
.promo__item small { padding-inline: 4px; color: #a99f93; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; font-weight: 650; }
.promo__item b { padding-inline: 4px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo__price { padding-inline: 4px; margin-top: 4px; font-weight: 800; font-size: 18px; letter-spacing: -.025em; }

/* ---------- Подбор пары ---------- */
.finder { border-radius: 40px; box-shadow: var(--shadow-lg); }

/* ---------- Подвал ---------- */
.foot { position: relative; overflow: hidden; }
.foot__word { margin-top: 44px; font-size: clamp(64px, 17.5vw, 270px); font-weight: 900; letter-spacing: -.07em; line-height: .78; text-transform: uppercase; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .15); white-space: nowrap; overflow: hidden; user-select: none; padding-bottom: .04em; }
.foot__bottom { margin-top: 18px; }

/* ---------- Выезжающая корзина ---------- */
.minicart { position: fixed; inset: 0; z-index: 110; visibility: hidden; pointer-events: none; transition: visibility 0s linear .45s; }
.minicart.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.minicart__scrim { position: absolute; inset: 0; background: rgb(18 14 10 / .55); opacity: 0; transition: opacity .38s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.minicart.is-open .minicart__scrim { opacity: 1; }
.minicart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 440px); display: flex; flex-direction: column; background: var(--surface); border-radius: 30px 0 0 30px; box-shadow: -34px 0 90px rgb(0 0 0 / .38); translate: 104% 0; transition: translate .48s var(--ease); }
.minicart.is-open .minicart__panel { translate: 0 0; }
.minicart__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 14px; }
.minicart__head h2 { display: flex; align-items: baseline; gap: 10px; font-size: 26px; }
.minicart__head small { font-size: 14px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 999px; }
.minicart__head small:empty { display: none; }
.minicart__free { margin: 0 22px 6px; padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); font-size: 14px; font-weight: 600; }
.minicart__free[hidden], .minicart__foot[hidden] { display: none; }
.minicart__free p { margin: 0 0 9px; }
.minicart__bar { height: 7px; border-radius: 99px; background: rgb(255 255 255 / .7); overflow: hidden; }
.minicart__bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--panel-b)); transition: width .7s var(--ease); }
.minicart__free.is-done { background: #dcfce7; color: #14532d; }
.minicart__free.is-done .minicart__bar i { background: #16a34a; }
.minicart__body { flex: 1; overflow-y: auto; padding: 6px 22px; overscroll-behavior: contain; transition: opacity .2s; }
.minicart__body.is-busy { opacity: .5; pointer-events: none; }
.mline { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mline:last-child { border-bottom: 0; }
.mline__img { width: 84px; aspect-ratio: 1; border-radius: 20px; background: var(--tile); overflow: hidden; display: block; }
.mline__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 2px; }
.mline__title { display: block; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.mline__meta { margin: 2px 0 9px; font-size: 13px; color: var(--muted); }
.mline__warn { margin: 4px 0 0; color: var(--bad); font-size: 13px; font-weight: 600; }
.mline__side { display: grid; justify-items: end; align-content: space-between; }
.mline__side b { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mline__rm { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.mline__rm:hover { color: var(--bad); }
.mline.is-out .mline__img { opacity: .5; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 36px; height: 34px; border: 0; background: none; font-size: 18px; line-height: 1; transition: background .2s; }
.stepper button:hover:not(:disabled) { background: var(--tile); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.minicart__foot { display: grid; gap: 10px; padding: 18px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.minicart__sum { display: flex; justify-content: space-between; align-items: baseline; }
.minicart__sum b { font-size: 28px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.minicart__note { margin: 0; font-size: 13px; color: var(--muted); }
.minicart__empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 70px 10px; }
.minicart__empty b { font-size: 24px; letter-spacing: -.03em; }
.minicart__empty p { color: var(--muted); max-width: 20em; }
html.mini-open { overflow: hidden; }

/* ---------- Страница корзины ---------- */
.cartlist { border-top: 0; gap: 14px; }
.cartline { padding: 18px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 22px 44px -38px rgb(23 20 18 / .6); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cartline:hover { transform: translateY(-2px); box-shadow: 0 28px 50px -34px rgb(23 20 18 / .55); }
.cartline--static { box-shadow: none; }
.cartline--static:hover { transform: none; }
.cartline__img { border-radius: 22px; }
.summary { border-radius: 32px; padding: 28px; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--accent-soft))); box-shadow: var(--shadow-lg); }
.freebar { padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); }
.freebar > svg { height: 8px; }
.freebar__bg { fill: rgb(255 255 255 / .75); }
.freebar__fg { fill: var(--accent); }
.paystrip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 0; padding: 0; list-style: none; }
.paystrip li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.cartpage h1, .checkout h1 { letter-spacing: -.05em; }

/* ---------- Карточка товара ---------- */
.gallery__main { border-radius: 34px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); }
.gallery__thumb { border-radius: 18px; }
.buy__title { letter-spacing: -.05em; }
.perks li { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- Телефон ---------- */
@media (max-width: 900px) {
  .hero--v2 .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero--v2 .hero__stage { order: -1; aspect-ratio: 1 / .9; border-radius: 34px; }
  .hero__scroll { display: none; }
  .promo { grid-template-columns: minmax(0, 1fr); border-radius: 32px; }
  .promo__item:nth-child(even) { translate: none; }
  .usp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rail__nav, .rail__all { display: none; }
  .rail__track > .card { flex-basis: 62vw; }
  .rail__track { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); -webkit-mask-image: none; mask-image: none; }
  .block__head h2 { font-size: clamp(28px, 8vw, 40px); }
  .minicart__panel { border-radius: 0; }
  .stage__chip { font-size: 12px; padding: 8px 12px; }
}
.cartpage__recs { margin-top: clamp(44px, 6vw, 88px); }
.cartpage__recs .block__head { margin-bottom: 20px; }

/* Телефон: компактный первый экран, преимущества столбиком, статистика в одну строку */
@media (max-width: 720px) {
  .hero--v2 .stage__tag, .stage__chip--b { display: none; }
  .stage__chip--a { left: 14px; top: 14px; padding: 7px 11px; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; padding-top: 18px; }
  .hero__stats dt { font-size: 21px; }
  .hero__stats dd { font-size: 11.5px; line-height: 1.25; }
  .usp__grid { gap: 10px; }
  .usp__item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 22px; }
  .usp__item .ic { width: 40px; height: 40px; padding: 9px; }
  .usp__item b { font-size: 15px; line-height: 1.2; }
  .usp__item span { font-size: 12.5px; }
}
.tile__t { right: 68px; }
