/* Эколорд — стили темы. Токены бренда из брендбука (docs/PROJECT.md), шрифты Bebas Neue + Montserrat. */

@font-face { font-family: "Bebas Neue"; src: url(../fonts/bebas-neue.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--cream: #FCF8F4; --paper: #F6EEE5; --sand: #F1E5D8; --line: #E7DACB; --line-2: #D9C8B5;
	--clay: #C39779; --clay-d: #94623F; --clay-dd: #7C5133;
	--sage: #526C60; --sage-d: #3E5449; --sage-t: #E4EBE6;
	--forest: #1C2B24; --ink: #27302B; --muted: #67706A;
	--t-sand: #F3E8DC; --t-sage: #E3EBE5; --t-rose: #F5E7E9; --t-sky: #E6EDF0; --t-olive: #EEEEE3;
	--ok: #3E7A55; --err: #A3423A;
	--f-head: "Bebas Neue", "Arial Narrow", sans-serif;
	--f-body: "Montserrat", system-ui, sans-serif;
	--s-2xs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px; --s-4xl: 96px;
	--r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
	--gut: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--sh-1: 0 1px 2px rgb(28 43 36 / .06), 0 8px 24px -12px rgb(28 43 36 / .18);
	--sh-2: 0 24px 60px -24px rgb(28 43 36 / .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-d); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; letter-spacing: .01em; line-height: .98; color: var(--sage-d); margin: 0; }
h1 { font-size: clamp(2.6rem, 2rem + 3.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 var(--s-sm); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay-d); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--forest); color: var(--cream); padding: 8px 16px; border-radius: var(--r-pill); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gut); }
.i { flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }

