/* AVRELLA BEAUTY — визуальная система. Молочный камень, тёплый свет, тонкие линии. */

:root {
  --milk: #F6F2EC;
  --stone: #E8E0D5;
  --stone-2: #EFE9E1;
  --ink: #292521;
  --ink-2: #6B635B;
  --ink-3: #9A9088;
  --line: #DCD3C7;
  --nude: #C59B88;
  --nude-ink: #A57A66;
  --olive: #747967;
  --white: #FFFFFF;

  --display: "Montserrat", "Manrope", "Segoe UI", system-ui, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1400px;
  --pad: clamp(18px, 3.4vw, 56px);
  --r: 2px;
  --t: .22s cubic-bezier(.2, .7, .2, 1);

  --fs-s: .8125rem;
  --fs: .9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.375rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font: 400 var(--fs)/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-bar { padding-bottom: 88px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-s); }

/* тонкие полосы прокрутки в цвет линий */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* фото Sephora на белом: белый растворяем в фоне, цвета упаковки остаются */
.blend img, img.blend { mix-blend-mode: multiply; }

/* ---------- заголовки ---------- */
h1, h2, h3 { font-weight: 400; margin: 0; }
.t-display { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: .14em; line-height: 1.18; font-size: clamp(1.7rem, 3.4vw, 3.1rem); }
.t-section { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .2em; line-height: 1.2; font-size: clamp(1rem, 1.35vw, 1.25rem); }
.t-sub { font-size: var(--fs); color: var(--ink-2); margin: 8px 0 0; max-width: 52ch; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px; border-radius: var(--r); border: 1px solid var(--ink);
  background: var(--ink); color: var(--milk); font-family: var(--display); font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { background: #3a342e; border-color: #3a342e; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--stone); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.line:hover { border-color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--stone); border-color: var(--stone); color: var(--ink-3); cursor: not-allowed; }
.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color var(--t); }
.link:hover { color: var(--nude-ink); }

/* ---------- шапка ---------- */
.head { position: sticky; top: 0; z-index: 30; background: rgba(246, 242, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 74px; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; justify-self: start; }
.logo b {
  font-family: var(--display); font-weight: 300; font-size: 1.35rem; letter-spacing: .38em; text-transform: uppercase;
  margin-right: -.38em; transform: scaleY(1.18); transform-origin: bottom;
}
.logo small { font-size: .56rem; letter-spacing: .44em; text-transform: uppercase; color: var(--ink-2); margin: 5px 0 0; margin-right: -.44em; }
.nav { display: flex; gap: 4px; justify-content: center; align-items: stretch; align-self: stretch; }
.nav > a, .nav-item > a { padding: 8px 12px; font-family: var(--display); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color var(--t); }
.nav > a:hover, .nav-item:hover > a, .nav-item:focus-within > a, .nav a[aria-current="true"] { border-bottom-color: var(--ink); }
.nav-item { position: static; display: flex; align-items: center; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; display: block; visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .28s;
  background: var(--milk); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(41, 37, 33, .28);
  max-height: min(70vh, 560px); overflow: auto;
}
.mega-in { max-width: var(--wrap); margin: 0 auto; padding: 22px calc(var(--pad) + 6px) 26px var(--pad); display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 0 44px; align-items: start; }
/* слева — подразделы */
.mega-side { list-style: none; margin: 0; padding: 0 20px 0 0; border-right: 1px solid var(--line); }
.mega-tab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-family: var(--display); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); transition: color var(--t); }
.mega-tab::after { content: ""; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg) translateX(-4px); opacity: 0; transition: opacity var(--t), transform var(--t); flex: none; }
.mega-tab:hover, .mega-tab.is-on { color: var(--ink); }
.mega-tab.is-on::after { opacity: 1; transform: rotate(45deg); }
/* справа — пункты выбранного подраздела ровной сеткой */
.mega-pane { display: none; }
.mega-pane.is-on { display: block; animation: megaIn .18s ease both; }
@keyframes megaIn { from { opacity: 0; } to { opacity: 1; } }
.mega-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-pane-head h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.mega-all { font-size: var(--fs-s); color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid var(--line); transition: color var(--t), border-color var(--t); }
.mega-all:hover { color: var(--ink); border-color: var(--ink); }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.mega-grid a { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; color: var(--ink-2); font-size: var(--fs-s); transition: color var(--t); }
.mega-grid a small { color: var(--ink-3); font-size: .78em; }
.mega-grid a:hover { color: var(--ink); }
.mega-feature { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); isolation: isolate; }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.mega-feature-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: grid; gap: 4px; color: var(--milk); background: linear-gradient(to top, rgba(41, 37, 33, .55), rgba(41, 37, 33, 0)); }
.mega-feature-label b { font-family: var(--display); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.mega-feature-label span { font-size: var(--fs-s); opacity: .9; }
@media (hover: hover) { .mega-feature:hover img { transform: scale(1.05); } }
@media (max-width: 1180px) { .mega-in { grid-template-columns: 200px minmax(0, 1fr); gap: 0 32px; } .mega-feature { display: none; } .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nav-item:hover .mega, .nav-item:focus-within .mega { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .18s ease, visibility 0s; }
/* мост между пунктом меню и панелью — курсор не «проваливается» в щель */
.nav-item > a { position: relative; }
.nav-item:hover > a::after { content: ""; position: absolute; left: -24px; right: -24px; top: 100%; height: 40px; }
.tools { display: flex; gap: 6px; align-items: center; justify-self: end; }
.search { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; border-bottom: 1px solid var(--line); width: clamp(160px, 18vw, 260px); }
.sug { position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, 92vw); background: var(--milk); border: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(41, 37, 33, .3); z-index: 40; padding: 8px 0; max-height: 70vh; overflow: auto; }
.sug h5 { margin: 8px 16px 4px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.sug a { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: var(--fs-s); color: var(--ink); }
.sug a:hover, .sug a.is-focus { background: var(--stone-2); }
.sug a small { margin-left: auto; color: var(--ink-3); white-space: nowrap; }
.sug img { width: 36px; height: 36px; object-fit: contain; background: var(--stone-2); mix-blend-mode: multiply; flex: none; }
.sug .sug-name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sug .sug-brand { color: var(--ink-3); font-size: .72rem; display: block; }
.search .clear { border: 0; background: none; padding: 0 2px; color: var(--ink-3); display: none; line-height: 1; }
.search .clear svg { width: 14px; height: 14px; }
.search.has-q .clear { display: inline-flex; }
.search:focus-within { border-bottom-color: var(--ink); }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: var(--fs-s); }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search svg, .cart-btn svg, .icon-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }
.cart-btn { height: 34px; padding: 0 0 0 14px; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-s); }
.cart-btn:hover { color: var(--nude-ink); }

