/* Общий облик сайта: цвета, шрифты, шапка, основная колонка, путеводитель по сайту и подвал */
/* avoid-ai-design-ignore-file: SD1 — тёплый кремовый фон и каштановые/абрикосовые акценты — смягчённая палитра самого сайта
   (абрикосовый логотип «Хорошая кухня», каштановые ссылки старых страниц); выбрана владельцем 19.11.2026, не дефолт */

@font-face { font-family: Literata; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vf-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Literata; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vf-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Literata; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vfi-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Literata; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vfi-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/data/fonts/onest-vf-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/data/fonts/onest-vf-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Пока веб-шрифты не пришли (первый заход, round15 L2), текст набран запасным шрифтом той же ширины и высоты строки:
   Times New Roman и Arial (на Linux — их двойники Liberation) растянуты под Literata и Onest, и при подмене строки не
   переносятся иначе — страница почти не сдвигается. Ширина — по тексту страниц нового облика (work/release/fonts/measure.mjs),
   высота — из самих шрифтов (Literata 1,177/0,308, Onest 0,970/0,305 кегля). ponytail: на Android (нет Times и Arial)
   запасной — свой шрифт системы без подгонки; подогнать под Roboto и Noto Serif, если сдвиги там заметят */
@font-face { font-family: 'Literata fb'; font-weight: 100 550; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); size-adjust: 118.68%; ascent-override: 99.18%; descent-override: 25.95%; line-gap-override: 0%; }
@font-face { font-family: 'Literata fb'; font-weight: 551 1000; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Liberation Serif Bold'), local('LiberationSerif-Bold'); size-adjust: 114.25%; ascent-override: 103.02%; descent-override: 26.96%; line-gap-override: 0%; }
@font-face { font-family: 'Onest fb'; font-weight: 100 550; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); size-adjust: 102.86%; ascent-override: 94.30%; descent-override: 29.65%; line-gap-override: 0%; }
@font-face { font-family: 'Onest fb'; font-weight: 551 1000; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'); size-adjust: 98.95%; ascent-override: 98.03%; descent-override: 30.82%; line-gap-override: 0%; }

:root {
	--cream: #FBF7EE;    /* фон страницы */
	--paper: #FFFDF9;    /* поля, паспарту фото */
	--apricot: #FCE8C4;  /* единственная подложка — подбор по продуктам */
	--apricot-l: #FDF1DC;/* наведение */
	--chestnut: #8B3A16; /* ссылки, кнопки: 7,2 на креме, 6,4 на абрикосе */
	--cherry: #6A1E12;   /* заголовки */
	--bright: #B84A1E;   /* наведение на креме */
	--ink: #33271F;      /* текст */
	--muted: #6B5E54;    /* подписи: 5,9 на креме, 5,2 на абрикосе */
	--honey: #E2B566;    /* только тонкие украшения: отточия, двойная линейка */
	--line: #E6D7BE;     /* волоски */
	--shadow: rgba(106, 30, 18, .14);
	--display: Literata, 'Literata fb', Georgia, 'Times New Roman', serif;   /* шрифты «Журнала» (решение владельца 19.11): Literata — заголовки и отрывки */
	--text: Onest, 'Onest fb', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;   /* Onest — меню, кнопки, подписи, поля */
	--wrap: 1200px; --gut: clamp(16px, 4vw, 40px);
	--side: 300px; --gap: 32px; --sec: clamp(56px, 7vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--chestnut); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--bright); }
:focus-visible { outline: 3px solid var(--chestnut); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.n11-wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.n11-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.n11-skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); font-weight: 600; }
.n11-skip:focus { top: 8px; }

