/* Miracle Garden — тема витрины.
   Спокойный ботанический премиум: тёплый светлый фон, глубокий зелёный, терракотовый акцент.
   Mobile-first, без фреймворков. Токены — в :root. */

@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("/static/fonts/cormorant-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("/static/fonts/cormorant-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("/static/fonts/cormorant-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("/static/fonts/cormorant-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20BD, U+2212;
}

:root {
  /* палитра */
  --c-bg: #f6f2ea;            /* тёплая бумага */
  --c-surface: #fffdf8;
  --c-tint: #ece6da;
  --c-ink: #1d2922;           /* почти чёрный с зеленью: 13.9:1 на фоне */
  --c-muted: #56625a;         /* 5.6:1 на фоне */
  --c-line: #e1d9cb;
  --c-primary: #1f4a37;       /* глубокий зелёный: 9.6:1 на фоне */
  --c-primary-hover: #163a2a;
  --c-primary-soft: #e1eae1;
  --c-leaf: #5b8566;
  --c-accent: #c8714a;        /* терракота — декор */
  --c-accent-deep: #9b4628;   /* терракота для текста: 5.7:1 на фоне */
  --c-star: #c98b2c;
  --c-focus: #9b4628;
  --c-ok: #2e6b45;

  /* шрифты */
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* размеры */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --header-h: 60px;
  --shadow: 0 1px 2px rgb(29 41 34 / .05), 0 8px 24px -12px rgb(29 41 34 / .18);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}
@media (min-width: 960px) { :root { --header-h: 124px; } }

/* ───────── база ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-ink);
  font: 400 1rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { flex: 1 0 auto; outline: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; overflow-wrap: break-word; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
table { border-collapse: collapse; }
s { text-decoration-thickness: 1px; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--c-primary); color: #fff; border-radius: var(--r-s); text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; color: inherit; }
.muted { color: var(--c-muted); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ───────── кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.25em; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding-inline: 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--primary:disabled { background: #9aa79e; cursor: not-allowed; }
.btn--soft { background: var(--c-primary-soft); color: var(--c-primary); }
.btn--soft:hover { background: var(--c-primary); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: var(--c-bg); color: var(--c-primary); }
.btn--light:hover { background: #fff; color: var(--c-primary-hover); }
.btn--link { background: none; color: var(--c-primary); padding-inline: .5em; text-decoration: underline; text-underline-offset: .25em; }
.btn .icon { width: 1.1em; height: 1.1em; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; color: var(--c-ink); text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--c-tint); color: var(--c-ink); }
.icon-btn .icon { width: 24px; height: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; padding: .25em .6em; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.2; background: var(--c-surface); color: var(--c-ink);
}
.badge--sale { background: var(--c-accent-deep); color: #fff; }
.badge--muted { background: rgb(255 253 248 / .92); color: var(--c-muted); }
.badge--count { background: var(--c-primary); color: #fff; min-width: 1.6em; justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-leaf);
}
.eyebrow a { color: inherit; text-decoration: none; }

/* ───────── шапка ───────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(246 242 234 / .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__row { display: flex; align-items: center; gap: 4px; height: var(--header-h); }
.burger { margin-left: -10px; }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; color: var(--c-ink); min-width: 0; margin-right: auto; }
.logo:hover { color: var(--c-primary); }
.logo__name { font: 600 1.6rem/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.logo__tag { display: none; font-size: .72rem; color: var(--c-muted); letter-spacing: .02em; margin-top: 3px; white-space: nowrap; }
.site-header__actions { display: flex; align-items: center; margin-right: -10px; }
.site-header .site-header__search { display: none; }
.cart-link__n {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--c-accent-deep); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}

/* меню: на телефоне — выезжающая панель (работает и без JS через :target) */
.nav {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 360px);
  display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 24px;
  background: var(--c-surface); box-shadow: var(--shadow);
  transform: translateX(-105%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s; overflow-y: auto;
}
.nav:target, .nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.nav__head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.nav__title { font: 600 1.5rem/1 var(--f-display); }
.nav__close { margin-right: -10px; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--c-line);
  color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.nav__list a[aria-current="page"] { color: var(--c-primary); }
.nav__phone { margin-top: auto; padding-top: 16px; font-weight: 700; text-decoration: none; }
.nav-backdrop { display: none; position: fixed; inset: 0; z-index: 50; background: rgb(29 41 34 / .35); }
.site-header:has(.nav:target) .nav-backdrop, .site-header:has(.nav.is-open) .nav-backdrop { display: block; }

@media (min-width: 960px) {
  /* две строки: логотип + поиск + корзина, под ними — разделы в одну линию с прокруткой */
  .site-header__row { flex-wrap: wrap; gap: 0 32px; height: auto; padding-top: 14px; }
  .burger, .nav__head, .nav__phone, .search-link, .nav-backdrop { display: none !important; }
  .logo { margin-right: 0; flex: none; }
  .logo__name { font-size: 1.85rem; }
  .logo__tag { display: block; }
  .site-header .site-header__search { display: flex; flex: 1 1 320px; max-width: 560px; margin-inline: auto; }
  .site-header__actions { margin-right: -8px; margin-left: auto; }
  .nav {
    position: static; order: 5; flex: 0 0 100%; width: auto; min-width: 0; padding: 0; background: none; box-shadow: none;
    transform: none; visibility: visible; transition: none; overflow: visible; flex-direction: row; margin-top: 6px;
  }
  .nav__list {
    display: flex; flex: 1; min-width: 0; gap: 2px; flex-wrap: nowrap; margin-left: -12px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  }
  .nav__list::-webkit-scrollbar { display: none; }
  .nav__list li:last-child { padding-right: 48px; }
  .nav__list a { min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; font-size: .92rem; font-weight: 500; white-space: nowrap; }
  .nav__list a:hover { background: var(--c-tint); }
}

/* поиск */
.search-form { position: relative; display: flex; align-items: center; }
.search-form input {
  width: 100%; min-height: 44px; padding: 0 48px 0 18px;
  border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface);
  font-size: .95rem; -webkit-appearance: none; appearance: none;
}
.search-form input::placeholder { color: #7c867f; }
.search-form input:focus-visible { outline-offset: 0; border-color: var(--c-primary); }
.search-form__btn {
  position: absolute; right: 2px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; color: var(--c-muted); cursor: pointer; border-radius: 50%;
}
.search-form--big { gap: 8px; margin-top: 20px; max-width: 640px; }
.search-form--big input { min-height: 52px; padding-right: 18px; font-size: 1rem; }
.search-form--big .btn { min-height: 52px; flex: none; }

/* крошки */
.crumbs { padding-top: 14px; font-size: .85rem; color: var(--c-muted); }
.crumbs ol { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-block: 4px; }
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--c-line); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.crumbs [aria-current] { color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

/* ───────── секции и заголовки ───────── */
.section { padding-block: clamp(40px, 7vw, 88px); }
.section--tint { background: var(--c-tint); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); flex-wrap: wrap; }
.section__title, .page-title, .hero__title, .article__title, .cta__title, .h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
.section__title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); display: flex; align-items: center; gap: .3em; }
.section__head .section__title { margin: 0; }
.section > .wrap > .section__title { margin-bottom: clamp(20px, 3vw, 32px); }
.section__lead { margin: -12px 0 24px; color: var(--c-muted); max-width: 60ch; }
.h3 { font-size: 1.6rem; margin-bottom: 12px; }
.page-head { padding-block: clamp(20px, 4vw, 44px) clamp(16px, 3vw, 28px); }
.page-title { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; overflow-wrap: anywhere; }
.page-lead { margin-top: 12px; color: var(--c-muted); font-size: 1.05rem; max-width: 60ch; }
.empty { padding: 32px; border: 1px dashed var(--c-line); border-radius: var(--r-m); color: var(--c-muted); text-align: center; display: grid; gap: 16px; justify-items: center; }

