/* Lypen — стилі сайту. Концепція 1 «Сезон» (рішення користувача 16.11.2026): антиква Literata з курсивом для акцентів,
   текст Wix Madefor Text, кути 3 px, теплий майже чорний «нічна пасіка» і папір; акцент — бурштин.
   Колір сорту — дані (catalog.js) і задається змінною --honey. Тема: data-theme на <html>, за замовчуванням темна. */
:root {
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-text: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 3px;
  --gutter: clamp(16px, 4vw, 48px);
  --bg: #14100B; --surface: #1E1811; --surface-2: #2A2117; --text: #F3EADB; --muted: #B9AC97;
  --line: rgba(243, 234, 219, .13); --line-strong: rgba(243, 234, 219, .32);
  --accent: #E8A63A; --on-accent: #1A1206; --accent-text: #EDB252; --leaf: #A9C27F; --err: #FF9C8A;
  --shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] {
  --bg: #F5EEE2; --surface: #FFFBF4; --surface-2: #EADFCC; --text: #22190E; --muted: #65563E;
  --line: rgba(34, 25, 14, .13); --line-strong: rgba(34, 25, 14, .34);
  --accent: #8F5200; --on-accent: #FFFFFF; --accent-text: #8F5200; --leaf: #4D6A2A; --err: #A3261A;
  --shadow: 0 16px 40px rgba(60, 40, 10, .16);
}
/* Китайська та японська: Literata і Wix Madefor Text не мають ієрогліфів — Noto з build-locales.mjs */
:root[data-lang="zh-CN"] { --font-display: 'Literata', 'Noto Serif SC', serif; --font-text: 'Wix Madefor Text', 'Noto Sans SC', sans-serif; }
:root[data-lang="ja"] { --font-display: 'Literata', 'Noto Serif JP', serif; --font-text: 'Wix Madefor Text', 'Noto Sans JP', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 16px; }
:root[data-theme="light"] { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font-text); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 60; padding: 12px 16px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { color: var(--muted); font-size: 15px; margin: 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
:root[data-lang="zh-CN"] .eyebrow, :root[data-lang="ja"] .eyebrow { letter-spacing: .02em; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 16px; text-align: center; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--line-strong); background: transparent; }
.btn-line:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 11px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--r); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Іконки (малює Codex): маска кольору теми; поки файлу немає — запасна форма з рамок ---------- */
.ico { display: inline-block; width: 20px; height: 20px; flex: none; color: var(--cc, currentColor); background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ico:not([style*="--icon"]) { background: transparent; }
.ico.as-img { background: none; }
.ico.as-img img { width: 100%; height: 100%; }
:root[data-theme="dark"] .ico.as-img img { filter: invert(1); }
.ico.is-missing { display: none; }
.has-ico > .ico-fb, .icon-btn:not(.has-ico) > .ico { display: none; }
.sun-fb { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; outline: 2px solid currentColor; outline-offset: 2px; }
.moon-fb { display: inline-block; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 4px -3px 0 0 currentColor; }
.burger { display: inline-block; width: 20px; height: 14px; border-block: 2px solid currentColor; position: relative; }
.burger::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid currentColor; }
.x-mark { display: inline-block; width: 18px; height: 18px; position: relative; }
.x-mark::before, .x-mark::after { content: ""; position: absolute; left: -1px; right: -1px; top: 8px; border-top: 2px solid currentColor; transform: rotate(45deg); }
.x-mark::after { transform: rotate(-45deg); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand .logo { height: 36px; width: auto; }
.brand.has-dark .wordmark, .brand.has-light .wordmark { display: none; }
:root[data-theme="dark"] .brand .logo-light, :root[data-theme="light"] .brand .logo-dark { display: none !important; }
.wordmark { font: 500 30px/1 var(--font-display); letter-spacing: -.01em; }
.wordmark i { font-style: normal; color: var(--accent-text); }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: var(--r); font-weight: 500; font-size: 15px; }
.main-nav a:hover { background: var(--surface-2); }
.tools { display: flex; gap: 8px; align-items: center; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
/* Лічильник — бурштинова бирка з вирізом, як ярлик партії на банці (не кружок-бейдж) */
.cart-count { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px 0 11px; border-radius: 0 2px 2px 0; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); background: var(--accent); color: var(--on-accent); font: 600 14px/1 var(--font-display); font-variant-numeric: tabular-nums lining-nums; }
.cart-btn.bump .cart-count { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }
.menu-btn { display: none; }
@media (max-width: 1140px) { .main-nav { display: none; } .menu-btn { display: inline-grid; } .tools { margin-left: auto; } }
@media (max-width: 460px) {
  .head-in { gap: 8px; }
  .tools { gap: 6px; }
  .tools > .day-night { display: none; }
  .wordmark { font-size: 27px; }
  /* Пока иконка корзины не загрузилась, видно слово — логотип тогда сжимается, а не выталкивает меню за край */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand .logo { height: auto; max-height: 30px; max-width: 100%; }
  /* Иконка корзины есть — на телефоне слово прячем, имя кнопки остаётся в aria-label */
  .cart-btn.has-ico .cart-word { display: none; }
}

