/*
Theme Name: dds_berlusconirest.ru
Author: Романова Инна Фёдоровна
Description: Тема информационного сайта о рецептах итальянской кухни в стилистике кухонной тетради: кремовая бумага, кальки, скотч и рисунки тушью.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: eshpst
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/caveat-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/caveat-latin-700-normal.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: "Neucha"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/neucha-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Neucha"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/neucha-latin-400-normal.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: "PT Sans Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-narrow-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-narrow-latin-400-normal.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: "PT Sans Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-narrow-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-narrow-latin-700-normal.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; }

/* ---------- Переменные ---------- */
:root {
	--paper: #F4EDDD;
	--ink: #2B2620;
	--faded: #8A7A62;
	--tomato: #C0392B;
	--olive: #5A6B3B;
	--olive-deep: #34402A;
	--tomato-deep: #7A2418;
	--cream: #F4EDDD;
	--card: #EBDEBF;
	--strip: #EBDFC7;
	--kalka: #EFE7D3;
	--note: #F2E3A6;
	--tape: rgba(222, 204, 158, .68);
	--grid: rgba(138, 122, 98, .17);
	--sidebar: #E9DFC6;
	--f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
	--f-note: "Neucha", "Comic Sans MS", "Segoe Print", cursive;
	--f-text: "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	--wave-olive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%235A6B3B' stroke-width='1.8'/%3E%3C/svg%3E");
	--wave-tomato: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23C0392B' stroke-width='1.8'/%3E%3C/svg%3E");
	--wave-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23F4EDDD' stroke-width='1.8'/%3E%3C/svg%3E");
	--grid-bg: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 22px 22px;
}

/* ---------- Скрытие через атрибут hidden (до основных стилей) ---------- */
.cookie-note[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	position: relative;
	overflow-x: hidden;
	color: var(--ink);
	background-color: var(--paper);
	background-image:
		radial-gradient(ellipse 260px 180px at 68% 3%, rgba(255, 255, 255, .55), transparent 70%),
		radial-gradient(ellipse 140px 110px at 93% 62%, rgba(176, 140, 82, .13), transparent 70%),
		radial-gradient(ellipse 90px 70px at 6% 58%, rgba(176, 140, 82, .12), transparent 70%),
		url("images/paper.jpg");
	background-repeat: no-repeat, no-repeat, no-repeat, repeat;
	font-family: var(--f-text);
	font-size: 1.0625rem;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--tomato); text-decoration: none; background-image: var(--wave-tomato); background-repeat: repeat-x; background-position: 0 100%; background-size: 16px 5px; padding-bottom: 3px; transition: color .2s; }
a:hover, a:focus-visible { color: var(--olive-deep); background-image: var(--wave-olive); }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--olive); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-hand); font-weight: 700; line-height: 1.15; margin: 1.3em 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.85rem; }
h4 { font-size: 1.55rem; }
h5, h6 { font-size: 1.35rem; }
p, li, td, th, dd, dt, h1, h2, h3, h4, h5, h6, .card-title, .widget { overflow-wrap: break-word; hyphens: auto; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--olive-deep); color: var(--cream); padding: .5em 1em; background-image: none; }
.skip-link:focus { top: 12px; }

.shell { width: min(92%, 1240px); margin-inline: auto; }

/* ---------- Декор по краям страницы (вырезки из макета) ---------- */
.edge-decor { display: none; }
@media (min-width: 1360px) {
	.edge-decor { display: block; position: absolute; z-index: 0; pointer-events: none; mix-blend-mode: multiply; }
	.edge-decor--wheat { left: 0; top: 150px; width: 82px; }
	.edge-decor--slices { left: 0; top: 440px; width: 72px; }
	.edge-decor--cherry { right: 0; top: 210px; width: 82px; }
	.edge-decor--basil { right: 0; top: 380px; width: 78px; }
	.edge-decor--spaghetti { right: 0; top: 560px; width: 92px; }
	.edge-decor--sketch { right: 0; top: 1080px; width: 120px; }
}
.site-header, .site-main, .site-footer { position: relative; }