/* ---------- плитка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.tile { display: flex; flex-direction: column; gap: 5px; position: relative; }
.tile-img { aspect-ratio: 1; background: var(--stone-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.tile-img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s ease; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-brand { font-family: var(--display); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tile-name { font-size: var(--fs-s); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .price { margin-top: 2px; }
.tile-meta { font-size: .75rem; color: var(--ink-3); min-height: 1.2em; }
.tile-flag { position: absolute; top: 10px; left: 10px; font-size: .68rem; letter-spacing: .08em; padding: 4px 8px; background: var(--milk); color: var(--ink-2); }
.tile-flag.sale { color: var(--nude-ink); }
.tile.is-out .tile-img img { opacity: .5; }
.tile.is-out .price .now { color: var(--ink-3); }

.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price .now { font-weight: 500; }
.price.is-sale .now { color: var(--nude-ink); }
.price s { color: var(--ink-3); font-weight: 300; }
.stars { position: relative; display: inline-block; font-size: 11px; letter-spacing: 1px; color: var(--line); line-height: 1; }
.stars i { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--ink); font-style: normal; white-space: nowrap; }
.rating { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: var(--fs-s); }

/* ---------- полки с горизонтальным скроллом ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.shelf::-webkit-scrollbar { display: none; }
.shelf .tile { scroll-snap-align: start; }

/* ---------- главная ---------- */
/* главный экран: кадр во всю ширину, текст поверх */
/* главный экран занимает ровно весь экран под шапкой (высоту шапки ставит скрипт в --head-h) */
.hero { position: relative; height: calc(100vh - var(--head-h, 74px)); height: calc(100svh - var(--head-h, 74px)); min-height: 440px; background: var(--stone); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: 0; transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1); }
.hero-v.on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(41, 37, 33, .42), rgba(41, 37, 33, 0) 22%), linear-gradient(to top, rgba(41, 37, 33, .62), rgba(41, 37, 33, .18) 45%, rgba(41, 37, 33, 0) 72%); pointer-events: none; }
body.head-over .hero { margin-top: calc(var(--head-h, 75px) * -1); height: 100vh; height: 100svh; }
/* прозрачная шапка поверх видео (пока не начали листать, не навели и не открыли поиск) */
.head.is-over:not(:hover):not(:focus-within) { background-color: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--milk); }
.head.is-over:not(:hover):not(:focus-within) .logo small { color: rgba(246, 242, 236, .8); }
.head.is-over:not(:hover):not(:focus-within) .search { border-bottom-color: rgba(246, 242, 236, .55); }
.head.is-over:not(:hover):not(:focus-within) .search input { color: var(--milk); }
.head.is-over:not(:hover):not(:focus-within) .search input::placeholder { color: rgba(246, 242, 236, .8); }
.head.is-over:not(:hover):not(:focus-within) .nav > a:hover, .head.is-over:not(:hover):not(:focus-within) .nav-item > a { border-bottom-color: transparent; }
.head .logo small, .head .search, .head .search input { transition: color .45s ease, border-color .45s ease; }
.hero-text { position: absolute; left: 0; right: 0; bottom: clamp(30px, 5vw, 68px); color: var(--milk); display: flex; flex-direction: column; align-items: flex-start; }
.t-hero { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; line-height: 1; font-size: clamp(2.6rem, 6vw, 6rem); margin: 0 0 22px; max-width: 12ch; text-wrap: balance; text-shadow: 0 2px 40px rgba(41, 37, 33, .22); }
.t-hero .w { display: inline-block; animation: wordIn 1.1s cubic-bezier(.16, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 110ms + 40ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.32em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero-text { transition: opacity .38s ease, transform .38s ease; }
.hero-text.is-leaving { opacity: 0; transform: translateY(10px); }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--display); font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 242, 236, .9); }
.hero-kicker[hidden] { display: none; }
.hero-kicker .dash { width: 28px; height: 1px; background: rgba(246, 242, 236, .7); font-size: 0; }
.hero-sub { margin: 0 0 28px; font-size: clamp(1rem, 1.25vw, 1.2rem); color: rgba(246, 242, 236, .9); max-width: 46ch; text-wrap: balance; }
.hero-sub[hidden] { display: none; }
.btn.milk { background: var(--milk); color: var(--ink); border-color: var(--milk); }
.btn.milk:hover { background: var(--stone); border-color: var(--stone); }
/* пауза стоит на одной линии с кнопкой и у правого края контента */
.hero-pause { position: absolute; right: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))); bottom: calc(clamp(30px, 5vw, 68px) + 5px); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(246, 242, 236, .55); background: rgba(41, 37, 33, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; display: grid; place-items: center; transition: border-color var(--t), background var(--t); }
.hero-pause:hover { border-color: var(--milk); }
.hero-pause:focus-visible { outline: 1px solid var(--milk); outline-offset: 3px; }
.hero-pause span { width: 8px; height: 12px; border-left: 2px solid var(--milk); border-right: 2px solid var(--milk); }
.hero-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 10px solid var(--milk); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