/* Перемикач теми «день / ніч над полем» (рішення користувача 16.11.2026: шапка в стилі шаблону).
   Таблетка з двох половин; бігунок — вкладка календаря сезону: світла поверхня з бурштиновою смугою згори. */
.day-night { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: stretch; width: 96px; min-width: 96px; height: 44px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.day-night:hover { border-color: var(--text); }
.dn-knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 2px; background: var(--surface-2); box-shadow: inset 0 4px 0 var(--accent); transition: transform .25s cubic-bezier(.65, 0, .35, 1); }
:root[data-theme="dark"] .dn-knob { transform: translateX(100%); }
.dn-seg { position: relative; display: grid; place-items: center; padding-top: 3px; }
.dn-seg .ico { width: 20px; height: 20px; }
.dn-seg:not(.has-ico) > .ico { display: none; }
:root[data-theme="light"] .dn-day, :root[data-theme="dark"] .dn-night { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .dn-knob { transition: none; } }

/* Перемикач мов: ті самі сім мов і підписи, що на вітрині; код мови — курсив Literata, як назви місяців у календарі */
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; position: relative; }
.lang > summary::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; border-radius: var(--r) var(--r) 0 0; background: var(--accent); transition: height .2s ease; }
.lang[open] > summary::before { height: 6px; }
.lang-code { font: italic 500 18px/1 var(--font-display); letter-spacing: .02em; }
.lang > summary::-webkit-details-marker { display: none; }
.chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] .chev { transform: translateY(1px) rotate(225deg); }
.lang-list { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow); }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px 0 16px; border-radius: 2px; text-decoration: none; font-size: 16px; position: relative; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.lang-list a[aria-current="true"] { background: var(--surface-2); font-weight: 600; }
.lang-list a[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 4px; border-radius: 2px 0 0 2px; background: var(--accent); }
.lang-short { color: var(--muted); font: italic 400 15px/1 var(--font-display); letter-spacing: .02em; }

/* Меню на телефоні */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--text); max-width: none; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
.menu { width: 100%; height: 100%; max-height: none; margin: 0; }
.menu .wrap { padding-block: 14px 32px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 58px; }
.menu nav { display: grid; margin-top: 16px; }
.menu nav a { min-height: 56px; display: flex; align-items: center; font: 500 26px/1.1 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--line); }
.menu-theme-label { font: 500 26px/1.1 var(--font-display); }

/* ---------- Картинки: заглушка тієї ж пропорції, без тексту ---------- */
.ph { position: relative; overflow: hidden; background: var(--surface-2); margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.ph img.is-missing { visibility: hidden; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--honey, var(--line-strong)); border: 1px solid var(--line-strong); vertical-align: -2px; flex: none; }

/* ---------- Перший екран ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.hero h1 { margin: 0; font: 400 clamp(42px, 6.2vw, 94px)/1.02 var(--font-display); letter-spacing: -.02em; max-width: 13ch; }
:root[data-lang="zh-CN"] .hero h1, :root[data-lang="ja"] .hero h1 { letter-spacing: 0; line-height: 1.15; max-width: 11em; font-size: clamp(36px, 6.2vw, 94px); }
/* CJK без пробілів: друга частина H1 — окремим рядком, інакше браузер рве її посередині слова */
:root[data-lang="zh-CN"] .hero h1 em, :root[data-lang="ja"] .hero h1 em { display: block; }
/* Японський: перенос між смисловими фразами, а не посеред слова (Chrome 119+; інші браузери переносять як раніше) */
:root[data-lang="ja"] :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; }
:root[data-lang="de"] .hero h1 { hyphens: auto; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.lead { margin: 0 0 24px; font-size: clamp(17px, 1.3vw, 19px); max-width: 42ch; }
.terms { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; padding: 0; list-style: none; }
.terms li { display: inline-flex; align-items: center; gap: 8px; }
.terms li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); flex: none; }