/* ---------- Шапка ---------- */
.site-header { padding: 2.2rem 0 1.4rem; }
.header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 1.2rem; min-width: 0; }
.brand-mark { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; box-shadow: inset 0 0 0 4px rgba(244, 237, 221, .18); background-image: none; padding: 0; }
.brand-mark svg { width: 74px; height: 74px; display: block; }
.brand-mark .brand-logo, .brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.brand-text { min-width: 0; }
.site-title { hyphens: manual; font-family: var(--f-hand); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; margin: 0; transform: rotate(-1deg); }
.site-title a { color: var(--ink); background-image: none; padding: 0; }
.site-title a:hover { color: var(--tomato-deep); }
.site-desc { font-family: var(--f-note); font-size: 1.02rem; line-height: 1.35; color: var(--ink); margin: .55rem 0 0; max-width: 46ch; }

.nav-toggle { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
.main-nav li { margin: 0; }
.main-nav a {
	display: block;
	min-width: 168px;
	padding: .3rem 1.4rem .38rem 1rem;
	font-family: var(--f-hand);
	font-size: 1.55rem;
	line-height: 1.15;
	color: var(--ink);
	background: var(--strip);
	clip-path: polygon(0 4%, 3% 0, 52% 6%, 100% 0, 98% 52%, 100% 100%, 48% 94%, 2% 100%, 0 56%);
	filter: drop-shadow(0 2px 2px rgba(43, 38, 32, .18));
	transition: transform .2s, background .2s;
}
.main-nav li:nth-child(2n) a { transform: rotate(-1deg); }
.main-nav li:nth-child(2n+1) a { transform: rotate(.6deg); }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--kalka); transform: translateX(-6px) rotate(0); color: var(--tomato-deep); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a {
	background-image: var(--wave-tomato);
	background-color: var(--strip);
	background-repeat: repeat-x;
	background-size: 18px 6px;
	background-position: 1rem calc(100% - 4px);
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-family: var(--f-note); font-size: .98rem; color: var(--faded); margin: .2rem 0 1.4rem; display: inline-block; background: var(--kalka); padding: .35rem .9rem; transform: rotate(-.5deg); box-shadow: 0 1px 3px rgba(43, 38, 32, .14); }
.breadcrumbs a { color: var(--olive-deep); }
.breadcrumbs .sep { margin: 0 .35em; color: var(--tomato); }
.breadcrumbs span:last-child { color: var(--ink); }

/* ---------- Общие элементы: заголовки секций, кнопки, скотч ---------- */
.sec-title { font-family: var(--f-hand); font-size: clamp(2.2rem, 3.6vw, 3.1rem); margin: 0 0 1.4rem; line-height: 1.05; display: inline-block; padding-bottom: .55rem; background: var(--wave-olive) repeat-x 0 100% / 22px 7px; }
.sec-title--center { display: table; margin-inline: auto; }
.sec-title--light { color: var(--cream); background-image: var(--wave-cream); }

.strip-btn {
	display: inline-block;
	padding: .38rem 1.25rem .45rem;
	font-family: var(--f-hand);
	font-size: 1.3rem;
	line-height: 1.1;
	color: var(--cream);
	background: var(--tomato);
	border: 0;
	cursor: pointer;
	clip-path: polygon(0 8%, 4% 0, 50% 5%, 97% 0, 100% 45%, 98% 100%, 55% 94%, 3% 100%, 1% 50%);
	filter: drop-shadow(0 2px 2px rgba(43, 38, 32, .25));
	transition: transform .2s, background-color .2s;
}
.strip-btn:hover, .strip-btn:focus-visible { color: var(--cream); background: var(--tomato-deep); transform: translateY(-2px) rotate(-1deg); }
.strip-btn--olive { background: var(--olive); }
.strip-btn--olive:hover, .strip-btn--olive:focus-visible { background: var(--olive-deep); }
a.strip-btn { background-image: none; }
a.strip-btn.strip-btn--olive { background-color: var(--olive); }

.tape { position: absolute; width: 96px; height: 28px; background: var(--tape); box-shadow: 0 1px 2px rgba(43, 38, 32, .08); z-index: 3; pointer-events: none; }