/* ───────── герой ───────── */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(36px, 7vw, 88px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 8.5vw, 5rem); line-height: 1; font-weight: 500; max-width: 13ch; }
.hero__lead { margin: 20px 0 0; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--c-muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-l); background: var(--c-tint); }
.hero__art { width: min(100%, 300px); margin-inline: auto; height: auto; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .hero__art { width: min(100%, 440px); }
  .hero--image .hero__media img { aspect-ratio: 4 / 5; max-height: 640px; }
}
@media (max-width: 959px) { .hero:not(.hero--image) .hero__media { display: none; } }

/* ───────── плитки категорий ───────── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: grid; gap: 4px; color: var(--c-ink); text-decoration: none; }
.tile__media { display: block; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--c-primary-soft); margin-bottom: 8px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__art { display: grid; place-items: center; height: 100%; color: var(--c-leaf); }
.tile__art .icon { width: 38%; height: 38%; stroke-width: 1; }
.tile__name { font: 600 clamp(1.25rem, 2.4vw, 1.6rem)/1.1 var(--f-display); overflow-wrap: anywhere; }
.tile:hover .tile__name { color: var(--c-primary); }
.tile__count { font-size: .85rem; color: var(--c-muted); }
.tile-group { display: grid; align-content: start; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
/* на телефоне чипы — одна строка с прокруткой, чтобы товары были на первом экране */
@media (max-width: 719px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chips > li { flex: none; scroll-snap-align: start; }
}
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface);
  color: var(--c-ink); text-decoration: none; font-size: .92rem; font-weight: 600;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip__n { color: var(--c-muted); font-weight: 500; }