.n11-meta { margin-top: 6px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.n11-meta a { color: var(--muted); }
.n11-meta a:hover { color: var(--bright); }
.n11-meta:empty { display: none; }

.n11-btn, .n11-more { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid var(--chestnut); border-radius: 3px; font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; }
.n11-btn { background: var(--chestnut); color: #fff; }
.n11-btn:hover { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.n11-more { margin-top: 36px; background: transparent; color: var(--chestnut); }
.n11-more:hover { background: var(--apricot-l); color: var(--cherry); }
.n11-more:disabled { cursor: progress; opacity: .7; }

input[type="search"] { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--muted); border-radius: 3px; background: var(--paper); font-size: 1rem; }
input::placeholder { color: var(--muted); }

/* ——— шапка: логотип слева, поиск справа, одна тихая строка меню ——— */
.n11-head { padding-top: clamp(12px, 2.4vw, 26px); }
.n11-head__top { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }
.n11-logo { flex: 0 1 460px; min-width: 0; }
.n11-logo img { width: 100%; max-width: 460px; }
.n11-search { display: flex; flex: 0 1 340px; }
.n11-search input { border-right: 0; border-radius: 3px 0 0 3px; }
.n11-search button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 0 3px 3px 0; background: var(--chestnut); color: #fff; font-weight: 600; cursor: pointer; }
.n11-search button:hover { background: var(--cherry); }
/* подсказки рецептов под полем поиска по сайту (data/js/site-search.js, fsm/site-search-suggest.json): обёртка поля —
   как у прежней шапки (.site-search-field), здесь не мешает раскладке; список — во всю ширину строки поиска, под ней */
.n11-search { position: relative; }
.n11-search .site-search-field { display: contents; }
.site-suggest { position: absolute; z-index: 35; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--paper); border: 1px solid var(--chestnut); border-radius: 3px; box-shadow: 0 18px 30px -18px var(--shadow); }
.site-suggest a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px; color: var(--chestnut); font-size: 1rem; line-height: 1.25; text-decoration: none; }
.site-suggest img { flex: none; width: 54px; height: 36px; object-fit: cover; background: var(--apricot); }
.site-suggest [aria-selected="true"] a, .site-suggest a:hover { background: var(--apricot-l); color: var(--cherry); }
.n11-menu, .n11-lupa { display: none; }   /* лупа поиска — только на телефоне */

.n11-nav { margin-top: clamp(10px, 1.6vw, 18px); }
/* строка разделов — сеткой в две строки, пункты по столбцам сверху вниз (решение владельца 21.11.2026: значок слева, надписи
   крупнее, вторая строка не страшна, но столбцы ровные); черта между рецептами и сайтом — во всю высоту */
.n11-nav__list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; align-items: center; column-gap: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.n11-nav__list > li { position: relative; }
.n11-nav a, .n11-drop summary { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-size: 1.125rem; font-weight: 500; text-decoration: none; }
.n11-nav a:hover, .n11-drop summary:hover { color: var(--bright); text-decoration: underline; }
.n11-nav__gap { grid-row: span 2; align-self: stretch; width: 1px; margin-block: 12px; background: var(--honey); }
.n11-drop summary::after, .n11-menu summary::after { content: ""; flex: none; width: .4em; height: .4em; margin-left: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15em) rotate(45deg); }
.n11-drop[open] summary::after, .n11-menu[open] summary::after { transform: translateY(.1em) rotate(-135deg); }
.n11-drop__panel { position: absolute; z-index: 30; top: 100%; right: -16px; min-width: 250px; padding: 8px 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 30px -18px var(--shadow); }
.n11-drop__panel a { display: flex; padding: 0 18px; color: var(--chestnut); white-space: nowrap; }
.n11-drop__panel a:hover { background: var(--apricot-l); }
/* значки разделов слева от названия (меню телефона, строка разделов, «Ещё»): /data/img/razdel/*.png — маской цветом заголовков,
   как значки рецепта; размер — от шрифта пункта (26 px в меню телефона, 28 px в строке разделов) */