/* ---------- Главная ---------- */
.front { width: 92%; margin-inline: auto; padding-bottom: 3.5rem; }
.front-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-bottom: 3.2rem; }
.front-duo > * { min-width: 0; }

/* Блок 1 — разбор пасты по частям */
.fp-anatomy { position: relative; }
.sheet {
	position: relative;
	background: var(--grid-bg), #E9E0CA;
	padding: 2.2rem 2rem 2.4rem;
	transform: rotate(-.6deg);
	box-shadow: 0 6px 14px rgba(43, 38, 32, .12);
}
.sheet::before { content: ""; position: absolute; inset: 14px 14px 18px 18px; background: rgba(239, 231, 211, .82); box-shadow: 0 2px 4px rgba(43, 38, 32, .1); transform: rotate(.9deg); z-index: 0; }
.sheet > * { position: relative; z-index: 1; }
.sheet .tape--tr { top: -10px; right: 38px; transform: rotate(14deg); }
.sheet .tape--bl { bottom: -6px; left: -18px; transform: rotate(32deg); }
.sheet .tape--br { bottom: 8px; right: -22px; transform: rotate(-38deg); }
.clip-icon { position: absolute; top: -22px; left: 26px; width: 30px; height: 70px; z-index: 4; transform: rotate(14deg); }

.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: .4rem; }
.anatomy-plate { position: relative; aspect-ratio: 1 / 1; border-radius: 50%; background: #F7F2E6; border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 9px #F7F2E6, inset 0 0 0 10.5px rgba(43, 38, 32, .55), 0 3px 0 rgba(43, 38, 32, .1); display: grid; place-items: center; }
.anatomy-plate img { width: 78%; height: auto; aspect-ratio: 1 / 1; display: block; }
.anatomy-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.anatomy-notes li { position: relative; }
.anatomy-notes b { display: block; font-family: var(--f-hand); font-size: 1.65rem; line-height: 1; }
.anatomy-notes span { display: block; font-family: var(--f-note); font-size: .9rem; line-height: 1.3; color: var(--faded); margin-top: .25rem; }
.anatomy-notes svg { width: 52px; height: 26px; display: block; margin-top: .2rem; color: var(--olive); }
.anatomy-notes--left li { text-align: left; }
.anatomy-notes--left svg { margin-left: auto; }
.anatomy-notes--right li { text-align: right; }
.anatomy-notes--right svg { margin-right: auto; transform: scaleX(-1); }
.anatomy-notes li:nth-child(2) svg { transform: rotate(4deg); }
.anatomy-notes--right li:nth-child(2) svg { transform: scaleX(-1) rotate(4deg); }

/* Блок 2 — шкала аль денте */
.fp-dente { padding-top: 1.2rem; }
.dente-lead { font-family: var(--f-note); color: var(--faded); margin: -.4rem 0 1.4rem; max-width: 40ch; }
.dente-scale { color: var(--ink); }
.dente-scale svg { width: 100%; height: auto; display: block; }
.dente-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.05; margin-top: .3rem; }
.dente-labels span:first-child { text-align: left; }
.dente-labels span:last-child { text-align: right; }
.dente-labels .is-mark { color: var(--tomato); position: relative; padding-bottom: 1.6rem; }
.dente-labels .is-mark::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 1.2rem; background: var(--tomato); transform: translateX(-50%); }
.dente-labels .is-mark::before { content: ""; position: absolute; left: 50%; bottom: 1.05rem; border: 6px solid transparent; border-bottom: 9px solid var(--tomato); transform: translateX(-50%); }
.dente-forks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: .4rem 0 0; padding: 0; text-align: center; }
.dente-forks li { min-width: 0; }
.dente-forks img { display: block; height: 150px; width: auto; margin: 0 auto .4rem; mix-blend-mode: multiply; }
.dente-forks span { display: block; font-family: var(--f-note); font-size: .9rem; line-height: 1.3; color: var(--faded); }
.dente-forks li:nth-child(2) span { color: var(--olive-deep); }
.dente-brace { display: block; width: 100%; height: 26px; margin-top: .6rem; color: var(--olive); }
.dente-note { text-align: center; font-family: var(--f-hand); font-size: 1.85rem; margin: .2rem 0 0; }

