/* Самобранка. Аппетитная база: топлёное молоко, брусника, мёд, корочка, зелень.
   Цвета каждой кухни приходят переменными --c-* (см. kitchen/art.py). */
:root {
  --bg: #FFF8F0;          /* топлёное молоко */
  --surface: #FFFFFF;
  --ink: #2B1810;         /* ржаная корка */
  --ink-2: #6B4E3D;
  --line: #EEDFCC;
  --berry: #B5172F;       /* брусника */
  --berry-dark: #8E0F23;
  --honey: #F0A830;       /* мёд */
  --honey-soft: #FCE8C3;
  --crust: #C8691C;       /* золотистая корочка */
  --dill: #4F7D2A;

  --display: "Unbounded", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  --wrap: 1240px;

  /* значения по умолчанию для блоков без кухни */
  --c-main: var(--berry);
  --c-text: var(--berry);
  --c-dark: var(--ink);
  --c-light: var(--honey-soft);
  --c-accent: var(--honey);
  --c-on-main: #fff;
  --c-on-accent: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
a { color: var(--berry); text-underline-offset: 3px; }
a:hover { color: var(--berry-dark); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--berry); color: #fff; font: 600 1rem/1.2 var(--text); text-decoration: none;
}
.btn:hover { background: var(--berry-dark); color: #fff; }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: #F6BC52; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--berry); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--honey-soft); color: var(--berry-dark); }
.btn-cuisine { background: var(--c-accent); color: var(--c-on-accent); }
.btn-cuisine:hover { background: var(--c-accent); color: var(--c-on-accent); filter: brightness(1.08); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost-light[aria-pressed="true"] { background: #fff; color: var(--c-dark); }

/* Шапка */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.28rem/1 var(--display); letter-spacing: -0.02em; color: var(--berry); text-decoration: none; }
.logo:hover { color: var(--berry-dark); }
.logo svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--berry); }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.fav-link span:not(:empty) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--honey); color: var(--ink); font-size: .8rem; font-weight: 600; }
.search { margin-left: auto; }
.search input { width: 220px; padding: 10px 18px; font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.menu-btn { display: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--berry); background: none; color: var(--berry); font: 600 .95rem var(--text); cursor: pointer; }

