/* Ирисы и лилейники — витрина. Светлая «ботаническая» тема: тёплая бумага, лесной зелёный, терракота. */
:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #F3EFE6;
  --ink: #1C2620;
  --ink-2: #48544C;
  --muted: #7C857E;
  --line: #E8E3D7;
  --line-strong: #D9D2C2;
  --brand: #2D5A43;
  --brand-hover: #234A37;
  --brand-soft: #E4EEE6;
  --accent: #BF5B36;
  --accent-soft: #F8E7DF;
  --iris: #6B58C4;
  --iris-soft: #ECE8FA;
  --gold: #C99A3B;
  --danger: #B3402A;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(28 38 32 / .05);
  --shadow: 0 1px 2px rgb(28 38 32 / .04), 0 8px 24px -8px rgb(28 38 32 / .12);
  --shadow-lg: 0 24px 60px -20px rgb(28 38 32 / .25);
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.icon { width: 22px; height: 22px; flex: none; stroke-width: 1.5; } /* толщина для символов без своей (иконки разделов) */
.muted { color: var(--muted); }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.section-gap { padding-block: clamp(48px, 8vw, 96px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки, бейджи ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface-2); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.badge--new { background: var(--iris-soft); color: var(--iris); }
.badge--sale { background: var(--accent-soft); color: var(--accent); }
.badge--sold { background: var(--ink); color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink); text-decoration: none; position: relative;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Шапка ---------- */
.announce {
  background: var(--brand); color: #EAF1EC; text-align: center; font-size: 13px; font-weight: 500;
  padding: 9px var(--gutter); letter-spacing: .01em;
}
.header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
/* Размытие — на псевдоэлементе: backdrop-filter на самой шапке сделал бы её контейнером
   для position: fixed, и мобильное меню обрезалось бы по высоте шапки */
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(250 248 243 / .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 20px; height: 72px; }
.header__burger { display: none; margin-left: -10px; }
.header__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: -10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 500 21px/1.1 var(--font-display); letter-spacing: -.01em; }
.brand__sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav__head, .nav__sep { display: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--brand); background: var(--brand-soft); }
.nav__link--sale { color: var(--accent); }
.nav__link--sale:hover, .nav__link--sale.is-active { color: var(--accent); background: var(--accent-soft); }
.nav__catalog { position: relative; }
.nav__trigger { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 16px; font-weight: 500; }
.nav__trigger .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; z-index: 50; width: 480px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* мостик для мыши */
.nav__catalog:hover .nav__dropdown, .nav__catalog:focus-within .nav__dropdown, .nav__catalog.is-open .nav__dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.nav__catalog:hover .nav__trigger .icon, .nav__catalog.is-open .nav__trigger .icon { transform: rotate(180deg); }
.nav__drop-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 500;
}
.nav__drop-link:hover, .nav__drop-link.is-active { background: var(--brand-soft); color: var(--brand); }
.nav__count { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 1320px) { .nav__link--page { display: none; } } /* на средних экранах — только Каталог, Распродажа, Статьи */
/* Разделы каталога — постоянная вторая строка шапки; выпадающий «Каталог» на десктопе её дублировал бы */
@media (min-width: 1021px) { .nav__catalog { display: none; } }
.subnav { border-top: 1px solid var(--line); }
.subnav__row { display: flex; gap: 2px; height: 44px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav__row::-webkit-scrollbar { display: none; }
.subnav__link {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s;
}
.subnav__link .icon, .nav__drop-name .icon { width: 19px; height: 19px; }
.nav__drop-name { display: inline-flex; align-items: center; gap: 10px; }
.subnav__link:first-child { margin-left: -10px; }
.subnav__link:hover { background: var(--surface-2); color: var(--ink); }
.subnav__link.is-active { color: var(--brand); background: var(--brand-soft); }
.subnav__link--sale { color: var(--accent); }
.subnav__link--sale:hover, .subnav__link--sale.is-active { color: var(--accent); background: var(--accent-soft); }
.admin-link {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; margin-right: 6px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background .2s;
}
.admin-link:hover { background: var(--brand); }
.admin-link .icon { width: 17px; height: 17px; }
.nav .admin-link { display: none; }
@media (max-width: 1020px) {
  .header__actions .admin-link { display: none; }
  .nav .admin-link { display: inline-flex; align-self: flex-start; height: 44px; margin: 0 4px 10px; padding: 0 18px 0 14px; font-size: 15px; }
}
.cart-btn__count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-btn__count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav-backdrop { display: none; }

@media (max-width: 1180px) { .brand__sub { display: none; } }
@media (max-width: 560px) {
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand__name { font-size: 18px; }
  .header__actions .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 1020px) {
  .header__burger { display: inline-grid; }
  .header__row { height: 64px; gap: 8px; }
  .nav {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 360px); margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 16px; overflow-y: auto;
    background: var(--bg); box-shadow: var(--shadow-lg);
    transform: translateX(-102%); transition: transform .3s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav > * { flex: none; }  /* пункты не сжимаются, длинное меню прокручивается */
  .nav__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
  .nav__sep { display: block; height: 1px; background: var(--line); margin: 10px 4px; }
  .nav__link { padding: 12px 14px; font-size: 17px; border-radius: var(--radius-sm); }
  .nav__link--muted { display: flex !important; }
  .nav__trigger { display: none; }
  .nav__catalog { display: contents; }
  .nav__dropdown { position: static; width: auto; display: flex; flex-direction: column; padding: 0; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; background: none; }
  .nav__dropdown::before { display: none; }
  .nav__drop-link { padding: 12px 14px; font-size: 17px; color: var(--ink-2); }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgb(28 38 32 / .35);
    opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- Главная: hero ---------- */
.hero { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { margin: 18px 0 20px; }
.hero__title em { font-style: italic; color: var(--brand); }
.hero__text { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__fact b { display: block; font: 500 30px/1 var(--font-display); }
.hero__fact span { font-size: 14px; color: var(--muted); }
.hero__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-2); }
.hero__media .tall { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.hero__media .small { aspect-ratio: 1; }
.hero__stamp {
  position: absolute; left: -22px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); padding: 14px 18px 14px 14px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__stamp .icon { width: 36px; height: 36px; padding: 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.hero__stamp b { display: block; font-size: 14px; }
.hero__stamp span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media .tall { aspect-ratio: 4 / 5; }
  .hero__stamp { left: 12px; bottom: 12px; }
}

/* ---------- Заголовки секций ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 36em; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Разделы ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: #fff; background: var(--surface-2); isolation: isolate;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(18 28 22 / .72)); }
.cat:hover img { transform: scale(1.04); }
.cat__body { position: absolute; inset: auto 0 0 0; padding: 22px 24px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.cat__name { font: 500 26px/1.1 var(--font-display); }
.cat__count { font-size: 14px; opacity: .85; }
.cat__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgb(255 255 255 / .2); backdrop-filter: blur(8px); flex: none; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } .cat { aspect-ratio: 16 / 10; } }

/* ---------- Карточка сорта ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--empty { display: grid; place-items: center; color: var(--line-strong); }
.card__media--empty .icon { width: 56px; height: 56px; }
.card.is-sold .card__media img { filter: grayscale(.6) opacity(.75); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__fav {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 999px; border: 0; background: rgb(255 255 255 / .9); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s;
}
.card__fav .icon { width: 19px; height: 19px; }
.card__fav:hover { transform: scale(1.08); }
.is-fav .icon path, .card__fav.is-fav .icon path { fill: var(--accent); stroke: var(--accent); }
.card__body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__title {
  font: 500 18px/1.2 var(--font-display); text-decoration: none; letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__title::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.card__meta { font-size: 13px; color: var(--muted); min-height: 1.5em; } /* пустая строка не сдвигает цены в ряду */
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.price--ask { font-weight: 500; font-size: 14px; color: var(--muted); }
.price__old { font-weight: 500; font-size: 14px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.card__add {
  position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid transparent; background: var(--brand-soft); color: var(--brand); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.card:hover .card__add { transform: scale(1.06); }
.card__add:hover, .card__add.is-added { background: var(--brand); border-color: var(--brand); color: #fff; }
.card__add .icon { width: 19px; height: 19px; }
.card__fav, .card__badges { z-index: 1; }

/* ---------- Каталог раздела ---------- */
.page-head { padding: clamp(14px, 2vw, 22px) 0 clamp(14px, 2vw, 20px); }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }
.page-head__lead { color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 42em; margin: 6px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

.toolbar {
  position: sticky; top: 116px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 0; margin-bottom: 20px; background: var(--bg); border-bottom: 1px solid var(--line);
}
@media (max-width: 1020px) { .toolbar { top: 108px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; background: var(--surface); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip span:hover { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.toolbar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.select {
  height: 38px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2348544C' stroke-width='2' stroke-linecap='round' d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  appearance: none; font-size: 14px; font-weight: 500; cursor: pointer;
}
.count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 12px; font-size: 28px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--line-strong);
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Карточка сорта: страница ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 40px; }
.gallery { position: sticky; top: 140px; display: grid; gap: 12px; }
/* Превью — колонкой слева, фото по высоте вписано в экран под шапкой: всё видно без прокрутки */
.gallery:has(.gallery__thumbs) { grid-template-columns: 76px 1fr; align-items: start; }
.gallery__main { position: relative; grid-column: -2; grid-row: 1; aspect-ratio: 4 / 5; max-height: max(360px, calc(100svh - 250px));
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.gallery__main .gallery__img { position: relative; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s var(--ease), opacity .25s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery__main.can-zoom { cursor: zoom-in; }
.gallery__main.is-zoom { cursor: zoom-out; }
.gallery__main.is-zoom .gallery__img { transform: scale(2.1); transition: opacity .25s; }
.gallery__main.is-zoom .gallery__nav, .gallery__main.is-zoom .gallery__count, .gallery__main.is-zoom .card__badges { opacity: 0; }
.gallery__img.is-fading { opacity: .35; }
.gallery__bg { display: none; }
.gallery__main.is-small .gallery__bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.2); transform: scale(1.2); opacity: .55; }
.gallery__main.is-small .gallery__img { object-fit: contain; padding: 6%; }
.gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: max(360px, calc(100svh - 250px)); overflow-y: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: none; width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0;
  background: var(--surface-2); cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s, transform .2s var(--ease); }
.gallery__thumb:hover { opacity: 1; transform: scale(1.04); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--brand); opacity: 1; }
.gallery__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / .85); color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: .8; transition: opacity .25s, transform .25s var(--ease); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--prev .icon { rotate: 180deg; }
.gallery__nav--next { right: 14px; }
.gallery__main:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { transform: scale(1.08); }
.gallery__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: rgb(20 28 24 / .55); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; transition: opacity .25s; }
.product__kind { margin-bottom: 12px; }
.product__title { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 14px; letter-spacing: 0; }
.product__by { color: var(--ink-2); font-size: 16px; margin-bottom: 26px; }
.buybox { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 28px; }
.buybox__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.buybox__price .price { font: 600 34px/1.1 var(--font-display); }
.buybox__note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.buybox__row { display: flex; gap: 10px; }
.buybox__row .btn--primary { flex: 1; }
.fav-btn { width: 48px; height: 48px; flex: none; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.fav-btn:hover { border-color: var(--ink); }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe .input { flex: 1 1 200px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.specs div { background: var(--surface); padding: 14px 16px; }
.specs dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.specs dd { margin: 0; font-weight: 600; }
.perks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.perks .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .gallery:has(.gallery__thumbs) { grid-template-columns: 1fr; }
  .gallery__main { grid-column: 1; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; aspect-ratio: 1; max-height: none; touch-action: pan-y; }
  .gallery__thumbs { grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; }
  .gallery__thumb { width: 72px; }
  .gallery__nav { display: none; }
}

/* ---------- Полосы контента ---------- */
.band { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; margin-top: 36px; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; font: 500 15px/1 var(--font-display);
  color: var(--brand); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.visit img { border-radius: var(--radius-lg); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.visit__list { display: grid; gap: 10px; margin: 24px 0 28px; }
.visit__list div { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.visit__list .icon { color: var(--brand); width: 20px; height: 20px; }
.visit__list a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.visit__list a:hover { color: var(--brand); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.post__img { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__img .icon { width: 48px; height: 48px; opacity: .5; }
/* Статья без фото: мягкий градиент и крупный тонкий рисунок растения */
.post__img--art { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 85% 10%, var(--accent-soft), transparent 60%), linear-gradient(160deg, var(--brand-soft), var(--surface-2)); }
.post__img--art .icon { position: absolute; width: 62%; height: auto; aspect-ratio: 1; stroke-width: .45; opacity: .55; transition: transform .8s var(--ease); }
.post__img--art .icon:first-child { right: -8%; bottom: -14%; rotate: -14deg; }
.post__img--art .icon + .icon { width: 30%; left: 8%; top: 10%; rotate: 18deg; opacity: .3; }
.post:hover .post__img--art .icon { transform: rotate(8deg) scale(1.04); }
.post__img img { transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post h3 { transition: color .2s; }
.post:hover h3 { color: var(--brand); }
.stars { color: #C99A2E; font-size: .62em; letter-spacing: .08em; vertical-align: .18em; white-space: nowrap; }
.post h3 { font-size: 22px; }
.post p { color: var(--ink-2); font-size: 15px; margin: 0; }
.post time { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Текстовые страницы ---------- */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 28px; color: var(--ink); margin: 1.6em 0 .6em; }
.prose h3 { color: var(--ink); margin: 1.4em 0 .5em; }
.prose a { color: var(--brand); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }
/* «Как сделать заказ»: нумерованный список шагов — карточки, жирное начало пункта — заголовок шага */
.prose--steps > p:first-child { font-size: 19px; color: var(--ink); }
.prose--steps ol { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prose--steps ol li { counter-increment: step; margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; line-height: 1.6; }
.prose--steps ol li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 15px/1 var(--font-display); color: var(--brand); margin-bottom: 12px; }
.prose--steps ol li strong:first-child { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.prose--steps ul { list-style: none; padding: 0; }
.prose--steps ul li { position: relative; padding-left: 26px; }
.prose--steps ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .55; }
.prose--steps strong { color: var(--ink); }
@media (max-width: 560px) { .prose--steps ol { grid-template-columns: 1fr; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; }
.cta h2 { font-size: 28px; margin: 0 0 6px; }
.cta p { margin: 0; color: var(--ink-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Формы ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field--error input, .field--error textarea { border-color: var(--danger); }
.errors { color: var(--danger); font-size: 14px; margin: 0; padding: 0; list-style: none; }
.help { font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.radios { display: grid; gap: 8px; }
.radios label, .radio {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 500; color: var(--ink);
}
.radios label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.radios ul, .radios div { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
input[type=radio], input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 2px; }

/* ---------- Вход ---------- */
.auth { min-height: 64vh; display: grid; place-items: center; padding: 40px 0 80px; }
.auth__card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 40px); }
.auth__card h1 { font-size: 34px; margin-bottom: 8px; }
.auth__lead { color: var(--ink-2); margin-bottom: 24px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.socials { display: grid; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.social-btn:hover { border-color: var(--ink); }
.social-btn svg { width: 22px; height: 22px; }
.code-input { text-align: center; font: 600 30px/1 var(--font-body) !important; letter-spacing: .45em; padding-left: .45em !important; }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.5; }
.fineprint a { color: var(--ink-2); }

/* ---------- Корзина и заказ ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.lines { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: var(--surface); padding: 14px; }
.line img, .line__ph { width: 88px; height: 88px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.line__title { font: 500 18px/1.2 var(--font-display); text-decoration: none; }
.line__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line__right { display: grid; justify-items: end; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 38px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.summary { position: sticky; top: 140px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.summary h2 { font-size: 24px; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.summary__row > span:last-child { text-align: right; }
.summary__total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.note { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; }
.note--warn { background: var(--accent-soft); color: #7A3418; }
.status-hero { text-align: center; padding: 48px 0 32px; }
.status-hero__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 999px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.status-hero__icon .icon { width: 36px; height: 36px; }

/* ---------- Страница заказа ---------- */
.order-head { display: flex; gap: 20px; align-items: flex-start; padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 36px); }
.order-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 0; }
.order-head .page-head__lead { margin-top: 12px; }
.order-head__icon { flex: none; width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 8px var(--brand-soft); margin-top: 6px; }
.order-head__icon .icon { width: 32px; height: 32px; }
.order-head__icon.is-canceled { background: var(--muted); box-shadow: 0 0 0 8px var(--surface-2); }
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.order-main, .order-side { display: grid; gap: 24px; }
.panel { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); }
.panel h2 { font-size: 22px; }
.order-side .panel h2 { margin-bottom: 14px; }
.panel--soft { background: var(--surface-2); box-shadow: none; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.stepper { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stepper__item { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.stepper__item:not(:last-child)::after {
  content: ''; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px;
  background: var(--line); border-radius: 2px;
}
.stepper__item.is-done:not(:last-child)::after { background: var(--brand); }
.stepper__dot {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted);
}
.stepper__dot .icon { width: 18px; height: 18px; }
.is-done .stepper__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.is-current .stepper__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.stepper__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.is-done .stepper__label, .is-current .stepper__label { color: var(--ink); }
.next-step { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-soft); }
.next-step > .icon { color: var(--brand); width: 24px; height: 24px; margin-top: 2px; }
.next-step b { display: block; margin-bottom: 2px; }
.next-step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.next-step .track { margin-top: 8px; }
.next-step a { color: var(--brand); font-weight: 600; }
.order-items { display: grid; }
.order-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.order-item:first-child { border-top: 0; padding-top: 0; }
.order-item:last-child { padding-bottom: 0; }
.order-item img, .order-item__ph { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.order-item__ph { display: grid; place-items: center; color: var(--line-strong); }
.order-item__title { font: 500 18px/1.25 var(--font-display); text-decoration: none; }
.order-item__title:hover { color: var(--brand); }
.order-item__meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.order-item__price { font-weight: 700; white-space: nowrap; text-align: right; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.contact-links { display: grid; gap: 10px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .order-head { flex-direction: column; gap: 16px; }
  .order-head__icon { width: 52px; height: 52px; }
  .stepper__label { font-size: 11px; }
  .stepper__item:not(:last-child)::after { left: calc(50% + 18px); right: calc(-50% + 18px); }
  .order-item { grid-template-columns: 56px 1fr; }
  .order-item img, .order-item__ph { width: 56px; height: 56px; }
  .order-item__price { grid-column: 2; text-align: left; }
}

/* ---------- Кабинет ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab { padding: 12px 16px; border: 0; background: none; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.orders { display: grid; gap: 12px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; border: 1px solid var(--line); }
.order-row:hover { border-color: var(--line-strong); }
.order-row b { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.pill { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.pill--new { background: var(--iris-soft); color: var(--iris); }
.pill--canceled { background: var(--surface-2); color: var(--muted); }

/* ---------- Подвал ---------- */
.footer { margin-top: clamp(48px, 8vw, 96px); background: #1E2B23; color: #C9D3CC; padding-top: 56px; }
.footer a { color: #C9D3CC; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__title { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #8FA196; margin-bottom: 8px; }
.brand--footer .brand__name { color: #fff; }
.footer__text { color: #9DAAA1; font-size: 14px; max-width: 26em; margin-top: 14px; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / .08); margin-top: 48px; padding-block: 20px; font-size: 13px; color: #8FA196;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer .footer__legal a { color: #8FA196; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Согласие на cookie ---------- */
.cookies {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-lg); font-size: 14px; color: var(--ink-2);
}
.cookies p { margin: 0; }
.cookies a { color: var(--brand); }
.cookies__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Уведомления ---------- */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 15px; animation: toast-in .35s var(--ease), toast-out .4s var(--ease) 4.6s forwards;
}
.toast a { color: #fff; font-weight: 600; }
.toast--error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); visibility: hidden; } }

/* ---------- Страницы allauth (ошибки входа через соцсети и т. п.) ---------- */
.allauth-page main { max-width: 520px; margin: 48px auto 80px; padding: 0 var(--gutter); }
.allauth-page main h1 { font-size: 34px; margin-bottom: 16px; }
.allauth-page form p { display: grid; gap: 6px; margin-bottom: 16px; }
.allauth-page input:not([type=hidden]):not([type=checkbox]) { min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.allauth-page main button { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; }

@media (max-width: 560px) {
  .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero__fact b { font-size: 24px; }
  .hero__fact span { font-size: 12px; display: block; line-height: 1.35; margin-top: 4px; }
}

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

/* ---------- Карта в «Контактах» ---------- */
.map-card { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.map-card__map { display: block; width: 100%; height: 380px; border: 0; background: var(--surface-2); }
.map-card__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; }
.map-card__address { display: flex; align-items: flex-start; gap: 12px; }
.map-card__address .icon { color: var(--brand); margin-top: 2px; }
.map-card__label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.map-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .map-card__map { height: 300px; } .map-card__body { padding: 18px; } .map-card__actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- Иконки верхнего меню ---------- */
.nav__link .icon { width: 18px; height: 18px; opacity: .75; transition: transform .25s var(--ease), opacity .2s; }
.nav__link:hover .icon, .nav__link.is-active .icon { opacity: 1; transform: translateY(-1px) rotate(-6deg); }
.subnav__link .icon { transition: transform .25s var(--ease); }
.subnav__link:hover .icon { transform: translateY(-1px) rotate(-6deg); }
@media (max-width: 1020px) { .nav__link .icon, .nav__drop-name .icon { width: 20px; height: 20px; opacity: .8; } }

/* ---------- Эффекты: наведение ---------- */
html { scroll-behavior: smooth; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgb(28 38 32 / .35); }
.btn--primary { box-shadow: 0 1px 2px rgb(28 38 32 / .1); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(46 94 70 / .55); }
.btn--ghost:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover > .icon:last-child { transform: translateX(3px); }
.card__media { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card:hover .card__media { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgb(28 38 32 / .45); }
.cat { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cat:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgb(28 38 32 / .5); }
.cat__go { transition: background .25s, transform .25s var(--ease); }
.cat:hover .cat__go { background: rgb(255 255 255 / .35); transform: translateX(3px); }
.hero__stamp { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Эффекты: появление при прокрутке (классы ставит site.js) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--zoom { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__stamp { animation: none; }
}

/* ---------- Первый экран: фото-ссылки, фон с цветами, параллакс (переменные --mx/--my/--sy ставит site.js) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
/* Пятно цвета из фото: маленькая картинка, чуть размытая и растянутая в 9 раз — мягко и почти бесплатно для видеокарты */
.hero__glow { position: absolute; right: -8%; top: -25%; width: 8%; height: 16.7%; object-fit: cover; transform-origin: 100% 0;
  scale: 9; filter: blur(3px) saturate(1.4) brightness(1.08); opacity: .3; translate: 0 calc(var(--sy, 0) * .25px); will-change: translate; }
.hero__doodle { position: absolute; color: var(--brand); opacity: .14; overflow: visible; }
.hero__doodle path { fill: none; stroke: currentColor; stroke-width: .14; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 3.2s var(--ease) both; }
.hero__doodle--a { width: 340px; left: -90px; top: 40px; rotate: -12deg; translate: 0 calc(var(--sy, 0) * -.18px); }
.hero__doodle--b { width: 230px; left: 38%; bottom: -40px; rotate: 8deg; translate: 0 calc(var(--sy, 0) * -.32px); }
.hero__doodle--c { width: 170px; right: 2%; top: -30px; rotate: 14deg; translate: 0 calc(var(--sy, 0) * -.1px); }
.hero__doodle--b path { animation-delay: .4s; }
.hero__doodle--c path { animation-delay: .8s; }
.hero__doodle--a { animation: sway 14s ease-in-out infinite; }
.hero__doodle--b { animation: sway 18s ease-in-out -6s infinite reverse; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes sway { 50% { transform: rotate(6deg); } }
@media (max-width: 900px) { .hero__doodle--a { width: 220px; left: -70px; top: auto; bottom: 10%; } .hero__doodle--b { display: none; } .hero__glow { width: 13%; right: -10%; } }

.hero__shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2);
  translate: calc(var(--mx, 0) * var(--depth, 14) * 1px) calc(var(--my, 0) * var(--depth, 14) * 1px);
  transition: translate .5s cubic-bezier(.2, .7, .2, 1), box-shadow .35s var(--ease); }
.hero__shot.small { --depth: 26; }
.hero__shot img { position: absolute; inset: 0; border-radius: 0; transition: transform .8s var(--ease); }
.hero__media .hero__shot.tall { aspect-ratio: auto; min-height: 100%; }
.hero__shot:hover { box-shadow: 0 24px 44px -22px rgb(28 38 32 / .55); }
.hero__shot:hover img { transform: scale(1.05); }
.hero__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hero__cap .icon { width: 16px; height: 16px; flex: none; }
.hero__shot:hover .hero__cap, .hero__shot:focus-visible .hero__cap { opacity: 1; transform: none; }
.hero__shot.tall .hero__cap { bottom: auto; top: 12px; } /* внизу у большого фото — плашка «Годичный прирост» */
@media (hover: none) { .hero__cap { opacity: 1; transform: none; font-size: 12px; padding: 7px 11px; } }
@media (prefers-reduced-motion: reduce) {
  .hero__doodle, .hero__doodle path { animation: none; }
  .hero__shot, .hero__glow, .hero__doodle { translate: none; }
}

/* ---------- Страница сорта: текущее фото — едва заметным размытым фоном ---------- */
/* Маленькая картинка, чуть размытая и растянутая — мягко и дёшево; плавно сменяется вместе с фото галереи */
/* Поднят на высоту шапки: шапка на этих страницах полупрозрачнее, и дымка видна и за меню */
.page-glow { position: absolute; left: 0; right: 0; top: -118px; height: 1020px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
.page-glow img { position: absolute; left: -5%; top: -10%; width: 11%; height: 12%; object-fit: cover; transform-origin: 0 0;
  scale: 10; filter: blur(3px) saturate(1.5) brightness(1.35); opacity: .12; transition: opacity .4s; }
@media (max-width: 900px) { .page-glow { top: -110px; height: 810px; } .page-glow img { opacity: .15; } }
#main { position: relative; isolation: isolate; } /* фон .page-glow — от начала содержимого, под шапкой */
.has-glow .header::before { background: rgb(250 248 243 / .2); transition: background .3s; }
.has-glow .header.is-scrolled::before { background: rgb(250 248 243 / .86); } /* при прокрутке — как обычно, чтобы меню читалось поверх фото */
/* Цена и характеристики — светлое «матовое стекло»: дымка фото просвечивает, текст читается */
.has-glow .buybox { background: rgb(255 255 255 / .62); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .7); }
.has-glow .specs { background: rgb(255 255 255 / .5); border-color: rgb(255 255 255 / .75);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.has-glow .specs div { background: rgb(255 255 255 / .45); }

/* Краткое описание сорта */
.product__tagline { font-size: 18px; line-height: 1.5; color: var(--ink-2); font-style: italic; margin: -4px 0 10px; max-width: 34em; }
.card__tagline { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 2px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Фото сада: плитка в колонки и просмотр крупно ---------- */
.garden { columns: 4 240px; column-gap: 14px; margin-bottom: 64px; }
.garden__item { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.garden__item img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.garden__item:hover img { transform: scale(1.04); }
.garden__cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 999px;
  background: rgb(28 38 32 / .62); color: #fff; font-size: 13px; line-height: 1.3; text-align: left;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.garden__item:hover .garden__cap, .garden__item:focus-visible .garden__cap { opacity: 1; transform: none; }
@media (hover: none) { .garden__cap { opacity: 1; transform: none; font-size: 12px; } }
@media (max-width: 560px) { .garden { columns: 2; column-gap: 8px; } .garden__item { margin-bottom: 8px; border-radius: var(--radius-sm); } }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(16 22 18 / .94); color: #fff; overscroll-behavior: contain; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: var(--radius-sm);
  transition: opacity .2s; }
.lightbox__img.is-fading { opacity: .3; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: 15px; opacity: .9; }
.lightbox__count { position: absolute; left: 20px; top: 22px; font-size: 14px; opacity: .7; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: rgb(255 255 255 / .24); }
.lightbox__btn--close { right: 14px; top: 12px; }
.lightbox__btn--prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__btn--prev .icon { transform: rotate(180deg); }
.lightbox__btn--next { right: 14px; top: 50%; translate: 0 -50%; }
@media (max-width: 560px) { .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 12px; translate: none; } .lightbox__cap { bottom: 74px; } }

/* Фото в тексте статей: подпись под снимком, высокие кадры не тянут страницу */
.prose figure { margin: 1.8em 0; }
.prose figure img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; margin: 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; }
