/*
Theme Name: Fabula
Theme URI: https://fabula.example
Author: Fabula
Description: Тема для сайта кальянной и кафе FABULA (Нижний Новгород). Контент редактируется через ACF (поля страниц, глобальные настройки, блюда, проекты) и стандартные механизмы WordPress (меню, страницы, медиабиблиотека, логотип).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fabula
*/

/* =========================================================================
   Токены
   ====================================================================== */
:root {
	--bg: #c9c5be;
	--fg: #111111;
	--muted: #555555;
	--card: #bfbbb3;
	--glass: rgba(185, 181, 173, 0.88);
	--line: #000000;

	--dark-bg: #0c1a0d;
	--dark-panel: #0f2012;
	--dark-card: #132516;
	--dark-card-hover: #172b1a;
	--dark-input: #102113;
	--dark-text: #f2eee5;
	--dark-lead: #c9d0c4;
	--accent: #8fba6a;
	--accent-hover: #a8d47e;
	--accent-ink: #071008;

	--font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* =========================================================================
   Reset (аналог Tailwind preflight)
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; line-height: 1.5; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; border-radius: 0; background: transparent; }
button { cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
fieldset { margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-weight: 300;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font); font-weight: 300; line-height: 1.25; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; color: #000; padding: .75rem 1rem; z-index: 1000; top: 0; left: 0; }

:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 2rem; height: 2rem; }
.icon--xl { width: 2rem; height: 2rem; }
.icon--muted { color: var(--muted); }

.text-center { text-align: center; }
.muted { color: rgba(17, 17, 17, .5); letter-spacing: .05em; }
.lead { font-size: 1.1rem; letter-spacing: .05em; margin-bottom: 1.5rem; }

/* =========================================================================
   Шапка
   ====================================================================== */
