:root {
  color-scheme:light;
  --bg:var(--surface-paper);
  --surface:var(--surface-card);
  --surface-2:var(--surface-mint);
  --ink:var(--text-primary);
  --ink-2:var(--text-secondary);
  --muted:var(--text-secondary);
  --line:var(--border-subtle);
  --grape:var(--brand-teal-deep);
  --grape-2:var(--brand-teal);
  --leaf:var(--brand-olive);
  --amber: #b7791f;
  --red:var(--color-error);
  --good:var(--color-success);
  --mid:var(--color-warning);
  --bad:var(--color-error);
  --var: #7b4a8f;
  --wait:var(--text-secondary);
  --banner:var(--brand-sand);
  --banner-ink:var(--text-primary);
  --y2014: #8c8c8c; --y2017: #9b8c6b; --y2018: #6b8f9b; --y2019: #7b6b9b; --y2020: #6b9b7b;
  --y2021: #b08c4a; --y2022: #4a7bb0; --y2023: #8f4a6b; --y2024: #c0632f; --y2025: #5a2f6b; --y2026: #2f8f7b;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}



* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}

a { color: var(--grape); text-underline-offset: 3px; }
a:hover { color: var(--grape-2); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.test-banner {
  background: var(--banner);
  color: var(--banner-ink);
  text-align: center;
  font-size: .82rem;
  padding: 6px 16px;
}

/* switcher between the test presentations of a card, as on the other variants */
.vswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 4px 20px; font-size: .78rem; color: var(--muted); background: var(--surface-2); }
.vswitch a { padding: 2px 9px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.vswitch a[aria-current] { background: var(--ink); color: var(--bg); }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font: 700 1.5rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.brand-dot { color: var(--grape); }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: var(--grape); background: var(--surface-2); }

/* Подвал сайта — в /assets/chrome.css (static/assets/chrome.css), вместе с общим подвалом templates/partials/footer.html. */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--leaf); margin: 0 0 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.lead-s { color: var(--ink-2); max-width: 52em; margin: 0 0 18px; }
.latin { font-style: italic; font-weight: 400; color: var(--muted); font-size: .55em; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; padding: 18px 0 26px; }
.tagline { font: 1.3rem/1.4 var(--serif); color: var(--ink-2); margin: 0 0 18px; }
.tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .86rem; color: var(--ink-2); }
.origin { margin: 0; font-size: .95rem; }

.hero-media { margin: 0; background: radial-gradient(circle at 50% 40%, var(--surface) 0%, var(--surface-2) 75%); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 12px; text-align: center; }
.hero-media img { width: 100%; height: auto; border-radius: 14px; display: block; }
.hero-media figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.cluster { width: 100%; max-width: 330px; height: auto; display: block; margin: 0 auto; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 16px 18px; }
.stat b { display: block; font: 600 1.9rem/1.1 var(--serif); color: var(--grape); }
.stat span { font-size: .85rem; color: var(--ink-2); }

.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 8px; }
.toc a { font-size: .86rem; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); }
.toc a:hover { border-color: var(--grape); color: var(--grape); }