.n11-ic::before { content: ""; flex: none; width: 1.55em; height: 1.55em; margin-right: .55em; background: var(--cherry); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ——— основная колонка ——— */
.n11-spread { margin-top: clamp(28px, 4vw, 52px); }
.n11-spread > * { min-width: 0; }

/* рецепт дня: заголовок Literata, фото в белом паспарту с лёгким наклоном и тёплой тенью — единственное, что наклонено */
.n11-day { container-type: inline-size; }
.n11-kicker { font-size: .9375rem; font-weight: 600; color: var(--chestnut); }
.n11-kicker__when { font-weight: 400; color: var(--muted); }   /* дата публикации рецепта дня, не сегодняшняя */
.n11-kicker__when::before { content: "·"; content: "·" / ""; margin-right: .45em; }   /* точку не читать вслух */
.n11-day__title { margin-top: 10px; font: 480 clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem)/1.12 var(--display); letter-spacing: -.02em; color: var(--cherry); }
.n11-day__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.n11-day__body { display: grid; gap: 28px; margin-top: 28px; }
.n11-day__print { display: block; width: min(100%, 440px); padding: 10px; background: var(--paper); box-shadow: 0 1px 2px var(--shadow), 0 24px 36px -22px rgba(106, 30, 18, .42); rotate: -1.6deg; }
.n11-day__print img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.n11-day__lead { font-size: 1.0625rem; line-height: 1.65; }
.n11-by { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 22px; }
.n11-by__name { font-weight: 600; }
.n11-by .n11-meta { margin: 0; }
@container (min-width: 640px) {
	.n11-day__body { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; align-items: start; }
	.n11-day__print { margin-top: 6px; }
}

/* паспарту (решение владельца 21.11.2026): каждое фото — отпечаток в белом поле на кремовом столе, само, без правки текстов.
   Фото — любая картинка в <main>, кроме значков (svg, gif, /data/img/, /image/), картинок в заголовке, рекламы и рецепта
   дня (у него своё паспарту с наклоном, выше). Поле — 3,5 % ширины, не тоньше 4 и не толще 14 px; добавляется снаружи
   фото (content-box) — фото не растягивается. Волосок «среза окна» — фон на 1 px шире фото (он же место фото, пока оно
   грузится); тень — по той же мерке. Ширина фото --w: у карточек — их рамка (container ниже), у миниатюр списков — свой
   размер (в файлах страниц), у фото в тексте — атрибут width (Chrome 133+), иначе — экран; и не шире места (100 %). */
main img:not(h1 img, .n11-day img, .n11-ad img, [src=""], [src*=".svg" i], [src*=".gif" i], [src*="/data/img/"], [src*="/image/"]) {
	--mat: clamp(4px, .035 * min(var(--w, 100cqi), 100%), 14px);
	--m: clamp(4px, .035 * var(--w, 100cqi), 14px);   /* та же мерка без процентов — для тени */
	box-sizing: content-box; max-width: calc(100% - 2 * var(--mat)); padding: var(--mat); border-radius: 1px;
	background: linear-gradient(rgba(106, 30, 18, .17) 0 0) -1px -1px / calc(100% + 2px) calc(100% + 2px) no-repeat content-box padding-box var(--paper);
	box-shadow: 0 0 0 1px rgba(106, 30, 18, .07), 0 1px 2px rgba(106, 30, 18, .1), 0 calc(var(--m) * var(--lift, 1)) calc(var(--m) * 1.7 * var(--lift, 1)) calc(-1 * var(--m)) rgba(106, 30, 18, .4);
}
/* ponytail: в Safari и Firefox (нет attr() с единицей) фото в тексте уже своего места берут поле от места, тень — от экрана */
@supports (width: attr(width px)) { main img[width] { --w: min(100cqi, attr(width px, 100cqi)); } }
main :is(a, li):hover { --lift: 1.5; }   /* наведение: отпечаток чуть выше — только тень, без движения */
.n11-card__img, .n11-best__img, .n11-art__img { display: block; container-type: inline-size; }

/* реклама: подписана и отчёркнута волоском */
.n11-ad { margin-top: var(--sec); }
.n11-ad__label { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .875rem; color: var(--muted); }
.n11-ad__label::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
/* место под рекламу растягивается, когда реклама пришла (решение владельца 22.11.2026; fsm/ad-slot.json, скрипт в dFoot):
   пока её нет — ни запаса высоты, ни подписи, ни отступов; пришла — подпись «Реклама» над ней и отступы */