.site-header {
	position: relative;
	z-index: 50;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1rem 1rem;
}
.site-header--home {
	position: absolute;
	top: 0; left: 0; right: 0;
	background: rgba(180, 176, 168, .12);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.site-header__bg {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center 40%;
	filter: blur(6px) brightness(.9);
	transform: scale(1.08);
}
.site-header__veil { position: absolute; inset: 0; background: rgba(180, 176, 168, .55); }

.site-logo { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; margin-bottom: 1.5rem; }
.site-logo__box {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .75rem 1.5rem;
	background: rgba(180, 176, 168, .75);
	border: 2px solid var(--line);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.site-logo img { height: 3.5rem; width: auto; filter: brightness(0); }

.site-nav { position: relative; z-index: 10; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.site-nav__link {
	display: block;
	white-space: nowrap;
	padding: .5rem 1rem;
	font-weight: 400;
	font-size: clamp(9px, 2.5vw, 11px);
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--fg);
	background: rgba(180, 176, 168, .55);
	border: 2px solid var(--line);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background .2s;
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { background: rgba(180, 176, 168, .85); }

@media (min-width: 640px) {
	.site-header { padding: 3rem 2rem 1.5rem; }
	.site-logo { margin-bottom: 2rem; }
	.site-logo img { height: 4rem; }
	.site-nav__list { gap: .75rem; }
	.site-nav__link { padding: .625rem 1.5rem; }
}

/* =========================================================================
   Общие блоки
   ====================================================================== */
.section { padding: 4rem 1.5rem; background: var(--bg); }
.section--center { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.container { width: 100%; max-width: 80rem; margin: 0 auto; }
.container--narrow { max-width: 42rem; }

@media (min-width: 640px) { .section { padding: 6rem 2rem; } }
@media (min-width: 768px) { .section { padding-left: 4rem; padding-right: 4rem; } }
@media (min-width: 1024px) { .section { padding-left: 6rem; padding-right: 6rem; } }

.section-head { margin-bottom: 3rem; }
@media (min-width: 640px) { .section-head { margin-bottom: 5rem; } }

.section-title {
	font-weight: 300;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: .1em;
	color: var(--fg);
	margin-bottom: 1rem;
}
.section-title--lg { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: .15em; }
.section-sub { font-size: clamp(1rem, 1.5vw, 1.1rem); letter-spacing: .05em; color: rgba(17, 17, 17, .55); font-style: italic; }

.card-box {
	background: var(--glass);
	border: 2px solid var(--line);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding: 2rem 1.5rem;
}
.content-card { text-align: left; }

.btn {
	display: inline-block;
	text-align: center;
	padding: .75rem 2rem;
	min-width: 200px;
	font-weight: 400;
	font-size: clamp(.95rem, 2vw, 1.1rem);
	letter-spacing: .15em;
	color: var(--fg);
	border: 2px solid var(--line);
	transition: background .3s;
}
.btn--glass {
	background: rgba(185, 181, 173, .85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(185, 181, 173, 1); }
.btn--ghost { background: transparent; min-width: 0; padding: .75rem 2rem; letter-spacing: .1em; font-size: clamp(.95rem, 1.5vw, 1.1rem); }
.btn--ghost:hover { background: rgba(30, 30, 30, .1); }

.social { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center; }
.social__link {
	display: inline-flex; align-items: center; gap: .5rem;
	font-weight: 300; font-size: .875rem; letter-spacing: .2em; text-transform: lowercase;
	color: var(--fg); transition: color .2s;
}
.social__link .icon { transition: transform .2s; }
.social__link:hover .icon { transform: scale(1.1); }
.social__link:hover { color: var(--muted); }
.social__link--vk:hover { color: #c9718a; }

.entry__content { font-size: 1.05rem; line-height: 1.7; letter-spacing: .03em; }
.entry__content > * + * { margin-top: 1.1rem; }
.entry__content a { text-decoration: underline; }
.entry__content--page { max-width: 48rem; margin: -2rem auto 3rem; }
.entry__title { font-weight: 400; margin-bottom: .75rem; }

/* =========================================================================
   Главная
   ====================================================================== */
.hero { position: relative; min-height: 100vh; width: 100%; }
.hero__bg { position: fixed; inset: 0; z-index: 0; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__tint { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(201, 197, 190, .2), transparent, rgba(201, 197, 190, .15)); }

.hero__content {
	position: relative; z-index: 10;
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	min-height: 100vh; text-align: center;
	padding: 2rem 1rem 4rem;
}
.hero__inner { width: 100%; max-width: 42rem; }
.hero__card {
	background: rgba(185, 181, 173, .75);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	padding: 1.75rem 1.5rem;
	margin: 14rem 0 2.5rem;
}
.hero__card > * + * { margin-top: .75rem; }
.hero__text { font-weight: 300; font-size: clamp(.95rem, 1.8vw, 1.15rem); letter-spacing: .08em; color: var(--fg); }
.hero__text--closing { font-weight: 400; font-size: clamp(1rem, 2vw, 1.3rem); margin-top: 1rem; }
.hero__hours { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--line); }

.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero__buttons { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; width: 100%; }

@media (min-width: 640px) {
	.hero__content { padding-left: 2rem; padding-right: 2rem; }
	.hero__actions { gap: 1.5rem; }
	.hero__buttons { flex-direction: row; justify-content: center; width: auto; gap: 1rem; }
	.hero__buttons .btn { padding: 1rem 3rem; }
}
@media (min-width: 768px) { .hero__card { margin-top: 18rem; } }

/* =========================================================================
   О нас
   ====================================================================== */
.about-card { margin-bottom: 3rem; }
.about-card .section-title { margin-bottom: 2rem; }
.about-card__body { max-width: 48rem; margin: 0 auto; }
.about-card__body > * + * { margin-top: 1.25rem; }
.about-card__text { font-weight: 300; font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .05em; line-height: 1.7; }
.about-card__text--closing {
	font-weight: 400; font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .08em; line-height: 1.6;
	border-top: 2px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem;
}
@media (min-width: 640px) { .about-card { margin-bottom: 5rem; } }

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gallery-grid__item { display: block; height: 300px; overflow: hidden; padding: 0; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery-grid__item:hover img { transform: scale(1.05); }
@media (min-width: 640px) { .gallery-grid { gap: 1.5rem; } .gallery-grid__item { height: 350px; } }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } .gallery-grid__item { height: 400px; } }

/* =========================================================================
   Меню (фото)
   ====================================================================== */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

.photo-section { scroll-margin-top: 6rem; margin-bottom: 4rem; }
.photo-section:last-child { margin-bottom: 0; }
.photo-section__title {
	text-align: center; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: .1em;
	margin-bottom: 2rem;
}
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
.photo-grid__item { display: block; overflow: hidden; padding: 0; border: 2px solid var(--line); }
.photo-grid__item img { width: 100%; height: auto; transition: transform .5s; }
.photo-grid__item:hover img { transform: scale(1.05); }
@media (min-width: 640px) { .photo-section { margin-bottom: 6rem; } .photo-section__title { margin-bottom: 3rem; } }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   Лайтбокс
   ====================================================================== */
.lightbox {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(0, 0, 0, .88);
	display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox__stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 4rem; }
.lightbox__stage img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: .5rem; }
.lightbox__close {
	position: absolute; top: 1.5rem; right: 2rem; z-index: 2;
	font-size: 2rem; font-weight: 300; line-height: 1; color: rgba(255, 255, 255, .8); background: none; border: 0;
}
.lightbox__close:hover { color: #fff; }
.lightbox__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	padding: .75rem; border-radius: 9999px; color: rgba(255, 255, 255, .8);
	background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	transition: background .2s, color .2s;
}
.lightbox__nav:hover { background: rgba(0, 0, 0, .7); color: #fff; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav[hidden] { display: none; }
@media (min-width: 640px) { .lightbox__nav--prev { left: 2rem; } .lightbox__nav--next { right: 2rem; } .lightbox__stage { padding: 0 5rem; } }
body.is-locked { overflow: hidden; }

/* =========================================================================
   Контакты
   ====================================================================== */
.contacts-card { padding: 2rem 1.5rem; }
.contacts-card .section-title { margin-bottom: 1rem; }
.contacts-card__list { margin-bottom: 1.25rem; }
.contacts-card__list > * + * { margin-top: 1rem; }
.contacts-card__item { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.contacts-card__item--rule { border-top: 2px solid var(--line); padding-top: 1rem; }
.contacts-card__text { font-size: clamp(1rem, 2.5vw, 1.4rem); letter-spacing: .08em; }
.contacts-card__text--sm { font-size: clamp(.95rem, 2vw, 1.2rem); }
.contacts-card__label { font-size: clamp(.85rem, 1.8vw, 1rem); letter-spacing: .08em; color: rgba(17, 17, 17, .6); margin-bottom: .25rem; }
.contacts-card__phone { font-size: clamp(1rem, 2.5vw, 1.4rem); letter-spacing: .08em; transition: color .2s; }
.contacts-card__phone:hover { color: var(--muted); }
.contacts-card__actions { display: flex; justify-content: center; margin-bottom: 1rem; }
.contacts-card__actions .btn { min-width: 200px; }
@media (min-width: 640px) { .contacts-card__list > * + * { margin-top: 1.25rem; } .contacts-card__list { margin-bottom: 1.5rem; } }

/* =========================================================================
   Проекты
   ====================================================================== */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .project-grid { gap: 2.5rem; } }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
	padding: 1.5rem; background: var(--card); border: 2px solid var(--line);
	box-shadow: 0 2px 20px rgba(0, 0, 0, .1); transition: box-shadow .3s;
	display: flex; flex-direction: column;
}
.project-card:hover { box-shadow: 0 6px 32px rgba(0, 0, 0, .18); }
@media (min-width: 640px) { .project-card { padding: 2rem; } }

.project-card__logo { height: 6rem; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; background: rgba(180, 176, 168, .8); }
.project-card__logo img { height: 3.5rem; width: auto; object-fit: contain; }
.project-card__logo img.is-black { filter: brightness(0); }
.project-card__logo-text { font-size: 1.5rem; letter-spacing: .2em; color: var(--muted); }
.project-card__name { text-align: center; font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 1.8rem); letter-spacing: .1em; margin-bottom: 1rem; }
.project-card__desc { margin-bottom: 1.5rem; }
.project-card__desc > * + * { margin-top: .75rem; }
.project-card__desc p { text-align: center; font-size: clamp(.95rem, 1.5vw, 1.05rem); letter-spacing: .05em; line-height: 1.6; color: rgba(17, 17, 17, .65); }
.project-card__desc p.is-last { font-weight: 400; color: var(--fg); }
.project-card__phone { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .5rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--line); }
.project-card__phone a { font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .05em; transition: color .2s; }
.project-card__phone a:hover { color: var(--muted); }
.project-card__links { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.project-card__social { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* =========================================================================
   Тёмные страницы (позиции меню, обратная связь)
   ====================================================================== */
.dark-page { min-height: 100vh; background: var(--dark-bg); color: var(--dark-text); }
.dark-container { width: 100%; max-width: 80rem; margin: 0 auto; position: relative; }

.dark-hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--line); padding: 3.5rem 1.25rem 3rem; }
.dark-hero--feedback { padding: 3rem 1.25rem; }
.dark-hero__leaf {
	position: absolute; right: -3rem; top: .5rem; width: 14rem; height: 14rem;
	transform: rotate(-18deg); color: rgba(143, 186, 106, .1); stroke-width: .6; fill: none;
}
.dark-hero__grid { display: grid; gap: 2rem; align-items: end; }
.dark-title {
	max-width: 56rem; font-weight: 300; text-transform: uppercase; line-height: .88; letter-spacing: -.055em;
	font-size: clamp(2.7rem, 8vw, 6.8rem); color: var(--dark-text);
}
.dark-title--feedback { font-size: clamp(2.55rem, 7vw, 6.4rem); line-height: .92; max-width: 64rem; }
.dark-title__accent { display: block; color: var(--accent); }
.dark-lead { max-width: 28rem; font-size: .875rem; font-weight: 300; line-height: 1.75; letter-spacing: .04em; color: var(--dark-lead); }

.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--accent); margin-bottom: 1.25rem; }
.eyebrow__line { display: block; width: 2.5rem; height: 1px; background: var(--accent); }
.eyebrow__text { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .34em; }
.eyebrow--sm { margin-bottom: 2rem; }
.eyebrow--sm .eyebrow__line { width: 2rem; }
.eyebrow--sm .eyebrow__text { font-weight: 400; letter-spacing: .26em; }