.block { padding-top: 42px; scroll-margin-top: 70px; }
.summary { font: 1.2rem/1.55 var(--serif); max-width: 44em; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.pros, .cons { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.pros { border-top: 4px solid var(--good); }
.cons { border-top: 4px solid var(--bad); }
.pros ul, .cons ul { margin: 0; padding-left: 1.1em; }
.pros li, .cons li { margin: 6px 0; }

/* ---------- badges ---------- */
.badge { display: inline-block; font: 600 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; vertical-align: middle; white-space: nowrap; }
.c-high { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.c-medium { background: color-mix(in srgb, var(--mid) 20%, transparent); color: color-mix(in srgb, var(--mid) 70%, var(--ink)); }
.c-low { background: var(--surface-2); color: var(--ink-2); }
.c-contested { background: color-mix(in srgb, var(--var) 18%, transparent); color: var(--var); }
.c-none { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

/* ---------- passport ---------- */
.passport { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pp { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .15s; }
.pp:hover { border-color: var(--grape); }
.pp-label { font-size: .8rem; color: var(--muted); }
.pp-value { font: 600 1.15rem/1.3 var(--serif); }
.pp-note { font-size: .86rem; color: var(--ink-2); flex: 1; }
.pp .badge { align-self: flex-start; margin-top: 6px; }

/* ---------- disputes ---------- */
.disputes { display: grid; gap: 14px; }
.dispute { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.dispute h3 { display: flex; gap: 10px; align-items: center; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.side-k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 4px; }
.side-for { background: color-mix(in srgb, var(--good) 10%, transparent); }
.side-for .side-k { color: var(--good); }
.side-against { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.side-against .side-k { color: var(--bad); }
.why { margin: 12px 0 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- charts ---------- */
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; overflow-x: auto; }
.chart { width: 100%; min-width: 620px; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .row { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .axis { fill: var(--muted); font: 12px var(--sans); }
.chart circle, .chart rect { stroke: var(--surface); stroke-width: 1.5; }
.chart .gh { stroke: #fff; stroke-width: 2.5; }
.ev-flower { fill: var(--leaf); }
.ev-ripe { fill: var(--grape); }
.ev-partly { fill: var(--grape-2); fill-opacity: .55; }
.ev-notyet { fill: var(--surface); stroke: var(--grape) !important; stroke-width: 2 !important; }
.ev-failed { fill: var(--bad); }
.ev-hang { fill: var(--amber); }
.chart .series { fill: none; stroke-width: 2; stroke-opacity: .6; }
.chart .series-label { fill: var(--ink-2); font: 11px var(--sans); }
.chart .range { stroke-width: 3; stroke-opacity: .5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--ink-2); padding: 8px 4px 2px; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-flower { background: var(--leaf); border-radius: 2px; transform: rotate(45deg); }
.lg-ripe { background: var(--grape); }
.lg-partly { background: color-mix(in srgb, var(--grape-2) 55%, var(--surface)); }
.lg-notyet { border: 2px solid var(--grape); }
.lg-hang { background: var(--amber); }
.lg-gh { border: 2px solid var(--muted); background: var(--surface); }
.lg.pt { width: 11px; height: 11px; }
.y2014 { fill: var(--y2014); stroke: var(--y2014); background: var(--y2014); }
.y2017 { fill: var(--y2017); stroke: var(--y2017); background: var(--y2017); }
.y2018 { fill: var(--y2018); stroke: var(--y2018); background: var(--y2018); }
.y2019 { fill: var(--y2019); stroke: var(--y2019); background: var(--y2019); }
.y2020 { fill: var(--y2020); stroke: var(--y2020); background: var(--y2020); }
.y2021 { fill: var(--y2021); stroke: var(--y2021); background: var(--y2021); }
.y2022 { fill: var(--y2022); stroke: var(--y2022); background: var(--y2022); }
.y2023 { fill: var(--y2023); stroke: var(--y2023); background: var(--y2023); }
.y2024 { fill: var(--y2024); stroke: var(--y2024); background: var(--y2024); }
.y2025 { fill: var(--y2025); stroke: var(--y2025); background: var(--y2025); }
.y2026 { fill: var(--y2026); stroke: var(--y2026); background: var(--y2026); }
.chart .series.y2024, .chart .series.y2025 { fill: none; }
.chart circle.pt { stroke: var(--surface); }
.chart circle.pt.gh { stroke: #fff; }

/* ---------- tables ---------- */
details.log { margin-top: 12px; }
details.log > summary, details.prop > summary { cursor: pointer; list-style: none; }
details.log > summary::-webkit-details-marker, details.prop > summary::-webkit-details-marker { display: none; }
details.log > summary { display: inline-block; font-weight: 600; color: var(--grape); padding: 6px 0; }
details.log > summary::before { content: "▸ "; }
details.log[open] > summary::before { content: "▾ "; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { text-align: left; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 9px 12px; position: sticky; top: 0; white-space: nowrap; }
table.data td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.data td.txt { min-width: 260px; color: var(--ink-2); }
table.data tr[hidden] { display: none; }
.inferred { color: var(--muted); cursor: help; }
.st { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .8rem; white-space: nowrap; }
.st-ripe { background: color-mix(in srgb, var(--grape) 16%, transparent); color: var(--grape); }
.st-partly { background: color-mix(in srgb, var(--grape-2) 10%, transparent); color: var(--grape-2); }
.st-notyet { border: 1px solid var(--line); color: var(--ink-2); }
.st-failed { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.st-hang { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 4px; }
.seg-ctl { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg-ctl button { font: inherit; font-size: .85rem; border: 0; background: transparent; color: var(--ink-2); padding: 7px 12px; cursor: pointer; }
.seg-ctl button + button { border-left: 1px solid var(--line); }
.seg-ctl button[aria-pressed="true"] { background: var(--grape); color: var(--surface); }

/* ---------- outcomes ---------- */
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.oc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.oc-card h3 a { color: inherit; text-decoration: none; }
.outcomes { margin: 10px 0 4px; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.seg { display: block; height: 100%; }
.outcomes ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: .86rem; }
.outcomes li { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 8px; padding: 4px 0; align-items: baseline; }
.o-label { color: var(--ink); }
.o-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.d-good { background: var(--good); }
.d-mid { background: var(--mid); }
.d-bad { background: var(--bad); }
.d-var { background: var(--var); }
.d-wait { background: var(--wait); }

/* ---------- properties ---------- */
.pgroups { columns: 2 440px; column-gap: 22px; }
.pgroup { break-inside: avoid; margin-bottom: 22px; }
.pgroup h3 { font-size: 1.05rem; color: var(--leaf); margin-bottom: 8px; }
details.prop { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 6px; scroll-margin-top: 80px; }
details.prop > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
details.prop > summary:hover { background: var(--surface-2); border-radius: 10px; }
.p-name { flex: 1; font-weight: 500; }
.p-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.p-body { padding: 2px 16px 14px; font-size: .93rem; }
.p-body p { margin: 8px 0; }
.points { padding-left: 1.1em; color: var(--ink-2); margin: 6px 0; }
.evidence { font-size: .82rem; color: var(--muted); }
.numeric { list-style: none; padding: 0; margin: 6px 0; font-size: .88rem; }
details.prop:target { border-color: var(--grape); box-shadow: 0 0 0 3px color-mix(in srgb, var(--grape) 18%, transparent); }

.unknown { padding-left: 1.1em; }
.unknown li { margin: 6px 0; }


.method { color: var(--ink-2); }
.method ul { padding-left: 1.1em; max-width: 52em; }
.method li { margin: 8px 0; }

/* ---------- catalog / home ---------- */
.page-head { padding: 12px 0 22px; }
/* Каталог /ru/grapes/varieties/ (docs/CATALOG_FILTERS.md): слева фильтры, справа поиск, сортировка и плитки — три в ряд.
   Гроздь — на тёплой бумаге с бледной карандашной шпалерой, как в шапке страницы сорта. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vcat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.vside { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.vside summary { display: none; }
.vside fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.vside legend { padding: 0; margin: 0 0 8px; font: 600 1.02rem/1.2 var(--serif); color: var(--ink); }
.vck { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; font-size: .9rem; color: var(--ink); cursor: pointer; }
.vck input { width: 16px; height: 16px; margin: 0; accent-color: var(--color-primary-button, #b6493a); }
.vck small { margin-left: auto; font-size: .76rem; color: var(--muted); }
.vck.zero { color: var(--muted); }
.vreset { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .84rem; color: var(--ink); cursor: pointer; }
.vreset:hover { border-color: var(--grape); }
.vbar { display: flex; gap: 12px; align-items: center; margin: 0 0 10px; }
.vsearch { position: relative; flex: 1; }
.vsearch svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.vsearch input { width: 100%; height: 42px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: .95rem; color: var(--ink); }
.vsearch input:focus, .vsort select:focus { outline: 2px solid var(--grape); outline-offset: 1px; }
.vsort { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.vsort select { height: 42px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: .9rem; color: var(--ink); }
.vfound { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 30px; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.vchips { display: contents; }
.vchip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .8rem; color: var(--ink-2, var(--ink)); cursor: pointer; }
.vchip::after { content: " ×"; }
.vempty { padding: 28px 0; color: var(--muted); }
.vpager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 22px 0 6px; }
.vpager[hidden] { display: none; }
.vpager button { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.vpager button:hover:not(:disabled) { border-color: var(--grape); }
.vpager button:disabled { color: var(--muted); cursor: default; opacity: .55; }
.vpager button[aria-current="page"] { background: var(--grape); border-color: var(--grape); color: #fff; cursor: default; }
.vpager button:focus-visible { outline: 2px solid var(--grape); outline-offset: 1px; }
.vpager .gap { color: var(--muted); padding: 0 2px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.vcard { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.vcard[hidden] { display: none; }
.vcard:hover { border-color: var(--grape); transform: translateY(-2px); color: inherit; }
.vcard-media { background: radial-gradient(circle at 50% 40%, var(--surface) 0%, var(--surface-2) 80%); padding: 18px; }
.vcard-media .cluster { max-width: 190px; }
.vcard-media.art { position: relative; isolation: isolate; padding: 12px 10px 8px; border-bottom: 1px solid var(--line);
  background: linear-gradient(rgb(255 252 246 / .5), rgb(255 252 246 / .5)), url(/assets/variety-hero/backdrop-trellis.webp) 62% 78% / 165% auto no-repeat, linear-gradient(180deg, var(--surface-card) 0%, var(--surface-paper) 100%); }
.vcard-media.art::after { content: ""; position: absolute; z-index: -1; left: 30%; right: 30%; bottom: 10px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgb(70 55 30 / .22), transparent); }
.vcard-media.art img { display: block; width: 100%; height: 170px; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(60 45 25 / .18)); transition: transform .2s; }
.vcard:hover .vcard-media.art img { transform: scale(1.03); }
.vcard-body { display: flex; flex-direction: column; padding: 12px 16px 14px; }
.vcard-body h2 { font-size: 1.3rem; margin-bottom: 6px; }
.vcard-body > p { font-size: .9rem; line-height: 1.45; margin: 0 0 12px; }
/* срок, вид, цвет ягоды — строки с иконками в одном карандашном стиле с шапкой сорта */
.vfacts { list-style: none; display: grid; gap: 6px; margin: 0 0 12px; padding: 0; }
.vfacts li { display: flex; align-items: center; gap: 9px; font-size: .88rem; line-height: 1.2; color: var(--ink); }
.vic { width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.vi { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vstats { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.vstats li { display: flex; flex-direction: column; min-width: 0; }
.vstats b { font: 600 1.15rem/1.1 var(--serif, Georgia, serif); color: var(--ink); }
.vstats span { font-size: .7rem; line-height: 1.25; color: var(--muted); }
@media (max-width: 860px) {
  .vcat { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vside { position: static; padding: 0; }
  .vside summary { display: flex; align-items: center; gap: 6px; padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
  .vside summary::-webkit-details-marker { display: none; }
  .vside summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .vside[open] summary::after { transform: rotate(-135deg); }
  .vside-in { padding: 4px 16px 14px; }
  .vbar { flex-wrap: wrap; }
  .vsort { width: 100%; }
  .vsort select { flex: 1; }
}
.vcard.wide { grid-template-rows: none; grid-template-columns: 380px 1fr; align-items: center; }

.home-hero { padding: 56px 0 36px; max-width: 52em; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta { display: inline-block; margin-top: 10px; background:var(--color-primary-button); color:var(--color-primary-button-text); text-decoration: none; padding: 12px 22px; border-radius: 12px; font-weight: 600; }
.cta:hover { background:var(--color-primary-button-hover); color:var(--color-primary-button-text); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero-media { order: -1; max-width: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:last-child { grid-column: 1 / 3; }
  .pros-cons, .sides { grid-template-columns: 1fr; }
  .vcard.wide { grid-template-columns: 1fr; }
  .vcard.wide .vcard-media .cluster { max-width: 160px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .oc-grid { grid-template-columns: 1fr; }
  .tagline { font-size: 1.12rem; }
  .hero-media .cluster { max-width: 220px; }
}

.table-wrap.tall { max-height: 620px; overflow-y: auto; }

/* ---------- photos ---------- */
.hero-media.photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.hero-media.photo img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media.photo figcaption { padding: 8px 14px 10px; text-align: left; }
.vcard-media.photo { padding: 0; background: var(--surface-2); }
.vcard-media.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.vcard.wide .vcard-media.photo { align-self: stretch; }
.vcard.wide .vcard-media.photo img { height: 100%; }

/* Методика наблюдений /ru/methodology/ (templates/pages/metodika.html) */
.method section { max-width: 46em; margin: 0 0 30px; }
.method h2 { margin-bottom: .45em; }
.method ul { margin: 0; padding-left: 1.2em; }
.method li { margin: 0 0 9px; line-height: 1.55; }
.method p { line-height: 1.6; }
