/* ===== Древесна — стили. Спокойная палитра, светлая и тёмная темы ===== */
:root {
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --surface-2: #efe8de;
  --text: #2a2621;
  --muted: #6e665b;
  --line: #e3d9cb;
  --accent: #4f5d43;
  --accent-hover: #414d37;
  --accent-ink: #fff;
  --accent-soft: #e4e8dc;
  --wood: #8b6a4c;
  --sale: #a9533d;
  --sale-soft: #f4e3dc;
  --star: #c9953f;
  --ok: #3f7a4f;
  --error: #b4432e;
  --overlay: rgba(28, 24, 20, .55);
  --shadow: 0 1px 2px rgba(60, 45, 30, .06), 0 8px 24px rgba(60, 45, 30, .07);
  --shadow-lg: 0 20px 60px rgba(40, 30, 20, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --header-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1a1917;
  --surface: #23221f;
  --surface-2: #2c2a26;
  --text: #ebe5da;
  --muted: #a69e92;
  --line: #3a3732;
  --accent: #a9b893;
  --accent-hover: #bccaa6;
  --accent-ink: #1a1917;
  --accent-soft: #2f3529;
  --wood: #c9a582;
  --sale: #df8f73;
  --sale-soft: #3a2a24;
  --star: #e0b45e;
  --ok: #8fc49d;
  --error: #ef8a73;
  --overlay: rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1917; --surface: #23221f; --surface-2: #2c2a26; --text: #ebe5da; --muted: #a69e92; --line: #3a3732;
    --accent: #a9b893; --accent-hover: #bccaa6; --accent-ink: #1a1917; --accent-soft: #2f3529; --wood: #c9a582;
    --sale: #df8f73; --sale-soft: #3a2a24; --star: #e0b45e; --ok: #8fc49d; --error: #ef8a73; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.ico { flex: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 860px; }
.wrap--auth { max-width: 520px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* ----- Кнопки ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--primary:disabled, .btn--primary[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fffdf9; color: #2a2621; }
.btn--light:hover { background: #fff; color: #2a2621; }
.btn--text { background: none; color: var(--muted); }
.btn--text:hover { color: var(--accent); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text); text-decoration: none; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.icon-btn--outline { border: 1px solid var(--line); width: 52px; height: 52px; }
.icon-btn.is-on, .card__fav.is-on { color: var(--sale); }
.icon-btn.is-on svg path, .card__fav.is-on svg path { fill: currentColor; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.link-more:hover { gap: 10px; }

.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tag--sale { background: var(--sale); color: #fff; }
.tag--mega { background: #2a2621; color: #f6f2ec; }
:root[data-theme="dark"] .tag--mega { background: #ebe5da; color: #1a1917; }
.tag--soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; font-weight: 600; }
.tag--lg { font-size: 16px; padding: 6px 12px; }
.kicker { margin: 0 0 8px; color: var(--wood); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kicker--light { color: #e9d9c5; }

/* ----- Топбар и шапка ----- */
.topbar { background: var(--surface-2); font-size: 13px; color: var(--muted); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__note { display: flex; align-items: center; gap: 6px; margin: 0; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.socials { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.social { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.social:hover { background: var(--surface); color: var(--accent); }
.socials--lg .social { width: 40px; height: 40px; background: var(--surface-2); color: var(--text); }
.socials--lg .social:hover { background: var(--accent); color: var(--accent-ink); }
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.header__burger, .header__search-toggle { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.logo:hover { color: var(--text); }
.logo__mark { width: 40px; height: 40px; color: var(--wood); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.logo__tag { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link { display: block; padding: 10px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__link:hover, .nav__link.is-active { background: var(--surface-2); color: var(--accent); }
.nav__drop { position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav__item--drop:hover .nav__drop, .nav__item--drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.nav__drop a:hover { background: var(--surface-2); }
.search { position: relative; flex: 1; min-width: 160px; max-width: 320px; margin-left: auto; }
.search__input { width: 100%; height: 44px; padding: 0 46px 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); outline: none; transition: border-color .2s; }
.search__input:focus { border-color: var(--accent); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.search__btn:hover { color: var(--accent); }
.search__drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; min-width: 300px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.search__drop a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1.3; }
.search__drop a:hover, .search__drop a.is-active { background: var(--surface-2); }
.search__drop img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.search__drop b { display: block; font-weight: 600; }
.search__drop .muted { padding: 8px; font-size: 13px; }
.search--page { max-width: 560px; margin: 0 0 32px; }
.header__icons { display: flex; align-items: center; gap: 2px; }

.mobile-menu { position: fixed; inset: 0; z-index: 90; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: var(--overlay); animation: fade .2s; }
.mobile-menu__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); padding: 16px 20px 32px; overflow-y: auto; background: var(--bg); box-shadow: var(--shadow-lg); animation: slide-in .25s ease-out; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mobile-menu__list { margin: 0 0 20px; padding: 0; list-style: none; }
.mobile-menu__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; text-decoration: none; }
.mobile-menu__sub a { padding-left: 16px; font-size: 15px; font-weight: 500; color: var(--muted); }
.mobile-menu__phone { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 18px; font-weight: 700; text-decoration: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }

/* ----- Общие секции ----- */
.main { min-height: 50vh; }
.section { padding: 56px 0; }
.section--alt { background: var(--surface-2); }
.section--flush { padding: 40px 0 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section__title { margin: 0 0 20px; font-size: clamp(24px, 3vw, 34px); }
.section__head .section__title { margin: 0; }
.section__title--center { text-align: center; }
.page-head { padding: 24px 0 20px; }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-title { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); }
.page-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 18px 0 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.flashes { padding-top: 16px; }
.flash { margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); border-left: 4px solid var(--accent); }
.flash--error { background: var(--sale-soft); border-color: var(--error); }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty--big { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 24px; }
.empty .btn { margin: 4px; }
.chips { display: flex; gap: 8px; margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ticks { margin: 12px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.ticks .ico { color: var(--accent); }

/* ----- Герой с видео ----- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(78vh, 720px); color: #fbf7f1; background: #3b3328 url("/uploads/hero/poster.jpg") center/cover no-repeat; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25, 20, 15, .15) 0%, rgba(25, 20, 15, .35) 40%, rgba(25, 20, 15, .78) 100%); }
.hero__in { padding-top: 96px; padding-bottom: 48px; }
.hero__title { max-width: 820px; margin: 0 0 16px; font-size: clamp(34px, 5.6vw, 64px); }
.hero__lead { max-width: 620px; margin: 0 0 28px; font-size: clamp(16px, 2vw, 19px); color: #ece2d5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--primary { background: #f6f2ec; color: #2a2621; }
.hero .btn--primary:hover { background: #fff; color: #2a2621; }
.hero .btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 40px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.hero__facts b { display: block; font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.hero__facts span { font-size: 13px; color: #d9cdbd; }

/* ----- Категории, преимущества ----- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cat a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--surface-2); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat a:hover img { transform: scale(1.04); }
.cat a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(20,16,12,.75)); }
.cat__name, .cat__count { position: absolute; left: 18px; z-index: 1; }
.cat__name { bottom: 38px; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.cat__count { bottom: 16px; font-size: 13px; color: #e6dccf; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.benefits li { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.benefits .ico { color: var(--wood); }
.benefits b { font-size: 17px; }
.benefits span { color: var(--muted); font-size: 15px; }

/* ----- Сетка карточек ----- */
.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; }
.card__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.card__badges--static { position: static; margin-bottom: 10px; }
.card__fav { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.card__fav:hover { color: var(--sale); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px 16px; }
.card__meta { margin: 0; font-size: 13px; color: var(--muted); }
.card__title { margin: 0; font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.35; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__rating { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.card__foot { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.card .slider, .card__fav, .card__buy { position: relative; z-index: 3; }
.card__fav { position: absolute; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; }
.price__now { font-size: 20px; font-weight: 700; white-space: nowrap; }
.price__old { color: var(--muted); font-size: 14px; white-space: nowrap; }
.price--lg .price__now { font-size: 34px; }
.price--lg .price__old { font-size: 18px; }

.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars svg { flex: none; fill: currentColor; }
.stars__bg { display: inline-flex; gap: 1px; color: var(--line); }
.stars__fg { position: absolute; top: 0; left: 0; display: inline-flex; gap: 1px; overflow: hidden; white-space: nowrap; color: var(--star); }

/* ----- Слайдер фото ----- */
.slider { position: relative; overflow: hidden; background: var(--surface-2); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1 / 1; display: block; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.15); opacity: 0; transition: opacity .2s; }
.slider__arrow--prev { left: 10px; }
.slider__arrow--next { right: 10px; }
.slider:hover .slider__arrow, .slider:focus-within .slider__arrow { opacity: 1; }
.slider__dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.slider__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.35); transition: width .2s, background .2s; }
.slider__dots span.is-on { width: 18px; background: #fff; }
.slider__counter { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(20,16,12,.55); color: #fff; font-size: 13px; }
@media (hover: none) { .slider__arrow { opacity: 1; width: 32px; height: 32px; margin-top: -16px; } .card .slider__arrow { display: none; } }

/* ----- Каталог ----- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 56px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters__toggle { display: none; }
.filters__form { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog__count { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ----- Формы ----- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-bad { border-color: var(--error); }
.input--sm { min-height: 36px; padding: 4px 10px; font-size: 14px; }
textarea.input { resize: vertical; min-height: 110px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field__error { display: none; color: var(--error); font-size: 13px; }
.field__error.is-shown { display: block; }
.form__result { margin: 0; font-weight: 600; }
.form__result.is-ok { color: var(--ok); }
.form__result.is-bad { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Галочки: пустые по умолчанию */
.consents { display: flex; flex-direction: column; gap: 10px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check__box { flex: none; width: 22px; height: 22px; border: 2px solid var(--muted); border-radius: 6px; background: var(--surface); transition: .15s; }
.check input:checked + .check__box { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
:root[data-theme="dark"] .check input:checked + .check__box { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231a1917' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check.is-bad .check__box { border-color: var(--error); }
.check__text a { color: var(--accent); }
.check--plain { font-size: 15px; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option__body { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: .15s; }
.option__body b { display: flex; align-items: center; gap: 6px; }
.option__body .muted { font-size: 13px; }
.option input:checked + .option__body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.option input:focus-visible + .option__body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- Карточка товара ----- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; padding: 20px 0 32px; }
.gallery { min-width: 0; }
.slider--gallery { border-radius: var(--radius); }
.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__zoom picture, .gallery__zoom img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; }
.thumbs__btn { flex: none; width: 76px; height: 76px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2); opacity: .7; transition: .2s; }
.thumbs__btn img { width: 100%; height: 100%; object-fit: cover; }
.thumbs__btn.is-on, .thumbs__btn:hover { border-color: var(--accent); opacity: 1; }
.buybox { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.buybox__title { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); }
.buybox__rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: 14px; }
.buybox__rating b { color: var(--text); }
.buybox__price { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.club-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 14px; }
.club-price--muted { background: var(--surface-2); color: var(--muted); }
.club-price a { color: var(--accent); }
.buybox__actions { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.buybox__buy { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--muted); }
.qty button:hover { color: var(--accent); }
.qty input { width: 38px; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buybox__facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.buybox__facts li { display: flex; gap: 10px; align-items: flex-start; }
.buybox__facts .ico { color: var(--wood); margin-top: 2px; }
.buybox__short { margin-top: 20px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); }
.buybox__short p { margin: 0; }
.anchors { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 4px; margin: 0 -4px; padding: 8px 0; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.anchors a { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
.anchors a:hover { background: var(--surface-2); }
.product-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding: 32px 0; }
.product-info h2 { font-size: 26px; margin: 0 0 16px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 45%; padding-right: 12px; color: var(--muted); font-weight: 500; }
.care { margin-top: 32px; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); }
.care h2 { font-size: 20px; margin-bottom: 8px; }
.care p { margin: 0; }
.side-posts { margin-top: 28px; }
.side-posts h2 { font-size: 20px; }
.side-post { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.side-post .ico { color: var(--accent); margin-top: 3px; }

.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 26px; }
.prose h3 { margin: 1.4em 0 .5em; font-size: 21px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--wood); }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--wood); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); font-family: var(--font-serif); font-size: 19px; font-style: italic; }
.prose table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose a { color: var(--accent); }
.prose--narrow { max-width: 860px; }

/* ----- Отзывы ----- */
.reviews { padding: 24px 0 40px; border-top: 1px solid var(--line); }
.reviews__grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.reviews__summary { position: sticky; top: calc(var(--header-h) + 64px); display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reviews__avg { margin: 0; color: var(--muted); }
.reviews__avg b { font-family: var(--font-serif); font-size: 46px; color: var(--text); margin-right: 6px; }
.dist { margin: 0 0 8px; padding: 0; list-style: none; font-size: 13px; }
.dist li { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 8px; margin: 4px 0; color: var(--muted); }
.dist__bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.dist__bar i { display: block; height: 100%; background: var(--star); }
.reviews__list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.review { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.review__head time { margin-left: auto; font-size: 13px; }
.review p { margin: 8px 0 0; }
.rate-form, .rate-guest { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.rate-form__title { margin: 0; font-weight: 700; }
.rate-guest p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; border: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--line); transition: color .12s, transform .12s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }

/* ----- Мобильная панель покупки ----- */
.buybar { display: none; }

/* ----- Лайтбокс и модалки ----- */
dialog { color: var(--text); }
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(10, 8, 6, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox .icon-btn { color: #fff; position: absolute; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; }
.lightbox__nav--next { right: 12px; top: 50%; }
.modal { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; background: var(--bg); box-shadow: var(--shadow-lg); }
.modal::backdrop, .lightbox::backdrop { background: var(--overlay); }
.modal__box { position: relative; padding: 28px 24px 24px; }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__title { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.modal__lead { margin: -6px 0 4px; color: var(--muted); font-size: 15px; }
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: var(--shadow-lg); transition: transform .2s; }
.fab:hover { transform: translateY(-2px); }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; }
.cookie p { margin: 0; }
.cookie a { color: var(--accent); }
.toasts { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 95; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 340px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; pointer-events: auto; animation: toast-in .25s ease-out; }
.toast a { color: inherit; text-decoration: underline; margin-left: auto; white-space: nowrap; }
.toast--error { background: var(--error); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ----- Корзина ----- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart__items { display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: opacity .2s; }
.cart-line.is-busy { opacity: .55; }
.cart-line__img img { width: 96px; height: 96px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-line__name { font-weight: 700; text-decoration: none; line-height: 1.3; }
.cart-line__info p { margin: 4px 0 0; font-size: 14px; }
.cart-line__unit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cart-line__sum { margin: 0; min-width: 110px; text-align: right; font-weight: 700; font-size: 17px; }
.cart-line .qty { height: 44px; }
.club-note { padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); font-size: 15px; }
.club-note p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.club-note a { color: var(--accent); font-weight: 600; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.summary__title { margin: 0 0 14px; font-size: 22px; }
.summary__rows { margin: 0; }
.summary__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--muted); }
.summary__rows dd { margin: 0; color: var(--text); font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; }
.summary__total b { font-size: 26px; }
.checkout { padding: 48px 0 64px; }
.checkout__form { max-width: 860px; }

/* ----- Заказ / ЛК ----- */
.order-box { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 48px; }
.order-pay { margin: 20px 0 0; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.table tfoot td { color: var(--muted); }
.table__total td { color: var(--text); font-weight: 700; font-size: 18px; }
.table--admin td { font-size: 14px; }
.table tr.is-new td { background: var(--accent-soft); }
.table tr.is-muted td { opacity: .55; }
.inline-form { display: inline-block; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.status--paid, .status--done { background: var(--accent-soft); color: var(--ok); }
.status--pending { background: var(--sale-soft); color: var(--sale); }
.status--canceled { opacity: .7; text-decoration: line-through; }
.account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 56px; }
.acc-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.acc-card--wide { grid-column: 1 / -1; }
.acc-card h2 { margin: 0 0 14px; font-size: 22px; }
.acc-card--club { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.acc-level { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 20px; }
.progress { height: 10px; margin: 14px 0 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.acc-links { margin: 0; padding: 0; list-style: none; }
.acc-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.my-reviews { margin: 0; padding: 0; list-style: none; }
.my-reviews li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.auth { margin: 24px 0 64px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.auth .form { margin-top: 20px; }
.notfound { padding: 48px 16px 80px; text-align: center; }
.notfound__code { margin: 0; font-family: var(--font-serif); font-size: 120px; line-height: 1; color: var(--wood); opacity: .5; }
.notfound .search--page { margin: 24px auto; }

/* ----- Клуб, отзывы на главной, блог ----- */
.club { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.club__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tier { display: flex; flex-direction: column; gap: 6px; padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tier span:last-child { color: var(--muted); font-size: 14px; }
.tier__pct { font-family: var(--font-serif); font-size: 36px; font-weight: 600; color: var(--accent); line-height: 1; }
.tier--super { border-color: var(--wood); box-shadow: inset 0 0 0 1px var(--wood); }
.tier--super .tier__pct { color: var(--wood); }
.reviews-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review-card__text { margin: 0; flex: 1; }
.review-card__author { margin: 0; font-size: 14px; color: var(--muted); }
.review-card__author b { color: var(--text); }
.review-card__product { font-size: 14px; color: var(--accent); font-weight: 600; text-decoration: none; }
.reviews-wall { columns: 3 300px; column-gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; }
.review--card { break-inside: avoid; margin-bottom: 16px; }
.review__product { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-decoration: none; font-weight: 700; font-size: 14px; }
.review__product img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.reviews__avg-box { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reviews__avg-box b { font-family: var(--font-serif); font-size: 34px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; padding: 24px; background: var(--accent-soft); border-radius: var(--radius); }
.cta-box p { margin: 0; }
.post-card { display: flex; flex-direction: column; gap: 8px; }
.post-card__img { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--surface-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card__img:hover img { transform: scale(1.03); }
.post-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.post-card__title { margin: 0; font-size: 21px; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.post-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px 32px; align-items: center; }
.post-card--wide .post-card__img { grid-row: span 4; }
.post-card--wide .post-card__title { font-size: 30px; }
.grid--posts { padding-bottom: 8px; }
.article { max-width: 860px; margin: 0 auto; padding-bottom: 64px; }
.article__head { padding: 20px 0; }
.article__cover { margin: 0 0 32px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--surface-2); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__products { margin-top: 40px; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__nav-link { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.article__nav-link--next { text-align: right; grid-column: 2; }
.search-posts { padding-left: 1.2em; }
.search-posts li { margin: 8px 0; }

/* ----- Мега-баннер, акции ----- */
.mega-banner { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; overflow: hidden; border-radius: 20px; background: #3a3128; color: #fbf7f1; text-decoration: none; margin-bottom: 32px; }
.mega-banner:hover { color: #fbf7f1; }
.mega-banner picture { position: absolute; inset: 0; }
.mega-banner__img { width: 100%; height: 100%; object-fit: cover; }
.mega-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,24,18,.86) 0%, rgba(30,24,18,.6) 45%, rgba(30,24,18,0) 75%); }
.mega-banner__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 40px; }
.mega-banner__title { margin: 0; font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.15; }
.mega-banner__price { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.mega-banner__price b { font-size: 32px; }
.mega-banner__price s { color: #d4c6b4; }
.countdown { display: flex; gap: 8px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.countdown span { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 22px; font-weight: 700; line-height: 1.1; }
.countdown small { font-size: 11px; font-weight: 500; opacity: .8; }
.countdown--big span { min-width: 70px; font-size: 30px; background: var(--surface-2); color: var(--text); }
.promo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; padding: 0; list-style: none; }
.promo-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.promo-card .ico { color: var(--wood); }
.promo-card h2 { margin: 4px 0 0; font-size: 21px; }
.promo-card p { margin: 0; color: var(--muted); flex: 1; }
.grid--cards + .section, .akcii-grid { margin-bottom: 56px; }

/* ----- Страницы-документы, о компании, контакты ----- */
.doc { max-width: 900px; padding: 8px 0 64px; }
.doc--legal .prose { font-size: 16px; }
.doc--legal .prose h2 { font-size: 21px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 32px; padding: 0; list-style: none; }
.stats li { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats b { display: block; font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--wood); }
.stats span { color: var(--muted); font-size: 14px; }
.stats--admin b { font-size: 22px; }
.partners { margin-top: 40px; }
.partners__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.partner { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.partner__logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.partner b { display: block; }
.partner .muted { display: block; font-size: 13px; margin-bottom: 6px; }
.partner p { margin: 0; font-size: 15px; }
.about-map { margin-top: 40px; }
.offices { margin: 16px 0 20px; padding: 0; list-style: none; }
.offices li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.offices span { color: var(--muted); font-size: 14px; }
.offices--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.offline { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.map { position: relative; overflow: hidden; min-height: 420px; border-radius: var(--radius); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23b8ab98' stroke-opacity='.25'/%3E%3C/svg%3E"); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--sm { min-height: 360px; display: grid; place-items: center; }
.contacts { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: stretch; }
.contacts__info { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; }
.contact-list .ico { color: var(--wood); margin-top: 3px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list a { font-size: 18px; font-weight: 700; text-decoration: none; }
.office-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.office-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.office-card h3 { margin: 6px 0 0; font-size: 20px; }
.office-card p { display: flex; gap: 6px; margin: 0; font-size: 14px; }
.office-card .ico { color: var(--wood); margin-top: 3px; }
.office-card .btn { margin-top: auto; }
.feedback-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-bottom: 64px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }
.faq-list { padding-bottom: 64px; }
.faq-mini { margin-top: 40px; }
.seo-text { color: var(--muted); }
.seo-text h2 { color: var(--text); }

/* ----- Подвал ----- */
.footer { margin-top: 40px; padding: 56px 0 24px; background: var(--surface-2); color: var(--text); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 32px; }
.footer__about p { margin: 16px 0; color: var(--muted); font-size: 14px; }
.footer__title { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li { margin: 8px 0; }
.footer__col a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__col a:hover { color: var(--accent); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer__contacts a, .footer__contacts span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.footer__contacts a:first-of-type { color: var(--text); font-weight: 700; font-size: 16px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; }
.footer__docs a { color: var(--muted); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__bottom p { margin: 0; max-width: 760px; }
.pay-badges { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pay-badges li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--text); }

/* ----- Лендинг мега-акции ----- */
.lhead { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lhead__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.lhead__right { display: flex; align-items: center; gap: 14px; }
.lhero { padding: 40px 0 56px; }
.lhero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lhero__title { margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 56px); }
.lhero__lead { margin: 0 0 24px; color: var(--muted); font-size: 18px; }
.lhero__price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.lhero__price b { font-size: 42px; }
.lhero__price s { color: var(--muted); font-size: 22px; }
.lhero__timer { margin-bottom: 24px; }
.lhero__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lhero__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; }
.lhero__media { margin: 0; overflow: hidden; border-radius: 24px; aspect-ratio: 1; box-shadow: var(--shadow-lg); }
.lhero__media img { width: 100%; height: 100%; object-fit: cover; }
.lbenefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lbenefits li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lbenefits__num { display: block; margin-bottom: 10px; font-family: var(--font-serif); font-size: 30px; color: var(--wood); }
.lbenefits p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.lstory { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.lstory figure { margin: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 1; }
.lstory img { width: 100%; height: 100%; object-fit: cover; }
.lsteps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.lsteps li { counter-increment: s; position: relative; padding: 56px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lsteps li::before { content: counter(s); position: absolute; top: 18px; left: 22px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.lgallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lgallery li { overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; }
.lgallery img { width: 100%; height: 100%; object-fit: cover; }
.lfinal { padding: 72px 0; background: #3a3128; color: #fbf7f1; text-align: center; }
.lfinal__in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lfinal__title { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.lfinal p { margin: 0; color: #e0d4c4; max-width: 640px; }
.lfinal .countdown span { background: rgba(255,255,255,.12); color: #fff; }
.lfoot { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lfoot__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.lfoot p { margin: 0; }
.lfoot .footer__docs { margin: 0; }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 9px; font-size: 14px; }
  .search { max-width: 220px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header__burger { display: inline-grid; margin-left: -10px; }
  .search { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); max-width: none; display: none; }
  .search.is-open { display: block; }
  .header__search-toggle { display: inline-grid; }
  .header__icons { margin-left: auto; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__toggle { display: flex; }
  .filters__form { display: none; margin-top: 10px; }
  .filters.is-open .filters__form { display: flex; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .buybox { position: static; }
  .product-info { grid-template-columns: 1fr; gap: 32px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__summary { position: static; }
  .cats, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club, .offline, .contacts, .feedback-block, .lhero__in, .lstory { grid-template-columns: 1fr; gap: 28px; }
  .office-cards, .lbenefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-row { grid-template-columns: 1fr 1fr; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar__note { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__right { width: 100%; justify-content: space-between; }
  .logo__name { font-size: 20px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__tag { font-size: 10px; }
  .icon-btn { width: 40px; height: 40px; }
  .section { padding: 40px 0; }
  .hero { min-height: 82vh; }
  .hero__in { padding-top: 64px; padding-bottom: 32px; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .grid { gap: 12px; }
  .grid--cards, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__body { padding: 10px 12px 12px; }
  .card__title { font-size: 14px; }
  .card__meta { font-size: 12px; }
  .price__now { font-size: 17px; }
  .card__buy span { display: none; }
  .card__buy { min-height: 40px; padding: 8px 12px; }
  .card__rating span { font-size: 12px; }
  .form__grid, .form__grid--2 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty sum"; gap: 10px 12px; }
  .cart-line__img { grid-area: img; } .cart-line__img img { width: 72px; height: 72px; }
  .cart-line__info { grid-area: info; } .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-line__sum { grid-area: sum; min-width: 0; } .cart-line__remove { grid-area: rm; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; }
  .buybar.is-shown { transform: none; }
  .buybar .price__now { font-size: 20px; }
  .fab span { display: none; }
  .fab { width: 52px; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
  body:has(.buybar.is-shown) .fab { bottom: 84px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; gap: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.4; }
  .cookie .btn { flex: none; min-height: 34px; padding: 6px 12px; }
  .mega-banner { grid-template-columns: 1fr; min-height: 460px; }
  .mega-banner::after { background: linear-gradient(0deg, rgba(30,24,18,.9) 0%, rgba(30,24,18,.5) 60%, rgba(30,24,18,.1) 100%); }
  .mega-banner__text { justify-content: flex-end; padding: 24px; }
  .promo-cards, .tiers, .reviews-row, .lbenefits, .lsteps, .office-cards, .partners__list, .offices--grid { grid-template-columns: 1fr; }
  .lgallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .post-card--wide { display: flex; }
  .post-card--wide .post-card__title { font-size: 22px; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav-link--next { grid-column: 1; }
  .countdown span { min-width: 46px; font-size: 18px; }
  .countdown--big span { min-width: 58px; font-size: 24px; }
  .lhead__right .topbar__phone, .lhead__right .btn { display: none; }
  .lhero { padding-top: 24px; }
  .lhero__media { order: -1; }
  .lhero__price b { font-size: 34px; }
  .map { min-height: 340px; }
  .account { grid-template-columns: 1fr; }
  .auth { padding: 24px 18px; }
  .page-head--row { align-items: flex-start; }
  .buybox__actions { flex-wrap: wrap; }
  .buybox__buy { flex: 1 1 160px; }
  .modal__box { padding: 24px 18px 20px; }
}
@media (max-width: 380px) {
  .grid--cards, .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__video { display: none; }
}
@media print {
  .topbar, .header, .footer, .fab, .cookie, .buybar, .slider__arrow { display: none !important; }
}

/* ===== Дополнения: авторизация, 2FA, админка ===== */
.auth__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.input--code { font-size: 28px; letter-spacing: 12px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.auth__resend { margin-top: 10px; text-align: center; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--yandex { background: #000; color: #fff; }
.btn--yandex:hover { background: #222; color: #fff; }
:root[data-theme="dark"] .btn--yandex { background: #fff; color: #000; }
.ya-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fc3f1d; color: #fff; font-weight: 800; font-size: 15px; }
.switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { flex: none; position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--line); transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge--inline { position: static; display: inline-block; margin-left: 4px; }
.chips--sm .chip { padding: 5px 12px; font-size: 13px; }
.admin { padding-bottom: 64px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-list { margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; }
.admin-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars__bar { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--surface))); min-height: 2px; }
.bars__label { font-size: 11px; color: var(--muted); }
.status-form, .product-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-form .input { width: 110px; }
.check--sm { font-size: 13px; gap: 6px; }
.check--sm .check__box { width: 18px; height: 18px; border-radius: 5px; }
.check--sm input { width: 18px; height: 18px; }
.check--sm input:checked + .check__box { background-size: 12px; }
.fb-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fb { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fb--new { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.fb__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.fb__msg { margin: 10px 0; white-space: normal; }
.fb__reply { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 15px; }
.fb__form { gap: 8px; }
.fb__actions { display: flex; gap: 8px; }
.countdown span.is-tick b { animation: tick .35s ease-out; }
.countdown b { display: block; }
@keyframes tick { from { transform: translateY(-30%); opacity: .3; } }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } .bars { height: 140px; gap: 3px; } }
