/* ==========================================================================
   Маллаев Обувь — дизайн-система прототипа
   ========================================================================== */

:root {
  --ink: #161311;
  --ink-2: #2b2521;
  --ink-3: #4a423b;
  --paper: #f6f3ee;
  --sand: #ece5da;
  --white: #ffffff;
  --line: #e3dbcf;
  --line-2: #d6ccbd;
  --muted: #7b7268;
  --accent: #8b5a2b;
  --accent-d: #6e4520;
  --gold: #c8a273;
  --sale: #b23a2e;
  --ok: #2e6a4a;
  --warn: #a8641c;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 12px 34px rgba(22, 19, 17, .08);
  --shadow-lg: 0 24px 60px rgba(22, 19, 17, .18);

  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1320px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
main { outline: none; min-height: 60vh; }
::selection { background: var(--gold); color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--paper); }

.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 18px; height: 18px; }
.i--xs { width: 14px; height: 14px; }
.i--lg { width: 28px; height: 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--gold); }

.h-display { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.01em; }
.h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.h3 { font-size: 18px; font-weight: 700; }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head__title { display: grid; gap: 10px; }
.sec-head__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.sec-head__link:hover { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  background: var(--ink); color: var(--white); border: 1px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; transition: background .2s;
}
.icon-btn:hover { background: var(--paper); }
.icon-btn { justify-content: center; align-items: center; }
.icon-btn.is-auth::after { content: ''; position: absolute; right: 9px; bottom: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.badge:empty { display: none; }

.link { border-bottom: 1px solid currentColor; font-weight: 600; }
.link:hover { color: var(--accent); }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--ink); color: rgba(246, 243, 238, .78); font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; }
.topbar__msg { font-weight: 600; letter-spacing: .02em; color: var(--gold); transition: opacity .4s; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__city { display: inline-flex; align-items: center; gap: 6px; }
.topbar__city .i { width: 15px; height: 15px; }
.topbar__phone { font-weight: 700; color: var(--paper); }
.topbar a:hover { color: var(--gold); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(22,19,17,.06); }
.header__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; height: 78px; }
.header__left, .header__right { display: flex; align-items: center; gap: 2px; }
.header__right { justify-content: flex-end; }
.icon-btn--cart { background: var(--paper); margin-left: 4px; }
.icon-btn--cart:hover { background: var(--sand); }

/* Логотип: типографский «маллаев.» */
.logo { --logo-size: 40px; display: inline-grid; justify-items: center; line-height: 1; user-select: none; color: var(--ink); }
.logo__name { font-family: var(--f-display); font-weight: 600; font-size: var(--logo-size); letter-spacing: -.005em; line-height: .82; }
.logo__dot { color: var(--accent); }
.logo__sub { font-family: var(--f-body); font-size: max(9.5px, calc(var(--logo-size) * .2)); font-weight: 600; letter-spacing: .78em; margin-right: -.78em; text-transform: uppercase; opacity: .62; margin-top: calc(var(--logo-size) * .2); }
.logo--light { color: var(--paper); }
.logo--light .logo__dot { color: var(--gold); }
.logo--light .logo__sub { opacity: .7; }
.logo--footer { --logo-size: 46px; justify-self: start; }
.logo--sm { --logo-size: 32px; }

.mainnav { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 14px; font-weight: 600; white-space: nowrap; min-width: 0; }
.mainnav a { position: relative; padding: 8px 0; }
.mainnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.mainnav a:hover, .mainnav a.is-active { color: var(--accent); }
.mainnav a:hover::after, .mainnav a.is-active::after { transform: none; }
.mainnav a.is-sale { color: var(--sale); }
.mainnav__catalog { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; transition: background .2s; }
.mainnav__catalog:hover { background: var(--accent-d); }
.mainnav__catalog .i { width: 18px; height: 18px; }

.hide-desktop { display: none !important; }