.messages { padding-top: 16px; }
.message { margin: 0; padding: 14px 20px; border-radius: 14px; background: #E6F1DC; color: #2E4E14; font-weight: 500; }
.message-error { background: #FBE3E3; color: var(--berry-dark); }

/* Первый экран: поиск и блюда дня */
.hero { padding-block: clamp(40px, 6vw, 80px); background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 20ch; }
.hero-lead { max-width: 52ch; margin: 20px 0 32px; font-size: 1.12rem; color: var(--ink-2); }
.hero-form { margin-top: 18px; max-width: 560px; }
.hero-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.hero-field { display: flex; gap: 8px; padding: 6px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; }
.hero-field:focus-within { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(240, 168, 48, .25); }
.hero-field input { flex: 1; min-width: 0; padding: 10px 16px; font: inherit; color: var(--ink); background: transparent; border: 0; outline: none; }
.hero-field .btn { flex: none; }
.hero-today { max-width: 500px; justify-self: end; width: 100%; }
.hero-today h2 { font-size: 1.2rem; margin-bottom: 18px; }
.hero-today .card-title { font-size: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }

/* Секции */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: 24px clamp(56px, 7vw, 96px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 44px; }
.section-head p { margin: 0; max-width: 54ch; color: var(--ink-2); font-size: 1.06rem; }
.page-head { padding-block: clamp(36px, 5vw, 64px) 24px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; margin: 18px 0 0; }

/* Указатель кухонь */
.index { columns: 3 270px; column-gap: 56px; }
.index-group { break-inside: avoid; margin: 0 0 36px; }
.index-group h3 { font-size: 1rem; color: var(--berry); margin-bottom: 8px; letter-spacing: -0.01em; }
.index-group ul { list-style: none; margin: 0; padding: 0; }
.index-group a { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--ink); text-decoration: none; }
.index-group .leader { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(4px); }
.index-group .count { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .95rem; }
.index-group a:hover .name { color: var(--berry); text-decoration: underline; }
.sw { display: inline-flex; flex: none; }
.sw i { width: 10px; height: 18px; display: block; }
.sw i:first-child { border-radius: 5px 0 0 5px; }
.sw i:last-child { border-radius: 0 5px 5px 0; }

/* Карточки рецептов */
.grid { display: grid; gap: 40px 28px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-title { font-size: 1.4rem; margin-bottom: 28px; }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); }
.card-plate { display: block; aspect-ratio: 1; max-width: 100%; transition: transform .35s ease; }
.card-plate svg { width: 100%; height: 100%; display: block; }
.card:hover .card-plate { transform: rotate(-6deg); }
.card-body { display: flex; flex-direction: column; gap: 2px; }
.card-cuisine { display: flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 500; color: var(--c-text); }
.card-cuisine i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-main); }
.card-title { font: 600 1.12rem/1.3 var(--text); }
.card:hover .card-title { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.card-meta { font-size: .92rem; color: var(--ink-2); }

/* Сезон */
.season { background: var(--surface); border-block: 1px solid var(--line); }
.holiday { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 48px; align-items: center; margin-top: 64px; padding: clamp(26px, 4vw, 44px); background: var(--berry); color: #fff; border-radius: 26px; }
.holiday-date { margin: 0; font: 600 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); letter-spacing: -0.03em; }
.holiday-date small { display: block; margin-top: 8px; font: 500 1rem/1 var(--text); letter-spacing: 0; opacity: .85; }
.holiday h3 { font-size: 1.5rem; margin-bottom: 8px; }
.holiday p { margin: 0; max-width: 58ch; opacity: .92; }

/* Рецепт дня в цветах кухни */
.feature-band { background: var(--c-dark); color: #fff; position: relative; padding-block: clamp(56px, 7vw, 96px) clamp(80px, 9vw, 120px); }
.feature-band::after, .ornament-band { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--c-orn) repeat-x center / 40px 40px, var(--c-main); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-plate { display: block; max-width: 460px; width: 100%; }
.feature-plate svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.feature-kicker { margin: 0 0 10px; font-weight: 500; }
.feature-kicker a { color: var(--c-accent); }
.feature h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.feature p { max-width: 54ch; font-size: 1.1rem; opacity: .92; }
.feature-meta { font-size: .98rem !important; opacity: .75 !important; }
.feature .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Подбор по продуктам */
.fridge-form { display: flex; gap: 10px; }
.fridge-form input { flex: 1; min-width: 0; padding: 14px 20px; font: inherit; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.fridge-inline { margin-bottom: 22px; max-width: 760px; }

/* Семейные рецепты */
.family { background: var(--ink); color: #FBEBD6; }
.family .section-head p { color: rgba(251, 235, 214, .8); }
.family-steps { list-style: none; counter-reset: fs; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.family-steps li { counter-increment: fs; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--honey); color: inherit; opacity: .92; }
.family-steps li::before { content: counter(fs); font: 600 1.6rem/1 var(--display); color: var(--honey); margin-bottom: 8px; }
.family-steps strong { font-size: 1.1rem; }
.family-steps-col { grid-template-columns: minmax(0, 1fr); }

/* Подвал */
.site-footer { padding-block: 60px 40px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.6fr; gap: 40px; }
.footer-grid h2 { font: 600 1rem/1.3 var(--text); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--berry); text-decoration: underline; }
.footer-grid .logo { color: var(--berry); margin-bottom: 14px; }
.footer-about, .subscribe p { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.subscribe form { display: flex; gap: 8px; }
.subscribe input { flex: 1; min-width: 0; padding: 12px 18px; font: inherit; font-size: .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.legal { margin-top: 44px; font-size: .85rem; color: var(--ink-2); }

.ad { display: grid; place-items: center; min-height: 110px; margin-block: 8px; border: 1px dashed #DCC5A9; border-radius: 14px; color: var(--ink-2); font-size: .85rem; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(240,168,48,.06) 10px 20px); }

/* Кухни: список */
.region { padding-block: 24px 48px; scroll-margin-top: 16px; }
.region-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.region-head p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.cuisine-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cuisine-tile { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.cuisine-tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(43, 24, 16, .3); }
.tile-band { height: 64px; background: var(--c-orn) repeat-x center / 40px 40px, var(--c-dark); border-bottom: 6px solid var(--c-main); }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.tile-name { font: 600 1.15rem/1.25 var(--display); letter-spacing: -0.015em; color: var(--c-text); }
.tile-short { color: var(--ink-2); font-size: .96rem; flex: 1; }
.tile-count { font-size: .9rem; font-weight: 500; }

/* Шапки кухни и рецепта */
.cuisine-hero, .recipe-hero { position: relative; background: var(--c-dark); color: #fff; padding-bottom: 40px; }
.cuisine-hero .wrap { padding-block: 8px 72px; }
.cuisine-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
.cuisine-hero .lead, .recipe-hero .lead { color: rgba(255,255,255,.88); }
.places { margin: 14px 0 0; color: rgba(255,255,255,.7); font-size: .98rem; }
.crumbs { padding: 26px 0 30px; font-size: .95rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.85); }
.page-head + .wrap .crumbs a, .holiday-hero .crumbs a { color: inherit; }

.cuisine-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(48px, 6vw, 80px); }
.prose p { font-size: 1.12rem; max-width: 64ch; }
.prose-page h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose-page ul { padding-left: 1.2em; max-width: 64ch; }
.prose-page li { margin-bottom: 8px; }
.colors { align-self: start; padding: 28px; border-radius: 22px; background: var(--c-light); }
.colors h2 { font-size: 1.3rem; margin-bottom: 16px; color: var(--c-text); }
.colors p { font-size: .98rem; color: var(--ink-2); }
.palette { display: flex; height: 56px; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.palette i { flex: 1; }
.ornament-sample { height: 48px; border-radius: 10px; margin: 18px 0 14px; background: var(--c-orn) repeat-x center / 48px 48px, var(--c-dark); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
a.chip:hover { border-color: var(--berry); color: var(--berry); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-plain { background: var(--honey-soft); border-color: transparent; }

/* Рецепт */
.recipe-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 80px); align-items: center; padding-bottom: 56px; }
.recipe-head h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); letter-spacing: -0.035em; }
.recipe-plate { max-width: 440px; justify-self: center; width: 100%; }
.recipe-plate svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 34px rgba(0,0,0,.4)); }
.facts { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 32px 0 0; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: .9rem; color: rgba(255,255,255,.7); }
.facts dd { margin: 0; font: 600 1.3rem/1.2 var(--display); letter-spacing: -0.02em; }
.recipe-head .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.recipe-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; padding-block: clamp(48px, 6vw, 80px) 0; }
.ingredients { position: sticky; top: 20px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; border-top: 6px solid var(--c-main); }
.ingredients h2 { font-size: 1.35rem; }
.yield { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 6px; padding: 8px 8px 8px 16px; background: var(--bg); border-radius: 999px; font-size: .95rem; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface); color: var(--c-text); font: 600 1.25rem/1 var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.stepper button:hover { background: var(--c-light); }
.stepper output { min-width: 5.6em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ing-group h3 { margin: 22px 0 4px; font: 600 .95rem/1.3 var(--text); letter-spacing: 0; color: var(--c-text); }
.ing-group ul { list-style: none; margin: 0; padding: 0; }
.ing-group li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.ing-group .amt { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.buy { display: grid; gap: 10px; margin-top: 24px; }
.buy .btn { width: 100%; }
.note { margin: 0; font-size: .85rem; color: var(--dill); text-align: center; font-weight: 500; }

.recipe-main > h2 { font-size: 1.8rem; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-main); color: var(--c-on-main); font: 600 1.15rem/1 var(--display); }
.steps p { margin: 0; max-width: 64ch; font-size: 1.08rem; }
.steps .tip { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--honey); font-size: .98rem; color: var(--ink-2); }
.serve { margin: 8px 0 32px; padding: 18px 22px; background: var(--honey-soft); border-radius: 16px; }
.story { position: relative; margin-top: 56px; padding: clamp(28px, 4vw, 44px); padding-top: calc(clamp(28px, 4vw, 44px) + 26px); background: var(--c-light); border-radius: 24px; overflow: hidden; }
.story::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px; background: var(--c-orn-on-light) repeat-x center / 26px 26px; opacity: .9; }
.story h2 { font-size: 1.6rem; margin-bottom: 14px; color: var(--c-text); }
.story h3 { font-size: 1.1rem; margin: 26px 0 12px; }
.story p { max-width: 64ch; }
.variants { display: grid; gap: 12px; margin: 0; }
.variants div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
.variants dt { font-weight: 600; }
.variants dd { margin: 0; }
.recipe-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.method { margin-top: 24px; font-size: .9rem; color: var(--ink-2); }
.related { padding-block: clamp(64px, 8vw, 104px); }
.related h2 { margin-bottom: 32px; }