/* Кнопки, чипы, поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); background: var(--clay-d); color: #FFFBF7; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .3s var(--ease), transform .3s var(--ease); }
.btn:hover { background: var(--clay-dd); color: #FFFBF7; }
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--ghost { background: transparent; color: var(--sage-d); box-shadow: inset 0 0 0 1.5px var(--sage); }
.btn--ghost:hover { background: var(--sage-t); color: var(--sage-d); }
.btn--sage { background: var(--sage-d); }
.btn--sage:hover { background: var(--forest); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--sage); color: var(--sage-d); }
.chip.is-on { background: var(--sage-d); color: var(--cream); box-shadow: none; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 10px; border-radius: var(--r-pill); background: #FFFDFB; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .875rem; box-shadow: var(--sh-1); }
.pill-btn:hover { color: var(--clay-d); }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #FFFDFB; transition: border-color .3s var(--ease); }
.input:focus { outline: none; border-color: var(--sage); }
textarea.input { min-height: 96px; resize: vertical; }
.field { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--sage-d); }
.field.is-err .input { border-color: var(--err); }
.field__err { color: var(--err); font-weight: 500; font-size: .8125rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--sage-d); flex: none; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-d); margin-bottom: var(--s-sm); }
.eyebrow--light { color: var(--clay); }
.arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; }
.cnt { position: absolute; top: -4px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--clay-d); color: #fff; font: 700 11px/19px var(--f-body); text-align: center; }

/* Верхняя строка */
.topbar { background: var(--sage-d); color: #EEF2EF; font-size: .8125rem; }
.topbar__in { display: flex; align-items: center; gap: var(--s-lg); min-height: 38px; }
.topbar__city { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.topbar__city b { font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.topbar__note { margin: 0; opacity: .85; }
.topbar__links { margin-left: auto; display: flex; gap: var(--s-lg); }
.topbar__city, .topbar__links a { white-space: nowrap; }
.topbar__links a { text-decoration: none; }
.topbar__links a:hover { color: #fff; text-decoration: underline; }
.topbar__phone { font-weight: 600; }

/* Шапка */
.hdr { position: relative; z-index: 40; background: var(--cream); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: var(--s-lg); min-height: 84px; }
.hdr__burger { display: none; }
.hdr__logo img { width: 196px; height: auto; }
.hdr__catalog { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px 0 18px; border-radius: var(--r-pill); background: var(--clay-d); color: #FFFBF7; font-weight: 600; transition: background .3s var(--ease); }
.hdr__catalog:hover, .hdr__catalog[aria-expanded="true"] { background: var(--clay-dd); }
.hdr__catalog-ico { display: grid; gap: 3px; width: 16px; }
.hdr__catalog-ico i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.hdr__catalog[aria-expanded="true"] .hdr__catalog-ico i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hdr__catalog[aria-expanded="true"] .hdr__catalog-ico i:nth-child(2) { opacity: 0; }
.hdr__catalog[aria-expanded="true"] .hdr__catalog-ico i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.search { position: relative; flex: 1; min-width: 0; }
.search input { width: 100%; min-height: 48px; padding: 0 52px 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: #FFFDFB; }
.search input:focus { outline: none; border-color: var(--sage); }
.search > button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-d); color: #fff; }
.search__drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: #FFFDFB; border-radius: var(--r-md); box-shadow: var(--sh-2); padding: 8px; max-height: 70vh; overflow: auto; }
.sg { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); text-decoration: none; }
.sg:hover, .sg.is-on { background: var(--paper); color: inherit; }
.sg img { width: 52px; height: 52px; object-fit: contain; background: var(--t-sand); border-radius: 8px; }
.sg small { display: block; color: var(--muted); font-size: .75rem; }
.sg b { font-family: var(--f-head); font-size: 1.2rem; font-weight: 400; color: var(--forest); }
.sg-term { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.sg-term small { color: var(--muted); font-weight: 500; }
.sg-term:hover { background: var(--paper); }
.sg-all { display: block; text-align: center; padding: 12px; font-weight: 600; color: var(--clay-d); }
.sg-empty { padding: 16px; color: var(--muted); }
.hdr__icons { display: flex; gap: var(--s-lg); }
.hdr__ico { position: relative; display: grid; justify-items: center; gap: 2px; font-size: .75rem; font-weight: 500; text-decoration: none; color: var(--sage-d); }
.hdr__ico .cnt { right: 4px; }
.hdr__ico--search { display: none; }

/* Панель каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(28 43 36 / .35); animation: mega-in .35s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px); } }
.mega__in { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-xl); padding-block: var(--s-xl) var(--s-2xl); }
.mega__deps { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 2px; }
.mega__deps a { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mega__deps a small { color: var(--muted); font-weight: 500; }
.mega__deps a.is-on, .mega__deps a:hover { background: var(--sage-t); color: var(--sage-d); }
.mega__all a { color: var(--clay-d); justify-content: flex-start; gap: 8px; }
.mega__title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: var(--s-lg); }
.mega__title a { font: 400 2.2rem/1 var(--f-head); color: var(--sage-d); text-decoration: none; }
.mega__title span { color: var(--muted); font-size: .9rem; }
.mega__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-lg) var(--s-md); }
.mega__tile { display: grid; gap: 6px; text-decoration: none; }
.mega__img { aspect-ratio: 4 / 5; border-radius: 999px 999px 16px 16px; overflow: hidden; background: var(--t-sand); display: grid; place-items: center; }
.mega__img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.mega__tile:hover .mega__img img { transform: scale(1.05); }
.mega__name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.mega__tile small { color: var(--muted); font-size: .78rem; }

/* Шторка меню и нижняя панель (телефон) */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgb(28 43 36 / .45); }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(420px, 92vw); background: var(--cream); display: flex; flex-direction: column; animation: drawer-in .4s var(--ease); }
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 20px 8px; padding: 4px; background: var(--paper); border-radius: var(--r-pill); }
.drawer__tabs button { min-height: 40px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; color: var(--muted); }
.drawer__tabs button[aria-selected="true"] { background: #FFFDFB; color: var(--sage-d); box-shadow: var(--sh-1); }
.drawer__body { overflow: auto; padding: 8px 20px 40px; display: grid; align-content: start; }
.drawer__body > a, .drawer__dep summary, .drawer__city { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; list-style: none; cursor: pointer; text-align: left; }
.drawer__city { justify-content: flex-start; color: var(--sage-d); }
.drawer__dep summary::-webkit-details-marker { display: none; }
.drawer__dep[open] summary .i { transform: rotate(180deg); }
.drawer__dep a { display: block; padding: 10px 0 10px 14px; text-decoration: none; color: var(--muted); }
.drawer__dep .drawer__all { color: var(--clay-d); font-weight: 600; }
.drawer__dep--link { display: flex; min-height: 52px; align-items: center; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.drawer__phone { justify-content: flex-start !important; color: var(--sage-d); }
.tabbar { display: none; }

/* Крошки и заголовки секций */
.crumbs ol { list-style: none; margin: 0; padding: var(--s-lg) 0 var(--s-md); display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-lg); margin-bottom: var(--s-lg); }
.sh__t p { margin: 6px 0 0; color: var(--muted); }
.sh__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--clay-d); white-space: nowrap; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 72px) clamp(48px, 6vw, 96px); }
.hero__pattern { position: absolute; width: min(760px, 90vw); right: -12%; top: -18%; opacity: .16; pointer-events: none; }
.hero__in > *, .how__in > *, .about-strip__in > *, .podbor__in > *, .own__in > *, .prod__grid > *, .cartp__grid > *, .cat__grid > * { min-width: 0; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); }
.hero__lead { font-size: 1.075rem; max-width: 56ch; margin: var(--s-lg) 0 var(--s-xl); color: #3D4640; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.hero__chips { list-style: none; margin: var(--s-xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 470px); }
.arch--hero { aspect-ratio: 3 / 4.2; background: var(--t-sand); box-shadow: var(--sh-2); }
.arch--hero img { width: 100%; height: 100%; object-fit: cover; }
.hero__own { position: absolute; left: -64px; bottom: 36px; display: flex; gap: 12px; align-items: center; padding: 10px 18px 10px 10px; max-width: 300px; border-radius: var(--r-md); background: #FFFDFB; box-shadow: var(--sh-2); text-decoration: none; animation: float-in .8s .2s var(--ease) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(16px); } }
.hero__own img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--t-sand); }
.hero__own small { display: block; color: var(--clay-d); font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.hero__own b { display: block; font-size: .875rem; line-height: 1.3; }
.hero__own em { font: normal 400 1.4rem/1 var(--f-head); color: var(--forest); }
.hero__stamp { position: absolute; right: -28px; top: 28px; width: 112px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Отделы */
.deps { padding-block: var(--s-2xl); }
.deps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-lg) var(--s-md); }
.dep { position: relative; display: grid; align-content: start; gap: 4px; padding: 14px 14px 18px; border-radius: 999px 999px var(--r-lg) var(--r-lg); text-decoration: none; background: var(--t-sand); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.dep:hover { transform: translateY(-4px); box-shadow: var(--sh-1); color: inherit; }
.dep--sage { background: var(--t-sage); } .dep--rose { background: var(--t-rose); } .dep--sky { background: var(--t-sky); } .dep--olive { background: var(--t-olive); }
.dep__img { aspect-ratio: 1 / 1.05; margin-bottom: 10px; }
.dep__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dep:hover .dep__img img { transform: scale(1.04); }
.dep__name { font: 400 1.75rem/1 var(--f-head); color: var(--sage-d); padding-inline: 6px; }
.dep__sub { font-size: .8125rem; color: var(--muted); padding-inline: 6px; line-height: 1.45; }
.dep__n { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; padding-inline: 6px; font-weight: 600; font-size: .8125rem; color: var(--clay-d); }
.dep--list { border-radius: var(--r-lg); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); padding: 24px; align-content: center; gap: 0; }
.dep--list .dep__name { margin-bottom: 12px; padding: 0; }
.dep--list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.dep--list a small { color: var(--muted); font-weight: 500; }