.dark-section { padding: 2.5rem 1.25rem; }

@media (min-width: 640px) {
	.dark-hero { padding: 5rem 2rem 4rem; }
	.dark-hero--feedback { padding: 4rem 2rem; }
	.dark-hero__leaf { right: 2rem; width: 18rem; height: 18rem; }
	.dark-lead { font-size: 1rem; }
	.eyebrow__text { font-size: 12px; }
	.dark-section { padding: 3.5rem 2rem; }
}
@media (min-width: 1024px) {
	.dark-hero { padding-left: 4rem; padding-right: 4rem; }
	.dark-hero--feedback { padding: 5rem 4rem; }
	.dark-hero__grid { grid-template-columns: 1fr 24rem; }
	.dark-hero__grid--feedback { grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .6fr); }
	.dark-hero--feedback .dark-lead { max-width: 36rem; }
	.dark-section { padding: 5rem 4rem; }
}

/* ---- Блюда ---- */
.dish-filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .dish-filters { flex-wrap: wrap; overflow: visible; } }
.dish-filter {
	flex: none; padding: .625rem 1.25rem; border: 2px solid var(--line);
	font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
	background: var(--dark-card); color: #dce5d6; transition: background .3s;
}
.dish-filter:hover { background: #1b321f; }
.dish-filter.is-active { background: var(--accent); color: var(--accent-ink); }
.dish-filter:focus-visible, .dish-card:focus-visible, .btn-dark:focus-visible, .btn-accent:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .dish-grid { gap: 1.25rem; } }
@media (min-width: 768px) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.dish-card {
	display: block; min-width: 0; text-align: left; border: 2px solid var(--line); background: var(--dark-card);
	transition: transform .3s, background .3s; padding: 0; color: inherit;
}
.dish-card:hover { transform: translateY(-4px); background: var(--dark-card-hover); }
.dish-card[hidden] { display: none; }
.dish-card__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--line); background: #172719; }
.dish-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, filter .7s; }
.dish-card:hover .dish-card__media img { transform: scale(1.045); filter: brightness(1.1); }
.dish-card__badge {
	position: absolute; left: .5rem; top: .5rem; border: 2px solid var(--line); background: rgba(12, 26, 13, .9);
	padding: .25rem .5rem; font-size: 8px; text-transform: uppercase; letter-spacing: .16em; color: #b9ceaa;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.dish-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: .75rem; min-height: 7rem; }
.dish-card__name { font-size: .875rem; font-weight: 400; line-height: 1.375; letter-spacing: .03em; color: var(--dark-text); }
.dish-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.dish-card__price { font-size: .875rem; font-weight: 500; letter-spacing: .08em; color: var(--accent); }
.dish-card__plus {
	display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 2px solid var(--line);
	background: var(--accent); color: #000; transition: transform .3s;
}
.dish-card__plus .icon { width: 1rem; height: 1rem; stroke-width: 1.8; }
.dish-card:hover .dish-card__plus { transform: rotate(90deg); }
@media (min-width: 640px) {
	.dish-card__badge { left: .75rem; top: .75rem; font-size: 9px; }
	.dish-card__body { padding: 1.25rem; min-height: 8rem; }
	.dish-card__name { font-size: 1.125rem; }
	.dish-card__price { font-size: 1rem; }
	.dish-card__plus { width: 2rem; height: 2rem; }
}

/* ---- Модальное окно блюда (<dialog>) ---- */
.dish-modal {
	padding: 0; margin: auto; border: 2px solid var(--line); background: #102113; color: var(--dark-text);
	width: calc(100% - 2rem); max-width: 64rem; max-height: 92vh; overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6);
}
.dish-modal[open] { display: grid; animation: fabula-pop .2s ease-out; }
.dish-modal::backdrop { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dish-modal__media { min-height: 16rem; border-bottom: 2px solid var(--line); background: #172719; }
.dish-modal__media img { width: 100%; height: 100%; max-height: 45vh; object-fit: cover; }
.dish-modal__body { display: flex; flex-direction: column; padding: 1.5rem; }
.dish-modal__title { padding-right: 2.5rem; font-size: 1.875rem; font-weight: 300; line-height: 1.25; letter-spacing: -.025em; }
.dish-modal__desc { margin-top: 1.5rem; font-size: .875rem; font-weight: 300; line-height: 1.75; letter-spacing: .025em; color: var(--dark-lead); }
.dish-modal__facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; border: 2px solid var(--line); }
.dish-modal__fact { padding: 1rem; }
.dish-modal__fact + .dish-modal__fact { border-left: 2px solid var(--line); }
.dish-modal__label { display: block; margin-bottom: .5rem; font-size: 9px; text-transform: uppercase; letter-spacing: .24em; color: #82907e; }
.dish-modal__value { font-size: 1.25rem; font-weight: 300; }
.dish-modal__value--accent { font-weight: 500; color: var(--accent); }
.dish-modal__close {
	position: absolute; right: .75rem; top: .75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	border: 2px solid var(--line); background: var(--accent); color: #000; transition: background .2s;
}
.dish-modal__close:hover { background: var(--accent-hover); }
.dish-modal__close .icon { stroke-width: 1.8; }
@media (min-width: 640px) {
	.dish-modal__body { padding: 2.25rem; }
	.dish-modal__title { font-size: 2.25rem; }
	.dish-modal__desc { font-size: 1rem; }
	.dish-modal__fact { padding: 1.25rem; }
	.dish-modal__value { font-size: 1.5rem; }
	.dish-modal__close { right: 1.25rem; top: 1.25rem; }
}
@media (min-width: 768px) {
	.dish-modal[open] { grid-template-columns: 1.1fr .9fr; }
	.dish-modal__media { min-height: 36rem; border-bottom: 0; border-right: 2px solid var(--line); }
	.dish-modal__media img { max-height: none; }
	.dish-modal__body { padding: 2.5rem; }
	.dish-modal__facts { margin-top: auto; }
}
@keyframes fabula-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---- Обратная связь ---- */
.feedback-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .feedback-layout { grid-template-columns: minmax(16rem, .52fr) minmax(0, 1fr); gap: 5rem; } .feedback-aside { position: sticky; top: 2.5rem; align-self: start; } }

.feedback-aside__icon { width: 2.75rem; height: 2.75rem; margin-bottom: 2rem; color: var(--accent); stroke-width: 1.25; }
.feedback-aside__title { max-width: 24rem; font-size: 1.5rem; font-weight: 300; line-height: 1.25; letter-spacing: -.02em; }
.feedback-aside__title span { display: block; color: #9ca898; }
.feedback-aside__rule { margin-top: 2rem; max-width: 20rem; height: 2px; background: var(--line); }
.feedback-aside__note { margin-top: 1.5rem; max-width: 24rem; font-size: 12px; line-height: 1.5rem; letter-spacing: .04em; color: #8e9a8b; }
.feedback-aside__badge { margin-top: 2rem; display: flex; align-items: center; gap: .75rem; font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }
.feedback-aside__badge .icon { width: 1rem; height: 1rem; stroke-width: 1.8; }
@media (min-width: 640px) { .feedback-aside__title { font-size: 1.875rem; } }

.feedback-panel { border: 2px solid var(--line); background: var(--dark-panel); }
.feedback-form { padding: 1.25rem; }
@media (min-width: 640px) { .feedback-form { padding: 2rem; } }
@media (min-width: 1024px) { .feedback-form { padding: 2.5rem; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.feedback-form__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--line); }
.feedback-form__head h2 { font-size: 1.25rem; font-weight: 300; letter-spacing: -.01em; }
.feedback-form__req { font-size: 9px; text-transform: uppercase; letter-spacing: .2em; color: #8e9a8b; }
.feedback-form b, .feedback-types b, .field b { color: var(--accent); font-weight: 400; }
@media (min-width: 640px) { .feedback-form__head h2 { font-size: 1.5rem; } }

.feedback-types { margin-bottom: 2rem; }
.feedback-types legend { margin-bottom: .75rem; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: #b8c2b3; }
.feedback-types__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 640px) { .feedback-types__grid { grid-template-columns: repeat(4, 1fr); } }
.feedback-type { position: relative; display: block; }
.feedback-type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.feedback-type span {
	display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3rem; padding: .75rem .5rem;
	border: 2px solid var(--line); background: var(--dark-card); color: #cbd4c7;
	font-size: 10px; text-transform: uppercase; letter-spacing: .1em; transition: background .2s;
}
.feedback-type:hover span { background: #1a301d; }
.feedback-type input:checked + span { background: var(--accent); color: var(--accent-ink); }
.feedback-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.feedback-form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .feedback-form__row { grid-template-columns: 1fr 1fr; } }
.field { margin-top: 1.5rem; }
.feedback-form__row .field { margin-top: 0; }
.feedback-form__row + .field { margin-top: 1.5rem; }
.field label { display: block; margin-bottom: .625rem; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: #b8c2b3; }
.field__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .625rem; }
.field__top label { margin-bottom: 0; }
.field__counter { font-size: 9px; letter-spacing: .1em; color: #71806f; font-variant-numeric: tabular-nums; }
.field input, .field textarea {
	display: block; width: 100%; padding: .875rem 1rem; border: 2px solid var(--line); background: var(--dark-input);
	font-size: .875rem; font-weight: 300; letter-spacing: .025em; color: var(--dark-text); outline: none; transition: background .2s, border-color .2s;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input::placeholder, .field textarea::placeholder { color: #778275; }
.field input:hover, .field textarea:hover, .field input:focus, .field textarea:focus { background: #132718; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: #c78473; }
.field.has-error input:focus, .field.has-error textarea:focus { border-color: #d79a89; }
.field__error { margin-top: .5rem; font-size: 12px; color: #d79a89; }
.field__error:empty { display: none; }
.field__error--form { margin-top: 1.5rem; }

.feedback-form__foot { margin-top: 2rem; padding-top: 1.75rem; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 1.25rem; }
.feedback-form__consent { max-width: 24rem; font-size: 10px; line-height: 1.25rem; letter-spacing: .035em; color: #7f8c7c; }
@media (min-width: 640px) { .feedback-form__foot { flex-direction: row; align-items: center; justify-content: space-between; } }

.btn-accent, .btn-dark {
	display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 3.25rem;
	border: 2px solid var(--line); font-size: 12px; text-transform: uppercase; transition: background .2s;
}
.btn-accent { flex: none; padding: .875rem 1.75rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; letter-spacing: .15em; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent__arrow { width: 1rem; height: 1rem; stroke-width: 1.8; transition: transform .2s; }
.btn-accent:hover .btn-accent__arrow { transform: translateX(4px); }
.btn-accent__spinner { display: none; width: 1rem; height: 1rem; }
.btn-accent.is-loading { background: #6f8f57; cursor: wait; }
.btn-accent.is-loading .btn-accent__arrow { display: none; }
.btn-accent.is-loading .btn-accent__spinner { display: block; }
.spin { animation: fabula-spin 1s linear infinite; }
@keyframes fabula-spin { to { transform: rotate(360deg); } }

.btn-dark { padding: .875rem 1.5rem; margin-top: 2.5rem; background: #162b19; color: var(--dark-text); letter-spacing: .18em; }
.btn-dark:hover { background: #1d3621; }
.btn-dark .icon { width: 1rem; height: 1rem; }

.feedback-success { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 38rem; padding: 3.5rem 1.5rem; }
.feedback-success__icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 2rem; border: 2px solid var(--line); background: var(--accent); color: #000; }
.feedback-success__badge { margin-bottom: 1.25rem; font-size: 10px; text-transform: uppercase; letter-spacing: .28em; color: var(--accent); }
.feedback-success__title { max-width: 36rem; font-size: 1.875rem; font-weight: 300; line-height: 1.25; letter-spacing: -.025em; }
.feedback-success__text { margin-top: 1.25rem; max-width: 32rem; font-size: .875rem; font-weight: 300; line-height: 1.75; color: #aeb8aa; }
@media (min-width: 640px) { .feedback-success { padding: 3.5rem 3rem; } .feedback-success__title { font-size: 2.25rem; } .feedback-success__text { font-size: 1rem; } }
@media (min-width: 1024px) { .feedback-success { padding: 3.5rem 4rem; } }

/* Админ-бар не должен перекрывать шапку на главной */
.admin-bar .site-header--home { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header--home { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