/* Последние записи */
.fp-latest { position: relative; padding: 2.6rem 2rem 3rem; margin-bottom: 3.2rem; background: var(--grid-bg); }
.fp-latest .sec-title { margin-bottom: 2.2rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.cards > * { min-width: 0; }
.fp-latest .card:nth-child(n+4) { display: none; }
.empty-note { font-family: var(--f-note); font-size: 1.15rem; text-align: center; color: var(--faded); }

/* Карточка записи */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); padding: 1rem 1rem 1.2rem; box-shadow: 0 6px 14px rgba(43, 38, 32, .16); transition: transform .25s, box-shadow .25s; }
.card:nth-child(3n+1) { transform: rotate(-1.6deg); }
.card:nth-child(3n+2) { transform: rotate(.9deg); }
.card:nth-child(3n) { transform: rotate(-.7deg); }
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 12px 22px rgba(43, 38, 32, .2); }
.card::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: var(--tape); transform: rotate(-3deg); z-index: 2; }
.card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, #D8C9A3 50%, var(--paper) 50%); box-shadow: -2px -2px 3px rgba(43, 38, 32, .08); }
.card-thumb { display: block; overflow: hidden; background-image: none; padding: 0; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding-top: .9rem; min-width: 0; }
.card-title { font-family: var(--f-hand); font-size: 1.75rem; line-height: 1.08; margin: 0 0 .25rem; }
.card-title a { color: var(--ink); background-image: none; padding: 0; }
.card-title a:hover { color: var(--tomato); }
.card-date { font-family: var(--f-note); font-size: .95rem; color: var(--faded); margin-bottom: .45rem; }
.card-excerpt { flex: 1; font-size: 1rem; line-height: 1.45; margin-bottom: .9rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; font-size: 1.2rem; }

