/* ==========================================================================
   Нутрибаза — style.css
   "Точный пищевой инструмент": системный гротеск для текста,
   моноширинный шрифт с табличными цифрами для всех данных,
   полосы-пропорции (% от суточной нормы) как фирменный приём.
   Без веб-шрифтов. Один файл. Версия ?v=3.
   ========================================================================== */

/* ---------- Дизайн-токены ---------- */
:root {
    --ink:       #16201A;
    --paper:     #FAFAF7;
    --surface:   #FFFFFF;
    --muted:     #5E6A60;
    --faint:     #8A948B;
    --line:      #E4E7E1;
    --line-soft: #EEF1EC;

    --pine:      #0E6E4E;
    --pine-dk:   #0A4E38;
    --pine-soft: #E7F1EB;

    --clay:      #B0502E;
    --clay-soft: #F6E9E3;
    --amber:     #B7891F;
    --amber-soft:#F6EED8;

    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace,
            "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

    --r-sm: 6px;
    --r:    10px;
    --r-lg: 16px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(22,32,26,.05);
    --shadow:    0 4px 18px rgba(22,32,26,.07);
    --shadow-lg: 0 12px 40px rgba(22,32,26,.12);

    --wrap: 1120px;
    --gap: 24px;
}

/* ---------- Сброс / база ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--pine-dk); text-decoration: none; }
a:hover { color: var(--pine); text-decoration: underline; }

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.7rem); }
h3 { font-size: 1.14rem; }
h4 { font-size: .95rem; letter-spacing: .01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Все числовые данные — моноширинно, с табличными цифрами */
.num, .keyfig-val, .fact-val, .price-num, .dv-pct, .rank-amt,
.cat-count, .food-card-stats, .vs-kcal, .nutrient-dv, .standout-pct,
.standout-amt {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* ---------- Каркас страницы ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

main.wrap { padding-top: 28px; padding-bottom: 64px; }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--pine);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--r-sm) 0;
    z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Шапка ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250,250,247,.9);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.head-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 66px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--pine);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), var(--shadow-sm);
}
.brand-name { font-size: 1.12rem; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}
.site-nav a {
    padding: 8px 12px;
    border-radius: var(--r-sm);
    color: var(--muted);
    font-weight: 600;
    font-size: .96rem;
}
.site-nav a:hover { background: var(--pine-soft); color: var(--pine-dk); text-decoration: none; }
.site-nav a[aria-current="true"] { color: var(--pine-dk); background: var(--pine-soft); }

.head-search { margin-left: auto; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--pine); color: var(--pine-dk); }

/* ---------- Поиск ---------- */
.search { display: flex; gap: 8px; }
.search input[type="search"] {
    font: inherit;
    padding: 9px 13px;
    width: 240px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
}
.search input[type="search"]:focus {
    outline: none;
    border-color: var(--pine);
    box-shadow: 0 0 0 3px var(--pine-soft);
}
.search button {
    font: inherit;
    font-weight: 700;
    padding: 9px 16px;
    border: 1px solid var(--pine);
    background: var(--pine);
    color: #fff;
    border-radius: var(--r-sm);
    cursor: pointer;
}
.search button:hover { background: var(--pine-dk); border-color: var(--pine-dk); }

.search-big { max-width: 560px; margin: 22px 0 0; }
.search-big input[type="search"] {
    flex: 1;
    width: auto;
    padding: 14px 18px;
    font-size: 1.05rem;
    border-radius: var(--r);
}
.search-big button { padding: 14px 22px; border-radius: var(--r); font-size: 1.02rem; }

/* ---------- Хлебные крошки ---------- */
.crumbs { margin: 0 0 18px; font-size: .86rem; color: var(--faint); }
.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--pine-dk); }
.crumbs [aria-current="page"] { color: var(--faint); }

/* ---------- Заголовок раздела/страницы ---------- */
.page-head { margin-bottom: 26px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .74rem;
    font-weight: 700;
    color: var(--faint);
    margin: 0 0 .5em;
}
.eyebrow a { color: var(--pine-dk); }
.lede {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 68ch;
    margin-top: .2em;
}
.muted-note { color: var(--faint); font-size: .9rem; }
.prep { color: var(--faint); font-weight: 600; }

