/* Аерогід — стилі.
   Колір розділу кодує тип сторінки: сорти — листя, препарати — мідний купорос,
   рослини — бузок, захист — іржа. Картка-паспорт оформлена як етикетка з пакета насіння. */

:root {
  --ink: #1d2a21;
  --ink-2: #4a5a4f;
  --paper: #fbfcf8;
  --panel: #f1f5ee;
  --line: #d6ded1;
  --leaf: #2f6b3b;
  --copper: #1d5f8a;
  --lilac: #6a4c93;
  --rust: #9a4a17;
  --sun: #f1c232;
  --accent: var(--leaf);
  --accent-soft: #e3eedf;

  --serif: "Alegreya", Georgia, serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.25rem;
  --step-4: 2.9rem;
}

.s-sort      { --accent: var(--leaf);   --accent-soft: #e3eedf; }
.s-preparaty { --accent: var(--copper); --accent-soft: #e0ecf4; }
.s-roslyny   { --accent: var(--lilac);  --accent-soft: #ece6f4; }
.s-zakhyst   { --accent: var(--rust);   --accent-soft: #f5e8de; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }

/* ---------- logo: sprout grows once per visit, leaves sway on hover ---------- */
.logo { display: block; height: 40px; width: auto; overflow: visible; }
.logo .lg-leaf { transform-box: fill-box; }
.logo .lg-leaf-l { transform-origin: 100% 100%; }
.logo .lg-leaf-r { transform-origin: 0% 100%; }
.logo-anim .top .lg-soil, .logo-anim .top .lg-stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lg-draw .45s ease-out forwards; }
.logo-anim .top .lg-stem { animation-duration: .5s; animation-delay: .35s; animation-timing-function: cubic-bezier(.3,.7,.4,1); }
.logo-anim .top .lg-leaf { animation: lg-leaf .55s cubic-bezier(.34,1.56,.64,1) both; }
.logo-anim .top .lg-leaf-l { animation-delay: .72s; }
.logo-anim .top .lg-leaf-r { animation-delay: .86s; }
.logo-anim .top .lg-ch { animation: lg-ch .4s calc(.55s + var(--i) * .06s) ease-out both; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
@keyframes lg-leaf { from { transform: scale(0) rotate(-25deg); } to { transform: none; } }
@keyframes lg-ch { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.brand:hover .lg-leaf-l, .brand:focus-visible .lg-leaf-l { animation: lg-sway-l 1.1s ease-in-out; }
.brand:hover .lg-leaf-r, .brand:focus-visible .lg-leaf-r { animation: lg-sway-r 1.1s ease-in-out; }
@keyframes lg-sway-l { 0%, 100% { transform: none; } 35% { transform: rotate(9deg); } 70% { transform: rotate(-4deg); } }
@keyframes lg-sway-r { 0%, 100% { transform: none; } 35% { transform: rotate(-9deg); } 70% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  .logo-anim .top .lg-soil, .logo-anim .top .lg-stem, .logo-anim .top .lg-leaf, .logo-anim .top .lg-ch,
  .brand:hover .lg-leaf-l, .brand:hover .lg-leaf-r { animation: none; stroke-dashoffset: 0; }
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 20px 10px 17px; border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav-sort.is-on      { border-bottom-color: var(--leaf); }
.nav-preparaty.is-on { border-bottom-color: var(--copper); }
.nav-roslyny.is-on   { border-bottom-color: var(--lilac); }
.nav-zakhyst.is-on   { border-bottom-color: var(--rust); }
.lang { color: var(--ink-2); font-size: .95rem; }

@media (max-width: 760px) {
  .top-in { gap: 0 16px; padding-top: 10px; }
  .brand { flex: 1; }
  .logo { height: 34px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 0; margin: 0 -10px; }
  .nav a { padding: 12px 10px 10px; white-space: nowrap; }
}

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 18px 0 0; margin: 0; font-size: .9rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* ---------- article layout ---------- */
.art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  grid-template-areas: "head aside" "hero aside" "body aside";
  column-gap: 56px;
  align-items: start;
  padding-bottom: 64px;
}
.art-head { grid-area: head; max-width: 44rem; padding: 20px 0 8px; }
.art-aside { grid-area: aside; position: sticky; top: 20px; padding-top: 28px; }
.art-body { grid-area: body; min-width: 0; max-width: 44rem; }
.art-hero { grid-area: hero; min-width: 0; max-width: 44rem; }
.art-wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "hero" "body"; }

@media (max-width: 900px) {
  .art { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "hero" "aside" "body"; }
  .art-aside { position: static; padding-top: 8px; }
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: var(--step-4); margin: .3em 0 .35em; max-width: 18ch; }
h2 { font-size: var(--step-2); margin: 1.8em 0 .5em; }
h3 { font-size: var(--step-1); margin: 1.4em 0 .4em; }
@media (max-width: 600px) { h1 { font-size: var(--step-3); } }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); margin: 0 0 .8em; max-width: 40rem; }
.byline { font-size: .9rem; color: var(--ink-2); margin: 0; }
.byline a { color: var(--ink-2); }

.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.note { font-size: .9rem; color: var(--ink-2); }

/* ---------- passport card: seed-packet label ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-top: 10px solid var(--accent);
  padding: 4px 20px 10px 26px;
}
.card::before { /* perforation along the packet edge */
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  border-left: 2px dotted var(--line);
}
.card-h {
  font: 700 var(--step-1)/1.2 var(--serif);
  margin: 12px 0 8px; padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}
.card dl { margin: 0; }
.card-row { display: grid; grid-template-columns: 8.2rem 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.card-row:last-child { border-bottom: 0; }
.card dt { color: var(--ink-2); overflow-wrap: anywhere; hyphens: auto; }
.card dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .card-row { grid-template-columns: 1fr; gap: 0; } }

.buy { margin-top: 14px; }
.buy-btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 20px; border-radius: 6px;
}
.buy-btn:hover { filter: brightness(1.1); }
.buy-note { font-size: .85rem; color: var(--ink-2); margin: 6px 0 0; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 .6em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; color: var(--ink-2); font-size: .85rem; border-bottom: 1.5px solid var(--ink); }
tbody th { font-weight: 600; }
.usage { background: var(--accent-soft); margin: 24px 0 0; padding: 4px 20px 12px; border-radius: 4px; }
.usage h2 { margin-top: .7em; }
.usage th, .usage td { border-bottom-color: rgba(29,42,33,.15); }