.chips--small { margin-top: 0; }
.chips--small .chip { font-size: .85rem; padding: 0 12px; }

/* ───────── карточки товаров ───────── */
:has(> .grid-cards) { container-type: inline-size; }
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@container (min-width: 620px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@container (min-width: 1040px) { .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-cards > li { min-width: 0; display: flex; }

.card { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden;
  background: #eef0e8;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.card__body { padding: 12px 2px 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card__title { font: 600 .95rem/1.35 var(--f-text); }
.card__title a {
  color: var(--c-ink); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.card__title a:hover { color: var(--c-primary); }
.card__rating { display: flex; align-items: center; gap: 4px; margin: 0; font-size: .82rem; font-weight: 600; }
.card__rating .muted { font-weight: 400; }
.icon--star { width: 14px; height: 14px; color: var(--c-star); }
.card__foot { padding-top: 12px; }
.card__foot .btn { min-height: 44px; font-size: .9rem; padding-inline: .8em; }
@media (max-width: 380px) { .card__foot .btn { font-size: .85rem; } }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: auto 0 0; }
.price__now { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__now--sale { color: var(--c-accent-deep); }
.price__old { color: var(--c-muted); font-size: .88rem; white-space: nowrap; }
.price--lg .price__now { font-size: clamp(1.6rem, 3vw, 2rem); }
.price--lg .price__old { font-size: 1.05rem; }

/* ───────── преимущества, CTA ───────── */
.benefits { display: grid; gap: 28px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; } }
.benefit { border-top: 1px solid var(--c-ink); padding-top: 20px; }
.benefit__n { display: block; font: 500 1.1rem/1 var(--f-display); color: var(--c-accent-deep); margin-bottom: 16px; }
.benefit__title { font: 600 1.55rem/1.15 var(--f-display); margin-bottom: 10px; }
.benefit p { color: var(--c-muted); }

.cta {
  display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-l); background: var(--c-primary); color: #f3efe6;
  background-image: radial-gradient(circle at 100% 0, rgb(91 133 102 / .45), transparent 55%);
}
.cta__title { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; max-width: 18ch; }
.cta__text { margin-top: 12px; max-width: 50ch; color: #dfe7df; }
@media (min-width: 840px) { .cta { grid-template-columns: 1fr auto; } }

/* ───────── статьи ───────── */
.posts { display: grid; gap: 32px 24px; }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.posts--list { margin-bottom: 40px; }
.post { display: grid; gap: 14px; align-content: start; }
.post__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-m); background: var(--c-primary-soft); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.03); }
.post__art { display: grid; place-items: center; height: 100%; color: var(--c-leaf); background: linear-gradient(135deg, var(--c-primary-soft), var(--c-tint)); }
.post__art .icon { width: 30%; height: 30%; stroke-width: 1; }
.post__date { font-size: .82rem; color: var(--c-muted); }
.post__title { font: 600 clamp(1.45rem, 2.4vw, 1.75rem)/1.15 var(--f-display); margin: 4px 0 8px; }
.post__title a { color: var(--c-ink); text-decoration: none; }
.post__title a:hover { color: var(--c-primary); text-decoration: underline; }
.post__excerpt { color: var(--c-muted); font-size: .95rem; }