.section { margin: 44px 0; }
.section:first-of-type { margin-top: 12px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-link { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.section-meta { color: var(--faint); font-size: .9rem; margin: -6px 0 14px; }

.block { margin: 34px 0; }
.block > h2 { margin-bottom: 14px; }

/* ---------- Проза (текстовые страницы) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose p { color: #26302A; }
.bullets { padding-left: 1.15em; margin: 0 0 1em; }
.bullets li { margin: .35em 0; }

/* ---------- Кнопки, чипы ---------- */
.btn-primary {
    font: inherit;
    font-weight: 700;
    padding: 12px 22px;
    border: 1px solid var(--pine);
    background: var(--pine);
    color: #fff;
    border-radius: var(--r);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover { background: var(--pine-dk); border-color: var(--pine-dk); color: #fff; text-decoration: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
    display: inline-block;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.chip:hover { border-color: var(--pine); color: var(--pine-dk); background: var(--pine-soft); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
    padding: 30px 0 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}
.hero h1 { max-width: 20ch; margin-bottom: .35em; }
.hero h1 span { color: var(--pine); }
.hero .lede { font-size: 1.18rem; }
.hero-hint { margin-top: 18px; color: var(--faint); font-size: .95rem; }
.hero-hint a { font-weight: 600; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-cat      { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-food     { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-compare  { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-nutrient { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    color: var(--ink);
}
.card:hover {
    text-decoration: none;
    border-color: #CFE0D5;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Категория */
.cat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cat-name { font-weight: 700; font-size: 1.05rem; }
.cat-count { color: var(--faint); font-size: .85rem; }

/* Продукт (карточка) */
.food-card { display: flex; flex-direction: column; gap: 10px; }
.food-card-name { font-weight: 700; font-size: 1.04rem; line-height: 1.3; }
.food-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--muted);
    font-size: .84rem;
}
.food-card-stats b { color: var(--ink); font-weight: 700; }

/* Сравнение (карточка) */
.compare-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.compare-card .vs-a, .compare-card .vs-b { font-weight: 700; font-size: .98rem; }
.compare-card .vs-b { text-align: left; }
.compare-card .vs-a { text-align: right; }
.vs-sep {
    font-family: var(--mono);
    font-size: .72rem;
    text-transform: uppercase;
    color: var(--faint);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 3px 7px;
}

/* Нутриент (карточка) */
.nutrient-card { display: flex; flex-direction: column; gap: 5px; }
.nutrient-name { font-weight: 700; font-size: 1.04rem; }
.nutrient-dv { color: var(--faint); font-size: .82rem; }
.nutrient-desc { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ---------- Ключевые цифры продукта ---------- */
.keyfig {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 6px 0 28px;
}
.keyfig-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.keyfig-val {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}
.keyfig-val small { font-size: .8rem; color: var(--faint); font-weight: 600; margin-left: 2px; }
.keyfig-label {
    display: block;
    margin-top: 4px;
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- Макро-полоса (БЖУ по калориям) ---------- */
.macro { margin: 6px 0; }
.macro-bar {
    display: flex;
    height: 26px;
    border-radius: var(--r-pill);
    overflow: hidden;
    background: var(--line-soft);
    box-shadow: inset 0 0 0 1px rgba(22,32,26,.04);
}
.macro-bar .seg { height: 100%; }
.seg-p { background: var(--pine); }
.seg-f { background: var(--amber); }
.seg-c { background: #6FA98C; }
.macro-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0;
    margin: 12px 0 0;
    font-size: .92rem;
    color: var(--muted);
}
.macro-legend li { display: inline-flex; align-items: center; gap: 8px; }
.macro-legend b { color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.dot-p { background: var(--pine); }
.dot-f { background: var(--amber); }
.dot-c { background: #6FA98C; }

/* ---------- Полосы-пропорции (% от нормы) ---------- */
.bar {
    position: relative;
    height: 8px;
    background: var(--line-soft);
    border-radius: var(--r-pill);
    overflow: hidden;
    min-width: 60px;
}
.bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--faint);
}
.bar-good > span   { background: var(--pine); }
.bar-limit > span  { background: var(--clay); }
.bar-neutral > span{ background: #9AA69C; }
.dv-pct {
    font-size: .82rem;
    color: var(--muted);
    min-width: 3.4ch;
    display: inline-block;
}

/* ---------- Таблицы ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-foot { color: var(--faint); font-size: .84rem; margin-top: 10px; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .96rem;
}
thead th {
    text-align: left;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--faint);
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
tbody th, tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
th[scope="row"] { text-align: left; font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
th.num { text-align: right; }

/* Таблица нутриентов продукта */
.nutri-table td.dv {
    width: 44%;
    min-width: 190px;
}
.nutri-table td.dv {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nutri-table .grouprow th {
    background: var(--paper);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pine-dk);
    font-weight: 700;
    padding-top: 14px;
}
.nutri-table tbody + tbody .grouprow th { border-top: 1px solid var(--line); }

/* Таблица рейтинга / категории */
.rank-table thead th a { color: inherit; display: inline-block; }
.rank-table thead th a:hover { color: var(--pine-dk); text-decoration: none; }
.rank-table th.is-sorted { color: var(--pine-dk); }
.rank-table tbody tr:hover { background: var(--pine-soft); }

/* Таблица сравнения */
.cmp-table th[scope="row"] a { color: var(--ink); }
.cmp-table td.win {
    background: var(--pine-soft);
    color: var(--pine-dk);
    font-weight: 700;
    border-radius: var(--r-sm);
}

/* ---------- Список-рейтинг (leaderboard) ---------- */
.ranklist {
    list-style: none;
    counter-reset: rank;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ranklist .rankrow {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 2ch minmax(0,1fr) auto minmax(150px, 34%);
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line-soft);
}
.ranklist .rankrow::before {
    content: counter(rank);
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--faint);
    font-size: .9rem;
    text-align: right;
}
.ranklist-plain { counter-reset: none; }
.ranklist-plain .rankrow { grid-template-columns: minmax(0,1fr) auto minmax(150px, 34%); }
.ranklist-plain .rankrow::before { content: none; }
.rank-food { font-weight: 600; color: var(--ink); }
.rank-amt { color: var(--muted); text-align: right; font-size: .92rem; }
.rank-bar-wrap { display: flex; align-items: center; gap: 10px; }
.rank-bar-wrap .bar { flex: 1; }

/* ---------- Фактбокс (страница нутриента) ---------- */
.factbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.fact { background: var(--surface); padding: 18px 20px; }
.fact-wide { grid-column: 1 / -1; }
.fact-label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--faint);
    margin-bottom: 4px;
}
.fact-val { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.fact-text { color: var(--muted); }

/* ---------- Чем богат продукт (standouts) ---------- */
.standouts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.standout {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    background: var(--pine-soft);
    border: 1px solid #CFE6D9;
    border-radius: var(--r);
    color: var(--ink);
}
.standout:hover { text-decoration: none; box-shadow: var(--shadow-sm); border-color: var(--pine); }
.standout-pct { font-size: 1.4rem; font-weight: 700; color: var(--pine-dk); line-height: 1.1; }
.standout-name { font-weight: 600; }
.standout-amt { color: var(--muted); font-size: .82rem; }

/* ---------- Страница сравнения: шапка VS ---------- */
.vs-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 14px;
    margin: 8px 0 30px;
}
.vs-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}
.vs-card:hover { text-decoration: none; border-color: var(--pine); box-shadow: var(--shadow); }
.vs-cat {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--faint);
}
.vs-name { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.vs-kcal { color: var(--muted); font-size: .88rem; }
.vs-badge {
    align-self: center;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .05em;
}

.insight-list { padding-left: 1.15em; margin: 0; color: #26302A; }
.insight-list li { margin: .4em 0; }

.cmp-macros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin: 30px 0;
}
.cmp-macro h3 { font-size: 1.02rem; margin-bottom: 10px; }

/* ---------- Конструктор сравнения ---------- */
.cmp-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.cmp-col { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmp-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.cmp-search-wrap { position: relative; }
.cmp-search { display: flex; gap: 8px; }
.cmp-search input[type="search"] {
    font: inherit;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    color: var(--ink);
    box-sizing: border-box;
}
.cmp-search input[type="search"]:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
.cmp-search button {
    flex: 0 0 auto; font: inherit; font-weight: 600; cursor: pointer;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--paper); color: var(--ink);
}
.cmp-search button:hover { border-color: var(--pine); color: var(--pine); }
.cmp-suggest {
    position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0;
    max-height: 300px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow);
}
.cmp-suggest li { padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.cmp-suggest li.is-active, .cmp-suggest li:hover { background: var(--pine-soft); color: var(--pine); }
.cmp-results {
    list-style: none; margin: 4px 0 0; padding: 0;
    border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.cmp-results li + li { border-top: 1px solid var(--line); }
.cmp-results a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding: 10px 14px; color: var(--ink);
}
.cmp-results a:hover { background: var(--pine-soft); text-decoration: none; }
.cmp-res-name { min-width: 0; }
.cmp-res-kcal { flex: 0 0 auto; color: var(--muted); font-size: .82rem; }
.cmp-noresult { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.cmp-chosen {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--pine);
    border-radius: var(--r); background: var(--pine-soft);
}
.cmp-chosen-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.cmp-change { flex: 0 0 auto; font-size: .82rem; }
.cmp-hint { margin: 12px 2px 0; color: var(--muted); font-size: .92rem; }
.cmp-vs {
    align-self: center; font-family: var(--mono); text-transform: uppercase;
    color: var(--faint); font-size: .8rem; padding-top: 30px;
}

/* ---------- Промо: партнёрское / премиум ---------- */
.promo {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    margin: 30px 0;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.promo-eyebrow {
    display: inline-block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: var(--faint);
    margin-bottom: 6px;
}
.promo-title { font-size: 1.2rem; margin: 0 0 6px; }
.promo-text { color: var(--muted); margin: 0 0 14px; max-width: 62ch; }
.promo-cta {
    display: inline-block;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: var(--r);
    border: 1px solid var(--pine);
    color: var(--pine-dk);
    background: var(--pine-soft);
}
.promo-cta:hover { background: var(--pine); color: #fff; text-decoration: none; }
.promo-cta-solid { background: var(--pine); color: #fff; }
.promo-cta-solid:hover { background: var(--pine-dk); }

.promo-affiliate { border-left: 3px solid var(--amber); }
.promo-premium {
    background: linear-gradient(180deg, var(--amber-soft), var(--surface) 60%);
    border-color: #E9DDB6;
}
.promo-premium .promo-eyebrow { color: var(--amber); }
.promo-premium .promo-cta { border-color: var(--amber); color: #7A5A11; background: #fff; }
.promo-premium .promo-cta:hover { background: var(--amber); color: #fff; }
.promo-wide { text-align: center; }
.promo-wide .promo-text { margin-inline: auto; }

/* ---------- Реклама ---------- */
.ad-slot {
    margin: 28px 0;
    padding: 8px;
    min-height: 90px;
    border: 1px dashed var(--line);
    border-radius: var(--r);
    background: var(--line-soft);
    display: grid;
    place-items: center;
}
.ad-slot::before {
    content: "реклама";
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--faint);
}
.ad-slot .adsbygoogle { width: 100%; }
.ad-slot:has(.adsbygoogle)::before { content: none; }

/* ---------- Дисклеймеры / источник ---------- */
.source-note {
    font-size: .86rem;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--pine);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin-top: 14px;
}
.source-note a { font-weight: 600; }
.disclaimer {
    font-size: .86rem;
    color: var(--muted);
    background: var(--clay-soft);
    border: 1px solid #EAD3C8;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin: 26px 0 0;
}
.disclaimer strong { color: var(--clay); }
.affiliate-disclosure {
    font-size: .8rem;
    color: var(--faint);
    margin: 20px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

/* ---------- Премиум-страница ---------- */
.premium-page .features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 8px 0 0;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }

.price-block {
    text-align: center;
    background: linear-gradient(180deg, var(--amber-soft), var(--surface) 65%);
    border: 1px solid #E9DDB6;
    border-radius: var(--r-lg);
    padding: 32px 24px;
}
.price-tag { margin-bottom: 18px; }
.price-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.price-note { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-list { margin: 0; }
.faq-list dt {
    font-weight: 700;
    color: var(--ink);
    margin-top: 18px;
    padding-left: 22px;
    position: relative;
}
.faq-list dt:first-child { margin-top: 0; }
.faq-list dt::before {
    content: "?";
    position: absolute;
    left: 0;
    top: -1px;
    width: 16px;
    height: 16px;
    font-size: .72rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    border-radius: var(--r-pill);
    background: var(--pine-soft);
    color: var(--pine-dk);
}
.faq-list dd { margin: 4px 0 0 22px; color: var(--muted); }

/* ---------- Контакты ---------- */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.contact-email {
    display: inline-block;
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pine-dk);
    padding: 12px 20px;
    background: var(--pine-soft);
    border-radius: var(--r);
    margin: 6px 0;
}
.contact-email:hover { background: var(--pine); color: #fff; text-decoration: none; }

/* ---------- Доверие ---------- */
.trust {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.trust > h2 { margin-bottom: 20px; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.trust-item h3 { font-size: 1.04rem; margin-bottom: 6px; color: var(--pine-dk); }
.trust-item p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 40px 0; margin-inline: auto; }
.notfound .chip-row { justify-content: center; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--ink);
    color: #C9D2CB;
    margin-top: 60px;
}
.foot-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-top: 46px;
    padding-bottom: 34px;
}
.site-foot .brand-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.foot-about p { margin-top: 10px; color: #9FACA2; font-size: .92rem; max-width: 34ch; }
.foot-col h4 {
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 12px;
}
.foot-col a { display: block; color: #C9D2CB; padding: 4px 0; font-size: .94rem; }
.foot-col a:hover { color: #fff; }
.foot-contact a[href^="mailto"] { font-family: var(--mono); color: #7FD9B4; }
.foot-note { color: #8B978D; font-size: .84rem; margin-top: 10px; }
.foot-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem;
    color: #8B978D;
}
.foot-bottom a { color: #9FACA2; }
.foot-bottom a:hover { color: #fff; }

/* ---------- Доступность ---------- */
:focus-visible {
    outline: 3px solid var(--pine);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
    .foot-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
    .cmp-macros { grid-template-columns: 1fr; gap: 20px; }
    .keyfig { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    body { font-size: 16px; }

    .nav-toggle { display: inline-block; }
    .head-search { display: none; }
    .head-inner { flex-wrap: wrap; gap: 12px; }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 4px 0 6px;
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 11px 12px; }

    .cmp-builder { grid-template-columns: 1fr; }
    .cmp-vs { padding: 2px 0; text-align: center; }

    .vs-head { grid-template-columns: 1fr; }
    .vs-badge { justify-self: center; }

    .factbox { grid-template-columns: 1fr; }

    .ranklist .rankrow {
        grid-template-columns: 2ch minmax(0,1fr) auto;
        row-gap: 8px;
    }
    .ranklist-plain .rankrow { grid-template-columns: minmax(0,1fr) auto; }
    .rank-bar-wrap { grid-column: 1 / -1; }

    .nutri-table td.dv { min-width: 140px; }
}

@media (max-width: 460px) {
    .keyfig { grid-template-columns: 1fr 1fr; }
    .foot-inner { grid-template-columns: 1fr; }
    .foot-bottom { flex-direction: column; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Печать ---------- */
@media print {
    .site-head, .site-foot, .ad-slot, .promo, .nav-toggle, .search { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .vs-card, .keyfig-item { box-shadow: none; }
}