/* ---------- toc, pros/cons, faq, sources, related ---------- */
.toc { margin: 28px 0 0; padding: 0; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 16rem; column-gap: 32px; font-size: .95rem; }
.toc li { margin: 3px 0; break-inside: avoid; }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 12px; }
.pc h2 { font-size: var(--step-1); margin: 1.2em 0 .4em; }
.pc ul { margin: 0; padding-left: 1.2em; }
.pc li { margin: .3em 0; }
.pc-plus li::marker { content: "+  "; color: var(--leaf); font-weight: 700; }
.pc-minus li::marker { content: "−  "; color: var(--rust); font-weight: 700; }
@media (max-width: 600px) { .pc { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6em 0 0; }

.sources ol { font-size: .9rem; padding-left: 1.3em; color: var(--ink-2); }
.sources a { color: var(--ink-2); word-break: break-word; }

.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; }
.related a:hover { border-color: var(--accent); }
.back { margin-top: 2em; }

/* ---------- hubs & sections ---------- */
.hub { padding-bottom: 64px; }
.hub-table { margin-top: 12px; }
.hub-table th a { font-weight: 600; }
.hub-intro { max-width: 44rem; }

.tiles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile a, .tile.is-soon { display: block; padding: 18px 18px 16px; background: #fff; border: 1.5px solid var(--ink); border-top: 8px solid var(--accent); text-decoration: none; color: var(--ink); height: 100%; }
.tile.is-soon { border-color: var(--line); border-top-color: var(--line); color: var(--ink-2); }
.tile-name { display: block; font: 700 var(--step-1)/1.2 var(--serif); }
.tile-meta { display: block; font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.tile a:hover .tile-name { color: var(--accent); }

.entries { list-style: none; padding: 0; margin: 12px 0 0; max-width: 44rem; }
.entries li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.entries a { text-decoration: none; }
.entry-name { font: 700 var(--step-1)/1.2 var(--serif); }
.entry-meta { margin-left: 10px; font-size: .9rem; color: var(--ink-2); }
.entries p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 40px 0 44px; }
.hero-text { max-width: 34rem; }
.mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 430px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; background: var(--panel); display: block; }
.mosaic-1 { grid-row: 1 / span 2; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .mosaic { height: 300px; }
}
@media (max-width: 520px) { .mosaic { height: 230px; gap: 6px; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); max-width: 14ch; }
.search { position: relative; margin-top: 24px; max-width: 34rem; }
.search label { display: block; font-weight: 600; margin-bottom: 8px; }
.search input {
  width: 100%; font: inherit; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff;
}
.search input:focus { outline: 3px solid var(--sun); outline-offset: 0; }
.search-res { list-style: none; margin: 6px 0 0; padding: 0; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; position: absolute; left: 0; right: 0; z-index: 5; }
.search-res a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; text-decoration: none; color: var(--ink); }
.search-res a span { color: var(--ink-2); font-size: .9rem; }
.search-res a:hover, .search-res a:focus-visible { background: var(--panel); }
.search-none { color: var(--ink-2); }

