/* =========================================================================
   СоколовЕда — дизайн-система и стили темы
   Токены и стиль перенесены с утверждённого макета (Claude Design canvas).
   ========================================================================= */

:root {
	--ink: #192716;
	--ink-2: #2e3a2c;
	--line: #a0b49c;
	--line-soft: #dae3d9;
	--bg: #fbf9f7;
	--panel: #f2f5f2;
	--accent: #267718;
	--accent-dark: #1b5511;
	--accent-2: #e8cb91;
	--accent-2-tint: #f4efe7;
	--muted: #61795d;
	--white: #ffffff;
	--footer-bg: #0d120c;

	--wrap: 1120px;
	--radius: 12px;
	--radius-sm: 9px;
	--section-y: 56px;
	--font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	clip-path: inset(50%);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 1000; border-radius: 6px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line-soft); }
.section--tight { padding: 40px 0; }
.section--panel { background: var(--panel); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head > .h2:last-child, .section-head > p:last-child { margin-bottom: 0; }

/* ---------- typography helpers ---------- */
.eyebrow {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 700;
	margin: 0 0 10px;
}
.h1 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.15rem); font-weight: 800; margin-bottom: 0.4em; }
.h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.55rem); font-weight: 800; }
.h3 { font-size: 1.05rem; font-weight: 800; }
.lead { font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--muted); }
/* ---------- prose (блог, юр. страницы, доп. текст на хабах) ---------- */
.prose { max-width: 760px; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 {
	font-size: clamp(1.3rem, 1.1rem + 1vw, 1.5rem);
	font-weight: 800; color: var(--ink);
	margin: 1.9em 0 0.6em;
	scroll-margin-top: 90px;
}
.prose h3 {
	font-size: 1.1rem; font-weight: 800; color: var(--ink);
	margin: 1.6em 0 0.5em;
	scroll-margin-top: 90px;
}
.prose h4 { font-size: 1rem; font-weight: 800; color: var(--ink); margin: 1.4em 0 0.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-dark); }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose ul ul, .prose ol ol { margin: 0.5em 0; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2em 0; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
	background: var(--panel); border: 1px solid var(--line-soft);
	border-radius: 4px; padding: 0.1em 0.4em;
}
.prose pre {
	background: var(--ink); color: #e8efe6;
	padding: 16px 18px; border-radius: var(--radius);
	overflow-x: auto; font-size: 0.85rem; line-height: 1.6;
	margin: 1.4em 0;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 1em; }

/* Первый blockquote в статье — «Коротко»-плашка (ёмкий ответ по сути) */
.prose blockquote {
	background: var(--accent-2-tint);
	border: 1px dashed var(--accent-2);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin: 0 0 1.6em;
	font-size: 1rem; line-height: 1.65; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote p:first-child { margin-top: 0; }

/* Таблицы — оборачиваются в .table-scroll фильтром the_content (см. inc/content-filters.php) */
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin: 0;
	background: var(--white);
}
.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	margin: 1.6em 0;
}
.table-scroll table { min-width: 460px; }
.prose th, .prose td {
	padding: 11px 14px;
	text-align: left;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: top;
}
.prose thead th { background: var(--panel); font-weight: 800; color: var(--ink); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--bg); }