/* ───────── каталог ───────── */
.catalog { display: grid; gap: 24px; padding-bottom: clamp(40px, 6vw, 80px); align-items: start; }
.catalog__main { min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filters-toggle { flex: 1 1 auto; }
.sort { flex: 1 1 auto; position: relative; display: flex; }
.sort__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sort select {
  width: 100%; min-height: 44px; padding: 0 40px 0 16px; border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%231d2922' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
  -webkit-appearance: none; appearance: none; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.listing { transition: opacity .2s var(--ease); }
.listing.htmx-request { opacity: .45; pointer-events: none; }
.listing__count { color: var(--c-muted); font-size: .9rem; margin-bottom: 16px; }

/* фильтры: на телефоне — выезжающая панель справа */
.filters {
  position: fixed; inset: 0 0 0 auto; z-index: 70; width: min(92vw, 400px);
  display: flex; flex-direction: column; background: var(--c-surface); box-shadow: var(--shadow);
  transform: translateX(105%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.filters:target, .filters.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--c-line); }
.filters__title { font: 600 1.5rem/1 var(--f-display); }
.filters__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.filters__foot { display: grid; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-surface); }
.filters-backdrop { display: none; position: fixed; inset: 0; z-index: 65; background: rgb(29 41 34 / .35); }
.catalog:has(.filters:target) .filters-backdrop, .catalog:has(.filters.is-open) .filters-backdrop { display: block; }

.fgroup { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup__title { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.fgroup__list { display: grid; gap: 0; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; min-width: 0; }
.price-range input {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--r-s);
  background: var(--c-bg); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.price-range input::-webkit-outer-spin-button, .price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--c-primary); cursor: pointer; }
.check__n { margin-left: auto; color: var(--c-muted); font-size: .82rem; }

@media (min-width: 1024px) {
  .catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
  .filters {
    position: sticky; top: calc(var(--header-h) + 20px); z-index: auto; width: auto; max-height: calc(100vh - var(--header-h) - 40px);
    transform: none; visibility: visible; transition: none; box-shadow: none; background: none;
  }
  .filters__head { padding: 0 0 12px; }
  .filters__close, .filters-toggle, .filters-backdrop { display: none !important; }
  .filters__body { padding: 0; }
  .filters__foot { padding: 16px 0 0; background: none; }
  .js .filters__foot .btn--primary { display: none; }
  .toolbar { justify-content: flex-end; }
  .sort { flex: 0 0 240px; }
}

.category-about { padding-bottom: clamp(40px, 6vw, 80px); color: var(--c-muted); }
.category-about > * { max-width: 72ch; }

/* пагинация */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.pager ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--c-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { background: var(--c-tint); }
.pager [aria-current] { background: var(--c-primary); color: #fff; }
.pager__gap { display: grid; place-items: center; min-width: 24px; color: var(--c-muted); }
.pager__step { padding-inline: 16px !important; border: 1px solid var(--c-line); }

/* ───────── товар ───────── */
.product { display: grid; gap: 24px; padding-top: 16px; padding-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; }
  .product__info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.product__gallery { min-width: 0; margin-inline: calc(-1 * var(--gutter)); }
@media (min-width: 720px) { .product__gallery { margin-inline: 0; } }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 4 / 5; background: #eef0e8; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .gallery__track { border-radius: var(--r-l); } }
.gallery__dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--c-line); transition: background-color .2s, width .2s; }
.gallery__dots span.is-active { background: var(--c-primary); width: 18px; border-radius: 3px; }
.gallery__thumbs { display: none; }
@media (min-width: 720px) {
  .gallery__dots { display: none; }
  .gallery__thumbs { display: flex; gap: 10px; padding-top: 12px; flex-wrap: wrap; }
  .gallery__thumb { display: block; width: 72px; height: 72px; border-radius: var(--r-s); overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; opacity: .75; transition: opacity .2s, outline-color .2s; }
  .gallery__thumb:hover, .gallery__thumb[aria-current="true"] { opacity: 1; outline-color: var(--c-primary); }
  .gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
}
.product__title { font: 600 clamp(2rem, 4.6vw, 3rem)/1.05 var(--f-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.product__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; font-size: .88rem; color: var(--c-muted); }
.product__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.product__short { margin-top: 24px; font-size: 1.05rem; color: var(--c-ink); }

.stars {
  --r: 100%; display: inline-block; width: 5.4em; height: 1em; flex: none; vertical-align: -0.1em;
  background: linear-gradient(90deg, var(--c-star) var(--r), #d9d1c2 var(--r));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9L12 2.5Z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9L12 2.5Z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x;
}
.stars--lg { font-size: 1.3rem; }

.buy { margin-top: 24px; padding: 20px; border-radius: var(--r-m); background: var(--c-surface); border: 1px solid var(--c-line); display: grid; gap: 16px; }
.variants__title { font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.variants__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.variant { position: relative; display: block; cursor: pointer; }
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant__box { display: grid; gap: 2px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--r-s); background: var(--c-bg); transition: border-color .2s, background-color .2s; }
.variant__name { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.variant__price { font-size: .82rem; color: var(--c-muted); }
.variant input:checked + .variant__box { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: inset 0 0 0 1px var(--c-primary); }
.variant input:focus-visible + .variant__box { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.stock { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: .92rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--c-ok); }
.stock--out { color: var(--c-muted); }
.buy__row { display: flex; gap: 10px; }
.qty input {
  width: 76px; min-height: 52px; text-align: center; border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-bg); font-weight: 600; font-variant-numeric: tabular-nums;
}
.buy__btn { flex: 1; }

.specs { margin-top: 32px; }
.specs__table { width: 100%; font-size: .95rem; }
.specs__table th, .specs__table td { padding: 12px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.specs__table th { font-weight: 500; color: var(--c-muted); padding-right: 16px; width: 48%; }
.specs__table td { font-weight: 600; }

.product-details { display: grid; gap: 24px; padding-bottom: clamp(16px, 3vw, 32px); }
@media (min-width: 960px) { .product-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.product-details__block .section__title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 16px; }
.care { padding: clamp(20px, 3vw, 32px); background: var(--c-primary-soft); border-radius: var(--r-m); }
.care .section__title .icon { color: var(--c-leaf); width: .9em; height: .9em; }

.reviews__summary { display: flex; align-items: center; gap: 12px; margin: 0; }
.reviews__avg { font: 600 2.4rem/1 var(--f-display); }
.reviews__list { display: grid; gap: 16px; }
@media (min-width: 840px) { .reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review { padding: 20px; border-radius: var(--r-m); background: var(--c-surface); border: 1px solid var(--c-line); display: grid; gap: 10px; align-content: start; }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review__author { font-weight: 700; }
.review__meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--c-muted); }
.review p { margin: 0; }
.review__reply { padding: 12px 14px; border-left: 3px solid var(--c-leaf); background: var(--c-bg); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: .92rem; }
.src { display: inline-flex; align-items: center; padding: .3em .7em; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.2; background: var(--c-primary-soft); color: var(--c-primary); }
.src--ozon { background: #005bff; color: #fff; }
.src--wb { background: #8b1f9e; color: #fff; }
.src--yandex { background: #ffd43b; color: #1d2922; }

/* ───────── статья и текст ───────── */
.article__head { padding-top: clamp(20px, 4vw, 48px); padding-bottom: 28px; }
.article__title { font-size: clamp(2.3rem, 6.5vw, 4rem); line-height: 1.03; overflow-wrap: anywhere; }
.article__lead { margin-top: 16px; font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--c-muted); }
.article__date { display: block; margin-top: 16px; font-size: .85rem; color: var(--c-muted); }
.article__cover { margin-block: 0 clamp(28px, 4vw, 48px); max-width: calc(1120px + 2 * var(--gutter)); }
.article__cover img { width: 100%; border-radius: var(--r-l); aspect-ratio: 16 / 9; object-fit: cover; background: var(--c-tint); }

.prose { font-size: 1.04rem; line-height: 1.75; overflow-wrap: break-word; }
.prose--article { font-size: clamp(1.04rem, 1.4vw, 1.12rem); padding-bottom: clamp(32px, 5vw, 64px); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font: 600 clamp(1.7rem, 3.4vw, 2.2rem)/1.15 var(--f-display); margin-top: 1.8em; }
.prose h3 { font: 600 clamp(1.35rem, 2.6vw, 1.6rem)/1.2 var(--f-display); margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-leaf); }
.prose blockquote { margin-inline: 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--c-accent); font: italic 500 1.35em/1.4 var(--f-display); color: var(--c-ink); }
.prose img { border-radius: var(--r-m); height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .5em; }
.prose table { width: 100%; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6em .8em; border-bottom: 1px solid var(--c-line); text-align: left; }
.prose a { color: var(--c-primary); text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin-block: 2em; }
.static-page { padding-block: clamp(20px, 4vw, 48px) clamp(40px, 6vw, 80px); }
.static-page .page-title { margin-bottom: 24px; }

/* 404 */
.nf { padding-block: clamp(32px, 6vw, 72px) 24px; }
.nf__code { font: 500 clamp(5rem, 18vw, 9rem)/.9 var(--f-display); color: var(--c-accent); margin-bottom: 8px; }
.nf .search-form { margin-bottom: 16px; }

/* ───────── подвал ───────── */
.site-footer { margin-top: auto; background: #1a2d23; color: #d6ddd5; padding-top: clamp(40px, 6vw, 72px); font-size: .95rem; }
.site-footer a { color: #f3efe6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand p { margin-top: 12px; color: #b9c4b9; max-width: 32ch; }
.logo--footer { color: #fff; }
.logo--footer:hover { color: #fff; }
.site-footer__h { font: 700 .78rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: #9fb0a2; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a, .site-footer address a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer address { font-style: normal; line-height: 1.5; }
.site-footer__bottom { padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; color: #9fb0a2; }

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