/* ---------- Hero (разделённый) ---------- */
.hero { background: var(--paper); padding: 28px 0 36px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: stretch; }
.hero__text-col { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.hero__text { display: grid; gap: 22px; transition: opacity .35s; }
.hero__text p { font-size: 18px; color: var(--ink-3); max-width: 460px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero__ctrl { display: flex; align-items: center; gap: 18px; margin-top: 48px; }
.hero__count { font-family: var(--f-display); font-size: 22px; font-weight: 600; min-width: 64px; }
.hero__count small { font-size: 15px; color: var(--muted); }
.hero__dots { display: flex; gap: 8px; flex: 1; max-width: 220px; }
.hero__dot { flex: 1; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; position: relative; }
.hero__dot.is-active::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: dot 6s linear forwards; }
@keyframes dot { from { transform: translateX(-100%); } to { transform: none; } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .2s; }
.hero__arrows button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero__media { position: relative; height: min(70vh, 640px); min-height: 460px; border-radius: 28px; overflow: hidden; background: var(--ink); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide.is-flip img { transform: scale(1.06) scaleX(-1); }
.hero__slide.is-flip.is-active img { transform: scaleX(-1); }
.hero__caption { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.hero__caption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hero__caption b { display: block; font-size: 14px; }
.hero__caption span { color: var(--muted); font-weight: 500; }
.hero__badge {
  position: absolute; z-index: 3; right: 22px; top: 22px;
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--gold); color: var(--ink); transform: rotate(-8deg); box-shadow: var(--shadow);
}
.hero__badge b { display: block; font-family: var(--f-display); font-size: 46px; line-height: .9; }
.hero__badge small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.perk { display: flex; gap: 14px; align-items: center; padding: 26px 24px; border-right: 1px solid var(--line); }
.perk:last-child { border-right: 0; }
.perk__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--accent); flex: none; }
.perk b { display: block; font-size: 14px; }
.perk span { font-size: 13px; color: var(--muted); }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 16px; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); color: var(--white); isolation: isolate; }
.cat:first-child { grid-row: span 2; }
.cat:last-child { grid-column: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: -1; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,11,9,.7), rgba(14,11,9,0) 55%); z-index: -1; }
.cat:hover img { transform: scale(1.06); }
.cat__label { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat__label b { font-family: var(--f-display); font-size: 28px; font-weight: 600; line-height: 1; }
.cat:first-child .cat__label b { font-size: 40px; }
.cat__label small { display: block; font-size: 12px; font-weight: 600; opacity: .8; margin-top: 4px; letter-spacing: .04em; }
.cat__arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s, color .2s; flex: none; }
.cat:hover .cat__arrow { background: var(--white); color: var(--ink); }

