/* Своё Хозяйство — стили сайта */
:root {
  --ink: #1d2a21;
  --ink-2: #4a5a4f;
  --ink-3: #75837a;
  --ground: #eef1ec;
  --paper: #ffffff;
  --line: #d6ddd3;
  --field: #24452f;
  --field-2: #33603f;
  --flame: #e2531c;
  --flame-dark: #bf3f0e;
  --wheat: #f3c64b;
  --sale: #c3261a;
  --ok: #2f7a45;
  --split: #20242b;
  --split-accent: #ffd84d;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Onest", "Segoe UI", Arial, sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --wrap: 1360px;
  --gutter: clamp(16px, 3vw, 40px);
  --shadow-lift: 0 18px 50px -20px rgba(29, 42, 33, .35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.h-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover { background: var(--flame-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--field); color: #fff; }
.btn-dark:hover { background: var(--field-2); }
.btn-lg { min-height: 58px; font-size: 18px; padding: 0 30px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Шапка ---------- */
.topbar { background: var(--field); color: #e3ecdf; font-size: 14px; }
.topbar .wrap { display: flex; gap: 10px 26px; justify-content: space-between; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar-facts { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.topbar-facts span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-facts svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.topbar-facts b { color: #fff; font-weight: 600; }
.topbar-phone { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { text-decoration: none; color: #fff; font-weight: 600; }
@media (max-width: 860px) { .topbar-facts span:nth-child(2) { display: none; } }
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 19px; line-height: 1; letter-spacing: -.02em; }
.logo-word small { display: block; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: var(--ground); }
.nav a[aria-current="page"] { background: var(--ground); font-weight: 700; }
.cart-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 18px 8px 10px; min-height: 48px; font-weight: 600; }
.cart-link svg { width: 30px; height: 30px; }
.cart-count { background: var(--wheat); color: var(--ink); min-width: 26px; height: 26px; border-radius: 13px; display: inline-grid; place-items: center; font-size: 14px; padding: 0 6px; }
.cart-count[data-empty="true"] { display: none; }
@media (max-width: 860px) {
  .header .wrap { gap: 12px; min-height: 64px; }
  .nav { order: 3; width: 100%; margin: 0 0 8px; overflow-x: auto; }
  .header .wrap { flex-wrap: wrap; }
  .cart-link { margin-left: auto; }
  .cart-sum { display: none; }
  .logo-word small { display: none; }
}

/* ---------- Первый экран ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 44px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.025em; line-height: 1.04; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; margin: 22px 0 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 34px; margin: 34px 0 0; padding: 0; list-style: none; justify-content: start; }
.hero-facts li { font-size: 15px; color: var(--ink-2); max-width: 13em; }
.hero-facts b { display: block; font-size: 20px; color: var(--ink); }
.hero-media { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1; background: #f7dcc6; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.hero-cat {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--paper); border-radius: var(--r-m);
  overflow: hidden; border: 1px solid var(--line); transition: border-color .15s;
}
.hero-cat:hover { border-color: var(--ink); }
.hero-cat img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.hero-cat span { padding: 12px 14px 14px; font-weight: 600; font-size: 16px; line-height: 1.25; }
.hero-cat small { display: block; color: var(--ink-3); font-weight: 400; font-size: 14px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; order: -1; }
  .hero-cats { grid-template-columns: repeat(6, 150px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .hero-cat { scroll-snap-align: start; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Каталог ---------- */
.section { padding: clamp(28px, 4vw, 56px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: transparent; }
.card-media { position: relative; display: block; border: 0; padding: 0; background: #fff; width: 100%; aspect-ratio: 1; cursor: zoom-in; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-media .badge-video { position: absolute; left: 14px; top: 14px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; border-top: 1px solid var(--line); }
.card-title { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-short { color: var(--ink-2); margin: 0; font-size: 16px; }
.card-foot { margin-top: auto; display: grid; gap: 14px; padding-top: 8px; }
.card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-price .price { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.card-split { font-size: 15px; color: var(--ink-2); }
.card-split b { color: var(--ink); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.delivery-line { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.delivery-line svg { width: 20px; height: 20px; flex: none; color: var(--field-2); }
.badge-video { background: rgba(29, 42, 33, .85); color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 11px; }

/* ---------- Сплит ---------- */
.split-badge {
  display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px;
  background: var(--split); color: #fff; border: 0; border-radius: var(--r-m); padding: 12px 18px 12px 12px; text-align: left;
  text-decoration: none; transition: transform .12s, box-shadow .15s; min-height: 72px;
}
.split-badge:hover { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); transform: translateY(-1px); }
.split-icon { grid-row: span 2; width: 78px; height: 78px; border-radius: 18px; background: var(--split-accent); display: grid; place-items: center; }
.split-icon svg { width: 51px; height: 51px; }
.split-title { font-size: 14px; color: #c9ccd3; line-height: 1.2; }
.split-sum { font-size: 22px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.split-sum small { font-size: 15px; font-weight: 500; color: #c9ccd3; }
.split-badge.is-large { padding: 16px 24px 16px 16px; }
.split-badge.is-large .split-icon { width: 96px; height: 96px; border-radius: 22px; }
.split-badge.is-large .split-icon svg { width: 63px; height: 63px; }
.split-badge.is-large .split-sum { font-size: 26px; }

/* ---------- Диалоги ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 28, 22, .62); backdrop-filter: blur(3px); }
.dlg { background: var(--paper); border-radius: var(--r-l); position: relative; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); }
.dlg-close {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.dlg-close svg { width: 22px; height: 22px; }
dialog[open] .dlg { animation: dlg-in .22s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* Карточка товара в окне */
.pdlg { width: min(1320px, calc(100vw - 32px)); height: min(900px, calc(100dvh - 32px)); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); overflow: hidden; }
.pdlg-gallery { background: #fff; display: grid; grid-template-rows: 1fr auto; min-height: 0; border-right: 1px solid var(--line); }
.pdlg-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.pdlg-stage img, .pdlg-stage video { width: 100%; height: 100%; object-fit: contain; }
.pdlg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); display: grid; place-items: center; }
.pdlg-nav svg { width: 24px; height: 24px; }
.pdlg-nav.prev { left: 14px; } .pdlg-nav.next { right: 14px; }
.pdlg-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--line); }
.pdlg-thumbs button { flex: none; width: 84px; height: 84px; border-radius: var(--r-s); border: 2px solid transparent; padding: 0; background: #fff; overflow: hidden; position: relative; }
.pdlg-thumbs button[aria-current="true"] { border-color: var(--flame); }
.pdlg-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdlg-thumbs .thumb-video { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29, 42, 33, .55); color: #fff; font-size: 13px; font-weight: 700; }
.pdlg-info { overflow-y: auto; padding: 34px 34px 40px; display: grid; gap: 22px; align-content: start; }
.pdlg-info h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.015em; padding-right: 48px; }
.pdlg-price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.pdlg-buy { display: grid; grid-template-columns: 1fr; gap: 12px; }
.specs { margin: 0; display: grid; grid-template-columns: minmax(120px, 40%) 1fr; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.specs dt { color: var(--ink-3); padding-right: 16px; }
.pdlg-text { margin: 0; color: var(--ink-2); max-width: 60ch; }
.pdlg-h3 { font-size: 20px; font-weight: 700; }
@media (max-width: 900px) {
  /* Блоком, а не сеткой: иначе галерея с min-height: 0 сжимается и фото наезжает на название и цену */
  .pdlg { display: block; height: calc(100dvh - 16px); width: calc(100vw - 16px); overflow-y: auto; }
  .pdlg-gallery { border-right: 0; grid-template-rows: auto auto; min-height: auto; }
  .pdlg-stage { aspect-ratio: 1; overflow: hidden; }
  .pdlg-info { overflow: visible; padding: 22px 18px 30px; }
  .pdlg-thumbs button { width: 64px; height: 64px; }
}

/* Товар добавлен + допродажа */
.adlg { width: min(880px, calc(100vw - 24px)); padding: 30px; display: grid; gap: 22px; max-height: calc(100dvh - 24px); overflow-y: auto; }
.added { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding-right: 50px; }
.added img { width: 96px; height: 96px; object-fit: contain; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; }
.added-title { font-size: 14px; color: var(--ok); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.added-name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.upsell-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.upsell-head h3 { font-size: 22px; font-weight: 800; }
.upsell-head p { margin: 0; color: var(--ink-2); }
.upsell-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.upsell {
  border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--paper); position: relative;
}
.upsell img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; background: #fff; }
.upsell-name { font-weight: 600; line-height: 1.3; font-size: 16px; }
.upsell-prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.upsell-prices .new { font-size: 22px; font-weight: 800; color: var(--sale); }
.upsell-prices .old { color: var(--ink-3); text-decoration: line-through; }
.sale-tag { position: absolute; left: 10px; top: 10px; background: var(--sale); color: #fff; font-weight: 800; font-size: 15px; border-radius: 8px; padding: 4px 9px; }
.upsell .btn { min-height: 44px; font-size: 15px; }
.upsell.is-in .btn { background: var(--ground); color: var(--ok); }
.adlg-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) { .adlg { padding: 22px 16px; } .adlg-actions .btn { flex: 1; } }

/* Сплит — окно графика */
.sdlg { width: min(560px, calc(100vw - 24px)); padding: 30px; display: grid; gap: 18px; }
.sdlg h2 { font-size: 26px; font-weight: 800; padding-right: 48px; }
.sdlg-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sdlg-plan button { border: 2px solid var(--line); background: #fff; border-radius: var(--r-m); padding: 12px 8px; display: grid; gap: 2px; }
.sdlg-plan button b { font-size: 18px; }
.sdlg-plan button span { font-size: 14px; color: var(--ink-2); }
.sdlg-plan button[aria-pressed="true"] { border-color: var(--split); background: var(--split); color: #fff; }
.sdlg-plan button[aria-pressed="true"] span { color: #d1d4da; }
.sdlg-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sdlg-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.sdlg-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sdlg-note { font-size: 14px; color: var(--ink-3); margin: 0; }

/* Где мой заказ — окно отслеживания СДЭК */
.tdlg { width: min(580px, calc(100vw - 24px)); padding: 30px; display: grid; gap: 18px; max-height: calc(100vh - 40px); overflow-y: auto; }
.tdlg h2 { font-size: 26px; font-weight: 800; padding-right: 48px; }
.track-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.track-form .field input { text-transform: uppercase; letter-spacing: .02em; }
.track-form .field input::placeholder { text-transform: none; letter-spacing: 0; }
.track-form .btn { align-self: start; margin-top: 29px; }
.track-result { display: grid; gap: 14px; }
.track-result:empty { display: none; }
.track-result > p { margin: 0; }
.track-order { font-size: 16px; color: var(--ink-2); }
.track-now { display: grid; gap: 4px; background: var(--ground); border-radius: var(--r-m); padding: 16px 18px; border-left: 6px solid var(--flame); }
.track-now.is-ready { border-left-color: var(--ok); background: #e3f1e6; }
.track-now.is-done { border-left-color: var(--ink-3); }
.track-now .track-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.track-now b { font-size: 20px; line-height: 1.25; }
.track-now span:last-child { font-size: 15px; color: var(--ink-2); }
.track-point { display: grid; gap: 2px; font-size: 15px; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 12px 16px; }
.track-point span { color: var(--ink-3); font-size: 14px; }
.track-history { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 12px; position: relative; }
.track-history::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.track-history li { position: relative; display: grid; gap: 1px; font-size: 15px; }
.track-history li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.track-history li.is-current::before { background: var(--flame); border-color: var(--flame); }
.track-history li b { font-weight: 600; }
.track-history li span { color: var(--ink-3); font-size: 14px; }
.track-foot { font-size: 14px; color: var(--ink-3); }
@media (max-width: 560px) {
  .tdlg { padding: 22px 16px; }
  .tdlg h2 { font-size: 22px; }
  .track-form { grid-template-columns: 1fr; }
  .track-form .btn { margin-top: 0; width: 100%; }
}

/* ---------- Корзина ---------- */
.page-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.02em; margin: clamp(24px, 4vw, 44px) 0 24px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 80px; }
@media (max-width: 1040px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border-radius: var(--r-l); border: 1px solid var(--line); padding: clamp(18px, 2.5vw, 30px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 16px; flex: none; }

.line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { padding-top: 0; }
.line-img { width: 120px; height: 120px; border-radius: var(--r-m); border: 1px solid var(--line); background: #fff; object-fit: contain; }
.line-name { font-weight: 700; font-size: 18px; line-height: 1.3; }
.line-meta { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.line-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.line-price .price { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.line-price .old { font-size: 14px; color: var(--ink-3); text-decoration: line-through; margin-left: 6px; }
.line-price .sale { color: var(--sale); font-weight: 700; font-size: 14px; }
.line-side { display: grid; justify-items: end; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; line-height: 1; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.line-remove { border: 0; background: none; color: var(--ink-3); text-decoration: underline; font-size: 14px; padding: 4px; }
@media (max-width: 640px) {
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line-img { width: 84px; height: 84px; }
  .line-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .split-badge { width: 100%; }
}

.cart-upsell { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--line); }
.empty { text-align: center; padding: 50px 20px; }
.empty p { color: var(--ink-2); margin: 10px 0 24px; }

/* Форма */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; position: relative; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 12px 16px; background: #fff; font-size: 17px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 42, 33, .12); }
.field .hint { font-size: 14px; color: var(--ink-3); }
.field .error { font-size: 14px; color: var(--sale); font-weight: 600; }
.field input[aria-invalid="true"] { border-color: var(--sale); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 20; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-m); margin: 0; padding: 6px; list-style: none; box-shadow: var(--shadow-lift); max-height: 320px; overflow-y: auto; }
.suggest li { padding: 10px 12px; border-radius: var(--r-s); cursor: pointer; line-height: 1.35; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--ground); }
.suggest li small { display: block; color: var(--ink-3); }

.pvz { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
@media (max-width: 800px) { .pvz { grid-template-columns: 1fr; } }
.pvz-map { min-height: 380px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--ground); z-index: 0; }
.pvz-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.pvz-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; cursor: pointer; background: #fff; }
.pvz-item:hover { border-color: var(--ink-3); }
.pvz-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--flame); }
.pvz-item[data-checked="true"] { border-color: var(--flame); box-shadow: 0 0 0 1px var(--flame); }
.pvz-name { font-weight: 600; line-height: 1.3; }
.pvz-addr { font-size: 15px; color: var(--ink-2); }
.pvz-time { font-size: 13px; color: var(--ink-3); }
.pvz-dist { font-weight: 700; white-space: nowrap; font-size: 15px; }
.pvz-type { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--ground); margin-left: 6px; vertical-align: 2px; }
.notice { border-radius: var(--r-m); padding: 14px 16px; background: var(--ground); color: var(--ink-2); font-size: 15px; }
.notice.warn { background: #fff4d6; color: #6b4d00; }
.notice.err { background: #fde5e1; color: #8a1f14; }

.delivery-box { display: flex; gap: 14px; align-items: center; background: #e7f0e5; border-radius: var(--r-m); padding: 14px 16px; margin-top: 16px; }
.delivery-box svg { width: 36px; height: 36px; color: var(--field-2); flex: none; }
.delivery-box b { display: block; font-size: 17px; }

.pay-options { display: grid; gap: 12px; }
.pay-option { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: var(--r-m); padding: 16px; cursor: pointer; background: #fff; }
.pay-option input { width: 22px; height: 22px; accent-color: var(--flame); margin: 0; }
.pay-option[data-checked="true"] { border-color: var(--ink); }
.pay-option b { font-size: 17px; }
.pay-option span { display: block; font-size: 15px; color: var(--ink-2); }

.summary { position: sticky; top: 96px; display: grid; gap: 14px; }
.summary-rows { display: grid; gap: 10px; margin: 0; }
.summary-rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary-rows dt { color: var(--ink-2); }
.summary-rows dd { margin: 0; font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.summary-total b { font-size: 30px; font-weight: 800; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--flame); }

/* ---------- Журнал ---------- */
.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 30px; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 12px 20px; font-weight: 700; font-size: 18px; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; color: var(--ink-2); }
.tabs a[aria-current="true"] { color: var(--ink); border-color: var(--flame); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post { background: var(--paper); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; }
.post img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: #fff; }
.post-body { padding: 18px 22px 24px; display: grid; gap: 8px; }
.post-meta { font-size: 14px; color: var(--ink-3); }
.post h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.post p { margin: 0; color: var(--ink-2); }
.post:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-feature img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.post-feature .post-body { align-content: center; padding: 34px; }
.post-feature h3 { font-size: clamp(24px, 2.4vw, 32px); }
@media (max-width: 800px) { .post-feature { grid-template-columns: 1fr; } .post-feature img { min-height: 0; aspect-ratio: 16 / 10; } }

.article { max-width: 760px; margin: 0 auto; padding-bottom: 80px; }
.article h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 12px; }
.article .post-meta { margin-bottom: 26px; }
.article img.cover { border-radius: var(--r-l); margin-bottom: 30px; width: 100%; background: #fff; }
.article h2 { font-size: 26px; font-weight: 800; margin: 34px 0 10px; }
.article p, .article li { font-size: 19px; line-height: 1.65; }
.article-products { margin-top: 40px; }

.vlogs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .vlogs { grid-template-columns: 1fr; } }
.vlog { background: var(--paper); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.vlog-player { aspect-ratio: 16 / 9; background: #111; }
.vlog-player video, .vlog-player iframe { width: 100%; height: 100%; border: 0; object-fit: contain; }
.vlog .post-body { padding: 16px 20px 22px; }

.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .reviews-layout { grid-template-columns: 1fr; } }
.reviews { display: grid; gap: 16px; }
.review { background: var(--paper); border-radius: var(--r-l); border: 1px solid var(--line); padding: 22px 24px; display: grid; gap: 10px; }
.review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.review-name { font-weight: 700; font-size: 18px; }
.review-product { font-size: 15px; color: var(--ink-2); }
.review p { margin: 0; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.review-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-s); }
.stars { color: #e3a300; font-size: 20px; letter-spacing: 2px; white-space: nowrap; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 36px; color: #cfd6cc; cursor: pointer; line-height: 1; padding: 0 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #e3a300; }
.star-input input:focus-visible + label { outline: 3px solid var(--flame); border-radius: 4px; }

/* ---------- Подвал ---------- */
.footer { background: var(--field); color: #d4e0d0; padding: 50px 0 34px; margin-top: 40px; font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer a { color: #fff; }
.footer h3 { font-size: 16px; color: #fff; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; color: #a9bba5; font-size: 13px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Инфо-блоки ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: how; }
.how li { list-style: none; background: var(--paper); border-radius: var(--r-l); padding: 24px; border: 1px solid var(--line); }
.how li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wheat); font-weight: 800; margin-bottom: 14px; }
.how h3 { font-size: 20px; margin-bottom: 6px; }
.how p { margin: 0; color: var(--ink-2); }
.how { padding: 0; margin: 0; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; z-index: 100; font-weight: 600; box-shadow: var(--shadow-lift); }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(0, 0, 0, .15); border-top-color: var(--flame); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Узкие экраны ---------- */
.hero-grid > *, .checkout > *, .reviews-layout > *, .pvz > *, .line > * { min-width: 0; }
.nav a { white-space: nowrap; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .wrap { justify-content: center; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .card-body { padding: 18px 16px 18px; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .card-actions .btn { padding: 0 12px; font-size: 16px; }
  .card-price .price { font-size: 26px; }
  .section-head h2 { font-size: 28px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
  .page-title { font-size: 30px; }
  .panel { border-radius: var(--r-m); }
  .btn-lg { font-size: 17px; padding: 0 20px; }
  .summary { position: static; }
  .reviews-layout aside.panel { position: static !important; }
  .sdlg, .adlg { padding: 22px 16px; }
  .sdlg h2 { font-size: 22px; }
  .split-sum { font-size: 20px; }
}

/* ---------- Фоновая панорама фермы ---------- */
/* Слои создаёт core.js (scene). Панорама проезжает сверху вниз за время прокрутки страницы:
   пасека → коровы → птичник → корма → огород. Поверх — светлая пелена, чтобы текст читался. */
.scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--ground); }
.scene-img {
  position: absolute; inset: 0;
  background-repeat: no-repeat; background-size: cover;
  background-position: 50% var(--scene-pos, 0%);
  transform: scale(var(--scene-zoom, 1));
  transform-origin: 50% 50%;
  filter: saturate(1.02) contrast(1.02);
  opacity: 0; transition: opacity 1.1s ease;
}
.scene.is-ready .scene-img { opacity: 1; }
.scene-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 80% at 50% 0%, rgba(238, 241, 236, .04), rgba(238, 241, 236, .46) 74%),
    linear-gradient(180deg, rgba(238, 241, 236, .40), rgba(238, 241, 236, .27) 45%, rgba(238, 241, 236, .44));
}
.scene-fx { position: absolute; inset: 0; }
.fx { position: absolute; will-change: transform, opacity; }

/* дымок из дымаря */
.fx-smoke { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .75); filter: blur(3px); animation: fx-smoke 7s linear infinite; }
@keyframes fx-smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  12% { opacity: .55; }
  100% { opacity: 0; transform: translate(14px, -70px) scale(7); }
}
/* пчёлы у ульев */
.fx-bee { width: 3px; height: 3px; border-radius: 50%; background: rgba(60, 48, 20, .55); animation: fx-bee 9s ease-in-out infinite; }
@keyframes fx-bee {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(16px, -10px); }
  50% { transform: translate(4px, -20px); }
  75% { transform: translate(-13px, -7px); }
}
/* струя опрыскивателя */
.fx-mist { width: 26px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .5); filter: blur(5px); animation: fx-mist 4.5s ease-out infinite; }
@keyframes fx-mist {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  20% { opacity: .5; }
  100% { opacity: 0; transform: translate(26px, 10px) scale(1.7); }
}
/* пыль и пыльца в воздухе */
.fx-mote { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 252, 235, .8); filter: blur(1px); animation: fx-mote 16s ease-in-out infinite; }
@keyframes fx-mote {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20%, 80% { opacity: .75; }
  50% { transform: translate(22px, -34px); }
}
/* курица клюёт зерно: слой из самой панорамы, края растворены маской */
.fx-hen {
  background: url("../bg/chicken.webp") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(60% 58% at 50% 52%, #000 58%, transparent 100%);
  mask-image: radial-gradient(60% 58% at 50% 52%, #000 58%, transparent 100%);
  transform-origin: 46% 92%;
  animation: fx-hen 6s ease-in-out infinite;
}
@keyframes fx-hen {
  0%, 62%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(13deg); }
  76% { transform: rotate(2deg); }
  83% { transform: rotate(11deg); }
  90% { transform: rotate(0deg); }
}

/* Полоса-панорама между блоками: птичник крупным планом, живой слой поверх */
.farm-band {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(300px, 42vh, 460px);
  margin: clamp(10px, 2vw, 26px) 0;
  display: flex; align-items: flex-end;
}
.farm-band-img {
  position: absolute; inset: 0; z-index: -2;
  background-repeat: no-repeat; background-size: cover;
  filter: saturate(.95);
  opacity: 0; transition: opacity 1.1s ease;
}
.farm-band.is-ready .farm-band-img { opacity: 1; }
.farm-band-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.farm-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(238, 241, 236, .55) 0%, rgba(29, 42, 33, 0) 35%, rgba(24, 33, 26, .62) 100%);
}
.farm-band-text { padding-bottom: clamp(18px, 3vw, 34px); color: #fff; }
.farm-band-text p { margin: 0; max-width: 38em; font-size: clamp(16px, 1.5vw, 19px); text-shadow: 0 2px 18px rgba(16, 24, 18, .7); }
.farm-band-text b { font-weight: 700; }

/* Мягкое высветление под текстом первого экрана, чтобы заголовок читался поверх фото */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -6% -10% -10% -20%;
  background: radial-gradient(60% 62% at 26% 52%, rgba(247, 249, 245, .92), rgba(247, 249, 245, .55) 55%, transparent 78%);
  pointer-events: none; z-index: -1;
}
@media (max-width: 960px) { .hero::before { inset: -4% -20%; background: radial-gradient(90% 60% at 50% 62%, rgba(247, 249, 245, .94), rgba(247, 249, 245, .6) 60%, transparent 85%); } }

/* ---------- Появление блоков при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .95s cubic-bezier(.22, .61, .36, 1), transform .95s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(140ms + var(--i, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Наведение и мягкие переходы ---------- */
.card { transition: box-shadow .35s ease, border-color .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1); }
.card:hover { transform: translateY(-4px); }
.card img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.card:hover img { transform: scale(1.03); }
.hero-cat { transition: border-color .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease; }
.hero-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hero-cat img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.hero-cat:hover img { transform: scale(1.04); }
.btn { transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .18s ease, box-shadow .3s ease; }
.btn-primary:hover { box-shadow: 0 12px 26px -14px rgba(226, 83, 28, .9); transform: translateY(-1px); }
.btn-ghost:hover, .btn-dark:hover { transform: translateY(-1px); }
.chip { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.upsell { transition: border-color .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1); }
.upsell:hover { transform: translateY(-3px); }

/* Панели и карточки чуть прозрачнее — сквозь них просвечивает панорама */
.panel, .card, .hero-cat { backdrop-filter: saturate(1.05) blur(2px); }

@media (prefers-reduced-motion: reduce) {
  .scene-img { transform: none; }
  .fx { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .hero-cat:hover, .upsell:hover, .btn-primary:hover, .btn-ghost:hover, .btn-dark:hover { transform: none; }
  .card:hover img, .hero-cat:hover img { transform: none; }
}

/* ---------- Отзывы владельцев такой же техники ---------- */
.orev { display: grid; gap: 14px; }
.orev-note { margin: -6px 0 0; font-size: 13px; color: var(--ink-3); }
.orev-item { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.orev-item header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.orev-item header b { font-size: 16px; color: var(--ink); }
.orev-item p { margin: 0; font-size: 16px; line-height: 1.5; }
.orev-stars { color: var(--wheat); letter-spacing: 2px; font-size: 15px; }
.orev-stars span { color: var(--line); }
.orev-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.orev-photos img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--ground); }

/* Карточки каталога: заголовок и «Подробнее» — ссылки на страницу товара */
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pdlg-page { font-weight: 600; color: var(--field-2); }

/* Хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin: 24px 0 0; padding: 6px 14px; list-style: none; font-size: 15px; color: var(--ink-3); background: rgba(255, 255, 255, .9); border-radius: 14px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-2); }

/* Страница товара catalog/<slug>/ (собирает tools/build-seo.js) */
.pp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 44px); margin: 18px 0 60px; align-items: start; }
.pp-gallery { background: var(--paper); border-radius: var(--r-l); border: 1px solid var(--line); overflow: hidden; position: sticky; top: 90px; }
.pp-stage { aspect-ratio: 1; background: #fff; }
.pp-stage img { width: 100%; height: 100%; object-fit: contain; }
.pp-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--line); }
.pp-thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--r-s); background: #fff; overflow: hidden; cursor: pointer; }
.pp-thumbs button[aria-current="true"] { border-color: var(--flame); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp-info { background: var(--paper); border-radius: var(--r-l); border: 1px solid var(--line); padding: clamp(20px, 3vw, 34px); display: grid; gap: 20px; align-content: start; }
.pp-info h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; margin: 0; }
.pp-price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.pp-lead { margin: 0; font-size: 18px; color: var(--ink-2); }
.pp-video { width: 100%; border-radius: var(--r-m); background: #000; }
.pp-related { margin-bottom: 60px; }
@media (max-width: 900px) {
  .pp { grid-template-columns: 1fr; }
  .pp-gallery { position: static; }
  .pp-price { font-size: 34px; }
}

/* Согласие на cookie (показывается, только когда подключена Яндекс Метрика) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto; display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 20px; box-shadow: var(--shadow-lift); }
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: 15px; color: var(--ink-2); }
.cookie-bar div { display: flex; gap: 10px; flex-wrap: wrap; }

/* Готовые наборы */
.section-lead { margin: 8px 0 0; color: var(--ink-2); font-size: 18px; max-width: 46em; }
.hero-cat.is-sets { border-color: var(--flame); }
.card.is-set { border-color: var(--wheat); }
.badge-saving { position: absolute; right: 14px; bottom: 14px; background: var(--sale); color: #fff; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 6px 12px; }
.card-price .old { color: var(--ink-3); text-decoration: line-through; font-size: 17px; }
.bundle { display: grid; gap: 14px; background: var(--ground); border-radius: var(--r-m); padding: 18px 20px; }
.bundle-for { margin: 0; color: var(--ink-2); }
.bundle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bundle-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border-radius: var(--r-s); padding: 6px 12px 6px 6px; }
.bundle-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.bundle-list a { font-weight: 600; text-decoration: none; }
.bundle-list a:hover { text-decoration: underline; }
.bundle-qty { color: var(--flame); white-space: nowrap; }
.bundle-sum { margin: 0; display: grid; gap: 6px; }
.bundle-sum div { display: flex; justify-content: space-between; gap: 12px; }
.bundle-sum dt { color: var(--ink-2); }
.bundle-sum dd { margin: 0; font-weight: 700; }
.bundle-sum div:first-child dd { color: var(--ink-3); text-decoration: line-through; font-weight: 500; }
.bundle-sum .is-saving dd, .bundle-sum .is-saving dt { color: var(--sale); font-weight: 800; }
.bundle-note { margin: 0; font-size: 15px; color: var(--ink-2); }
.in-sets { display: grid; gap: 10px; }
.in-set { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; background: #fff8e8; border: 1.5px solid var(--wheat); border-radius: var(--r-m); padding: 8px 14px 8px 8px; }
.in-set:hover { border-color: var(--flame); }
.in-set img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.in-set b { display: block; line-height: 1.25; }
.in-set small { color: var(--sale); font-size: 14px; font-weight: 600; }

/* Рассрочка (settings.json → installment) и «цена окончательная» */
.inst { display: grid; gap: 2px; }
.inst span { font-size: 17px; color: var(--ink); }
.inst b { font-size: 20px; font-weight: 800; color: var(--field); }
.inst small { font-size: 13px; color: var(--ink-3); }
.inst.is-large { background: #fff3cf; border: 1.5px solid var(--wheat); border-radius: var(--r-m); padding: 12px 16px; }
.inst.is-large span { font-size: 20px; }
.inst.is-large b { font-size: 30px; }
.card-price .inst { flex-basis: 100%; }
.all-in { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; background: #eaf4ec; border: 1.5px solid #bfdcc6; border-radius: var(--r-m); padding: 14px 16px; }
.all-in svg { width: 26px; height: 26px; color: var(--ok); margin-top: 2px; }
.all-in b { display: block; font-size: 16px; line-height: 1.3; color: var(--field); }
.all-in span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.all-in small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