/* Каталог */
.filters { display: grid; gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.result-count { color: var(--ink-2); margin-bottom: 28px; }
.empty { padding: 48px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); max-width: 640px; }
.empty h2 { margin-bottom: 12px; font-size: 1.5rem; }
.empty p { color: var(--ink-2); }
.empty-page { padding-block: 96px; }
.empty-page .btn { margin: 0 8px 8px 0; }

/* Праздники */
.holiday-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.holiday-list a { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; grid-template-areas: "date name count" "date intro count"; gap: 4px 32px; padding: 24px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.holiday-list a:hover { border-color: var(--berry); color: var(--ink); }
.hl-date { grid-area: date; color: var(--berry); font-weight: 600; }
.hl-name { grid-area: name; font: 600 1.3rem/1.2 var(--display); }
.hl-intro { grid-area: intro; color: var(--ink-2); max-width: 64ch; }
.hl-count { grid-area: count; align-self: center; font-weight: 500; white-space: nowrap; }
.holiday-hero { background: var(--berry); color: #fff; padding-bottom: 56px; margin-bottom: 40px; }
.holiday-hero .crumbs a { color: rgba(255,255,255,.85); }
.holiday-when { margin: 0 0 8px; font-weight: 600; color: var(--honey-soft); }
.holiday-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.holiday-hero .lead { color: rgba(255,255,255,.9); }

/* Форма */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.field input, .field textarea { width: 100%; padding: 13px 16px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.field input:focus, .field textarea:focus { border-color: var(--honey); outline: none; box-shadow: 0 0 0 3px rgba(240,168,48,.3); }
.help { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.field-error { margin: 6px 0 0; color: var(--berry); font-weight: 500; font-size: .95rem; }
.has-error input, .has-error textarea { border-color: var(--berry); }
.form .btn { justify-self: start; }
.form-aside { padding: 28px; border-radius: 22px; background: var(--ink); color: #FBEBD6; }
.form-aside h2 { font-size: 1.3rem; margin-bottom: 20px; }
.form-aside .family-steps { margin: 0; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.offers article { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.offers h2 { font-size: 1.25rem; margin-bottom: 10px; color: var(--berry); }
.offers p { margin: 0; color: var(--ink-2); }

/* Адаптив */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search input { width: 170px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; padding: 12px clamp(16px, 4vw, 40px) 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(43,24,16,.3); }
  .nav.is-open a { padding: 10px 0; font-size: 1.1rem; }
  .menu-btn { display: inline-flex; }
  .search { flex: 1; }
  .search input { width: 100%; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-today { justify-self: stretch; max-width: none; }
  .hero-inner, .section-head, .feature, .recipe-head, .recipe-body, .cuisine-intro, .region-head, .form-layout { grid-template-columns: minmax(0, 1fr); }
  .holiday { grid-template-columns: minmax(0, 1fr); }
  .family-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ingredients { position: static; }
  .recipe-plate { max-width: 340px; }
  .feature-plate { max-width: 340px; }
  .holiday-list a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "name" "intro" "count"; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .menu-btn { margin-left: auto; }
  .hero-field { flex-direction: column; border-radius: 20px; }
  .hero-field .btn { width: 100%; }
  .grid { gap: 28px 16px; }
  .card-title { font-size: 1rem; }
  .fridge-form { flex-direction: column; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .variants div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .steps li { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .steps li::before { width: 38px; height: 38px; font-size: 1rem; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .subscribe form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .card-plate, .cuisine-tile { transition: none; }
  .card:hover .card-plate { transform: none; }
}

/* ===== Подборки, продукты, вопросы, пагинация ===== */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 48px; }
.pager-gap { padding: 0 4px; color: var(--ink-2); }
.crumbs-plain { margin: 0 0 12px; font-weight: 500; }
.kind-title { font-size: 1.15rem; margin: 40px 0 20px; color: var(--c-text); }
.kind-grid + .kind-title { margin-top: 56px; }
.others-title { margin-top: 64px; }
.sub-title { font-size: 1.1rem; margin: 36px 0 16px; }
.section-tight-top { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 0; }
.chips-lg .chip { padding: 11px 20px; font-size: 1rem; }
.chip-product i { width: 10px; height: 10px; border-radius: 50%; }

.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.collection-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.collection-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(43, 24, 16, .3); }
.collection-plates { display: flex; margin-bottom: 14px; }
.collection-plates > span { width: 96px; height: 96px; flex: none; }
.collection-plates > span + span { margin-left: -26px; }
.collection-plates svg { width: 100%; height: 100%; display: block; }
.collection-title { font: 600 1.15rem/1.25 var(--display); letter-spacing: -0.015em; }
.collection-intro { color: var(--ink-2); font-size: .96rem; flex: 1; }
.collection-count { font-weight: 500; font-size: .92rem; color: var(--berry); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.product-card:hover { color: var(--ink); border-color: var(--honey); }
.product-dot { width: 28px; height: 28px; border-radius: 50%; margin-bottom: 6px; box-shadow: 0 0 0 1px rgba(43, 24, 16, .18), inset 0 0 0 3px rgba(255,255,255,.5); }
.product-name { font: 600 1.08rem/1.25 var(--display); letter-spacing: -0.01em; }
.product-short { color: var(--ink-2); font-size: .95rem; flex: 1; }
.product-count { font-size: .9rem; font-weight: 500; color: var(--berry); }
.product-aka { margin: 10px 0 0; color: var(--ink-2); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.product-facts { margin: 0; display: grid; gap: 18px; padding: 26px; border-radius: 22px; background: var(--honey-soft); }
.product-facts dt { font-weight: 600; margin-bottom: 4px; }
.product-facts dd { margin: 0; color: var(--ink-2); }

.nutrition { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--bg); }
.nutrition h3 { margin: 0 0 10px; font: 600 .9rem/1.3 var(--text); letter-spacing: 0; color: var(--ink-2); }
.nutrition dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; text-align: center; }
.nutrition div { display: flex; flex-direction: column-reverse; }
.nutrition dt { font-size: .8rem; color: var(--ink-2); }
.nutrition dd { margin: 0; font: 600 1rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.ing-group a { color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; }
.ing-group a:hover { color: var(--berry); }
.step-time { margin: 0 0 6px !important; font-size: .85rem !important; font-weight: 600; color: var(--c-text); }

.faq { margin-top: 48px; }
.faq h2 { font-size: 1.6rem; margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem/1 var(--display); color: var(--berry); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; max-width: 64ch; color: var(--ink-2); }

@media (max-width: 960px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Фото блюда внутри тарелки ===== */
.plate-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; max-width: 100%; }
.plate-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-photo img { position: absolute; inset: 11.75%; width: 76.5%; height: 76.5%; border-radius: 50%; object-fit: cover; background: #F3EEE8; }
.recipe-plate { margin: 0; }
.photo-credit { margin-top: 12px; text-align: center; font-size: .8rem; color: rgba(255,255,255,.6); }
.photo-credit a { color: inherit; }
.feature-plate .plate-photo, .recipe-plate .plate-photo { filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.photo-credits { columns: 2 320px; column-gap: 48px; padding: 0; list-style: none; }
.photo-credits li { break-inside: avoid; margin-bottom: 12px; font-size: .95rem; color: var(--ink-2); }
.photo-credits a { font-weight: 600; }
.recipe-plate .plate-photo svg, .feature-plate .plate-photo svg, .card-plate .plate-photo svg { filter: none; height: 100%; }

/* ловушка для ботов */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== Согласие и cookie ===== */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); font-weight: 400; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--berry); }
.subscribe form { flex-wrap: wrap; }
.consent-small { flex-basis: 100%; font-size: .82rem; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 18px 22px; border-radius: 18px;
  background: var(--ink); color: #FBEBD6; box-shadow: 0 16px 40px -12px rgba(43,24,16,.5); }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .95rem; }
.cookie-banner a { color: var(--honey); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-ghost { color: #FBEBD6; box-shadow: inset 0 0 0 1.5px rgba(251,235,214,.6); }
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.table-scroll { overflow-x: auto; margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--honey-soft); }
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--berry); text-decoration: underline; cursor: pointer; }

/* ===== Журнал и словарь ===== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 20px; }
.article-card { display: flex; gap: 22px; align-items: center; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.article-card:hover { border-color: var(--crust); transform: translateY(-2px); }
.article-plate { flex: none; width: 120px; }
.article-card-text { display: grid; gap: 8px; min-width: 0; }
.article-card-title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.article-card-lead { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.article-card-meta { color: var(--crust); font-size: .85rem; font-weight: 500; }
.article-meta { color: var(--ink-2); font-size: .95rem; }
.article-meta a { color: var(--berry); }
.article-body { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 48px; align-items: start; }
.article-toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); padding: 18px 20px; border-radius: 16px; background: var(--honey-soft); }
.article-toc h2 { font-size: 1rem; margin-bottom: 10px; }
.article-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .92rem; }
.article-toc a { color: var(--ink); }
.article-text h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 40px 0 14px; scroll-margin-top: 96px; }
.article-text h2:first-child { margin-top: 0; }
.article-text p { line-height: 1.65; }
.article-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 72ch; }
.article-links a { font-weight: 600; color: var(--berry); }
.article-links span { display: block; color: var(--ink-2); font-size: .95rem; margin-top: 2px; }
.recipe-words { margin-top: 40px; display: grid; gap: 16px; }
.recipe-words h2 { font-size: 1.4rem; }
.word-list { margin: 0; display: grid; gap: 12px; }
.word-list > div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 4px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.word-list dt { font-weight: 600; }
.word-list dt a { color: var(--berry); }
.word-list dd { margin: 0; color: var(--ink-2); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.letters a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-family: var(--display); font-weight: 600; color: var(--ink); text-decoration: none; }
.letters a:hover { border-color: var(--berry); color: var(--berry); }
.glossary { display: grid; gap: 36px; }
.glossary-letter { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; scroll-margin-top: 96px; }
.glossary-letter h2 { font-size: 2.2rem; color: var(--crust); }
.term-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 40px; align-items: start; }
.term-aside h2 { font-size: 1.05rem; margin-bottom: 12px; }
.cuisine-extras { display: grid; gap: 20px; }
.cuisine-extras .grid-title { margin-bottom: 0; }
@media (max-width: 860px) {
  .article-body, .term-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-toc { position: static; }
}
@media (max-width: 560px) {
  .article-plate { width: 84px; }
  .word-list > div { grid-template-columns: 1fr; }
  .glossary-letter { grid-template-columns: 1fr; gap: 8px; }
}