/* ---------- Табы ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--paper); border-radius: 999px; }
.tab { height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.tab.is-active { background: var(--white); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.06); }

/* ---------- Карусель ---------- */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__btn { position: absolute; top: 38%; z-index: 4; width: 48px; height: 48px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; transition: opacity .2s, transform .2s; }
.rail__btn:hover { transform: scale(1.06); }
.rail__btn--prev { left: -22px; }
.rail__btn--next { right: -22px; }
.rail__btn[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Карточка товара ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.card__link { position: absolute; inset: 0; display: block; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card__media .card__img2 { opacity: 0; }
.card:hover .card__media .card__img2 { opacity: 1; }
.card:hover .card__media img:first-child { transform: scale(1.04); }
.card__badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--white); color: var(--ink); }
.tag--new { background: var(--ink); color: var(--white); }
.tag--hit { background: var(--gold); color: var(--ink); }
.tag--sale { background: var(--sale); color: var(--white); }
.tag--season { background: rgba(255,255,255,.9); }
.tag--low { background: #fff4e6; color: var(--warn); }
.card__fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .2s, color .2s; }
.card__fav:hover { transform: scale(1.08); }
.card__fav.is-on { color: var(--sale); }
.card__fav.is-on .i { fill: currentColor; }
.card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease); }
.card:hover .card__quick { opacity: 1; transform: none; }
.card__quick .btn { width: 100%; height: 44px; background: rgba(255,255,255,.96); color: var(--ink); border-color: transparent; }
.card__quick .btn:hover { background: var(--ink); color: var(--white); }
.card__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: none; justify-content: center; gap: 4px; z-index: 2; }
.card__body { display: grid; gap: 6px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price__now { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.price__old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price__off { font-size: 13px; font-weight: 800; color: var(--sale); }
.card__title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.card__title:hover { color: var(--accent); }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.card__cart { display: none; }

/* ---------- Промо-баннер ---------- */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 24px; overflow: hidden; background: var(--ink); color: var(--paper); min-height: 460px; }
.promo__text { padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.promo__text p { color: rgba(246,243,238,.72); font-size: 17px; max-width: 440px; }
.promo__media { position: relative; }
.promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__list { display: grid; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; }
.promo__list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.promo__list .i { color: var(--gold); }

/* ---------- О бренде ---------- */
.brand { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.brand__media { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 560px; }
.brand__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.brand__media figure:first-child { grid-row: span 2; }
.brand__media img { width: 100%; height: 100%; object-fit: cover; }
.brand__media figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.brand__text { display: grid; gap: 22px; }
.brand__text p { color: var(--ink-3); font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--paper); }
.stat b { display: block; font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Отзывы ---------- */
.reviews-score { display: flex; align-items: center; gap: 18px; }
.reviews-score b { font-family: var(--f-display); font-size: 64px; line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .i { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.stars .i.is-off { opacity: .25; }
.review { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); min-height: 250px; }
.review__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review__who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sand); color: var(--accent-d); display: grid; place-items: center; font-weight: 800; }
.review__who b { display: block; font-size: 15px; }
.review__who span { font-size: 12px; color: var(--muted); }
.review__product { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.review p { color: var(--ink-3); }
.section--paper .rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }

/* ---------- Блог ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: grid; gap: 14px; }
.post__media { aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.post p { color: var(--muted); font-size: 14px; }

/* ---------- Подписка ---------- */
.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px 56px; border-radius: 24px; background: var(--sand); }
.subscribe form { display: flex; gap: 10px; }
.subscribe input { flex: 1; }

/* ---------- Формы ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--white); font-size: 15px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.textarea { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(139,90,43,.12); }
.input::placeholder { color: #a39a8f; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23161311' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- Хлебные крошки / заголовок страницы ---------- */
.page-head { padding: 28px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .i { width: 12px; height: 12px; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head__count { font-size: 14px; color: var(--muted); margin-left: 10px; font-family: var(--f-body); font-weight: 500; }

/* ---------- Каталог ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 18px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; background: var(--white); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip--size { min-width: 52px; justify-content: center; padding: 0 12px; }
.chip--size.is-out { color: #b5ada3; border-style: dashed; text-decoration: line-through; pointer-events: none; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; position: sticky; top: 79px; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.toolbar__left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .select { height: 42px; width: auto; border-radius: 999px; font-weight: 600; font-size: 14px; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 600; }
.filter-pill button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.filter-pill button:hover { background: var(--line); }

.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 166px; display: grid; gap: 4px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 6px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.fgroup__list { display: grid; gap: 10px; }
.fgroup__sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fgroup__sizes .chip { height: 38px; min-width: 0; padding: 0; justify-content: center; }
.fgroup__colors { display: flex; flex-wrap: wrap; gap: 10px; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); position: relative; }
.color-dot.is-active::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range .input { height: 42px; font-size: 14px; padding: 0 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.empty { text-align: center; padding: 72px 20px; display: grid; justify-items: center; gap: 14px; }
.empty__ico { width: 88px; height: 88px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--accent); }
.empty__ico .i { width: 36px; height: 36px; }
.empty p { color: var(--muted); max-width: 400px; }

/* ---------- Карточка товара (страница) ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding: 8px 0 72px; align-items: start; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.gallery__thumbs { display: grid; gap: 10px; align-content: start; }
.gallery__thumb { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: all .2s; background: var(--paper); }
.gallery__thumb.is-active { border-color: var(--ink); opacity: 1; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery__nav { position: absolute; inset: auto 16px 16px auto; display: flex; gap: 8px; }
.gallery__nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.gallery__counter { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }

.pdp__info { display: grid; gap: 22px; }
.pdp__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pdp__tags .tag { border: 1px solid var(--line); }
.pdp__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 3vw, 44px); line-height: 1.04; }
.pdp__meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pdp__meta .stars .i { width: 14px; height: 14px; }
.pdp__price .price__now { font-size: 32px; }
.pdp__price .price__old { font-size: 18px; }
.pdp__price .price__off { font-size: 15px; background: #fbeceb; padding: 3px 8px; border-radius: 6px; }
.pdp__installment { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.pdp__installment b { color: var(--ink); }
.pdp__block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.pdp__block-head b { font-weight: 700; }
.pdp__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__stock { font-size: 13px; color: var(--ok); font-weight: 600; margin-top: 10px; min-height: 20px; }
.pdp__stock.is-low { color: var(--warn); }
.pdp__buy { display: grid; grid-template-columns: 1fr 58px; gap: 10px; }
.pdp__buy .btn { height: 58px; }
.pdp__fav { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .2s; }
.pdp__fav:hover { border-color: var(--ink); }
.pdp__fav.is-on { color: var(--sale); border-color: var(--sale); }
.pdp__fav.is-on .i { fill: currentColor; }
.pdp__one-click { text-align: center; font-weight: 700; font-size: 14px; }
.pdp__one-click button { border-bottom: 1px dashed currentColor; }
.pdp__perks { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.pdp__perk { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pdp__perk:last-child { border-bottom: 0; }
.pdp__perk .i { color: var(--accent); }
.pdp__perk span { color: var(--muted); display: block; font-size: 13px; }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 700; font-size: 15px; text-align: left; }
.acc__head .i { transition: transform .25s; }
.acc__item.is-open .acc__head .i { transform: rotate(180deg); }
.acc__body { display: none; padding: 0 0 20px; color: var(--ink-3); font-size: 14px; }
.acc__item.is-open .acc__body { display: block; }
.specs { display: grid; gap: 0; margin: 0; }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs--wide div { grid-template-columns: 200px 1fr; }
.specs dd { margin: 0; font-weight: 600; color: var(--ink); }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fit__tool { background: var(--white); border-radius: 20px; padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.fit__row { display: flex; gap: 10px; }
.fit__row .input { flex: 1; }
.fit__result { min-height: 56px; padding: 14px 18px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.fit__result b { font-size: 22px; font-family: var(--f-display); }

.sticky-buy { display: none; }

/* ---------- Таблица ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.table tr.is-hl td { background: #fbf4ea; font-weight: 700; }

/* ---------- Корзина ---------- */
.cart { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; padding: 8px 0 80px; }
.cart__list { display: grid; }
.citem { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.citem:first-child { padding-top: 0; }
.citem__img { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper); }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__info { display: grid; gap: 6px; align-content: start; }
.citem__info a { font-weight: 600; font-size: 16px; }
.citem__info a:hover { color: var(--accent); }
.citem__opts { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.citem__actions { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.citem__actions button { display: inline-flex; align-items: center; gap: 6px; }
.citem__actions button:hover { color: var(--ink); }
.citem__right { display: grid; justify-items: end; align-content: space-between; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 42px; }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--paper); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.summary { position: sticky; top: 140px; background: var(--paper); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.summary h3 { font-family: var(--f-display); font-size: 28px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary__row span:first-child { color: var(--muted); }
.summary__row.is-discount span:last-child { color: var(--sale); font-weight: 700; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line-2); }
.summary__total b { font-size: 26px; font-weight: 800; }
.promo-field { display: flex; gap: 8px; }
.promo-field .input { height: 46px; }
.promo-field .btn { height: 46px; }
.summary__note { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.summary__mini { display: grid; gap: 12px; max-height: 260px; overflow: auto; padding-right: 4px; }
.mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.mini img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.mini b { display: block; font-weight: 600; }

/* ---------- Оформление ---------- */
.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; padding: 8px 0 80px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 18px; margin-bottom: 16px; }
.step__head { display: flex; align-items: center; gap: 14px; }
.step__num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.step__head h3 { font-size: 20px; font-weight: 700; }
.step__head .link { margin-left: auto; font-size: 13px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { position: relative; display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.option:hover { border-color: var(--ink-3); }
.option input { position: absolute; opacity: 0; }
.option__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; }
.option input:checked ~ .option__radio { border-color: var(--ink); }
.option input:checked ~ .option__radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.option:has(input:checked) { border-color: var(--ink); background: #fcfaf7; box-shadow: 0 0 0 1px var(--ink); }
.option__body { display: grid; gap: 2px; flex: 1; }
.option__body b { font-size: 14px; }
.option__body span { font-size: 12px; color: var(--muted); }
.option__price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.login-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 14px; background: var(--paper); font-size: 14px; flex-wrap: wrap; }

/* ---------- Авторизация ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 160px); }
.auth__media { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.auth__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,11,9,.85), rgba(14,11,9,.1) 60%); }
.auth__quote { position: absolute; left: 56px; right: 56px; bottom: 56px; z-index: 2; display: grid; gap: 16px; }
.auth__quote ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth__quote li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.88); }
.auth__quote .i { color: var(--gold); }
.auth__side { display: grid; place-items: center; padding: 56px 24px; background: var(--white); }
.auth__card { width: 100%; max-width: 440px; display: grid; gap: 22px; }
.auth__card .tabs { width: 100%; }
.auth__card .tab { flex: 1; }
.btn-yandex {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 56px;
  border-radius: 14px; background: #000; color: #fff; font-weight: 600; font-size: 16px; transition: background .2s, transform .2s;
}
.btn-yandex:hover { background: #222; }
.btn-yandex:active { transform: scale(.99); }
.btn-yandex svg { width: 28px; height: 28px; flex: none; }
.divider { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth__form { display: grid; gap: 14px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth__legal { font-size: 12px; color: var(--muted); text-align: center; }
.auth__legal a { text-decoration: underline; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 52px; }
.pass-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.yandex-wait { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 20px 0; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: #fc3f1d; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Личный кабинет ---------- */
.account { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding: 8px 0 80px; }
.acc-nav { position: sticky; top: 140px; display: grid; gap: 4px; padding: 20px; border-radius: 20px; background: var(--paper); }
.acc-user { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.acc-user .avatar { width: 52px; height: 52px; font-size: 18px; background: var(--ink); color: var(--gold); }
.acc-user b { display: block; }
.acc-user span { font-size: 12px; color: var(--muted); }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; width: 100%; text-align: left; }
.acc-nav a:hover, .acc-nav button:hover { background: rgba(255,255,255,.7); }
.acc-nav a.is-active { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.acc-nav .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.acc-panel { display: grid; gap: 22px; }
.acc-panel > h2 { font-family: var(--f-display); font-size: 36px; }
.order { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; }
.order__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.order__head b { font-size: 16px; }
.order__head span { font-size: 13px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--way { background: #fff4e6; color: var(--warn); }
.status--done { background: #e8f3ed; color: var(--ok); }
.status--new { background: #ecebfa; color: #4b47a8; }
.order__items { display: flex; gap: 10px; }
.order__items img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.order__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.track span { height: 4px; border-radius: 2px; background: var(--line); }
.track span.is-on { background: var(--ok); }
.linked { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.linked svg { width: 32px; height: 32px; flex: none; }
.linked div { flex: 1; }
.linked b { display: block; font-size: 14px; }
.linked span { font-size: 13px; color: var(--muted); }
.addr { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.addr .i { color: var(--accent); margin-top: 2px; }
.addr div { flex: 1; font-size: 14px; }
.addr b { display: block; margin-bottom: 2px; }
.card-panel { padding: 28px; border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 18px; }

/* ---------- Успех ---------- */
.success { max-width: 640px; margin: 0 auto; text-align: center; padding: 72px 0 96px; display: grid; gap: 18px; justify-items: center; }
.success__ico { width: 96px; height: 96px; border-radius: 50%; background: #e8f3ed; color: var(--ok); display: grid; place-items: center; }
.success__ico .i { width: 44px; height: 44px; stroke-width: 2; }
.success__box { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; margin-top: 10px; }

/* ---------- Инфо-страницы ---------- */
.info { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 8px 0 80px; align-items: start; }
.info__nav { position: sticky; top: 140px; display: grid; gap: 2px; }
.info__nav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.info__nav a:hover { background: var(--paper); }
.info__nav a.is-active { background: var(--ink); color: var(--white); }
.prose { max-width: 760px; display: grid; gap: 18px; font-size: 16px; color: var(--ink-3); }
.prose h2 { font-family: var(--f-display); font-size: 32px; color: var(--ink); margin-top: 12px; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 6px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose .callout { padding: 20px 22px; border-radius: 16px; background: var(--paper); border-left: 3px solid var(--accent); }
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 8px; }
.info-card .i { color: var(--accent); }
.info-card b { color: var(--ink); font-size: 16px; }
.info-card span { font-size: 14px; }
.gift { aspect-ratio: 1.6; max-width: 420px; border-radius: 20px; background: linear-gradient(135deg, #1f1a16, #3a2c20); color: var(--paper); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.gift::after { content: 'М'; position: absolute; right: -10px; bottom: -60px; font-family: var(--f-display); font-size: 260px; color: rgba(200,162,115,.12); line-height: 1; }
.gift b { font-family: var(--f-display); font-size: 48px; color: var(--gold); }

/* ---------- Меню (drawer) ---------- */
.drawer, .search, .modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open, .search.is-open, .modal.is-open { visibility: visible; }
.drawer__overlay, .search__overlay, .modal__overlay { position: absolute; inset: 0; background: rgba(14,11,9,.5); opacity: 0; transition: opacity .3s; }
.is-open > .drawer__overlay, .is-open > .search__overlay, .is-open > .modal__overlay { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--white); display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.drawer__panel--left { left: 0; transform: translateX(-100%); }
.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px 32px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.menu-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 20px; }
.menu-cat { position: relative; aspect-ratio: 1.2; border-radius: 14px; overflow: hidden; color: #fff; }
.menu-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 60%); }
.menu-cat span { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-weight: 700; font-size: 14px; }
.menu-links { display: grid; border-top: 1px solid var(--line); }
.menu-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.menu-links a.is-sale { color: var(--sale); }
.menu-contacts { display: grid; gap: 8px; margin-top: 24px; font-size: 14px; }
.menu-contacts a { font-weight: 700; font-size: 18px; }

/* ---------- Поиск ---------- */
.search__panel { position: absolute; top: 0; left: 0; right: 0; background: var(--white); padding: 22px 0 32px; transform: translateY(-100%); transition: transform .35s var(--ease); max-height: 90vh; overflow-y: auto; }
.is-open .search__panel { transform: none; }
.search__field { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.search__field input { flex: 1; border: 0; outline: none; font-size: 24px; font-family: var(--f-display); font-weight: 600; background: transparent; padding: 6px 0; }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__hints { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 22px; }
.sresult { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; }
.sresult:hover { background: var(--paper); }
.sresult img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.sresult b { display: block; font-weight: 600; font-size: 14px; }
.sresult span { font-size: 13px; color: var(--muted); }

/* ---------- Модальное окно ---------- */
.modal { display: grid; place-items: center; padding: 20px; }
.modal__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); border-radius: 24px; padding: 36px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.modal.is-wide .modal__box { width: min(760px, 100%); }
.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; right: 14px; top: 14px; }
.modal h3 { font-family: var(--f-display); font-size: 32px; margin-bottom: 6px; padding-right: 40px; }
.qv { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin: 18px 0 22px; }
.qv img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; }
.qv b { display: block; font-size: 16px; margin-bottom: 6px; }

/* ---------- Тосты ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; }
.toast { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg); min-width: 300px; max-width: 380px; animation: toast-in .35s var(--ease); font-size: 14px; }
.toast img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; }
.toast b { display: block; }
.toast a { color: var(--gold); font-weight: 700; margin-left: auto; white-space: nowrap; }
.toast.is-out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(14px); } }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(246,243,238,.7); padding: 64px 0 28px; margin-top: 0; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: var(--paper); transition: all .2s; }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { color: var(--paper); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.footer__col a:hover { color: var(--gold); }
.footer__phone { font-size: 20px; font-weight: 700; color: var(--paper); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; flex-wrap: wrap; font-size: 13px; }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--gold); }
.footer__pay { display: flex; gap: 6px; }
.pay-chip { height: 28px; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--paper); }
.footer__legal-info { margin-top: 18px; font-size: 12px; color: rgba(246,243,238,.55); }
.footer__note { margin-top: 6px; font-size: 12px; color: rgba(246,243,238,.4); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1200px) {
  .rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .catalog { grid-template-columns: 220px 1fr; gap: 28px; }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .topbar__links a:nth-child(3), .topbar__links a:nth-child(4) { display: none; }
  .mainnav { gap: 18px; }
  .mainnav__opt { display: none; }
}

@media (max-width: 992px) {
  :root { --gutter: 20px; }
  .section { padding: 56px 0; }
  .hide-mobile { display: none !important; }
  .hide-desktop { display: inline-flex !important; }
  .mainnav { display: none; }
  .header__in { height: 64px; grid-template-columns: 1fr auto; gap: 8px; }
  .logo--header { --logo-size: 32px; }
  .topbar__in { justify-content: center; }
  .topbar__msg { font-size: 12px; }
  .topbar__links { display: none; }
  .hero { padding: 16px 0 28px; }
  .hero__in { grid-template-columns: 1fr; gap: 24px; }
  .hero__media { order: -1; height: 56vh; min-height: 340px; border-radius: 22px; }
  .hero__text-col { padding: 0; }
  .hero__ctrl { margin-top: 28px; }
  .toolbar { top: 64px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(2) { border-right: 0; }
  .perk:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .cat:first-child { grid-column: span 2; grid-row: span 1; }
  .promo { grid-template-columns: 1fr; }
  .promo__media { min-height: 320px; order: -1; }
  .promo__text { padding: 36px 28px; }
  .brand { grid-template-columns: 1fr; gap: 36px; }
  .brand__media { height: 420px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts > :nth-child(3) { display: none; }
  .subscribe { grid-template-columns: 1fr; padding: 36px 28px; gap: 20px; }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.is-open { display: grid; position: fixed; inset: 0; z-index: 110; background: var(--white); max-height: none; padding: 20px; top: 0; overflow-y: auto; align-content: start; }
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery__thumbs { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; overflow-x: auto; }
  .fit { grid-template-columns: 1fr; gap: 28px; }
  .cart, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth__media { display: none; }
  .account { grid-template-columns: 1fr; gap: 20px; }
  .acc-nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; padding: 10px; }
  .acc-user { display: none; }
  .info { grid-template-columns: 1fr; gap: 20px; }
  .info__nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .hero__badge { width: 104px; height: 104px; right: 14px; top: 14px; }
  .hero__badge b { font-size: 36px; }
  .section--paper .rail__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .card__quick { display: none; }
  .card__cart { display: inline-flex; }
  .sticky-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy .btn { flex: 1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 14px; }
  .section { padding: 44px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .hero__media { height: 46vh; min-height: 300px; }
  .hero__caption { display: none; }
  .hero__text p { font-size: 16px; }
  .hero__actions .btn { flex: 1; }
  .hero__arrows button { width: 40px; height: 40px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk { padding: 16px 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .perk__ico { width: 38px; height: 38px; }
  .rail__track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
  .section--paper .rail__track { grid-auto-columns: 86%; }
  .rail__btn { display: none; }
  .cats { grid-auto-rows: 160px; gap: 10px; }
  .cat__label b { font-size: 22px; }
  .cat:first-child .cat__label b { font-size: 30px; }
  .cat__arrow { display: none; }
  .card { gap: 10px; }
  .card__media { border-radius: 12px; }
  .card__fav { width: 34px; height: 34px; right: 8px; top: 8px; }
  .card__badges { left: 8px; top: 8px; }
  .tag { height: 22px; padding: 0 8px; font-size: 10px; }
  .price__now { font-size: 16px; }
  .card__title { font-size: 13px; }
  .card__cart { height: 38px; font-size: 13px; padding: 0 14px; }
  .brand__media { height: 340px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 30px; }
  .stat span { font-size: 11px; }
  .posts { grid-template-columns: 1fr; }
  .posts > :nth-child(3) { display: grid; }
  .subscribe form { flex-direction: column; }
  .form-grid, .options { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .citem { grid-template-columns: 88px 1fr; gap: 14px; }
  .citem__right { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .step { padding: 20px; }
  .modal { padding: 0; align-items: end; }
  .modal__box { border-radius: 24px 24px 0 0; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 92vh; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .specs div { grid-template-columns: 120px 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .toolbar { gap: 8px; }
  .toolbar .select { max-width: 170px; }
  .reviews-score b { font-size: 48px; }
}

/* ---------- Доработки витрины ---------- */
.hero .h-display { font-size: clamp(40px, 5vw, 74px); }
.brand__quote { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.94); font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.card__title { font-weight: 600; }
.price--card .price__now { font-size: 17px; }

/* ---------- Статусы оплаты ---------- */
.success__ico--wait { background: #fff4e6; color: var(--warn); }
.success__ico--bad { background: #fbeceb; color: var(--sale); }
.status--cancel { background: #fbeceb; color: var(--sale); }

/* ---------- Яндекс Пэй: бейджи и виджет ---------- */
.pay-badge { min-height: 18px; line-height: 0; }
.pay-badge yandex-pay-badge { display: block; }
.pay-badge--cart { display: flex; justify-content: flex-end; margin-top: -8px; }
.pay-badge--checkout { margin-top: 6px; }
.pay-badge--item { margin-top: -10px; }
.pay-widget .ya-pay-widget { width: 100% !important; }
/* пока Яндекс не показал виджет (высота 0) — не занимаем место в сетке карточки */
.pdp__info > .pay-widget { margin-top: -22px; }
.pdp__info > .pay-widget .ya-pay-widget:not([style*="height: 0px"]) { margin-top: 22px !important; }
.summary__note--pay svg { width: 18px; height: 18px; flex: none; }
.summary__note--pay b { color: var(--ink); }

/* ---------- Официальные кнопки Яндекс ID и Яндекс Пэй ---------- */
[hidden] { display: none !important; }
.ya-slot { position: relative; display: block; min-height: 56px; }
.ya-slot--s { display: inline-block; min-height: 40px; min-width: 210px; vertical-align: middle; }
.ya-slot__sdk.is-pending { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ya-slot__sdk iframe { display: block; max-width: 100%; }
.btn-yandex--s { height: 40px; border-radius: 10px; font-size: 14px; gap: 8px; padding: 0 16px; }
.btn-yandex--s svg { width: 22px; height: 22px; }
.linked .ya-slot--s { flex: none; }
.pay-slot { min-height: 54px; }
.pay-slot[hidden], .order-pay [hidden] { display: none; }
.order-pay { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.saved-addr { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.saved-addr .chip { height: 36px; padding: 0 14px; font-size: 13px; }
.addr__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.addr div { min-width: 0; }
.auth__card--solo { margin: 56px auto 96px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
@media (max-width: 600px) {
  .addr { flex-wrap: wrap; }
  .addr__actions { width: 100%; justify-content: flex-start; }
  .auth__card--solo { margin: 24px auto 64px; padding: 22px; }
}