/* ---------- Календар збору ---------- */
.season { padding-top: clamp(40px, 5vw, 72px); scroll-margin-top: 80px; }
.season-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 12px; }
.season-label h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.season-label p { margin: 0; color: var(--muted); font-size: 15px; }
.months { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.month { position: relative; text-align: left; background: transparent; border: 0; border-right: 1px solid var(--line); padding: 18px 16px 16px; min-height: 120px; cursor: pointer; display: grid; align-content: start; gap: 4px; }
.month:last-child { border-right: 0; }
.month::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px; background: var(--honey); transition: height .2s ease; }
.month:hover, .month[aria-selected="true"] { background: var(--surface); }
.month[aria-selected="true"]::before { height: 12px; }
.month:focus-visible { outline-offset: -3px; }
.month .m { font: italic 400 clamp(18px, 1.6vw, 24px)/1.2 var(--font-display); color: var(--muted); }
.month[aria-selected="true"] .m { color: var(--text); }
.month .s { font-weight: 600; font-size: 17px; }
.month .st { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; display: inline-block; }
.dot.low { background: var(--accent-text); }
.dot.out { background: transparent; border: 1.5px solid var(--muted); }
.panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); background: var(--surface); }
.panel .ph { aspect-ratio: 4 / 3; }
.panel-body { padding: clamp(20px, 3vw, 44px); display: grid; align-content: start; gap: 18px; }
.when { margin: 0; font: italic 400 18px/1.3 var(--font-display); color: var(--muted); }
.panel-body h3 { margin: -10px 0 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; display: flex; align-items: center; gap: 14px; }
.panel-body h3 .sw { width: 22px; height: 22px; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Блок покупки: маса, наявність, ціна, кнопка — однаковий у календарі, каталозі й подарунку */
.buy { display: grid; gap: 12px; }
.panel .buy { border-top: 1px solid var(--line); padding-top: 18px; }
.mass { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.mass legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; float: left; width: 100%; }
.mass label { position: relative; }
.mass input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.mass span { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mass input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.mass input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.mass label:hover span { border-color: var(--text); }
.status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.next { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.price { font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; margin-right: auto; }

/* ---------- Розділи ---------- */
.sec { padding: clamp(64px, 8vw, 120px) 0 0; scroll-margin-top: 72px; }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 760px; }
.sec-head h2, .shop-head h2 { margin: 0; font: 400 clamp(32px, 3.6vw, 52px)/1.05 var(--font-display); letter-spacing: -.01em; }
.sec-head p, .sec-lead { margin: 0; color: var(--muted); font-size: 17px; max-width: 60ch; }
.shop-head h2 em { font-style: italic; color: var(--accent-text); }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.shop-head > div:first-child { display: grid; gap: 10px; }
.filter { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r); }
.filter [role="tab"] { min-height: 44px; padding: 0 16px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; }
.filter [role="tab"][aria-selected="true"] { background: var(--surface-2); }

/* Каталог */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 32px 20px; }
.card { display: grid; gap: 12px; align-content: start; }
.card .ph { aspect-ratio: 4 / 5; border-top: 6px solid var(--honey, var(--line-strong)); }
.card-body { display: grid; gap: 10px; align-content: start; }
.card h3 { margin: 4px 0 0; font-size: 24px; line-height: 1.15; }
.card .meta { margin: 0; color: var(--muted); font-size: 15px; }
.card .mass span { min-width: 0; padding: 0 10px; font-size: 15px; }
.card .btn { min-height: 44px; padding: 0 16px; }
.card .price { font-size: 19px; }
@media (max-width: 599px) {
  /* Телефон: картка горизонтальна — фото ліворуч, щоб каталог не був нескінченним */
  .grid { gap: 20px; }
  .card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
  .card .ph { aspect-ratio: 4 / 5; border-top-width: 4px; }
  .card h3 { margin: 0; font-size: 21px; }
  .card .mass legend { margin-bottom: 4px; }
  .card .mass span { padding: 0 8px; font-size: 14px; min-width: 52px; }
}