main .n11-ad:not(.n11-ad--filled) { margin-top: 0; margin-bottom: 0; }   /* main — сильнее отступов рекламы отзывов в рецепте и статье */
.n11-ad:not(.n11-ad--filled) .n11-ad__label { display: none; }

/* разделы основной колонки: заголовок Literata, без плашек и линеек — отделяет воздух */
.n11-sec { margin-top: var(--sec); }
.n11-h { font: 520 clamp(1.625rem, 1.25rem + 1.3vw, 2.25rem)/1.15 var(--display); letter-spacing: -.015em; color: var(--cherry); }

/* свежие рецепты: два столбца, вся карточка — ссылка */
.n11-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 44px 32px; margin-top: 28px; }
.n11-card { position: relative; }
.n11-card__img img, .n11-best__img img, .n11-art__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.n11-card__name { margin-top: 14px; font-family: var(--display); font-size: 1.25rem; font-weight: 560; line-height: 1.25; color: var(--cherry); }
.n11-card__name a::after { content: ""; position: absolute; inset: 0; }
.n11-card:hover .n11-card__name a { text-decoration: underline; text-decoration-thickness: 1px; }
.n11-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: 1rem; line-height: 1.55; }
.n11-card__text:empty { display: none; }
.n11-card .n11-meta a { position: relative; z-index: 1; }   /* ссылка на раздел — поверх ссылки карточки */

/* самые обсуждаемые: маленькое фото, название, число отзывов */
.n11-best__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 32px; margin-top: 22px; }
.n11-best__item { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 14px; }
.n11-best__name { font-family: var(--display); font-size: 1.125rem; font-weight: 560; line-height: 1.3; color: var(--cherry); }
.n11-best__name a::after { content: ""; position: absolute; inset: 0; }
.n11-best__item:hover .n11-best__name a { text-decoration: underline; text-decoration-thickness: 1px; }
.n11-best .n11-meta a { position: relative; z-index: 1; }

/* статьи: строками — фото слева, заголовок Literata, отрывок */
.n11-arts__list { margin-top: 12px; }
.n11-art { position: relative; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; padding-block: 20px; }
.n11-art__img { grid-row: 1 / span 2; }
.n11-art__name { font: 540 1.5rem/1.22 var(--display); color: var(--cherry); }
.n11-art__name a::after { content: ""; position: absolute; inset: 0; }
.n11-art:hover .n11-art__name a { text-decoration: underline; text-decoration-thickness: 1px; }
.n11-art__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 8px; font-size: 1rem; line-height: 1.55; }

/* ——— путеводитель: подбор по продуктам, разделы с числом рецептов, подборки ——— */
.n11-guide { font-size: 1rem; line-height: 1.45; }
.n11-guide > * + * { margin-top: 22px; }
.n11-side-h { font: 540 1.375rem/1.2 var(--display); color: var(--cherry); }

.n11-find { padding: 16px 16px 6px; background: var(--apricot); border-radius: 3px; }
.n11-find__row { display: flex; gap: 8px; margin-top: 10px; }
.n11-find__row input { border-color: var(--chestnut); }
.n11-find__row .n11-btn { flex: none; min-height: 46px; padding: 0 16px; }
.n11-find__more { display: inline-flex; align-items: center; min-height: 36px; font-size: .9375rem; }
.n11-find__more:hover { color: var(--cherry); }   /* яркий на абрикосе мелким шрифтом — мало контраста */