/* Ленты товаров */
.shelf { padding-block: var(--s-2xl); }
.shelf--tint { background: var(--paper); }
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--s-md)) / 5); gap: var(--s-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; padding-bottom: 4px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail__track.is-drag * { pointer-events: none; }
.rail__item { scroll-snap-align: start; min-width: 0; }
.rail__nav { position: absolute; top: 34%; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #FFFDFB; box-shadow: var(--sh-1); color: var(--sage-d); transition: opacity .3s, transform .3s var(--ease); }
.rail__nav:hover { transform: scale(1.06); }
.rail__nav[disabled] { opacity: 0; pointer-events: none; }
.rail__prev { left: -20px; } .rail__next { right: -20px; }

/* Карточка товара */
.pc { position: relative; display: flex; flex-direction: column; height: 100%; }
.pc__img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.1; border-radius: var(--r-lg) var(--r-lg) var(--r-md) var(--r-md); background: var(--t-sand); overflow: hidden; }
.pc__img--sage { background: var(--t-sage); } .pc__img--rose { background: var(--t-rose); } .pc__img--sky { background: var(--t-sky); } .pc__img--olive { background: var(--t-olive); }
.pc__img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.pc:hover .pc__img img { transform: scale(1.04); }
.pc__badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--forest); color: var(--cream); font-weight: 700; font-size: .75rem; }
.pc__fav { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 253 251 / .85); color: var(--sage-d); transition: color .3s, transform .3s var(--ease); }
.pc__fav:hover { transform: scale(1.08); }
.pc__fav[aria-pressed="true"], .prod__fav[aria-pressed="true"] { color: var(--clay-d); }
.pc__fav[aria-pressed="true"] svg, .prod__fav[aria-pressed="true"] svg { fill: currentColor; }
.pc__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 0; flex: 1; }
.pc__brand { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-d); }
.pc__title { font-size: .9rem; font-weight: 500; line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; hyphens: auto; overflow-wrap: break-word; }
.pc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.pc__price { display: grid; line-height: 1; }
.pc__price b { font: 400 1.65rem/1 var(--f-head); color: var(--forest); letter-spacing: .02em; }
.pc__price s { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.pc__price small { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.pc__out { font-size: .8rem; color: var(--muted); }

/* Кнопка покупки и счётчик */
.buy__add { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: var(--r-pill); background: var(--sage-d); color: #fff; font-weight: 600; font-size: .8125rem; transition: background .3s var(--ease), transform .2s; }
.buy__add:hover { background: var(--forest); }
.buy__add:active { transform: scale(.96); }
.pc .buy__add { padding: 0 16px 0 12px; }
.pc__body { container-type: inline-size; }
@container (max-width: 230px) { .pc__foot { flex-wrap: wrap; } .pc .buy, .pc .buy__add, .pc .qty { width: 100%; justify-content: center; } .pc .qty { justify-content: space-between; } }
.qty { display: inline-flex; align-items: center; min-height: 42px; border-radius: var(--r-pill); background: var(--sage-t); color: var(--sage-d); }
.qty button { width: 38px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { color: var(--forest); }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.buy--big .buy__add, .buy--big .qty { min-height: 56px; font-size: 1rem; padding: 0 32px; }
.buy--big .qty { padding: 0 4px; }
.buy--big .qty button { height: 56px; width: 48px; }
.buy--light .buy__add { background: var(--clay); color: var(--forest); }
.buy--light .buy__add:hover { background: #D3AC8F; }
.buy--light .qty { background: rgb(255 255 255 / .12); color: #fff; }

/* Свой продукт */
.own { padding-block: var(--s-2xl); }
.own__in { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); color: #E9EEEA; }
.own__img img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.own__text { padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; gap: var(--s-md); }
.own__text h2 { color: #FBF6F0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { color: var(--clay); }
.own__buy { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-md); }
.own__buy > b { font: 400 2.6rem/1 var(--f-head); color: #FBF6F0; }
.own__more { color: var(--clay); font-weight: 600; }
.own__more:hover { color: #FBF6F0; }

/* Бренды */
.brands { padding-block: var(--s-2xl); }
.brands__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-sm); }
.brand { display: grid; gap: 4px; padding: 22px 20px; border-radius: var(--r-md); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .3s var(--ease); }
.brand:hover { box-shadow: inset 0 0 0 1.5px var(--sage); color: inherit; }
.brand b { font: 400 1.5rem/1.05 var(--f-head); color: var(--sage-d); }
.brand small { color: var(--muted); font-size: .8rem; }

/* Как получить заказ */
.how { padding-block: var(--s-3xl); background: var(--sage-t); }
.how__in { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps { list-style: none; margin: var(--s-xl) 0; padding: 0; display: grid; gap: var(--s-lg); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-md); }
.steps span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); font: 400 1.8rem/1 var(--f-head); color: var(--clay-d); }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--forest); }
.steps p { margin: 0; color: #4A544E; }
.how__img { aspect-ratio: 4 / 4.6; }
.how__img img { width: 100%; height: 100%; object-fit: cover; }

/* Подборки */
.sets { padding-block: var(--s-2xl); }
.sets__row { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.set { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--r-pill); background: var(--t-rose); text-decoration: none; transition: background .3s; }
.set:nth-child(2n) { background: var(--t-olive); } .set:nth-child(3n) { background: var(--t-sky); }
.set:hover { background: var(--sand); color: inherit; }
.set svg { color: var(--sage); }
.set small { color: var(--muted); font-weight: 600; }

/* О магазине (полоса) */
.about-strip { padding-block: var(--s-3xl); }
.about-strip__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-strip__img { aspect-ratio: 4 / 4.4; }
.about-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.revs { padding-block: var(--s-2xl) var(--s-3xl); }
.revs__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.revs__in > * { min-width: 0; }
.revs__text { display: grid; gap: var(--s-md); justify-items: start; }
.revs__text p { margin: 0; color: var(--muted); max-width: 46ch; }
.revs__addr { display: flex; gap: 10px; align-items: flex-start; color: var(--forest) !important; font-weight: 500; }
.revs__btns { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-sm); }
.revs__widget { height: 560px; border-radius: var(--r-lg); overflow: hidden; background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); }
.revs__widget iframe { display: block; width: 100%; height: 100%; border: 0; }
.about-strip__text p { max-width: 60ch; }
.about-strip__text h2 { margin-bottom: var(--s-lg); }

/* Подбор ухода */
.podbor { padding-block: var(--s-3xl); background: var(--clay); position: relative; overflow: hidden; }
.podbor::before { content: ""; position: absolute; width: 620px; height: 620px; left: -220px; bottom: -320px; background: url(../img/pattern-1.svg) center / contain no-repeat; opacity: .25; filter: brightness(1.6); }
.podbor__in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.podbor h2 { color: var(--forest); }
.podbor__text p { color: #3A2A1E; font-size: 1.05rem; max-width: 46ch; margin-top: var(--s-md); }
.form { display: grid; gap: var(--s-md); }
.podbor__form { padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: var(--cream); box-shadow: var(--sh-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
.form__msg { margin: 0; font-weight: 600; }
.form__msg.is-ok { color: var(--ok); } .form__msg.is-err { color: var(--err); }

/* FAQ */
.faq { padding-block: var(--s-3xl) var(--s-2xl); }
.faq h2 { margin-bottom: var(--s-lg); }
.faq__list { max-width: 880px; display: grid; gap: var(--s-xs); }
.faq__item { border-radius: var(--r-md); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); }
.faq__item h3 { font: inherit; }
.faq__item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-md); padding: 18px 22px; text-align: left; font-weight: 600; font-size: 1rem; color: var(--forest); }
.faq__item button .i { transition: transform .4s var(--ease); color: var(--clay-d); }
.faq__item.is-open button .i { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 22px 20px; margin: 0; color: #46504A; max-width: 72ch; }

/* Текст */
.seo-text { padding-block: var(--s-2xl) var(--s-3xl); }
.prose { max-width: 820px; }
.prose h2 { margin: var(--s-xl) 0 var(--s-md); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }
.prose h3 { margin: var(--s-lg) 0 var(--s-sm); font-size: 1.45rem; }
.prose p, .prose li { color: #3E4842; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-md) 0; font-size: .9rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--sage-d); }

/* Каталог */
.cat { padding-bottom: var(--s-2xl); }
.cat__head { margin-bottom: var(--s-lg); }
.cat__sub { margin-top: var(--s-sm); color: var(--muted); max-width: 70ch; }
.subcats { display: flex; gap: var(--s-md); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--s-md); margin-bottom: var(--s-md); }
.subcats::-webkit-scrollbar { display: none; }
.subcat { flex: none; display: grid; justify-items: center; gap: 8px; width: 112px; text-align: center; font-size: .8125rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.subcat__img { width: 88px; height: 100px; border-radius: 999px 999px 14px 14px; background: var(--t-sand); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.subcat:nth-child(5n+2) .subcat__img { background: var(--t-sage); } .subcat:nth-child(5n+3) .subcat__img { background: var(--t-rose); } .subcat:nth-child(5n+4) .subcat__img { background: var(--t-sky); } .subcat:nth-child(5n) .subcat__img { background: var(--t-olive); }
.subcat__img img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.subcat.is-on .subcat__img, .subcat:hover .subcat__img { box-shadow: inset 0 0 0 2px var(--sage); }
.cat__grid { display: grid; grid-template-columns: 260px 1fr; gap: var(--s-xl); align-items: start; }
.cat__grid--wide { grid-template-columns: 1fr; }
.filters__form { display: grid; gap: var(--s-lg); padding: var(--s-lg); border-radius: var(--r-lg); background: var(--paper); }
.filters__top { display: flex; justify-content: space-between; align-items: center; }
.filters__h { margin: 0; font: 400 1.6rem/1 var(--f-head); color: var(--sage-d); }
.filters__close { display: none; }
.fgroup { display: grid; gap: 10px; }
.fgroup__h { margin: 0; font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-d); }
.fprice { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.fprice .input { min-height: 44px; padding: 8px 10px; font-size: .875rem; min-width: 0; }
.fchecks { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.fcheck { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: .9rem; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--sage-d); }
.fcheck small { color: var(--muted); }
.filters__actions { display: grid; gap: 8px; }
.toolbar { display: flex; align-items: center; gap: var(--s-md); margin-bottom: var(--s-md); }
.toolbar__n { margin: 0; color: var(--muted); font-weight: 500; }
.toolbar__f { display: none; }
.toolbar__sort { margin-left: auto; }
.toolbar__sort select { min-height: 42px; padding: 0 36px 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: #FFFDFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23526C60' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center no-repeat; appearance: none; font-weight: 600; font-size: .875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-md); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-xl) var(--s-md); }
.cat__grid--wide .grid { grid-template-columns: repeat(5, 1fr); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--s-2xl); }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 8px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); }
.pager .current { background: var(--sage-d); color: #fff; box-shadow: none; }
.empty { padding: var(--s-2xl); border-radius: var(--r-lg); background: var(--paper); text-align: center; display: grid; justify-items: center; gap: 8px; }
.empty__t { font: 400 2rem/1 var(--f-head); color: var(--sage-d); }

/* Товар */
.prod { padding-bottom: var(--s-2xl); }
.prod__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.gal { display: grid; grid-template-columns: 84px 1fr; gap: var(--s-md); }
.gal__main { position: relative; grid-column: 2; aspect-ratio: 1 / 1.08; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: var(--t-sand); }
.gal__slide { position: absolute; inset: 0; display: grid; place-items: center; background: inherit; opacity: 0; transition: opacity .45s var(--ease); cursor: zoom-in; }
.gal__slide.is-on { opacity: 1; z-index: 1; }
.gal__slide img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.gal__main .pc__badge { z-index: 2; left: 50%; top: 22px; transform: translateX(-50%); }
.gal__thumbs { grid-column: 1; grid-row: 1; display: grid; align-content: start; gap: 10px; }
.gal__thumb { width: 84px; height: 84px; border-radius: var(--r-sm); background: var(--paper); overflow: hidden; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gal__thumb.is-on { box-shadow: inset 0 0 0 2px var(--sage); }
.prod__brand { display: inline-block; margin-bottom: var(--s-sm); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-d); text-decoration: none; }
.prod__info h1 { font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3.2rem); }
.prod__facts { list-style: none; margin: var(--s-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.prod__facts li { display: inline-flex; align-items: center; gap: 6px; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock--order i { background: var(--clay); } .stock--out i { background: var(--err); }
.prod__buy { margin-top: var(--s-xl); padding: var(--s-lg); border-radius: var(--r-lg); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s-md); }
.prod__price { display: flex; align-items: baseline; gap: 12px; }
.prod__price b { font: 400 3rem/1 var(--f-head); color: var(--forest); }
.prod__price s { color: var(--muted); }
.prod__actions { display: flex; gap: var(--s-sm); }
.prod__actions .buy { flex: 1; }
.prod__actions .buy__add, .prod__actions .qty { width: 100%; justify-content: center; }
.prod__actions .qty { justify-content: space-between; }
.prod__fav { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--sage-d); flex: none; }
.prod__msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.prod__ship { margin-top: var(--s-md); padding: var(--s-lg); border-radius: var(--r-lg); background: var(--sage-t); }
.prod__ship-h { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--sage-d); margin-bottom: var(--s-sm); }
.prod__ship ul { list-style: none; margin: 0 0 var(--s-sm); padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.prod__ship li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.prod__ship li svg { color: var(--sage); margin-top: 3px; }
.prod__ship a { font-weight: 600; font-size: .875rem; color: var(--sage-d); }
.tabs { margin-top: var(--s-3xl); }
.tabs__bar { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--paper); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs__bar button { min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs__bar button[aria-selected="true"] { background: #FFFDFB; color: var(--sage-d); box-shadow: var(--sh-1); }
.tabs__panel { padding: var(--s-lg) 4px 0; }

/* Просмотрщик */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgb(252 248 244 / .97); display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; object-fit: contain; }
.lightbox__x { position: absolute; right: 20px; top: 20px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); }
.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }

/* Корзина и оформление */
.cartp { padding-bottom: var(--s-3xl); }
.cartp h1 { margin-bottom: var(--s-lg); }
.cartp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-xl); align-items: start; }
.cl { display: grid; gap: var(--s-sm); }
.cl__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; gap: var(--s-md); align-items: center; padding: var(--s-sm); border-radius: var(--r-md); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); }
.cl__img { width: 96px; height: 96px; border-radius: var(--r-sm); background: var(--t-sand); display: grid; place-items: center; }
.cl__img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.cl__name { display: grid; gap: 2px; }
.cl__name a { font-weight: 600; text-decoration: none; line-height: 1.35; }
.cl__name small { color: var(--muted); }
.cl__sum { font: 400 1.6rem/1 var(--f-head); color: var(--forest); min-width: 90px; text-align: right; }
.cl__del { color: var(--muted); padding: 8px; }
.cl__del:hover { color: var(--err); }
.co { margin-top: var(--s-2xl); display: grid; gap: var(--s-xl); }
.co__step { display: grid; gap: var(--s-md); padding: var(--s-lg); border-radius: var(--r-lg); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); }
.co__h { display: flex; align-items: center; gap: 12px; font: 400 1.9rem/1 var(--f-head); color: var(--sage-d); margin: 0; }
.co__h span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--clay); color: var(--forest); font-size: 1.4rem; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-sm); }
.opts--2 { grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: box-shadow .3s, background .3s; }
.opt input { position: absolute; opacity: 0; }
.opt b { display: flex; align-items: center; gap: 8px; color: var(--forest); }
.opt small { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--sage-d); background: var(--sage-t); }
.opt:has(input:focus-visible) { outline: 2px solid var(--clay-d); outline-offset: 2px; }
.sum { position: sticky; top: 20px; display: grid; gap: var(--s-md); padding: var(--s-lg); border-radius: var(--r-lg); background: var(--forest); color: #E6ECE8; }
.sum h2 { color: #FBF6F0; font-size: 2rem; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.sum__total { padding-top: var(--s-md); border-top: 1px solid rgb(255 255 255 / .15); align-items: baseline; }
.sum__total b { font: 400 2.6rem/1 var(--f-head); color: #FBF6F0; }
.sum__note { margin: 0; font-size: .8rem; color: #B9C6BF; }
.sum .btn { background: var(--clay); color: var(--forest); }
.sum .btn:hover { background: #D6B096; }
.sum__free { padding: 10px 12px; border-radius: var(--r-sm); background: rgb(255 255 255 / .08); font-size: .85rem; }
.done { padding: var(--s-2xl); border-radius: var(--r-lg); background: var(--sage-t); text-align: center; display: grid; justify-items: center; gap: var(--s-sm); }
.done b { font: 400 2.6rem/1 var(--f-head); color: var(--sage-d); }

/* Кабинет */
.acc { padding-bottom: var(--s-3xl); }
.acc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-md); margin-bottom: var(--s-lg); }
.acc__head p { margin: 6px 0 0; color: var(--muted); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s-xl); }
.pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); background: var(--paper); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pills a[aria-current="page"] { background: var(--sage-d); color: #fff; }
.notice { padding: 14px 18px; border-radius: var(--r-md); margin-bottom: var(--s-lg); font-weight: 600; }
.notice--ok { background: var(--sage-t); color: var(--ok); } .notice--err { background: #F7E4E1; color: var(--err); }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
.auth__box { padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s-md); align-content: start; }
.auth__box--tint { background: var(--sage-t); box-shadow: none; }
.auth__box h2 { font-size: 2.2rem; }
.orders { display: grid; gap: var(--s-md); }
.order { padding: var(--s-lg); border-radius: var(--r-lg); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s-md); }
.order__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.order__n { font: 400 1.8rem/1 var(--f-head); color: var(--sage-d); }
.order__st { padding: 6px 14px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; background: var(--paper); }
.order__st--ok, .order__st--go { background: var(--sage-t); color: var(--sage-d); } .order__st--done { background: var(--forest); color: #fff; } .order__st--off { background: #F7E4E1; color: var(--err); }
.order__lines { list-style: none; margin: 0; padding: 0; display: grid; }
.order__line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: var(--s-md); align-items: center; padding-block: var(--s-sm); border-top: 1px solid var(--line); }
.order__line:first-child { border-top: 0; padding-top: 0; }
.order__img { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--t-sand); overflow: hidden; }
.order__line:nth-child(2n) .order__img { background: var(--t-sage); } .order__line:nth-child(3n) .order__img { background: var(--t-rose); }
.order__img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.order__name { display: grid; gap: 2px; font-size: .925rem; line-height: 1.4; }
.order__name a { text-decoration: none; font-weight: 500; }
.order__name a:hover { color: var(--clay-d); }
.order__name small { color: var(--muted); font-size: .8rem; }
.order__qty { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.order__sum { font: 400 1.35rem/1 var(--f-head); color: var(--forest); white-space: nowrap; min-width: 80px; text-align: right; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.track i { height: 6px; border-radius: 3px; background: var(--line); }
.track i.is-on { background: var(--sage); }
.order__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.order__foot b { font: 400 1.8rem/1 var(--f-head); color: var(--forest); }

/* Информационные страницы */
.page { padding-bottom: var(--s-3xl); }
.page__head { margin-bottom: var(--s-xl); }
.page__lead { font-size: 1.1rem; color: #3E4842; max-width: 64ch; margin-top: var(--s-md); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); margin-block: var(--s-xl); }
.icard { padding: var(--s-lg); border-radius: var(--r-lg); background: var(--paper); display: grid; gap: 8px; align-content: start; }
.icard svg { color: var(--sage); }
.icard b { font: 400 1.5rem/1.05 var(--f-head); color: var(--sage-d); }
.icard p { margin: 0; color: #46504A; font-size: .925rem; }
.cities { columns: 4 200px; column-gap: var(--s-xl); }
.cities a { display: block; padding: 4px 0; text-decoration: none; break-inside: avoid; }
.cities h3 { break-after: avoid; margin-top: var(--s-md); font-size: 1.3rem; }

/* Подвал */
.ftr { position: relative; overflow: hidden; background: var(--forest); color: #C9D3CD; padding-top: var(--s-3xl); margin-top: var(--s-2xl); }
.ftr::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -260px; background: url(../img/pattern-1.svg) center / contain no-repeat; opacity: .08; }
.ftr__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-xl); padding-bottom: var(--s-2xl); }
.ftr__brand p { margin: var(--s-md) 0; max-width: 36ch; font-size: .9rem; }
.ftr__msg { display: flex; flex-wrap: wrap; gap: 8px; }
.ftr__col { display: grid; align-content: start; gap: 10px; font-size: .9rem; }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover, .ftr__bottom a:hover { color: #FBF6F0; text-decoration: underline; }
.ftr__h { margin: 0 0 6px; font: 400 1.5rem/1 var(--f-head); color: var(--clay); letter-spacing: .03em; }
.ftr__phone { font-weight: 700; font-size: 1.1rem; color: #FBF6F0; }
.ftr__city { display: inline-flex; align-items: center; gap: 6px; color: var(--clay); font-weight: 600; text-align: left; }
.ftr__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-md); padding-block: var(--s-lg); border-top: 1px solid rgb(255 255 255 / .1); font-size: .8rem; }
.ftr__bottom p { margin: 0; }
.ftr__bottom nav { display: flex; flex-wrap: wrap; gap: var(--s-md); }
.ftr__bottom a { text-decoration: none; }
.ftr__made { position: relative; padding-bottom: var(--s-lg); }
.made { font-size: 12px; color: #7F8E86; }
.made a { color: #9AA8A0; text-decoration: none; }
.made a:hover { color: #C9D3CD; }

/* Окно города */
.dlg { width: min(640px, calc(100vw - 32px)); max-height: 86vh; padding: clamp(20px, 4vw, 40px); border: 0; border-radius: var(--r-lg); background: var(--cream); color: var(--ink); box-shadow: var(--sh-2); }
.dlg::backdrop { background: rgb(28 43 36 / .5); }
.dlg[open] { animation: dlg-in .4s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px); } }
.dlg__x { position: absolute; right: 16px; top: 16px; }
.dlg__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-d); margin: 0 0 6px; }
.dlg__lead { color: var(--muted); margin: var(--s-sm) 0 var(--s-md); }
.dlg__found { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 2px; }
.dlg__found a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.dlg__found a small { color: var(--muted); font-weight: 500; }
.dlg__found a:hover { background: var(--paper); }
.dlg__pop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-md); }