/* Як обрати: таблиця; на телефоні — картки з тими самими полями */
.cmp-wrap { border-top: 1px solid var(--line-strong); }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 14px; border-bottom: 1px solid var(--line); }
.cmp thead th { font: 600 14px/1.3 var(--font-text); color: var(--muted); padding-block: 14px; }
.cmp tbody th { font: 500 22px/1.2 var(--font-display); white-space: nowrap; }
.cmp tbody th .sw { width: 18px; height: 18px; margin-right: 10px; vertical-align: -1px; }
.cmp tbody tr { border-left: 6px solid var(--honey); }
.cmp td:last-child { text-align: right; }
.cmp .btn { min-height: 44px; padding: 0 16px; }
.cmp .lbl { display: none; }
.cmp-note { margin-top: 16px; }
@media (max-width: 900px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tbody tr { padding: 16px 0 16px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .cmp tbody th, .cmp td { padding: 0; border: 0; }
  .cmp tbody th { grid-column: 1 / -1; }
  .cmp td:last-child { grid-column: 1 / -1; text-align: left; }
  .cmp .lbl { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
}
@media (max-width: 520px) { .cmp tbody tr { grid-template-columns: 1fr; } }

/* Пасіка */
.apiary-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.apiary-main { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.apiary-text { grid-column: 1 / span 6; }
.apiary-text h2 { margin: 0 0 18px; font: 400 clamp(32px, 3.6vw, 52px)/1.05 var(--font-display); }
.apiary-text > p { margin: 0 0 14px; max-width: 54ch; }
.route { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.route li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.route .m { font: italic 400 18px/1.4 var(--font-display); color: var(--muted); }
.apiary-pic { margin: 0; display: grid; gap: 10px; }
.apiary-pic:nth-of-type(2) { grid-column: 7 / span 3; }
.apiary-pic:nth-of-type(3) { grid-column: 10 / span 3; margin-top: clamp(40px, 8vw, 120px); }
.apiary-pic:nth-of-type(2) .ph { aspect-ratio: 4 / 5; }
.apiary-pic:nth-of-type(3) .ph { aspect-ratio: 4 / 3; }
figcaption { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .apiary-main { aspect-ratio: 16 / 9; }
  .apiary-text { grid-column: 1 / -1; }
  .apiary-pic:nth-of-type(2) { grid-column: 1 / span 6; }
  .apiary-pic:nth-of-type(3) { grid-column: 7 / span 6; margin-top: 0; }
}
@media (max-width: 520px) { .route li { grid-template-columns: 1fr; gap: 0; } }

/* Від рамки до банки */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps .ph { aspect-ratio: 4 / 3; }
.steps h3 { margin: 6px 0 0; font-size: 21px; line-height: 1.2; }
.steps h3::before { content: counter(step, decimal-leading-zero); display: block; font: italic 400 16px/1 var(--font-display); color: var(--accent-text); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.process-note { margin: 32px 0 0; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); max-width: 760px; }
.process-note .ico { --cc: var(--accent-text); width: 32px; height: 32px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .steps li { flex: 0 0 min(76%, 280px); scroll-snap-align: start; }
}

/* Подарунок */
.gift { margin-top: clamp(64px, 8vw, 120px); background: var(--surface); scroll-margin-top: 72px; }
.gift-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4vw, 56px); }
.gift .ph { aspect-ratio: 16 / 10; }
.gift-body { display: grid; gap: 16px; }
.gift-body h2 { margin: 0; font: 400 clamp(30px, 3.2vw, 46px)/1.08 var(--font-display); }
.gift-body > p { margin: 0; }
.gift-body .eyebrow { margin: 0; }
.gift-b2b { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.gift-b2b a { color: var(--text); font-weight: 600; display: inline-block; padding-block: 10px; }
@media (max-width: 900px) { .gift-in { grid-template-columns: 1fr; } }

/* Статті */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; align-items: start; }
.art { display: grid; gap: 10px; }
.art .ph { aspect-ratio: 3 / 2; }
.art h3 { margin: 6px 0 0; font-size: 24px; line-height: 1.2; }
.art > p { margin: 0; color: var(--muted); }
.art summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; }
.art summary::-webkit-details-marker { display: none; }
.art summary::after, .faq summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); flex: none; transition: transform .2s ease; }
.art details[open] summary::after, .faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.art-body p { margin: 0 0 12px; }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr; } .art { grid-template-columns: 160px minmax(0, 1fr); column-gap: 18px; } .art .ph { grid-row: span 4; } .art > *:not(.ph) { grid-column: 2; } }
@media (max-width: 520px) { .art { grid-template-columns: 1fr; } .art .ph { grid-row: auto; } .art > *:not(.ph) { grid-column: 1; } }