/* Блоки на цветном фоне */
.front-duo--boards { align-items: stretch; margin-bottom: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.board { position: relative; padding: 2.4rem 2.2rem 2.6rem; color: var(--cream); box-shadow: 0 8px 18px rgba(43, 38, 32, .2); }
.board--olive { background: var(--olive-deep); }
.board--tomato { background: var(--tomato-deep); }
.board .tape--bl { bottom: -6px; left: -26px; transform: rotate(38deg); }
.board .tape--tr { top: -8px; right: -20px; transform: rotate(34deg); }

/* Блок 3 — сроки и порядок */
.order-list { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: step; }
.order-list::before { content: ""; position: absolute; left: 31px; top: 24px; bottom: 24px; width: 2px; background: rgba(244, 237, 221, .45); }
.order-list li { position: relative; display: flex; align-items: center; gap: .9rem; width: fit-content; max-width: 100%; margin: 0 0 1.05rem; padding: .55rem 1.4rem .6rem .65rem; color: var(--ink); background: var(--kalka); clip-path: polygon(0 3%, 50% 0, 100% 4%, 99% 50%, 100% 97%, 50% 100%, 1% 96%, 0 50%); }
.order-list li:nth-child(odd) { transform: rotate(-.6deg); }
.order-list li:nth-child(even) { transform: rotate(.5deg); }
.order-list svg { flex: 0 0 auto; width: 40px; height: 40px; display: block; }
.order-list b { display: block; font-family: var(--f-hand); font-size: 1.65rem; line-height: 1.05; }
.order-list small { display: block; font-family: var(--f-note); font-size: .9rem; line-height: 1.3; color: #5E5242; }
.order-list li > div { min-width: 0; }

/* Блок 4 — справочная таблица соусов */
.fp-sauces .sec-title { display: block; text-align: center; background: none; padding-bottom: 0; margin-bottom: 1.6rem; }
.fp-sauces .sec-title span { display: inline-block; padding-bottom: .5rem; background: var(--wave-cream) repeat-x 0 100% / 22px 7px; }
.note-sheet { position: relative; background: var(--note); color: var(--ink); padding: 1.4rem 1.4rem 1.2rem; transform: rotate(-.8deg); box-shadow: 0 8px 14px rgba(0, 0, 0, .25); }
.sauce-table { width: 100%; border-collapse: collapse; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.15; }
.sauce-table th, .sauce-table td { border: 1.5px solid rgba(43, 38, 32, .55); padding: .45rem .6rem; text-align: left; vertical-align: middle; }
.sauce-table tr > *:first-child { border-left: 0; }
.sauce-table tr > *:last-child { border-right: 0; }
.sauce-table thead th { border-top: 0; border-bottom-width: 2px; font-size: 1.45rem; }
.sauce-table tbody tr:last-child td { border-bottom: 0; }
.sauce-table tbody td:first-child { color: var(--tomato-deep); }
.sauces-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.sauces-foot p { margin: 0; font-family: var(--f-note); font-size: .98rem; max-width: 30ch; color: var(--cream); }

/* ---------- Внутренние страницы ---------- */
.site-main { padding-bottom: 3.5rem; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 0 6%; align-items: start; }
.layout-single { display: block; }
.layout-single .content-area { width: 90%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.page-head h1 { margin: 0 0 .3rem; display: inline-block; padding-bottom: .5rem; background: var(--wave-olive) repeat-x 0 100% / 22px 7px; }
.page-head p { font-family: var(--f-note); color: var(--faded); margin: .4rem 0 0; }
.cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 2.2rem; padding-top: 1rem; }
.layout-single .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.entry { position: relative; background: var(--kalka); padding: 2.4rem 2.6rem 2.6rem; box-shadow: 0 6px 16px rgba(43, 38, 32, .12); }
.entry::before { content: ""; position: absolute; top: -12px; left: 40px; width: 110px; height: 28px; background: var(--tape); transform: rotate(-4deg); }
.entry-title { margin: 0 0 .4rem; font-size: clamp(2.2rem, 4vw, 3.1rem); }
.entry-meta { font-family: var(--f-note); color: var(--faded); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.entry-meta a { color: var(--olive-deep); }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 4px 10px rgba(43, 38, 32, .2); }
.entry-content { font-size: 1.12rem; line-height: 1.7; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content h2 { padding-bottom: .4rem; background: var(--wave-olive) repeat-x 0 100% / 20px 6px; display: inline-block; }
.entry-content ul { list-style: none; padding-left: 1.6em; }
.entry-content ul li { position: relative; margin-bottom: .35em; }
.entry-content ul li::before { content: ""; position: absolute; left: -1.25em; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); }
.entry-content ol li { margin-bottom: .35em; }
.entry-content ol li::marker { font-family: var(--f-hand); font-weight: 700; color: var(--olive); font-size: 1.2em; }
.entry-content blockquote { margin: 1.6em 0; padding: 1.3rem 1.6rem 1.3rem 1.8rem; background: var(--olive-deep); color: var(--cream); font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.3; transform: rotate(-.5deg); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font-family: var(--f-note); font-size: 1rem; font-style: normal; margin-top: .5rem; color: #D9CFB6; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; background: var(--note); font-size: 1rem; }
.entry-content th, .entry-content td { border: 1px solid rgba(43, 38, 32, .45); padding: .5rem .7rem; text-align: left; }
.entry-content th { font-family: var(--f-hand); font-size: 1.25rem; background: rgba(90, 107, 59, .15); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-family: var(--f-note); font-size: .92rem; color: var(--faded); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; background: #E3D8BE; padding: 1rem; font-size: .95rem; }
.entry-content hr { border: 0; height: 8px; background: var(--wave-olive) repeat-x 0 50% / 22px 7px; margin: 2em 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { margin-top: 1.6rem; font-family: var(--f-note); }
.entry-tags a { display: inline-block; margin: 0 .4rem .4rem 0; padding: .1rem .7rem; background: var(--strip); color: var(--ink); background-image: none; }
.entry-tags a:hover { background: var(--olive); color: var(--cream); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.post-nav a { display: block; background: var(--card); padding: .9rem 1.2rem; color: var(--ink); background-image: none; box-shadow: 0 3px 8px rgba(43, 38, 32, .12); }
.post-nav a:hover { background: var(--strip); color: var(--tomato); }
.post-nav small { display: block; font-family: var(--f-note); color: var(--faded); }
.post-nav strong { font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.post-nav .next { text-align: right; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem; margin: 3rem 0 0; }
.pager .page-numbers { display: inline-block; min-width: 2.6rem; padding: .25rem .8rem .3rem; text-align: center; font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.2; color: var(--ink); background: var(--strip); background-image: none; box-shadow: 0 2px 3px rgba(43, 38, 32, .16); }
.pager a.page-numbers:hover { background: var(--olive); color: var(--cream); transform: rotate(-2deg); }
.pager .page-numbers.current { background: var(--tomato); color: var(--cream); transform: rotate(-2deg); }
.pager .page-numbers.dots { background: none; box-shadow: none; min-width: 0; padding: 0 .2rem; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar { min-width: 0; background: var(--grid-bg), var(--sidebar); padding: 1.8rem 1.5rem; color: var(--ink); box-shadow: 0 6px 14px rgba(43, 38, 32, .1); position: relative; }
.sidebar::before { content: ""; position: absolute; top: -12px; right: 30px; width: 84px; height: 26px; background: var(--tape); transform: rotate(5deg); }
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title, .sidebar .widget h2 { font-family: var(--f-hand); font-size: 1.85rem; margin: 0 0 .8rem; color: var(--ink); display: inline-block; padding-bottom: .4rem; background: var(--wave-olive) repeat-x 0 100% / 18px 6px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed rgba(90, 107, 59, .45); color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); background-image: none; padding: 0; }
.sidebar a:hover { color: var(--tomato); }
.sidebar .post-date, .sidebar .rss-date { display: block; font-family: var(--f-note); font-size: .88rem; color: var(--faded); }
.sidebar p, .sidebar .textwidget { color: var(--ink); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 3.2rem 0 1.6rem; margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.footer-cols > * { min-width: 0; }
.site-footer .widget { margin-bottom: 1.4rem; color: #E9E1CD; font-family: var(--f-note); font-size: 1.05rem; line-height: 1.45; }
.site-footer .widget-title, .site-footer .widget h2 { font-family: var(--f-hand); font-size: 2rem; margin: 0 0 .5rem; color: var(--cream); }
.site-footer .widget p, .site-footer .textwidget { color: #E9E1CD; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .25rem; color: #E9E1CD; }
.site-footer a { color: var(--cream); background-image: none; padding: 0; }
.site-footer a:hover, .site-footer a:focus-visible { color: #F0B9A8; background-image: var(--wave-cream); padding-bottom: 3px; }
.site-footer .post-date { color: #B9AE96; display: block; font-size: .9rem; }
.copyright { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px dashed rgba(244, 237, 221, .25); text-align: center; font-family: var(--f-note); font-size: .95rem; color: #CFC5AE; }

/* ---------- Комментарии ---------- */
.comments-area { margin-top: 2.6rem; background: var(--card); padding: 2rem 2.2rem; box-shadow: 0 4px 12px rgba(43, 38, 32, .1); }
.comments-title, .comment-reply-title { font-family: var(--f-hand); font-size: 2rem; margin: 0 0 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 2px dashed rgba(90, 107, 59, .4); margin-top: 1rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-box { background: var(--kalka); padding: 1rem 1.2rem; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin-bottom: .5rem; }
.comment-head img { border-radius: 50%; display: block; }
.comment-author-name { font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700; }
.comment-when { font-family: var(--f-note); font-size: .88rem; color: var(--faded); }
.comment-wait { font-family: var(--f-note); color: var(--tomato-deep); }
.comment-reply-link { font-family: var(--f-note); font-size: .95rem; }
.comment-form label { display: block; font-family: var(--f-note); margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .65rem .8rem; font: inherit; border: 1.5px solid rgba(43, 38, 32, .4); background: #FBF7EC; color: var(--ink); border-radius: 0; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px dashed var(--olive); outline-offset: 1px; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; font-family: var(--f-note); }

/* ---------- Поиск и 404 ---------- */
.search-form { display: flex; gap: .6rem; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: .6rem .9rem; font: inherit; border: 1.5px solid rgba(43, 38, 32, .45); background: #FBF7EC; color: var(--ink); border-radius: 0; }
.search-form input[type="search"]:focus { outline: 2px dashed var(--olive); outline-offset: 1px; }
.sidebar .search-form { max-width: none; }
.error-box { text-align: center; padding: 3rem 2rem 3.4rem; background: var(--grid-bg), var(--kalka); position: relative; box-shadow: 0 6px 14px rgba(43, 38, 32, .12); }
.error-box::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: var(--tape); transform: rotate(-3deg); }
.error-code { font-family: var(--f-hand); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--tomato); margin: 0; transform: rotate(-3deg); }
.error-box h1 { margin-top: .3rem; }
.error-box .search-form { margin: 1.6rem auto 1.4rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.4rem; max-width: 760px; margin: 0 auto; padding: 1.1rem 1.5rem; background: var(--kalka); color: var(--ink); box-shadow: 0 10px 26px rgba(43, 38, 32, .28); font-family: var(--f-note); font-size: 1rem; line-height: 1.4; }
.cookie-note::before { content: ""; position: absolute; top: -11px; left: 28px; width: 80px; height: 24px; background: var(--tape); transform: rotate(-5deg); }
.cookie-note p { margin: 0; flex: 1 1 320px; min-width: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
	.header-row { flex-wrap: wrap; align-items: center; }
	.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; padding: .35rem 1rem; font-family: var(--f-hand); font-size: 1.4rem; color: var(--ink); background: var(--strip); border: 0; cursor: pointer; clip-path: polygon(0 6%, 50% 0, 100% 6%, 98% 50%, 100% 94%, 50% 100%, 0 94%, 2% 50%); }
	.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
	.main-nav { flex: 1 1 100%; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: row; flex-wrap: wrap; }
	.main-nav a { min-width: 0; }
	.front-duo { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
	.front-duo--boards { grid-template-columns: minmax(0, 1fr); }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar { margin-top: 2.6rem; }
	.layout-single .content-area { width: 100%; }
	.layout-single .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.board .tape--tr { right: 12px; }
	.board .tape--bl { left: 6px; }
	.sheet .tape--br { right: 6px; }
	.sheet .tape--bl { left: 4px; }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.site-header { padding: 1.4rem 0 1rem; }
	.brand { gap: .8rem; align-items: flex-start; }
	.site-title { font-size: 1.95rem; }
	.brand-mark { width: 72px; height: 72px; }
	.brand-mark svg { width: 52px; height: 52px; }
	.site-desc { font-size: .92rem; }
	.main-nav ul { flex-direction: column; }
	.front { width: 100%; }
	.sheet { padding: 1.8rem 1.2rem 2rem; transform: none; }
	.anatomy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
	.anatomy-plate { grid-column: 1 / -1; grid-row: 1; width: 78%; justify-self: center; }
	.anatomy-notes svg { display: none; }
	.anatomy-notes--right li { text-align: left; }
	.dente-forks img { height: 110px; }
	.dente-labels { font-size: 1.1rem; }
	.fp-latest { padding: 2rem .2rem 2.4rem; }
	.cards, .cards--list, .layout-single .cards--list { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
	.board { padding: 2rem 1.3rem 2.2rem; }
	.order-list li { padding: .5rem 1rem .55rem .55rem; }
	.order-list b { font-size: 1.45rem; }
	.note-sheet { padding: 1rem .8rem; }
	.sauce-table { font-size: 1.1rem; }
	.sauce-table th, .sauce-table td { padding: .4rem .35rem; }
	.sauce-table thead th { font-size: 1.15rem; }
	.entry { padding: 2rem 1.2rem 2.2rem; }
	.comments-area { padding: 1.6rem 1.2rem; }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
	.cookie-note { left: 10px; right: 10px; bottom: 10px; padding: 1rem 1.1rem; }
	.search-form { flex-wrap: wrap; }
}