/* Оглавление */
.toc {
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin: 0 0 2em;
	font-size: 0.9rem;
}
.toc__title { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 6px; }
.toc li li { margin-top: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	border: 1.5px solid transparent;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, transform 0.05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--secondary { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

/* ---------- cards ---------- */
.card {
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 20px;
}
.card__title { font-weight: 800; font-size: 0.95rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 64px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-header__logo:hover { text-decoration: none; }
.site-header__logo-img, .site-header .custom-logo { height: 36px; width: auto; }
.site-header__brand { font-weight: 800; font-size: 1rem; color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.site-header__phone { font-weight: 700; font-size: 0.9rem; color: var(--ink); white-space: nowrap; }

/* ---------- nav ---------- */
.site-nav { display: flex; align-items: center; }
.site-nav__list {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 600;
}
.site-nav__list a { color: var(--muted); }
.site-nav__list a:hover { color: var(--accent); text-decoration: none; }
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current_page_item > a { color: var(--accent); }
.site-nav__toggle { display: none; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: var(--bg); border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 12px 0; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 52px; border-bottom: 1px solid var(--line-soft); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.hero__meta span.dot { color: var(--line); }
.hero--wide .hero__grid { display: block; }
.hero--wide .hero__inner { max-width: 780px; }

/* «Коротко» */
.short-box {
	background: var(--accent-2-tint);
	border: 1px dashed var(--accent-2);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin: 0 0 20px;
	max-width: 780px;
}
.short-box__label { font-size: 0.65rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.short-box p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--ink-2); }

/* доверие-пилюли под hero */
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* ---------- pricing ---------- */
.pricing__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
	margin-bottom: 24px;
}
.pcard {
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 20px 16px 16px;
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
}
.pcard--featured { border: 2px solid var(--accent); box-shadow: 0 10px 26px rgba(38,119,24,.14); }
.pcard__badge {
	position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	background: var(--accent); color: #fff;
	font-size: 0.62rem; font-weight: 700;
	padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.pcard__name { font-weight: 800; font-size: 0.9rem; margin: 6px 0 12px; }
.pcard__checks { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; flex-grow: 1; }
.pcard__checks .is-yes { color: var(--ink); }
.pcard__checks .is-no { color: var(--muted); text-decoration: line-through; }
.pcard__price { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.pcard--featured .pcard__price { color: var(--accent); }

/* полоса условий под ценами */
.pconds {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 4px 0 18px;
}
.pcond {
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.pcond__value {
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--accent);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}
.pcond__label { font-size: 0.8rem; line-height: 1.4; color: var(--muted); }

.pricing__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.pricing__foot .muted { font-size: 0.82rem; margin: 0; max-width: 620px; }

/* лестница скидок */
.ladder { display: flex; gap: 12px; margin: 12px 0; }
.ladder__step { flex: 1; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px 14px; font-size: 0.8rem; }
.ladder__step b { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.ladder__step--on { border-color: var(--accent); background: #eaf1e9; }
.ladder__step--max { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------- features / steps ---------- */
.features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.features__grid .muted { font-size: 0.82rem; line-height: 1.6; margin: 0; }

.steps__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 14px;
}
.steps__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps__item { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; line-height: 1.5; }
.steps__num {
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--ink); color: #fff;
	font-size: 0.78rem; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 6px;
}
.steps__title { font-weight: 700; }
.steps__text { color: var(--muted); }

/* сценарии кейтеринга */
.scenarios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.scenarios .card { padding: 16px 14px; font-size: 0.8rem; font-weight: 600; line-height: 1.45; }

/* ---------- catalog / menu ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hub-card { border-color: var(--accent); }
.hub-card a { font-weight: 800; font-size: 0.95rem; }

.catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.catalog__card .card__title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.catalog__list { margin: 0; padding-left: 1.1em; font-size: 0.8rem; line-height: 1.8; color: var(--ink-2); }
.catalog__more { font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.badge-everyday {
	display: inline-block;
	font-size: 0.58rem; font-weight: 700; color: #fff; background: var(--accent);
	padding: 3px 8px; border-radius: 999px; white-space: nowrap;
	vertical-align: middle;
}

/* ---------- отдельное блюдо + сетка блюд ---------- */
.dish { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.dish__media { border-radius: var(--radius); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 3; }
.dish__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish__body .h1 { margin-bottom: 0.3em; }
.dish__desc { margin: 14px 0 18px; }

.dish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dish-card { display: flex; flex-direction: column; gap: 8px; padding: 0 0 14px; overflow: hidden; }
.dish-card:hover { text-decoration: none; border-color: var(--accent); }
.dish-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); margin-bottom: 4px; }
.dish-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-card__title { font-weight: 800; font-size: 0.9rem; padding: 0 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dish-card__excerpt { font-size: 0.8rem; padding: 0 14px; }

.menu-week { overflow-x: auto; }
.menu-week__table {
	width: 100%;
	min-width: 720px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
	font-size: 0.8rem;
}
.menu-week__table th, .menu-week__table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); text-align: left; vertical-align: top; line-height: 1.5; }
.menu-week__table tr:last-child th, .menu-week__table tr:last-child td { border-bottom: none; }
.menu-week__table th:last-child, .menu-week__table td:last-child { border-right: none; }
.menu-week__table thead th { background: var(--panel); font-weight: 800; text-align: center; }
.menu-week__table tbody th { background: var(--accent-2-tint); font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent-dark); }
.menu-week__table tbody tr:nth-child(2) td { background: #f6f8f5; }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; gap: 16px; }
.reviews-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reviews-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card { margin: 0; }
.review-card__text { margin: 0 0 14px; font-size: 0.86rem; line-height: 1.65; color: var(--ink-2); }
.review-card__text p { margin: 0; }
.review-card__author { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.rating-badge {
	display: inline-block;
	font-size: 0.8rem; font-weight: 700;
	padding: 6px 12px; border-radius: 7px;
	background: var(--panel); border: 1px solid var(--line-soft);
	color: var(--ink);
}
a.rating-badge:hover { text-decoration: none; border-color: var(--accent); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card--placeholder { border-style: dashed; text-align: center; padding: 28px 20px; color: var(--muted); font-size: 0.8rem; }
.case-card--stat { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat-num { font-weight: 800; font-size: 1.6rem; color: var(--accent); }

/* ---------- faq ---------- */
.faq__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.faq__item {
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 0 18px;
}
.faq__item[open] { border-color: var(--line); }
.faq__q {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 16px 0;
	font-size: 0.9rem; font-weight: 600;
	list-style: none; cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__plus { color: var(--accent); font-size: 1.05rem; font-weight: 700; flex-shrink: 0; transition: transform 0.2s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__a { padding: 0 0 18px; font-size: 0.88rem; line-height: 1.65; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__all { font-size: 0.82rem; font-weight: 700; }
.faq-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.faq-columns .faq__list { gap: 8px; }

/* ---------- CTA blocks ---------- */
.cta-final { background: var(--ink); color: #fff; padding: 48px 0; }
.cta-final__inner { text-align: center; }
.cta-final__heading { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.cta-final__text { color: #a0b49c; font-size: 0.9rem; margin-bottom: 22px; }
.cta-final__soft { color: #a0b49c; font-size: 0.8rem; margin: 16px 0 0; }
.cta-final__soft a { color: var(--accent-2); }

.cta-bar { background: var(--ink); color: #fff; padding: 36px 0; }
.cta-bar__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.cta-bar__heading { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.cta-bar__text { color: #a0b49c; font-size: 0.85rem; }

/* ---------- two-column media block ---------- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.media-split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.media-split__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* Портретное фото (Сергей на «О компании») — не режем голову */
.media-split--chef { grid-template-columns: 0.7fr 1.3fr; align-items: start; }
.media-split__img--portrait { aspect-ratio: 4 / 5; max-width: 340px; }
.media-split__img--portrait img { object-position: center top; }
.img-placeholder {
	background: var(--panel); border: 1px dashed var(--line);
	border-radius: var(--radius);
	display: flex; align-items: center; justify-content: center;
	text-align: center; color: var(--muted); font-size: 0.8rem; padding: 12px;
	min-height: 200px;
}

/* timeline «2017 / 2022 / сейчас» */
.timeline { display: flex; gap: 10px; }
.timeline .card { text-align: center; flex: 1; }
.timeline__year { font-weight: 800; font-size: 1.1rem; color: var(--accent); }

/* цифры */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats-grid .card { text-align: center; }
.stats-grid .stat-num { font-size: 1.5rem; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.calc__field { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 7px; padding: 10px 12px; margin-bottom: 8px; font-size: 0.85rem; }
.calc__field label { font-weight: 600; }
.calc__field input { width: 76px; padding: 8px 10px; border: 1.5px solid var(--line-soft); border-radius: 6px; font: inherit; text-align: center; }
.calc__toggle { display: flex; gap: 8px; margin: 12px 0; }
.calc__toggle button { flex: 1; padding: 9px; border: 1.5px solid var(--line-soft); background: #fff; border-radius: 7px; font-size: 0.82rem; font-weight: 600; }
.calc__toggle button[aria-pressed="true"] { border-color: var(--accent); background: #eaf1e9; color: var(--accent-dark); }
.calc__result { background: var(--panel); }
.calc__badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.calc__badge[hidden] { display: none; }
.calc__old { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.calc__now { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.calc__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.calc__hint { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; }
.calc-table { overflow-x: auto; }
.calc-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.85rem; }
.calc-table th, .calc-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.calc-table th { color: var(--muted); font-weight: 700; }

/* ---------- lead modal ---------- */
.lead-modal {
	position: fixed; inset: 0; z-index: 200;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.lead-modal[hidden] { display: none; }
.lead-modal__overlay { position: absolute; inset: 0; background: rgba(13,18,12,.55); }
.lead-modal__dialog {
	position: relative;
	width: 100%; max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 30px 30px 26px;
	box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.lead-modal__close {
	position: absolute; top: 16px; right: 16px;
	width: 28px; height: 28px; border: none; border-radius: 50%;
	background: var(--panel); color: var(--muted); font-size: 0.85rem; font-weight: 700;
}
.lead-modal__title { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.lead-modal__subtitle { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }

.lead-form__row { margin-bottom: 12px; }
.lead-form__label { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; }
.lead-form__input {
	width: 100%;
	border: 1.5px solid var(--line-soft);
	border-radius: 8px;
	padding: 11px 13px;
	font: inherit;
	font-size: 0.9rem;
}
.lead-form__input:focus { border-color: var(--accent); outline: none; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.72rem; line-height: 1.5; color: var(--muted); margin: 14px 0 16px; }
.lead-form__consent input { margin-top: 2px; flex-shrink: 0; }
.lead-form__submit { width: 100%; }
.lead-form__note { font-size: 0.72rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.lead-form__result { font-size: 0.85rem; font-weight: 600; margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; }
.lead-form__result[hidden] { display: none; }
.lead-form__result.is-ok { background: #eaf1e9; color: var(--accent-dark); }
.lead-form__result.is-error { background: #fbeaea; color: #9a2b2b; }
.is-invalid .lead-form__input,
.lead-form__input.is-invalid { border-color: #c0392b; }

/* ---------- blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.post-card__title { font-size: 1rem; font-weight: 800; }
.post-card__excerpt { font-size: 0.85rem; color: var(--muted); flex-grow: 1; }
.post-card__meta { font-size: 0.72rem; color: var(--muted); }

.single-post__header { max-width: 760px; margin: 0 auto 28px; }
.single-post__meta { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.single-post__cover { max-width: 900px; margin: 0 auto 28px; border-radius: var(--radius); overflow: hidden; }
.single-post__cover img { width: 100%; height: auto; display: block; }
.article-cta { max-width: 760px; margin: 36px auto 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.article-cta__title { font-weight: 800; margin-bottom: 6px; }
.single-post__related { margin-top: 44px; }
.single-post__related .h2 { margin-bottom: 20px; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 7px; font-size: 0.85rem; font-weight: 600; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contacts-list { font-size: 0.95rem; line-height: 2.2; }
.contacts-map { border-radius: var(--radius); overflow: hidden; min-height: 240px; border: 1px solid var(--line-soft); }
.contacts-map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 240px; }
.req-card { max-width: 520px; font-size: 0.9rem; line-height: 2; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #dae3d9; padding: 44px 0 24px; }
.site-footer a { color: #dae3d9; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 28px; }
.site-footer__brand { font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 10px; }
.site-footer__about p { font-size: 0.8rem; color: #a0b49c; line-height: 1.6; }
.site-footer__socials { display: flex; gap: 14px; font-size: 0.8rem; margin-top: 8px; }
.site-footer__title { font-size: 0.68rem; color: #a0b49c; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 10px; }
.footer-menu { list-style: none; margin: 0; padding: 0; font-size: 0.82rem; line-height: 2; }
.site-footer__req { font-style: normal; font-size: 0.8rem; line-height: 1.9; color: #a0b49c; }
.site-footer__req a { color: #fff; font-weight: 700; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.75rem; color: #a0b49c; }

/* ---------- cookie-плашка ---------- */
.cookie-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 150;
	background: var(--white);
	border-top: 1px solid var(--line-soft);
	box-shadow: 0 -6px 24px rgba(20, 20, 19, 0.08);
	padding: 14px 0;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.cookie-bar__text {
	margin: 0;
	flex: 1;
	min-width: 240px;
	font-size: 0.8rem;
	line-height: 1.55;
	color: var(--muted);
}
.cookie-bar__text a { font-weight: 600; white-space: nowrap; }
.cookie-bar__accept { flex-shrink: 0; }
@media (max-width: 560px) {
	.cookie-bar__inner { gap: 12px; }
	.cookie-bar__accept { width: 100%; }
}

/* ---------- поиск ---------- */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form .lead-form__input { flex: 1; min-width: 200px; }
.search-results { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.search-result { border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; }
.search-result:last-child { border-bottom: 0; }
.search-result__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; }
.search-result__excerpt { font-size: 0.9rem; margin: 0 0 6px; }
.search-result__url { font-size: 0.78rem; color: var(--accent); }

/* ---------- 404 / generic ---------- */
.error-404 { text-align: center; padding: 80px 0; }
.error-404 .h1 { margin-bottom: 12px; }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width: 1000px) {
	.hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.hero__media { max-width: 520px; }
	.features__grid,
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.steps__grid,
	.steps__grid--4 { grid-template-columns: repeat(3, 1fr); }
	.scenarios { grid-template-columns: repeat(3, 1fr); }
	.catalog { grid-template-columns: repeat(3, 1fr); }
	.hub-grid { grid-template-columns: repeat(2, 1fr); }
	.reviews-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.case-grid { grid-template-columns: repeat(2, 1fr); }
	.post-list { grid-template-columns: repeat(2, 1fr); }
	.dish-grid { grid-template-columns: repeat(3, 1fr); }
	.dish { grid-template-columns: 1fr; gap: 24px; }
	.dish__media { max-width: 480px; }
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Мобильная навигация — раньше, чем ломаются сетки: десктоп-меню не влезает уже к ~940px */
@media (max-width: 940px) {
	.site-header__inner { gap: 12px; justify-content: flex-start; }
	.site-header__logo { margin-right: auto; }
	.site-header__actions { order: 2; }
	.site-nav { position: static; order: 3; }
	.site-nav__toggle {
		display: flex; align-items: center; justify-content: center;
		width: 40px; height: 40px;
		background: var(--panel); border: 1px solid var(--line-soft); border-radius: 8px;
	}
	.site-nav__toggle-bar,
	.site-nav__toggle-bar::before,
	.site-nav__toggle-bar::after {
		content: ''; display: block;
		width: 18px; height: 2px; background: var(--ink); position: relative;
	}
	.site-nav__toggle-bar::before { position: absolute; top: -6px; }
	.site-nav__toggle-bar::after { position: absolute; top: 6px; }
	.site-nav__list {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		flex-direction: column;
		gap: 0;
		background: var(--white);
		padding: 4px 24px 16px;
		border-bottom: 1px solid var(--line-soft);
		box-shadow: 0 12px 24px rgba(20, 20, 19, 0.08);
	}
	.site-nav__list.is-open { display: flex; }
	.site-nav__list li { border-top: 1px solid var(--line-soft); }
	.site-nav__list a { display: block; padding: 13px 0; font-size: 0.95rem; }
	.site-header__phone { display: none; }
}

@media (max-width: 520px) {
	.site-header__brand { display: none; }
	.site-header__actions .btn { padding: 9px 14px; font-size: 0.8rem; }
}

/* Планшет */
@media (max-width: 900px) {
	.hero { padding: 44px 0 40px; }
	.cta-final { padding: 40px 0; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Крупный мобайл / маленький планшет */
@media (max-width: 760px) {
	:root { --section-y: 40px; }

	.hero { padding: 32px 0 28px; }
	.hero__media { max-width: none; }
	.h1 { font-size: clamp(1.55rem, 1.2rem + 3vw, 2rem); }

	.pricing__grid { grid-template-columns: repeat(2, 1fr); }
	.pcard--featured { order: -1; }
	.pconds { grid-template-columns: 1fr; gap: 8px; }
	.pcond { flex-direction: row; align-items: baseline; gap: 10px; padding: 12px 16px; }
	.pcond__value { font-size: 1.15rem; flex-shrink: 0; }
	.ladder { flex-direction: column; }
	.features__grid,
	.catalog,
	.hub-grid,
	.reviews-grid--3,
	.reviews-grid--2,
	.case-grid,
	.post-list,
	.media-split,
	.calc,
	.contacts-grid,
	.faq-columns { grid-template-columns: 1fr; }
	.dish-grid { grid-template-columns: repeat(2, 1fr); }
	.scenarios,
	.steps__grid,
	.steps__grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
	.timeline { flex-direction: column; }
	.cta-bar__inner { flex-direction: column; align-items: flex-start; }
	.cta-final__heading { font-size: 1.25rem; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.lead-modal__dialog { padding: 24px 20px; }

	/* горизонтальный скролл широких блоков — плавный на тач-экранах */
	.menu-week,
	.calc-table,
	.reviews-grid { -webkit-overflow-scrolling: touch; }
}

/* Небольшие телефоны */
@media (max-width: 440px) {
	.wrap { padding: 0 16px; }
	.section { padding: 34px 0; }
	.pricing__grid,
	.scenarios,
	.steps__grid,
	.steps__grid--4,
	.dish-grid { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid .stat-num { font-size: 1.3rem; }
	.btn-row { flex-direction: column; align-items: stretch; }
	.cta-final .btn,
	.cta-bar .btn { width: 100%; }
	.lead-modal { padding: 12px; }
	.lead-modal__dialog { border-radius: 12px; max-height: calc(100dvh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