.section { padding: clamp(44px, 6vw, 96px) 0 0; }
.section:last-of-type { padding-bottom: clamp(44px, 6vw, 96px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-head a.link { white-space: nowrap; font-size: var(--fs-s); }

.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.cat { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cat:hover img { transform: scale(1.03); }
.cat-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; color: var(--milk); background: linear-gradient(to top, rgba(41, 37, 33, .42), rgba(41, 37, 33, 0)); }
.cat-label b { font-family: var(--display); font-weight: 500; font-size: clamp(.85rem, 1.1vw, 1rem); line-height: 1.2; letter-spacing: .24em; text-transform: uppercase; }
.cat-label span { font-size: var(--fs-s); opacity: .85; }

.spot { position: relative; margin-top: clamp(44px, 6vw, 96px); background: var(--stone); overflow: hidden; }
.spot-media { position: relative; aspect-ratio: 21 / 9; }
.spot-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.3s cubic-bezier(.4, 0, .2, 1); }
.spot-media video.on { opacity: 1; }
/* текст на матовой молочной подложке: читается на любом кадре видео */
.spot-text {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-width: min(280px, calc(100% - 40px)); max-width: calc(100% - 40px); padding: clamp(22px, 2.6vw, 32px) clamp(26px, 3.6vw, 48px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  background: rgba(246, 242, 236, .58); -webkit-backdrop-filter: blur(16px) saturate(1.05); backdrop-filter: blur(16px) saturate(1.05);
  border: 1px solid rgba(246, 242, 236, .35);
}
.spot-text h2 { margin: 0; font-weight: 500; letter-spacing: .3em; font-size: clamp(1.5rem, 3vw, 2.6rem); max-width: 22ch; }
.spot-logo { display: block; height: clamp(26px, 3vw, 40px); width: auto; max-width: 100%; margin: 0 auto; }
.spot-text .btn { margin: 0; height: 44px; padding: 0 22px; font-size: .72rem; white-space: nowrap; }
.spot-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 10px; }
.spot-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.spot-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 242, 236, .6); box-shadow: 0 0 0 1px rgba(41, 37, 33, .25); transition: transform var(--t), background var(--t); }
.spot-dots button[aria-selected="true"]::before { background: var(--milk); transform: scale(1.5); }
.spot-dots button:focus-visible { outline: 1px solid var(--milk); outline-offset: -2px; }