/* Cookie и всплывашка */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 420px; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; border-radius: var(--r-md); background: var(--forest); color: #DDE5E0; box-shadow: var(--sh-2); font-size: .85rem; }
.cookie p { margin: 0; }
.cookie a { color: var(--clay); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 110; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-radius: var(--r-pill); background: var(--forest); color: #EEF2EF; box-shadow: var(--sh-2); font-weight: 600; font-size: .9rem; animation: toast-in .4s var(--ease); white-space: nowrap; }
.toast a { color: var(--forest); background: var(--clay); padding: 8px 16px; border-radius: var(--r-pill); text-decoration: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
	.rail__track { grid-auto-columns: calc((100% - 3 * var(--s-md)) / 4); }
	.grid { grid-template-columns: repeat(3, 1fr); }
	.cat__grid--wide .grid { grid-template-columns: repeat(4, 1fr); }
	.topbar__note { display: none; }
}
@media (max-width: 1080px) {
	.hdr__in { gap: var(--s-md); }
	.hdr__ico span { display: none; }
	.topbar__links a[href$="/about/"] { display: none; }
	.hero h1 { max-width: 20ch; }
	.hdr__logo img { width: 160px; }
	.hero__in, .how__in, .about-strip__in, .podbor__in, .own__in { grid-template-columns: 1fr; }
	.hero__visual { width: min(100%, 420px); }
	.hero__own { left: -12px; }
	.deps__grid { grid-template-columns: repeat(3, 1fr); }
	.dep--list { grid-column: span 2; }
	.cat__grid { grid-template-columns: 1fr; }
	.filters { position: fixed; inset: 0; z-index: 95; background: rgb(28 43 36 / .45); display: none; }
	.filters.is-open { display: block; }
	.filters__form { position: absolute; right: 0; top: 0; bottom: 0; width: min(400px, 92vw); border-radius: 0; overflow: auto; align-content: start; background: var(--cream); animation: filt-in .4s var(--ease); }
	@keyframes filt-in { from { transform: translateX(100%); } }
	.filters__close { display: block; }
	.filters__actions { position: sticky; bottom: -24px; background: var(--cream); padding-block: 12px; }
	.toolbar__f { display: inline-flex; }
	.grid, .cat__grid--wide .grid { grid-template-columns: repeat(3, 1fr); }
	.prod__grid, .cartp__grid, .auth { grid-template-columns: 1fr; }
	.sum { position: static; }
	.ftr__grid { grid-template-columns: 1fr 1fr; }
	.revs__in { grid-template-columns: 1fr; }
	.mega__in { grid-template-columns: 240px 1fr; }
	.how__img, .about-strip__img { max-width: 460px; }
}
@media (max-width: 760px) {
	body { font-size: 15px; }
	.topbar__links { display: none; }
	.revs__widget { height: 480px; }
	.revs__btns .btn { flex: 1 1 100%; }
	.crumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-block: var(--s-md) var(--s-sm); }
	.crumbs ol::-webkit-scrollbar { display: none; }
	.crumbs li:last-child:not(:first-child):not(:nth-child(2)) { display: none; }
	.crumbs li:nth-last-child(2):not(:first-child)::after { content: none; }
	.topbar__in { justify-content: center; }
	.hdr__in { flex-wrap: wrap; min-height: 0; padding-block: 10px 12px; gap: 10px; }
	.hdr__burger { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; color: var(--sage-d); }
	.hdr__logo { margin-right: auto; }
	.hdr__logo img { width: 142px; }
	.hdr__catalog { display: none; }
	.search { order: 5; flex: 1 1 100%; }
	.search input { min-height: 44px; }
	.search > button { top: 4px; }
	.hdr__icons { gap: 14px; }
	.hdr__icons .hdr__ico:nth-child(3) { display: none; }
	.mega { display: none !important; }
	.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--forest); box-shadow: 0 -6px 24px rgb(28 43 36 / .14); }
	.tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0 5px; border-radius: 12px; color: #B9C6BF; text-decoration: none; font-size: .65rem; font-weight: 600; }
	.tabbar a[aria-current="page"] { color: #FBF6F0; background: rgb(255 255 255 / .1); }
	.tabbar .cnt { top: 0; right: calc(50% - 22px); }
	.hero { padding-top: 24px; }
	.hero__pattern { top: -6%; right: -40%; }
	.hero h1 { max-width: none; }
	.hero__lead { font-size: 1rem; margin: var(--s-md) 0 var(--s-lg); }
	.hero__cta .btn { flex: 1 1 100%; }
	.hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
	.hero__chips::-webkit-scrollbar { display: none; }
	.hero__visual { width: 100%; max-width: 360px; margin-top: var(--s-md); }
	.hero__stamp { width: 84px; right: -8px; }
	.hero__own { left: 0; right: 0; bottom: -20px; max-width: none; margin-inline: 16px; }
	.deps__grid { grid-template-columns: 1fr 1fr; gap: var(--s-md) var(--s-sm); }
	.dep--list { grid-column: auto; }
	.dep { padding: 8px 8px 14px; }
	.dep__name { font-size: 1.35rem; }
	.dep__sub { display: none; }
	.dep--list { grid-column: 1 / -1; }
	.sh { flex-wrap: wrap; align-items: flex-start; }
	.rail__track { grid-auto-columns: 46%; gap: var(--s-sm); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
	.rail__nav { display: none; }
	.grid, .cat__grid--wide .grid { grid-template-columns: 1fr 1fr; gap: var(--s-lg) var(--s-sm); }
	.pc__img { border-radius: var(--r-md); }
	.pc__title { font-size: .85rem; }
	.pc__price b { font-size: 1.4rem; }
	.pc__fav { width: 34px; height: 34px; right: 6px; top: 6px; }
	.pc .buy__add, .pc .qty { min-height: 38px; }
	.pc__foot { flex-wrap: wrap; }
	.pc .buy, .pc .buy__add, .pc .qty { width: 100%; justify-content: center; }
	.pc .qty { justify-content: space-between; }
	.pc .qty button { width: 30px; height: 38px; }
	.own__img img { min-height: 220px; }
	.form__row { grid-template-columns: 1fr; }
	.steps li { grid-template-columns: 44px 1fr; }
	.steps span { width: 44px; height: 44px; font-size: 1.5rem; }
	.toolbar { flex-wrap: wrap; }
	.toolbar__n { flex: 1 1 100%; }
	.toolbar__sort { margin-left: auto; }
	.gal { grid-template-columns: 1fr; }
	.gal__main { grid-column: 1; }
	.gal__thumbs { grid-row: 2; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; scrollbar-width: none; }
	.gal__thumb { width: 64px; height: 64px; }
	.prod__price b { font-size: 2.5rem; }
	.cl__row { grid-template-columns: 72px 1fr auto; grid-template-areas: "img name del" "img qty sum"; }
	.cl__img { width: 72px; height: 72px; grid-area: img; }
	.cl__name { grid-area: name; }
	.cl__row .qty, .cl__row .buy { grid-area: qty; justify-self: start; }
	.cl__sum { grid-area: sum; }
	.cl__del { grid-area: del; justify-self: end; }
	.opts { grid-template-columns: 1fr; }
	.cards3 { grid-template-columns: 1fr; }
	.order__line { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img qty sum"; row-gap: 4px; }
	.order__img { grid-area: img; width: 56px; height: 56px; align-self: start; }
	.order__name { grid-area: name; }
	.order__qty { grid-area: qty; }
	.order__sum { grid-area: sum; }
	.ftr__grid { grid-template-columns: 1fr; }
	.ftr { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.cookie { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; }
	.toast { bottom: calc(76px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); white-space: normal; }
	.lightbox__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.nw { white-space: nowrap; }