.n11-toc__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.n11-toc__cap { font: 400 .875rem var(--text); color: var(--muted); }
.n11-toc__list { margin-top: 6px; }
.n11-row { display: flex; align-items: baseline; min-height: 34px; padding: 6px 8px; margin-inline: -8px; color: var(--ink); text-decoration: none; border-radius: 2px; }
.n11-row__name { color: var(--chestnut); }
.n11-row__dots { flex: 1 1 1em; min-width: 1em; margin: 0 .4em; position: relative; top: -.3em; border-bottom: 2px dotted var(--honey); }
.n11-row__n { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.n11-row:hover { background: var(--apricot-l); }
.n11-row:hover .n11-row__name { color: var(--bright); text-decoration: underline; text-underline-offset: .18em; }
.n11-toc__sub { display: flex; flex-wrap: wrap; gap: 0 18px; margin: -4px 0 0; padding-left: 1em; }
.n11-toc__sub a { display: inline-flex; align-items: center; min-height: 30px; font-size: .9375rem; }
.n11-toc__all { margin-top: 8px; padding-top: 6px; border-top: 3px double var(--honey); }

.n11-sel ul { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 6px; }
.n11-sel a { display: inline-flex; align-items: center; min-height: 34px; }

/* ——— подвал ——— */
.n11-foot { margin-top: var(--sec); padding-block: 40px 96px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
/* «Новые рецепты и связь» шире средних: «Политика конфиденциальности» со значком в строку, под ссылками — виджет ВКонтакте */
.n11-foot__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 28px 36px; }
.n11-foot__about img { width: 100%; max-width: 280px; }
.n11-foot__about p { margin-top: 12px; color: var(--muted); }
/* строка о сайте (владелец 21.11.2026: «цифры крупно, чтобы человек сразу видел») — столбиком, как в тетради: число шрифтом и
   цветом заголовков, правые края вровень (общие столбцы — subgrid), подпись рядом по одной линии с числом */
.n11-foot__stats { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin-top: 8px; }
.n11-foot__stats li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
.n11-foot__stats b { font: 600 1.75rem/1.2 var(--display); color: var(--cherry); text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.n11-foot__stats span { color: var(--ink); }
.n11-foot h2 { margin-bottom: 6px; font-size: 1rem; font-weight: 700; color: var(--cherry); }
/* ссылки со значками (просьба владельца 21.11.2026): значок 22 px у первой строки — длинное название на телефоне переносится */
.n11-foot li a { display: inline-flex; align-items: flex-start; min-height: 36px; padding-block: 6px; }
.n11-foot .n11-ic::before { width: 1.375em; height: 1.375em; margin: .0625em .5em 0 0; }
/* у виджета ВКонтакте свои поля 13 px — выносим их наружу, чтобы его содержимое стояло вровень со значками и краем столбца */
.n11-foot__vk { margin: 16px -13px 0; max-width: 446px; }
.n11-foot__copy { margin-top: 28px; padding-top: 20px; max-width: 86ch; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.55; color: var(--muted); }

/* «Наверх»: тихая кнопка справа внизу — только когда читатель листает вверх ниже первого экрана (показывает и поднимает над
   полоской cookie скрипт из s11Footer); спрятанная не ловит касаний, но остаётся в порядке Tab и видна в фокусе; переход
   мгновенный — на /tort/ плавная прокрутка тянулась бы долго. На телефоне — круг 44×44 со стрелкой, слово «Наверх» —
   имя для чтения вслух */
.n11-up { position: fixed; z-index: 40; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: 0 18px; border: 2px solid var(--chestnut); border-radius: 3px; background: var(--paper); color: var(--chestnut); font: 600 1rem/1.2 var(--text); text-decoration: none; box-shadow: 0 8px 20px -10px var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.n11-up::before { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 2px 0 0 2px; transform: translateY(.15em) rotate(45deg); }
.n11-up--on, .n11-up:focus-visible { opacity: 1; pointer-events: auto; }
.n11-up:hover { background: var(--apricot-l); color: var(--cherry); }
@media (max-width: 760px) {
	.n11-up { justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font-size: 0; }
	.n11-up::before { width: 12px; height: 12px; border-width: 2.5px 0 0 2.5px; transform: translateY(3px) rotate(45deg); }
}
@media print { .n11-up { display: none; } }

/* полоска cookie */
.d-cookie { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 760px; margin-inline: auto; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px -12px var(--shadow); font-size: .9375rem; }
.d-cookie[hidden] { display: none; }
.d-cookie button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 3px; background: var(--chestnut); color: #fff; font-weight: 600; cursor: pointer; }

/* ——— компьютер: путеводитель справа во всю высоту основной колонки ——— */
@media (min-width: 1024px) {
	.n11-spread { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--side) + var(--gap)); grid-template-rows: repeat(6, auto) 1fr; column-gap: var(--gap); }
	.n11-spread > * { grid-column: 1; }
	.n11-side { grid-column: 2; grid-row: 1 / -1; padding-left: var(--gap); border-left: 1px solid var(--line); }
	.n11-ad--end { margin-bottom: 8px; }
}
@media (min-width: 1280px) { :root { --side: 330px; --gap: 40px; } }
/* едет рядом, только если окно выше путеводителя (замер — work/design/v11/sticky.mjs: с подсказками 786 px при ширине 1366
   и 847 при 1024, без них 676 и 702);
   в окне пониже подсказки-продукты прячутся, а в совсем низком путеводитель просто прокручивается со страницей */
@media (min-width: 1024px) and (min-height: 720px) {
	.n11-guide { position: sticky; top: 20px; }
}
@media (min-width: 1024px) and (min-height: 720px) and (max-height: 879.98px) {
	.n11-guide { top: 14px; }
}

/* узкий ПК: подпись «Супы, соусы, напитки и прочее» встаёт в две строки — подразделы под ней прячутся (подпись их
   называет, в меню они есть), иначе путеводитель в окне 1024×768 вылезает за край */
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.n11-toc__sub { display: none; }
}