/* Відгуки (лише справжні; на демо вимкнено) */
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review-list li { border-top: 6px solid var(--accent); background: var(--surface); padding: 24px; }
.review-list blockquote { margin: 0 0 14px; font: italic 400 20px/1.4 var(--font-display); }
.review-list p { margin: 0; color: var(--muted); }

/* Доставка і питання */
.delivery-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.perks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 4px; }
.perks li { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--line); }
.perks .ico { --cc: var(--accent-text); width: 28px; height: 28px; }
.perks li:not(.has-ico)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); flex: none; margin-inline: 10px; }
.pickup-pic { margin: 0; display: grid; gap: 10px; }
.pickup-pic .ph { aspect-ratio: 4 / 3; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 4px; cursor: pointer; list-style: none; font: 500 20px/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq details > p { margin: 0; padding: 0 4px 20px; max-width: 62ch; color: var(--muted); }
@media (max-width: 900px) { .delivery-grid { grid-template-columns: 1fr; } }

/* Контакти */
.contacts { padding-bottom: clamp(64px, 8vw, 120px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cinfo { margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.cinfo > div { display: grid; gap: 4px; }
.cinfo dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.cinfo dd { margin: 0; }
.cinfo a { display: inline-block; padding-block: 10px; margin-block: -10px; font-weight: 600; }
.place { display: grid; gap: 12px; }
.osm { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; z-index: 0; outline: 0; border-radius: var(--r); }
.osm:focus-visible, .osm:focus-within { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
@media (max-width: 640px) { .osm { aspect-ratio: auto; height: 320px; } .cinfo { grid-template-columns: 1fr; } }
.osm-fallback { margin: 0; padding: 20px; display: grid; gap: 8px; align-content: center; height: 100%; font-weight: 500; }
.osm.is-ready .osm-fallback { display: none; }
.osm-link { color: var(--accent-text); display: inline-block; padding-block: 10px; justify-self: start; }
.place-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.place-hint { margin: 0; font-size: 14px; color: var(--muted); }
.osm.leaflet-container { font: 400 14px/1.4 var(--font-text); background: var(--surface-2); }
:root[data-theme="dark"] .osm .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.4) brightness(.85) contrast(.9) sepia(.15); }
:root[data-theme="light"] .osm .leaflet-tile-pane { filter: saturate(.75) sepia(.08); }
.osm .leaflet-bar { border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: none; overflow: hidden; }
.osm .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font: 600 22px/44px var(--font-text); background: var(--surface); color: var(--text); border-color: var(--line); border-radius: 0 !important; }
.osm .leaflet-bar a:hover { background: var(--surface-2); }
.osm .leaflet-bar a:focus-visible { outline: 2px solid var(--text); outline-offset: -3px; }
.osm .leaflet-bar a.leaflet-disabled { background: var(--surface); color: var(--muted); }
.osm .leaflet-control-attribution { background: var(--surface); color: var(--muted); font-size: 12px; padding: 2px 6px; }
.osm .leaflet-control-attribution a { color: var(--text); }
.osm .leaflet-popup-content-wrapper, .osm .leaflet-popup-tip { background: var(--surface); color: var(--text); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line-strong); }
.osm .leaflet-popup-content { margin: 12px 40px 12px 16px; font-weight: 500; }
.osm a.leaflet-popup-close-button { width: 44px; height: 44px; font: 400 22px/44px var(--font-text); color: var(--muted); }
.osm .ly-pin { display: grid; place-items: center; background: none; border: 0; }
.osm .ly-pin::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent); }
.osm .ly-pin:focus-visible { outline: 2px solid var(--text); outline-offset: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Форми: питання й оформлення замовлення. Нічого не надсилають самі */
.ask, .order { display: grid; gap: 16px; align-content: start; }
.ask { background: var(--surface); padding: clamp(20px, 3vw, 32px); border-top: 6px solid var(--accent); }
.ask h3, .order h3 { margin: 0; font-size: 28px; line-height: 1.15; }
.field { display: grid; gap: 6px; }
.field label, .choice legend { font-weight: 600; font-size: 15px; }
.ctl input, .ctl select, .ctl textarea { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); padding: 10px 12px; font-size: 16px; }
.ctl textarea { min-height: 104px; resize: vertical; }
.ctl input:focus-visible, .ctl select:focus-visible, .ctl textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.ctl input[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.err { margin: 0; color: var(--err); font-size: 14px; font-weight: 600; }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.choice legend { margin-bottom: 6px; padding: 0; }
.choice label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.result { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; outline: 0; }
.result:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.result-h { margin: 0; font-weight: 600; }
.out-text { margin: 0; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font: 400 14px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.status-msg { margin: 0; min-height: 1.4em; color: var(--leaf); font-weight: 600; font-size: 15px; }

/* Кошик */
.cart-dialog { width: min(100% - 24px, 520px); margin: 12px 12px 12px auto; height: calc(100% - 24px); max-height: none; border-radius: var(--r); box-shadow: var(--shadow); }
.cart-in { display: flex; flex-direction: column; height: 100%; padding: 20px; gap: 16px; overflow: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-head h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.cart-step { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.cart-step.order { display: grid; flex: none; }
.cart-step.order[hidden] { display: none; }
.cart-empty { color: var(--muted); margin: 0; }
.cart-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.cart-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-sw { width: 14px; height: 44px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--honey, var(--surface-2)); grid-row: span 2; }
.cart-name { font-weight: 600; }
.cart-name small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.cart-line { grid-column: 3; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.qty { grid-column: 2 / 4; display: inline-flex; align-items: center; gap: 4px; }
.qty output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.qty-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--r); cursor: pointer; font-size: 20px; line-height: 1; }
.qty-btn:hover { background: var(--surface-2); }
.qty-btn .ico { width: 18px; height: 18px; }
.cart-foot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.cart-sum { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .cart-dialog { width: 100%; height: 100%; margin: 0; border-radius: 0; } }

/* Підвал */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; }
.foot-in > div p { margin: 12px 0 0; color: var(--muted); max-width: 40ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; justify-self: end; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-small { grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.foot-small a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
@media (max-width: 767px) { .foot-in { grid-template-columns: 1fr; } .foot nav { justify-self: start; margin-left: -10px; } }

@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .months { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .month { flex: 0 0 148px; scroll-snap-align: start; min-height: 108px; }
  .season-label { flex-direction: column; align-items: start; gap: 4px; }
}

/* ---------- Редактор вмісту (?edit=1, лише file:// і localhost) ---------- */
.ly-editing [data-ly-edit] { outline: 1px dashed transparent; outline-offset: 3px; cursor: pointer; }
.ly-editing [data-ly-edit].ly-hover, .ly-editing [data-ly-edit]:focus-visible { outline: 2px dashed var(--accent); }
.ly-editing .ph img.is-missing { visibility: visible; color: transparent; min-height: 100%; }
.ly-pencil { position: absolute; z-index: 45; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--bg); background: var(--accent); color: var(--on-accent); cursor: pointer; }
.ly-pencil .ico { width: 18px; height: 18px; }
.ly-pencil:not(.has-ico) .ico, .ly-pencil.has-ico .ico-fb { display: none; }
.ly-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: min(calc(100% - 24px), 1120px); background: var(--surface); border: 2px solid var(--text); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.ly-bar .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.ly-msg { flex: 1 1 240px; margin: 0; font-size: 14px; }
.ly-dialog { border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text); width: min(calc(100% - 24px), 720px); padding: 24px; max-height: calc(100% - 24px); }
.ly-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.ly-dialog form { display: flex; flex-direction: column; gap: 12px; }
.ly-dialog h2 { margin: 0; font-size: 28px; }
.ly-dialog label { font-weight: 600; font-size: 15px; }
.ly-dialog textarea, .ly-dialog select, .ly-dialog input[type="file"], .ly-dialog input[type="text"], .ly-dialog input[type="number"] { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font-text); padding: 8px 10px; }
.ly-dialog textarea { min-height: 140px; resize: vertical; }
.ly-hint { color: var(--muted); font-size: 14px; margin: 0; }
.ly-dialog .err { min-height: 1.4em; }
.ly-dialog .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ly-dialog label.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ly-dialog label.chk input { width: 22px; height: 22px; }
.ly-cat { width: 100%; border-collapse: collapse; font-size: 15px; }
.ly-cat th, .ly-cat td { text-align: left; padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ly-cat th { color: var(--muted); font-weight: 600; font-size: 13px; }
.ly-cat td:first-child { font-weight: 600; }
.ly-cat input[type="number"] { width: 92px; min-height: 44px; }
.ly-cat select { min-width: 150px; }
.ly-cat-wrap { overflow-x: auto; }

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