.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; padding-bottom: 64px; }
.block { border-top: 6px solid var(--c); padding: 4px 0 24px; }
.block-sort { --c: var(--leaf); } .block-preparaty { --c: var(--copper); }
.block-roslyny { --c: var(--lilac); } .block-zakhyst { --c: var(--rust); }
.block h2 { margin: .6em 0 .2em; }
.block h2 a { color: var(--ink); text-decoration: none; }
.block h2 a:hover { color: var(--c); }
.block p { margin: 0 0 .6em; color: var(--ink-2); }
.block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.block li a { color: var(--c); }
@media (max-width: 700px) { .blocks { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #dfe7dc; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 64px; padding-top: 36px; padding-bottom: 40px; }
.foot-brand { margin: 0 0 14px; }
.foot-brand .logo { height: 34px; }
.foot .lg-word, .foot .lg-word path { fill: #f3f6ee; }
.foot .lg-stem { stroke: #f3f6ee; }
.foot-note { font-size: .88rem; max-width: 40rem; margin: 0 0 10px; color: #b8c6b5; }
.foot-links { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.foot-links li { margin: 4px 0; }
.foot a { color: #fff; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { padding: 64px 20px; max-width: 40rem; }
.nf section + section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- photos ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fig { margin: 20px 0 8px; }
.fig img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--panel); }
.fig figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.fig .credit { display: block; font-size: .78rem; color: #7b887f; }
.fig .credit a { color: inherit; }
.fig-hero { margin-top: 18px; }
.fig-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.hub-hero { max-width: 44rem; }

/* ---------- callouts: markdown blockquote ---------- */
.prose blockquote {
  margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 4px 4px 0;
}
.prose blockquote p { margin: .3em 0; }

/* ---------- prose tables ---------- */
.prose .table-scroll { margin: 1em 0 1.2em; }
.prose table { font-size: .93rem; }

/* ---------- calendar ---------- */
.cal { margin-top: 8px; }
.cal-t { table-layout: fixed; min-width: 560px; }
.cal-t th, .cal-t td { padding: 7px 0; text-align: center; border-bottom: 1px solid var(--line); }
.cal-t thead th { font-size: .78rem; font-weight: 500; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.cal-t thead th:first-child, .cal-t tbody th { text-align: left; width: 9.5rem; padding-right: 10px; font-size: .9rem; font-weight: 500; }
.cal-t td { position: relative; }
.cal-t td.on::before { content: ""; position: absolute; left: 1px; right: 1px; top: 7px; bottom: 7px; border-radius: 3px; background: var(--cc, var(--accent)); }
.c-sow { --cc: #9bbf6a; } .c-plant { --cc: var(--leaf); } .c-prune { --cc: #7a6a55; }
.c-feed { --cc: #c9a227; } .c-water { --cc: #4f8fbf; } .c-bloom { --cc: var(--lilac); }
.c-harvest { --cc: #c0563b; } .c-treat { --cc: var(--copper); } .c-risk { --cc: var(--rust); }
.c-cover { --cc: #8a9aa6; }
@media (max-width: 560px) {
  .cal-t { min-width: 0; }
  .cal-t thead th { font-size: .6rem; letter-spacing: -.02em; }
  .cal-t thead th:first-child, .cal-t tbody th { width: 6.6rem; font-size: .8rem; line-height: 1.2; }
  .cal-t td.on::before { left: 0; right: 0; border-radius: 2px; }
}

/* ---------- variety scales ---------- */
.scales { margin-top: 18px; }
.scale { margin: 0 0 22px; }
.scale-top { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; margin-bottom: 6px; }
.scale-label { color: var(--ink-2); }
.scale-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.scale-track { position: relative; height: 34px; background: var(--panel); border-radius: 4px; overflow: hidden; }
.scale-band { position: absolute; top: 0; bottom: 0; border-right: 1px solid #fff; }
.scale-band i { position: absolute; left: 6px; bottom: 3px; font: normal .7rem/1 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; max-width: calc(100% - 8px); }
.scale-mark { position: absolute; top: 4px; height: 14px; background: var(--accent); border-radius: 3px; min-width: 6px; }
.scale-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---------- calculator ---------- */
.calc { margin-top: 24px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 4px 20px 14px; background: #fff; }
.calc h2 { margin-top: .6em; }
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.calc-f span { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: 4px; }
.calc-f select, .calc-f input { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.calc-f select:focus, .calc-f input:focus { border-color: var(--accent); outline: 3px solid var(--sun); outline-offset: 0; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 6px; }
.calc-out div { background: var(--accent-soft); border-radius: 6px; padding: 10px 12px; }
.calc-out dt { font-size: .82rem; color: var(--ink-2); }
.calc-out dd { margin: 2px 0 0; font: 700 1.25rem/1.25 var(--serif); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .calc-in, .calc-out { grid-template-columns: 1fr; } }

/* ---------- PHI bars ---------- */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 9rem 1fr 4.5rem; gap: 10px; align-items: center; padding: 5px 0; font-size: .93rem; }
.bars-track { height: 12px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.bars-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bars-val { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .bars li { grid-template-columns: 6.5rem 1fr 3.8rem; } }

/* ---------- hub: ripening chart ---------- */
.gantt { margin: 8px 0 28px; max-width: 56rem; }
.gantt-grid { position: relative; padding-top: 22px; }
.gantt-axis { position: absolute; top: 0; left: 9.5rem; right: 0; height: 18px; font-size: .75rem; color: var(--ink-2); }
.gantt-axis span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.gantt-row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; min-height: 32px; border-bottom: 1px solid var(--line); }
.gantt-name { font-weight: 600; font-size: .93rem; padding-right: 10px; }
.gantt-track { position: relative; height: 32px; }
.gantt-track i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.gantt-bar { position: absolute; top: 8px; height: 16px; background: var(--accent); border-radius: 3px; min-width: 8px; }
.gantt-bar em { position: absolute; left: calc(100% + 6px); top: -1px; font: normal .78rem/18px var(--sans); color: var(--ink-2); white-space: nowrap; }
.gantt-unit { text-align: right; font-size: .75rem; color: var(--ink-2); padding-top: 4px; }
@media (max-width: 560px) { .gantt-axis { left: 6.5rem; } .gantt-row { grid-template-columns: 6.5rem 1fr; } }

/* ---------- filter chips & sortable headers ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.chips-label { font-size: .88rem; color: var(--ink-2); margin-right: 4px; }
.chip { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
thead button[data-sort] { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
thead button[data-sort]::after { content: " ↕"; color: var(--line); }
th[aria-sort="ascending"] button::after { content: " ↑"; color: var(--accent); }
th[aria-sort="descending"] button::after { content: " ↓"; color: var(--accent); }

/* ---------- picture lists (sections) ---------- */
.pics { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; }
.pics a, .pics li > span { display: block; text-decoration: none; color: var(--ink); }
.pics img, .pics-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--panel); border-top: 6px solid var(--accent); }
.pics-name { display: block; font: 700 var(--step-1)/1.2 var(--serif); margin-top: 10px; }
.pics a:hover .pics-name { color: var(--accent); }
.pics-meta { display: block; font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.pics p { margin: 6px 0 0; font-size: .93rem; color: var(--ink-2); }
.pics .is-soon { opacity: .6; }

/* ---------- home: season ---------- */
.season { background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; padding: 6px 24px 22px; margin: 4px 0 40px; }
.season-head h2 { margin: .7em 0 .2em; }
.season-head h2 span { color: var(--leaf); }
.year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; margin: 18px 0 6px; }
.year-m { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink-2); }
.year-bar { display: flex; flex-direction: column-reverse; min-height: 4px; border-radius: 4px 4px 0 0; overflow: hidden; background: var(--line); opacity: .55; transition: opacity .15s; }
.year-bar i { display: block; background: var(--cc, var(--line)); min-height: 2px; }
.year-n { font-size: .75rem; text-align: center; margin-top: 3px; min-height: 1em; font-variant-numeric: tabular-nums; }
.year-l { font-size: .85rem; text-align: center; padding: 4px 0 2px; border-top: 2px solid transparent; }
.year-m:hover .year-bar { opacity: .85; }
.year-m.is-on .year-bar { opacity: 1; }
.year-m.is-on .year-l { color: var(--ink); font-weight: 600; border-top-color: var(--ink); }
.year-m.is-now .year-l::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); margin: 3px auto 0; }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 28px; margin-top: 12px; }
.act h3 { font: 600 1rem/1.3 var(--sans); margin: 12px 0 4px; display: flex; align-items: center; gap: 8px; }
.act ul { list-style: none; margin: 0; padding: 0 0 0 18px; font-size: .95rem; }
.act li { margin: 3px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--cc); flex: none; }
@media (max-width: 560px) {
  .season { padding: 4px 14px 16px; }
  .year { gap: 3px; height: 120px; }
  .year-l { font-size: .68rem; }
  .year-n { font-size: .65rem; }
}

/* ---------- home: calculator ---------- */
.hcalc { margin: 0 0 44px; }
.hcalc h2 { margin: .4em 0 .2em; }
.hcalc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 32px; margin-top: 14px;
  background: var(--panel); border-radius: 8px; padding: 20px; }
.hcalc-in { display: grid; gap: 12px; }
.hcalc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.hcalc-out div { background: #fff; border-radius: 6px; padding: 12px 14px; border-top: 4px solid var(--copper); }
.hcalc-out dt { font-size: .82rem; color: var(--ink-2); }
.hcalc-out dd { margin: 2px 0 0; font: 700 1.3rem/1.25 var(--serif); font-variant-numeric: tabular-nums; }
.hcalc .calc-f select:focus, .hcalc .calc-f input:focus { border-color: var(--copper); }
@media (max-width: 760px) { .hcalc-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; } }

/* ---------- home: section cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.hcard { --c: var(--leaf); }
.hcard.block-preparaty { --c: var(--copper); } .hcard.block-roslyny { --c: var(--lilac); } .hcard.block-zakhyst { --c: var(--rust); }
.hcard-img { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--panel); border-bottom: 6px solid var(--c); }
.hcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hcard:hover .hcard-img img { transform: scale(1.04); }
.hcard h3 { font-size: var(--step-2); margin: .5em 0 .15em; }
.hcard h3 a { color: var(--ink); text-decoration: none; }
.hcard h3 a:hover { color: var(--c); }
.hcard p { margin: 0 0 .5em; color: var(--ink-2); }
.hcard ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; }
.hcard li a { color: var(--c); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.credits { font-size: .75rem; color: #7b887f; margin: 28px 0 0; padding-bottom: 48px; max-width: 60rem; }
.credits a { color: inherit; }

@media (prefers-reduced-motion: reduce) { .hcard-img img { transition: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .top, .foot, .buy, .related, .toc { display: none; } .art { display: block; } }