.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.story-photo { aspect-ratio: 4 / 3; background: var(--stone); overflow: hidden; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-text h2 { margin-bottom: 20px; }
.story-text p { color: var(--ink-2); margin: 0 0 14px; max-width: 42ch; }
.story-text ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); font-size: var(--fs-s); }
.story-text li { padding-left: 18px; position: relative; }
.story-text li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--olive); }
/* шаги «как мы работаем» */
.story-text ol { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: step; }
.story-text ol li { counter-increment: step; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; color: var(--ink); font-size: var(--fs-s); }
.story-text ol li::before { content: counter(step, decimal-leading-zero); position: static; width: auto; height: auto; background: none; font-family: var(--display); font-size: .68rem; font-weight: 500; letter-spacing: .16em; color: var(--ink-3); }

/* ---------- каталог ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--fs-s); padding-top: 22px; }
.crumbs a:hover { color: var(--ink); }
.cat-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 18px 0 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.cat-top .count { color: var(--ink-3); font-size: var(--fs-s); margin-top: 8px; }
.cat-controls { display: flex; gap: 10px; align-items: center; }
.select { height: 40px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 28px 0 0; font-size: var(--fs-s); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292521' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 14px; }
.select:focus { border-bottom-color: var(--ink); outline: none; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: var(--fs-s); white-space: nowrap; }
.dd-btn::after { content: ""; width: 7px; height: 7px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform var(--t); }
.dd-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.dd-btn:hover, .dd-btn[aria-expanded="true"] { border-bottom-color: var(--ink); }
.dd-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 100%; margin: 0; padding: 6px 0; list-style: none; background: var(--milk); border: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(41, 37, 33, .3); z-index: 20; }
.dd-list li { padding: 9px 16px; font-size: var(--fs-s); white-space: nowrap; cursor: pointer; color: var(--ink-2); }
.dd-list li:hover, .dd-list li.is-focus { background: var(--stone-2); color: var(--ink); }
.dd-list li[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.side-close { display: none; }
@media (min-width: 901px) { .filters-toggle, .side-close { display: none !important; } }

.catalog { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 80px; }
.side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; padding-right: 8px; }
.side-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.side-block:first-of-type { padding-top: 0; }
.side-block h3 { font-family: var(--display); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; color: var(--ink-2); font-size: var(--fs-s); }
.side-cats a:hover, .side-cats a[aria-current="true"] { color: var(--ink); }
.side-cats a[aria-current="true"] { font-weight: 600; }
.side-cats a small { color: var(--ink-3); }
.side-cats .up { color: var(--ink); }
.side-cats .up::before { content: "← "; }
.check { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: var(--fs-s); cursor: pointer; color: var(--ink-2); }
.check:hover { color: var(--ink); }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--ink-3); background: transparent; border-radius: 2px; flex: none; display: grid; place-items: center; transition: border-color var(--t), background var(--t); }
.check input[type="radio"] { border-radius: 50%; }
.check:hover input { border-color: var(--ink); }
.check input:checked { border-color: var(--ink); background: var(--ink); }
.check input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F6F2EC' stroke-width='1.8'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.check input[type="radio"]:checked { background: transparent; box-shadow: inset 0 0 0 4.5px var(--milk), inset 0 0 0 16px var(--ink); }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check small { margin-left: auto; color: var(--ink-3); }
.brand-find { width: 100%; height: 34px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0; margin-bottom: 8px; font-size: var(--fs-s); }
.brand-find:focus { outline: none; border-bottom-color: var(--ink); }
.brand-list { max-height: 260px; overflow: auto; scrollbar-width: thin; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line); background: transparent; font-size: var(--fs-s); border-radius: var(--r); }
.chip svg { width: 14px; height: 14px; }
.chip:hover { border-color: var(--ink); }
.chip.clear { border-color: transparent; text-decoration: underline; padding: 0; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 0; background: transparent; border-bottom: 1px solid transparent; font-size: var(--fs-s); }
.pager button:hover { border-bottom-color: var(--line); }
.pager button[aria-current="true"] { border-bottom-color: var(--ink); font-weight: 600; }
.pager button:disabled { opacity: .35; cursor: default; }
.empty { padding: 60px 20px; text-align: center; border: 1px solid var(--line); }
.empty h2 { font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.empty p { color: var(--ink-2); margin: 0 0 22px; }

/* ---------- карточка товара ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(28px, 5vw, 88px); padding: 20px 0 60px; align-items: start; }
/* галерея стоит на месте и уезжает вместе со страницей (не «следует» при прокрутке) */
.gallery { position: relative; }
.stage { background: var(--stone-2); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.stage img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
/* просмотр фото на весь экран */
.lb { position: fixed; inset: 0; z-index: 90; background: var(--milk); animation: lbfade .18s ease both; }
/* область фото с точными границами — картинка всегда целиком вписана в экран */
.lb-img { position: absolute; inset: 72px 88px 60px; display: flex; align-items: center; justify-content: center; }
.lb-img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; cursor: zoom-out; }
/* значок загрузки появляется, только если фото готовится дольше четверти секунды */
.lb-img::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid rgba(41, 37, 33, .15); border-top-color: var(--ink); opacity: 0; transition: opacity .2s ease 0s; animation: lbspin .9s linear infinite; pointer-events: none; }
.lb.loading .lb-img::after { opacity: 1; transition-delay: .25s; }
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb-x, .lb-prev, .lb-next { position: absolute; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--milk); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: .95rem; transition: border-color var(--t), background var(--t); }
.lb-x { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-x:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--ink); }
.lb-x:focus-visible, .lb-prev:focus-visible, .lb-next:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.lb-n { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: var(--fs-s); color: var(--ink-2); }
body.lb-open { overflow: hidden; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 68px; aspect-ratio: 1; background: var(--stone-2); border: 1px solid transparent; padding: 6px; transition: border-color var(--t); }
.thumbs button:hover { border-color: var(--line); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dots { display: none; }

.buy-box { max-width: 520px; }
.buy-brand { display: inline-block; font-family: var(--display); font-weight: 500; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.buy-brand:hover { color: var(--ink); }
.buy-box h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.35; letter-spacing: .02em; margin: 0 0 12px; }
.buy-short { color: var(--ink-2); font-size: var(--fs); margin: 0 0 14px; max-width: 46ch; }
.buy-box .rating { margin-bottom: 22px; }
.buy-price { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.buy-price .now { font-size: 1.5rem; font-weight: 500; }
.buy-price.is-sale .now { color: var(--nude-ink); }
.buy-price s { color: var(--ink-3); font-weight: 300; font-size: var(--fs-m); }
.buy-price .save { color: var(--nude-ink); font-size: var(--fs-s); }
.verified { font-size: .78rem; color: var(--ink-3); margin: 0 0 22px; }
.stock { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-s); margin: 0 0 22px; flex-wrap: wrap; }
.stock b { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.stock .ok { color: var(--olive); }
.stock .no { color: var(--nude-ink); }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock .when { color: var(--ink-3); font-size: .78rem; }
.variants { margin: 0 0 26px; }
.shades-head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-s); margin-bottom: 12px; color: var(--ink-2); }
.shades-head b { color: var(--ink); font-weight: 500; }
.shades { display: flex; flex-wrap: wrap; gap: 10px; }
.shade { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); padding: 0; background: var(--stone); position: relative; display: grid; place-items: center; overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.shade img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; grid-area: 1 / 1; }
.shade-ini { grid-area: 1 / 1; font-size: .7rem; color: var(--ink-2); }
.shade img + .shade-ini { display: none; }
.shade:hover { border-color: var(--ink); }
.shade[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--milk), 0 0 0 3px var(--ink); }
.shade.oos img { opacity: .4; }
.shade.oos::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ink); transform: rotate(45deg); }
.shade-list { display: grid; gap: 8px; }
.shade-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: transparent; text-align: left; font-size: var(--fs-s); border-radius: var(--r); transition: border-color var(--t); }
.shade-row:hover { border-color: var(--ink); }
.shade-row[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shade-row.oos { color: var(--ink-3); border-style: dashed; }
.buy-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 52px; border-radius: var(--r); background: transparent; flex: none; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 1.1rem; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty-in { width: 44px; height: 100%; border: 0; background: none; text-align: center; font-weight: 500; font-size: 16px; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty-in::-webkit-outer-spin-button, .qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-in:focus { outline: none; }
.buy-row .btn { flex: 1; }
.terms { font-size: var(--fs-s); color: var(--ink-2); margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.terms::before { content: ""; width: 8px; height: 1px; background: var(--olive); flex: none; position: relative; top: -.35em; }
.hl-line { font-size: var(--fs-s); color: var(--ink-3); margin: 18px 0 0; }
.acc { margin-top: 30px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 500; font-size: var(--fs); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--display); font-size: 1.25rem; font-weight: 300; color: var(--ink-2); line-height: 1; transition: transform var(--t); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 20px; color: var(--ink-2); white-space: pre-line; line-height: 1.6; font-size: var(--fs-s); max-width: 62ch; }
.acc-body[lang="en"] { font-size: var(--fs-s); }

/* мобильная нижняя панель */
.buybar { display: none; }

/* ---------- корзина ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(41, 37, 33, .35); z-index: 50; opacity: 0; transition: opacity .25s; }
.drawer-bg.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--milk); z-index: 51; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 400; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; border-radius: var(--r); }
.icon-btn:hover { border-color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 26px; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; object-fit: contain; background: var(--stone-2); padding: 6px; mix-blend-mode: multiply; }
.line-brand { font-family: var(--display); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.line-name { font-size: var(--fs-s); }
.line-shade { font-size: .75rem; color: var(--ink-3); }
.line-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.line .qty { height: 34px; }
.line .qty button { width: 30px; }
.line .qty-in { width: 36px; font-size: var(--fs-s); }
.line-remove { border: 0; background: none; color: var(--ink-3); text-decoration: underline; font-size: .75rem; padding: 0; margin-top: 6px; }
.drawer-foot { padding: 18px 26px 24px; border-top: 1px solid var(--line); max-height: 70vh; overflow: auto; }
.total { display: flex; justify-content: space-between; font-size: var(--fs-m); font-weight: 500; margin-bottom: 6px; }
.note { color: var(--ink-2); font-size: var(--fs-s); margin: 8px 0 0; }
.drawer-foot .btn { width: 100%; margin-top: 12px; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--ink-2); }
.drawer-empty h3 { font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.order-form { display: grid; gap: 12px; margin-top: 12px; }
.order-form .btn { width: 100%; }
.field { display: grid; gap: 6px; font-size: var(--fs-s); color: var(--ink-2); }
.field input, .field textarea { border: 1px solid var(--line); border-radius: var(--r); background: transparent; padding: 11px 12px; font-size: 16px; color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field small { color: var(--ink-3); font-size: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: var(--nude-ink); font-size: var(--fs-s); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: var(--milk); padding: 12px 20px; z-index: 60; opacity: 0; transition: .25s; pointer-events: none; font-size: var(--fs-s); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-bar .toast { bottom: 100px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(44px, 6vw, 96px); color: var(--ink-2); font-size: var(--fs-s); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }
.foot-brand .logo { justify-self: start; align-items: flex-start; }
.foot-brand p { margin: 18px 0 0; max-width: 28ch; }
.foot-col h4 { margin: 0 0 14px; font-family: var(--display); font-weight: 500; font-size: .72rem; color: var(--ink); letter-spacing: .2em; text-transform: uppercase; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a, .linkbtn { color: var(--ink-2); transition: color var(--t); }
.foot-col a:hover, .linkbtn:hover { color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.foot-col p { margin: 0 0 10px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .78rem; }
.foot-sync { color: var(--ink-3); }

/* ---------- движение: мягкие появления, дыхание фото ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
.hero-photo img, .story-photo img, .cat img { animation: photoIn 1.6s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes photoIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.hero-text > :not(.t-hero) { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-text > :nth-child(2) { animation-delay: .12s; } .hero-text > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tile-img img, .stage img, .thumbs img, .sug img { opacity: 0; transition: opacity .6s ease, transform .5s ease; }
.tile-img img.ld, .stage img.ld, .thumbs img.ld, .sug img.ld { opacity: 1; }
.tile:hover .tile-img img { transform: scale(1.03); }
.acc-body { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.dd-list, .sug { animation: rise .22s cubic-bezier(.2, .7, .2, 1) both; }
.spot-text > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) backwards; }
.spot-text > :nth-child(2) { animation-delay: .15s; }
.spot-text { animation-play-state: paused; }
.spot.in .spot-text > * { animation-play-state: running; }
.spot:not(.in) .spot-text > * { animation-play-state: paused; }
.btn { transition: background var(--t), color var(--t), border-color var(--t), transform .25s ease; }
.btn:active { transform: scale(.985); }
.head { transition: background-color .45s ease, border-color .45s ease, color .45s ease, backdrop-filter .45s ease; }
.head.hide { transform: translateY(-100%); }

.skeleton { background: linear-gradient(90deg, var(--stone-2) 0, #f3eee7 50%, var(--stone-2) 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .head .wrap { grid-template-columns: auto 1fr auto; }
  .mega { display: none !important; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf { grid-auto-columns: calc((100% - 48px) / 3); }
}
@media (max-width: 900px) {
  .head .wrap { grid-template-columns: 1fr auto; gap: 10px 16px; min-height: 64px; padding-top: 8px; }
  .logo { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .tools { grid-column: 2; grid-row: 1; }
  .search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .nav { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { min-height: 380px; }
  .hero-scrim { background: linear-gradient(to top, rgba(41, 37, 33, .66), rgba(41, 37, 33, .22) 44%, rgba(41, 37, 33, 0) 68%); }
  .hero-text { bottom: 24px; }
  .t-hero { font-size: clamp(2rem, 9.5vw, 2.8rem); letter-spacing: .04em; margin-bottom: 14px; max-width: 11ch; }
  .hero-kicker { margin-bottom: 12px; font-size: .62rem; }
  .hero-sub { font-size: var(--fs-s); margin-bottom: 16px; max-width: 30ch; }
  .hero-text .btn { height: 42px; padding: 0 18px; font-size: .68rem; }
  .hero-pause { width: 34px; height: 34px; right: var(--pad); bottom: 28px; }
  .story { grid-template-columns: 1fr; }
  .story-photo { aspect-ratio: 4 / 3; }
  .catalog { grid-template-columns: 1fr; gap: 0; }
  .side { position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); max-height: none; background: var(--milk); z-index: 52; padding: 20px; transform: translateX(100%); transition: transform .3s; border-left: 1px solid var(--line); }
  .side.open { transform: none; }
  .side-close { display: flex; justify-content: flex-end; padding-bottom: 10px; }
  .filters-toggle { display: inline-flex; height: 40px; padding: 0 16px; }
  .pdp { grid-template-columns: 1fr; gap: 26px; padding-top: 12px; }
  .gallery { position: static; margin: 0 calc(var(--pad) * -1); }
  .stage { display: none; }
  .thumbs { display: flex; gap: 0; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { width: 100%; flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 8%; background: var(--stone-2); cursor: zoom-in; }
  .lb-img { inset: 60px 8px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; width: 40px; height: 40px; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .lb-n { bottom: 18px; }
  .thumbs button[aria-pressed="true"] { border: 0; }
  .dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background var(--t); }
  .dots i.on { background: var(--ink); }
  .buy-box { max-width: none; }
  .buy-row { display: none; }
  .buybar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--milk); border-top: 1px solid var(--line); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); }
  .buybar .price-l { font-size: .72rem; color: var(--ink-3); display: block; }
  .buybar .now { font-weight: 500; font-size: var(--fs-m); }
  .buybar .btn { height: 48px; padding: 0 18px; }
  .buybar .bar-qty { display: none; }
}
@media (max-width: 600px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .cat-label { padding: 14px 14px; }
  .spot-media { aspect-ratio: 4 / 5; }
  .spot-text { min-width: 0; max-width: calc(100% - 32px); padding: 20px 22px; gap: 16px; }
  .spot-media video { object-position: var(--pos, 50% 50%); }
  .spot-text h2 { font-size: 1.8rem; }
  .spot-logo { height: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .shelf { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .section-head { flex-wrap: wrap; align-items: start; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
}
/* ---------- отклик на наведение: заметный, но спокойный ---------- */
.btn { transition: background .3s ease, color .3s ease, border-color .3s ease, transform .25s ease; }
.cat { isolation: isolate; }
.cat img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(41, 37, 33, 0); transition: background .6s ease; pointer-events: none; }
.cat-label { z-index: 2; }
.cat-label b { position: relative; align-self: flex-start; }
.cat-label b::after { content: ""; position: absolute; left: 0; right: .24em; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.cat:focus-visible .cat-label b::after { transform: scaleX(1); }
.tile-img img { transition: opacity .6s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.shade { transition: box-shadow var(--t), border-color var(--t), transform .25s ease; }
@media (hover: hover) {
  /* кнопки меняются местами цветом */
  .btn:hover { background: var(--milk); color: var(--ink); border-color: var(--ink); }
  .btn.milk:hover { background: transparent; color: var(--milk); border-color: var(--milk); }
  .btn.line:hover { background: var(--ink); color: var(--milk); border-color: var(--ink); }
  .btn.ghost:hover { background: var(--stone); color: var(--ink); border-color: var(--ink); }
  .btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--stone); color: var(--ink-3); border-color: var(--stone); }
  /* плитки разделов: фото медленно приближается, чуть темнеет, под названием проявляется линия */
  .cat:hover img { transform: scale(1.06); }
  .cat:hover::before { background: rgba(41, 37, 33, .14); }
  .cat:hover .cat-label b::after { transform: scaleX(1); }
  /* товары */
  .tile:hover .tile-img img { transform: scale(1.05); }
  .tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  /* мелочи */
  .shade:hover { transform: scale(1.08); }
  .thumbs button:hover { border-color: var(--ink-3); }
  .pager button:hover { border-bottom-color: var(--ink-3); }
  .acc summary:hover { color: var(--nude-ink); }
  .foot-col a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .hero-pause:hover { background: rgba(41, 37, 33, .45); border-color: var(--milk); }
  .lb-x:hover, .lb-prev:hover, .lb-next:hover { background: var(--stone); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