/* строка меню на узком ПК: подглавы «Прочего» уходят — они в путеводителе рядом */
@media (min-width: 1024px) and (max-width: 1199.98px) { .n11-nav__sub { display: none; } }

/* ——— планшет и телефон: меню в одной кнопке, путеводитель после рецепта дня ——— */
@media (max-width: 1023.98px) {
	.n11-head__top { flex-wrap: wrap; gap: 12px 16px; }
	.n11-logo { flex: 0 1 320px; }
	.n11-search { order: 1; flex: 1 1 220px; max-width: 360px; margin-left: auto; }
	.n11-menu { display: block; order: 2; position: relative; flex: none; }
	.n11-menu summary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border: 2px solid var(--chestnut); border-radius: 3px; color: var(--chestnut); font-weight: 600; }
	.n11-menu[open] summary { background: var(--apricot-l); }
	.n11-menu__panel { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: max-content; max-width: 92vw; display: grid; grid-template-columns: repeat(2, max-content); gap: 0 28px; padding: 10px 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 30px -18px var(--shadow); }
	.n11-menu__panel a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
	.n11-nav { display: none; }
	.n11-spread { margin-top: 20px; padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
	.n11-foot__cols { grid-template-columns: 1fr 1fr; }
	.n11-foot__about { grid-column: 1 / -1; }
	.n11-foot li a { min-height: 44px; padding-block: 10px; }
	.n11-side { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
	.n11-row, .n11-sel a, .n11-find__more, .n11-toc__sub a { min-height: 44px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
	.n11-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: start; }
	.n11-guide > * + * { margin-top: 0; }
	.n11-find { grid-column: 1 / -1; }
	.n11-find__row { max-width: 560px; }
}

/* ——— телефон ——— */
@media (max-width: 760px) {
	/* в строке шапки логотип, лупа и «Меню»; поиск по сайту — строкой под ней, только когда открыт лупой (решение владельца
	   21.11: вверху одно поле — подбор по продуктам); на странице поиска открыт сразу */
	.n11-head__top { column-gap: 8px; }
	.n11-logo { flex: 1 1 0; max-width: 320px; }
	.n11-lupa { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; margin-left: auto; padding: 0; border: 2px solid var(--chestnut); border-radius: 3px; background: none; color: var(--chestnut); cursor: pointer; }
	.n11-lupa[aria-expanded="true"] { background: var(--apricot-l); }
	.n11-search { display: none; order: 3; flex: 1 1 100%; max-width: none; }
	.n11-search--open { display: flex; }
	.n11-day__print { padding: 7px; rotate: -1deg; margin-inline: 4px; width: calc(100% - 8px); }
	.n11-day__lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }   /* 3 строки — «Читать рецепт» целиком на первом экране телефона */
	.n11-day .n11-btn { width: 100%; }
	.n11-meta a { display: inline-block; padding-block: 12px; margin-block: -12px; }   /* палец попадает: 44 px по высоте */
	.n11-grid { grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
	.n11-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
	.n11-card__name { margin-top: 0; font-size: 1.0625rem; }
	.n11-card__text { display: none; }
	.n11-best__item { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.n11-art { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "name name" "img text"; grid-template-rows: none; gap: 10px 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
	.n11-art__img { grid-area: img; grid-row: auto; }
	.n11-art__name { grid-area: name; font-size: 1.375rem; }
	.n11-art__text { grid-area: text; margin-top: 0; }
	.n11-more { width: 100%; }
}
/* «Меню» в два столбца шириной по названиям со значками (494 px) — от 560 px окна; уже — в один столбец, как раньше на телефоне */
@media (max-width: 559.98px) {
	.n11-menu__panel { width: min(92vw, 420px); grid-template-columns: 1fr; }
	.n11-menu__panel ul + ul { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
	.n11-foot__cols { grid-template-columns: 1fr; }   /* ссылки со значками в два столбца на телефоне переносились бы через одну */
}
@media (max-width: 420px) {
	.n11-art__text { -webkit-line-clamp: 2; font-size: .9375rem; }
	.n11-foot__cols { gap: 24px 20px; }
}

/* отрывки — книжным шрифтом, как в «Журнале»: Literata чуть мельче Onest на глаз, поэтому кегль не меньше 17 px */
.n11-day__lead, .n11-card__text, .n11-art__text { font-family: var(--display); font-weight: 400; }

/* ——— меню серии библиотеки (tpl/lib-series.tpl.php; рецепты и статьи серий /lib/5, 13, 16, 17): строки с малым фото
   в паспарту, текущий — без ссылки, цветом заголовков на подложке наведения (у рабочего сайта он тоже подсвечен). На ПК — узкой колонкой слева от текста (текст стоит
   по центру, как на прочих страницах, пока слева хватает места; в окне 1024 — сдвинут вправо); на планшете и телефоне —
   после текста ——— */
.n11-series { margin-top: var(--sec); }
.lib-series-head { padding-bottom: 4px; border-bottom: 3px double var(--honey); font: 540 1.25rem/1.25 var(--display); color: var(--cherry); }
.lib-series-head a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.lib-series-head a:hover { color: var(--bright); text-decoration: underline; text-decoration-thickness: 1px; }
.lib-series li { border-bottom: 1px solid var(--line); }
.lib-series-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 6px; font-size: .9375rem; line-height: 1.35; overflow-wrap: anywhere; }
a.lib-series-item { text-decoration: none; }
a.lib-series-item:hover span { color: var(--bright); text-decoration: underline; }
.lib-series li[aria-current] .lib-series-item { margin-inline: -8px; padding-inline: 8px; border-radius: 2px; background: var(--apricot-l); font-weight: 600; color: var(--cherry); }
main .lib-series img { --w: 56px; flex: none; width: 56px; height: 45px; object-fit: cover; }
@media (min-width: 1024px) {
	.n11-wrap.n11-spread.n11-spread--series { display: grid; max-width: calc(var(--wrap) + 2 * var(--gut)); grid-template-columns: minmax(190px, 1fr) minmax(0, 42rem) minmax(0, 1fr); grid-template-rows: repeat(5, auto) 1fr; column-gap: 40px; }
	.n11-spread--series > * { grid-column: 2; }
	.n11-spread--series > .n11-series { grid-column: 1; grid-row: 1 / -1; justify-self: end; width: 100%; max-width: 240px; margin-top: 0; }
}
@media print { .n11-series { display: none; } }
