/*
Theme Name: Tako
Theme URI: https://tako.example
Author: HDA
Description: Тема для сайта ТАКО (городское кафе, Нижний Новгород). Контент редактируется через ACF (поля страниц, глобальные настройки, блюда, проекты; текстовые поля принимают HTML) и стандартные механизмы 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: tako
*/

/* =========================================================================
   Токены
   ====================================================================== */
:root {
	--bg: #e7e2dc;
	--ink: #2a2520;
	--ink-2: #3a3430;
	--ink-3: #4a443f;
	--ink-4: #5f5851;
	--mute: #6d665f;
	--mute-2: #777068;
	--line: #c8c0b8;
	--line-2: #bdb5ac;
	--line-3: #d4cfc8;
	--paper: #eee9e3;
	--paper-2: #ddd7d0;
	--paper-3: #dcd6cf;
	--err: #8f4339;
	--ok: #354d39;
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', 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; scroll-behavior: smooth; }
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; }
legend { padding: 0; }
[hidden] { display: none !important; }

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 400;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}
.site-content { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--serif); 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: 1px solid var(--ink); outline-offset: 3px; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

.text-center { text-align: center; }
.muted { color: var(--mute); letter-spacing: .05em; font-family: var(--serif); font-size: 1.1rem; }
.lead { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .05em; margin-bottom: 1.5rem; }
body.is-locked { overflow: hidden; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Пользовательский HTML из ACF */
.rich > * + * { margin-top: .5rem; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich strong, .rich b { font-weight: 500; }
.rich ul { list-style: disc; padding-left: 1.25rem; }
.rich ol { list-style: decimal; padding-left: 1.25rem; }

.eyebrow {
	font-family: var(--sans); font-size: .65rem; font-weight: 400; text-transform: uppercase;
	letter-spacing: .3em; color: var(--mute); margin-bottom: 1.25rem;
}

/* =========================================================================
   Кнопки
   ====================================================================== */
.btn, .btn--ghost {
	display: inline-block; border: 1px solid var(--ink); color: var(--ink); text-align: center;
	padding: .5rem 1.25rem; font-family: var(--sans); font-weight: 400; font-size: 11px;
	letter-spacing: .3em; text-transform: uppercase; transition: all .3s;
}
.btn:hover, .btn--ghost:hover { background: var(--ink); color: #fff; }
@media (min-width: 640px) { .btn, .btn--ghost { padding: .75rem 2.5rem; } }

.btn--glass {
	display: inline-block; width: 100%; min-width: 200px; padding: .75rem 2rem;
	border: 1px solid rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .2); color: rgba(255, 255, 255, .95);
	font-family: var(--serif); font-weight: 400; font-size: clamp(.95rem, 2vw, 1.1rem); letter-spacing: .15em;
	text-align: center; text-transform: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .3s;
}
.btn--glass:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--glass.btn--clear { background: transparent; text-shadow: none; }
@media (min-width: 640px) { .btn--glass { width: auto; padding: 1rem 3rem; } }

.btn-dark {
	display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.5rem;
	padding: 0 2rem; background: var(--ink); color: #f3efe9;
	font-family: var(--sans); font-weight: 400; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; transition: background .3s;
}
.btn-dark:hover { background: #443d37; }
.btn-dark:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.btn-dark:disabled { opacity: .7; cursor: wait; }
.btn-dark__spinner { display: none; width: 1rem; height: 1rem; }
.btn-dark.is-loading .btn-dark__spinner { display: block; }
@media (min-width: 640px) { .btn-dark { min-width: 250px; } }
.spin { animation: tako-spin 1s linear infinite; }
@keyframes tako-spin { to { transform: rotate(360deg); } }

.btn-outline-dark {
	margin-top: 2.5rem; border: 1px solid var(--ink); padding: .75rem 2rem;
	font-family: var(--sans); font-size: .65rem; text-transform: uppercase; letter-spacing: .18em; transition: all .3s;
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* Соцсети */
.social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .social { gap: 2rem; } }
.social__link {
	display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 400;
	font-size: 11px; letter-spacing: .2em; text-transform: lowercase; color: var(--ink); transition: opacity .2s;
}
.social__link .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.social__link:hover .icon { transform: scale(1.1); }
.social__link:hover { opacity: .6; }
.social--on-photo .social__link { font-weight: 300; font-size: .875rem; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.social--on-photo .social__link:hover { opacity: 1; color: #fff; }
.social--on-photo .icon { width: 1.25rem; height: 1.25rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }

/* =========================================================================
   Шапка
   ====================================================================== */
.site-header {
	position: relative; z-index: 50; background: var(--ink);
	display: flex; flex-direction: column; align-items: center; padding: 2rem 1rem 1rem;
}
.site-header--home { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.site-logo { display: block; margin-bottom: 1.5rem; }
.site-logo img { height: 4rem; width: auto; max-width: 70vw; object-fit: contain; filter: brightness(0) invert(1); }
.site-header--home .site-logo img { filter: none; mix-blend-mode: lighten; opacity: .9; }

.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; }
.site-nav__link {
	display: block; border: 1px solid rgba(255, 255, 255, .6); color: #fff; padding: .45rem .55rem;
	font-family: var(--sans); font-weight: 400; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: all .3s;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { background: rgba(255, 255, 255, .2); border-color: #fff; }
.site-header--home .site-nav__link:hover, .site-header--home .site-nav__link[aria-current="page"] { background: rgba(255, 255, 255, .1); }
@media (min-width: 640px) {
	.site-header { padding: 3rem 2rem 1.5rem; }
	.site-logo { margin-bottom: 2rem; }
	.site-logo img { height: 5rem; }
	.site-nav__list { gap: 1.5rem; flex-wrap: nowrap; }
	.site-nav__link { padding: .75rem 1.5rem; font-size: 11px; letter-spacing: .3em; }
}
@media (min-width: 640px) and (max-width: 1100px) { .site-nav__list { flex-wrap: wrap; gap: .75rem; } .site-nav__link { padding: .7rem 1.1rem; letter-spacing: .2em; } }

/* =========================================================================
   Главная
   ====================================================================== */
.hero { position: relative; min-height: 100vh; width: 100%; }
.hero__bg { position: fixed; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; max-width: none; }
.hero__slide.is-active { opacity: 1; }
.hero__tint { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), rgba(0, 0, 0, .5), rgba(0, 0, 0, .6)); }
.hero__content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14rem 1rem 4rem; }
.hero__inner { width: 100%; max-width: 42rem; }
.hero__text { margin-bottom: 2rem; }
.hero__text > * + * { margin-top: .5rem; }
.hero__lead, .hero__lines, .hero__closing, .hero__hours {
	font-family: var(--serif); color: rgba(255, 255, 255, .92); text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.hero__lead { font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .05em; color: rgba(255, 255, 255, .95); }
.hero__lines { font-weight: 300; font-size: clamp(.95rem, 1.8vw, 1.15rem); letter-spacing: .08em; }
.hero__lines > * + * { margin-top: .5rem; }
.hero__closing { margin-top: 2rem !important; font-weight: 400; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: .08em; color: rgba(255, 255, 255, .95); }
.hero__hours { margin-top: 2.5rem !important; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .3); font-weight: 300; font-size: clamp(.95rem, 1.8vw, 1.15rem); letter-spacing: .08em; }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: 100%; }
.hero__buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; padding: 0 1rem; }
@media (min-width: 640px) {
	.hero__content { padding: 14.5rem 2rem 4rem; }
	.hero__text { margin-bottom: 3rem; }
	.hero__actions { gap: 2rem; width: auto; }
	.hero__buttons { flex-direction: row; justify-content: center; gap: 1.5rem; width: auto; padding: 0; }
}

/* =========================================================================
   Общие секции
   ====================================================================== */
.section { padding: 4rem 1.5rem; }
.section--beige { background: var(--bg); }
.container { max-width: 80rem; margin: 0 auto; }
.container--narrow { max-width: 42rem; }
.container--wide { max-width: 80rem; }
.container--projects { max-width: 64rem; }
@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-title {
	font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .1em; color: var(--ink);
}
.section-head { margin-bottom: 3rem; }
.section-head .section-title { margin-bottom: 0; }
.section-sub { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.1rem); letter-spacing: .05em; color: var(--ink-3); }
.section-hint { margin-top: 1.5rem; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1rem; letter-spacing: .05em; color: var(--ink-3); }

.card-box { background: var(--paper); padding: 2rem; }
.content-card { padding: 2rem; }
.entry__content { font-family: var(--serif); font-size: 1.15rem; 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: 0 auto 3rem; text-align: center; }
.entry__title { font-weight: 400; margin-bottom: .75rem; }
.section--center { display: flex; align-items: center; justify-content: center; min-height: 60vh; }

/* =========================================================================
   О нас
   ====================================================================== */
.about { margin-bottom: 3rem; }
.about .section-title { margin-bottom: 2rem; }
.about__body { max-width: 48rem; margin: 0 auto; }
.about__body > * + * { margin-top: 1.5rem; }
.about__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: .05em; line-height: 1.6; color: var(--ink-2); }
.about__italic { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: .05em; line-height: 1.6; color: var(--ink-2); }
.about__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .05em; line-height: 1.7; color: var(--ink-3); }
.about__text > * + * { margin-top: 1.5rem; }
.about__closing { margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line-3); font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .08em; line-height: 1.6; color: var(--ink); }
@media (min-width: 640px) { .about { margin-bottom: 5rem; } }

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gallery-grid__item { display: block; padding: 0; height: 300px; overflow: hidden; cursor: pointer; }
.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; } }

/* =========================================================================
   Меню (фото)
   ====================================================================== */
.msec { padding: 3rem 1.5rem; scroll-margin-top: 0; }
.msec--white { background: #fff; }
.msec--beige { background: var(--bg); }
@media (min-width: 640px) { .msec { padding: 5rem 2rem; } }
@media (min-width: 768px) { .msec { padding-left: 4rem; padding-right: 4rem; } }
@media (min-width: 1024px) { .msec { padding-left: 6rem; padding-right: 6rem; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .chips { gap: 1.5rem; } }

.photo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.photo-grid__cell { width: 100%; }
.photo-grid__item { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line-3); cursor: zoom-in; transition: border-color .3s; }
.photo-grid__item:hover { border-color: var(--ink); }
.photo-grid__item img { width: 100%; height: auto; transition: transform .5s; }
.photo-grid__item:hover img { transform: scale(1.02); }
@media (min-width: 640px) { .photo-grid { gap: 2rem; } .photo-grid__cell { width: calc(50% - 1rem); } }
@media (min-width: 1024px) { .photo-grid { gap: 2.5rem; } .photo-grid__cell { width: calc(33.333% - 1.67rem); } }

/* =========================================================================
   Позиции меню
   ====================================================================== */
.dishes { background: var(--bg); padding: 4rem 1.25rem; }
@media (min-width: 640px) { .dishes { padding: 6rem 2rem; } }
@media (min-width: 1024px) { .dishes { padding-left: 4rem; padding-right: 4rem; } }
.dishes__head { display: grid; gap: 1.75rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.dishes__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6.5vw, 5.3rem); line-height: .94; letter-spacing: -.02em; color: var(--ink); }
.dishes__lead { max-width: 32rem; font-family: var(--serif); font-weight: 300; font-size: 1.18rem; line-height: 1.625; letter-spacing: .015em; color: #544d46; }
.eyebrow--left { text-align: left; }
@media (min-width: 640px) { .dishes__head { padding-bottom: 3.5rem; } }
@media (min-width: 1024px) { .dishes__head { grid-template-columns: 1fr .7fr; align-items: end; } .dishes__lead { justify-self: end; } }

.dish-bar {
	position: sticky; top: 0; z-index: 40; margin: 0 -1.25rem; padding: 0 1.25rem;
	border-bottom: 1px solid var(--line-2); background: rgba(231, 226, 220, .95);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
body.admin-bar .dish-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dish-bar { top: 46px; } }
.dish-bar__scroll { display: flex; max-width: 80rem; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.dish-bar__scroll::-webkit-scrollbar { display: none; }
.pill {
	position: relative; flex-shrink: 0; padding: 1.25rem; font-family: var(--sans); font-weight: 400; font-size: .65rem;
	text-transform: uppercase; letter-spacing: .18em; color: #756e67; transition: color .3s; white-space: nowrap;
}
.pill:hover, .pill.is-active, .pill.is-spy { color: var(--ink); }
.pill::after { content: ""; position: absolute; bottom: 0; left: 1.25rem; right: 1.25rem; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .3s; }
.pill.is-active::after, .pill.is-spy::after { transform: scaleX(1); }
.pill--all { position: sticky; left: 0; z-index: 10; padding-left: 0; border-right: 1px solid var(--line); background: var(--bg); box-shadow: 12px 0 16px -16px rgba(42, 37, 32, .8); }
.pill--all::after { left: 0; }
@media (min-width: 640px) {
	.dish-bar { margin: 0 -2rem; padding: 0 2rem; }
	.pill { padding: 1.25rem 1.75rem; }
	.pill::after { left: 1.75rem; right: 1.75rem; }
	.pill--all { padding-left: 0; }
	.pill--all::after { left: 0; }
}
@media (min-width: 1024px) { .dish-bar { margin: 0 -4rem; padding: 0 4rem; } }

.dish-section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.dish-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.dish-section__head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--ink); }
.dish-section__count { font-family: var(--sans); font-size: .6rem; letter-spacing: .15em; color: var(--mute-2); }
@media (min-width: 640px) { .dish-section { padding: 4rem 0; } .dish-section__head { margin-bottom: 2.25rem; } }
.dishes__empty { padding: 4rem 0; }

.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem .75rem; }
@media (min-width: 640px) { .dish-grid { gap: 3rem 1.5rem; } }
@media (min-width: 768px) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.75rem; } }
.dish-card__btn { display: block; width: 100%; min-width: 0; padding: 0; text-align: left; }
.dish-card__btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.dish-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #d8d2cb; }
.dish-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease-out, filter .7s ease-out; }
.dish-card__btn:hover .dish-card__media img { transform: scale(1.035); filter: brightness(.93); }
.dish-card__body { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.dish-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.dish-card__name { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.1; color: var(--ink); }
.dish-card__price { flex-shrink: 0; font-family: var(--sans); font-size: .72rem; letter-spacing: .05em; color: var(--ink); }
.dish-card__cat { font-family: var(--sans); font-size: .58rem; text-transform: uppercase; letter-spacing: .18em; color: var(--mute-2); }
@media (min-width: 640px) {
	.dish-card__body { padding-top: 1.25rem; }
	.dish-card__name { font-size: 1.3rem; }
	.dish-card__price { font-size: .78rem; }
}

/* Окно блюда */
.dish-modal {
	width: calc(100% - 1.5rem); max-width: 64rem; max-height: 92vh; margin: auto; padding: 0; overflow-y: auto;
	background: var(--paper); color: var(--ink); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
}
.dish-modal[open] { display: grid; animation: tako-pop .38s cubic-bezier(.22, 1, .36, 1); }
.dish-modal::backdrop, .policy-modal::backdrop { background: rgba(24, 21, 18, .75); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes tako-pop { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.dish-modal__media { height: 40vh; min-height: 300px; background: #d8d2cb; }
.dish-modal__media img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.dish-modal__body { display: flex; flex-direction: column; min-height: 430px; padding: 1.75rem; }
.dish-modal__close {
	position: absolute; top: 1rem; right: 1rem; z-index: 2; display: flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem; background: rgba(238, 233, 227, .9); color: var(--ink); transition: all .3s;
}
.dish-modal__close:hover { background: var(--ink); color: #fff; }
.dish-modal__close .icon { stroke-width: 1.25; }
.dish-modal .eyebrow { margin-bottom: 2rem; color: #756e67; font-size: .62rem; letter-spacing: .25em; }
.dish-modal__title { max-width: 28rem; padding-right: 2rem; font-size: clamp(2.25rem, 4vw, 3.8rem); line-height: .95; letter-spacing: -.02em; color: var(--ink); }
.dish-modal__desc { max-width: 28rem; margin: 2rem 0; font-family: var(--serif); font-weight: 300; font-size: 1.18rem; line-height: 1.65; color: #514a44; }
.dish-modal__desc:empty { display: none; }
.dish-modal__foot { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.dish-modal__foot-r { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.dish-modal__label { display: block; font-family: var(--sans); font-size: .58rem; text-transform: uppercase; letter-spacing: .2em; color: var(--mute-2); }
.dish-modal__value { display: block; margin-top: .5rem; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.dish-modal.no-media { max-width: 40rem; }
@media (min-width: 640px) {
	.dish-modal { width: calc(100% - 3.5rem); }
	.dish-modal__body { padding: 2.5rem; }
	.dish-modal__close { top: 1.5rem; right: 1.5rem; }
}
@media (min-width: 768px) {
	.dish-modal[open] { grid-template-columns: 1.05fr .95fr; }
	.dish-modal[open].no-media { grid-template-columns: 1fr; }
	.dish-modal__media { height: auto; min-height: 620px; }
	.dish-modal__body { padding: 3rem; }
}
@media (min-width: 1024px) { .dish-modal__body { padding: 3.5rem; } }

/* =========================================================================
   Контакты
   ====================================================================== */
.contacts { position: relative; min-height: 100vh; width: 100%; overflow: hidden; }
.contacts__bg { position: absolute; inset: 0; }
.contacts__bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.contacts__bg span { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.contacts__inner {
	position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 100vh; max-width: 42rem; margin: 0 auto; padding: 4rem 1rem; text-align: center;
}
.contacts__title { margin-bottom: 2rem; font-weight: 300; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: .15em; color: #fff; }
.contacts__list { margin-bottom: 2rem; }
.contacts__list > * + * { margin-top: 1.5rem; }
.contacts__item { display: flex; flex-direction: column; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .8); }
.contacts__item--rule { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.contacts__text, .contacts__phone { font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 2.5vw, 1.6rem); letter-spacing: .08em; color: #fff; }
.contacts__label { margin-bottom: .5rem; font-family: var(--serif); font-weight: 300; font-size: clamp(.95rem, 1.8vw, 1.1rem); letter-spacing: .08em; color: #fff; opacity: .85; }
.contacts__phone { transition: color .3s; }
.contacts__phone:hover { color: rgba(255, 255, 255, .8); }
.contacts__hours { font-family: var(--serif); font-weight: 300; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: .08em; color: #fff; }
.contacts__actions { margin-bottom: 2rem; width: 100%; display: flex; justify-content: center; padding: 0 1rem; }
.contacts .social__link { opacity: .9; }
@media (min-width: 640px) {
	.contacts__title { margin-bottom: 4rem; }
	.contacts__list { margin-bottom: 4rem; }
	.contacts__list > * + * { margin-top: 2rem; }
	.contacts__actions { margin-bottom: 3rem; padding: 0; }
	.contacts__inner { padding-top: 6rem; }
}

/* =========================================================================
   Обратная связь
   ====================================================================== */
.feedback { background: var(--bg); padding: 4rem 1.25rem; }
.feedback__head { padding-bottom: 3rem; border-bottom: 1px solid #cbc4bc; }
.feedback__head .eyebrow { letter-spacing: .32em; }
.feedback__title { max-width: 53rem; font-weight: 300; font-size: clamp(2.65rem, 7vw, 5.4rem); line-height: .94; letter-spacing: -.025em; color: var(--ink); }
.feedback__lead { max-width: 42.5rem; margin-top: 2rem; font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.6; letter-spacing: .015em; color: #4d4741; }
.feedback__grid { display: grid; gap: 3.5rem; padding-top: 3rem; }
.feedback__aside-text { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 1.25rem; line-height: 1.625; color: #514a44; }
.feedback__rule { display: block; width: 2.5rem; height: 1px; margin-top: 2rem; background: #9f968d; }
.feedback__aside-note { margin-top: 1.25rem; font-size: .67rem; font-weight: 300; line-height: 1.8; letter-spacing: .12em; color: #756e67; }
@media (min-width: 640px) { .feedback { padding: 6rem 2rem; } .feedback__head { padding-bottom: 4rem; } .feedback__grid { padding-top: 4rem; } }
@media (min-width: 1024px) { .feedback { padding-left: 4rem; padding-right: 4rem; } .feedback__grid { grid-template-columns: 240px 1fr; gap: 5rem; } .feedback__aside { padding-top: .25rem; } }

.feedback-form { display: grid; gap: 2.5rem; max-width: 47.5rem; align-content: start; }
.label { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 400; text-transform: uppercase; letter-spacing: .2em; color: #4d4741; }
.label b, .feedback-types legend b { color: var(--err); font-weight: 400; }
.feedback-types .label { margin-bottom: 1.25rem; }
.feedback-types__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.feedback-type { position: relative; display: flex; min-height: 3rem; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); cursor: pointer; }
.feedback-type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.feedback-type span { display: flex; flex: 1; align-items: center; justify-content: center; padding: 0 .75rem; text-align: center; font-family: var(--sans); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #504942; transition: all .3s; }
.feedback-type:hover span { background: var(--paper-3); }
.feedback-type input:checked + span { background: var(--ink); color: #f1ede8; }
.feedback-type input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -4px; }
@media (min-width: 640px) { .feedback-types__grid { grid-template-columns: repeat(4, 1fr); } }

.feedback-form__row { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .feedback-form__row { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.field input, .field textarea {
	display: block; width: 100%; padding: .75rem 0; border-bottom: 1px solid var(--line-2); font-size: 1rem; color: var(--ink);
	outline: none; transition: border-color .3s;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(114, 107, 100, .65); }
.field input:hover, .field textarea:hover { border-color: #817970; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field__error { margin-top: .5rem; font-size: .75rem; color: var(--err); }
.field__error:empty { display: none; }
.field__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.field__counter { flex-shrink: 0; margin-top: .5rem; font-size: .65rem; letter-spacing: .08em; color: #7b746d; }
.feedback-form__foot { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; }
@media (min-width: 640px) { .feedback-form__foot { flex-direction: row; align-items: center; } }
.feedback-success { display: flex; align-items: flex-start; gap: .75rem; font-family: var(--serif); font-size: 1.125rem; line-height: 1.25; color: var(--ok); }
.feedback-success .icon { margin-top: .125rem; }
.feedback-note { font-size: .67rem; line-height: 1.8; letter-spacing: .08em; color: #756e67; }
.feedback-note a { text-decoration: underline; text-underline-offset: 3px; }
.feedback-note a:hover { color: var(--ink); }

/* =========================================================================
   Наши проекты
   ====================================================================== */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.project-card { display: flex; flex-direction: column; padding-top: 2.5rem; border-top: 1px solid var(--ink); }
.project-card__logo { display: flex; align-items: center; justify-content: center; height: 5rem; margin-bottom: 2rem; }
.project-card__logo img { height: 4rem; width: auto; max-width: 100%; object-fit: contain; }
.project-card__logo img.is-black { filter: brightness(0) saturate(100%); }
.project-card__logo-text { font-family: var(--serif); font-weight: 300; font-size: 3rem; letter-spacing: .3em; color: var(--ink); }
.project-card__desc { flex: 1; text-align: center; margin-bottom: 2rem; }
.project-card__text, .project-card__closing { font-family: var(--serif); font-size: clamp(1rem, 1.4vw, 1.1rem); letter-spacing: .03em; line-height: 1.7; }
.project-card__text { font-weight: 300; font-style: italic; color: var(--ink-3); }
.project-card__text > * + * { margin-top: .75rem; }
.project-card__closing { margin-top: .75rem; font-weight: 400; color: var(--ink); }
.project-card__rule { margin-bottom: 1.5rem; border-top: 1px solid rgba(42, 37, 32, .2); }
.project-card__phone { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
.project-card__phone .icon { width: 1rem; height: 1rem; }
.project-card__phone a { font-family: var(--serif); font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.3rem); letter-spacing: .08em; color: var(--ink); transition: opacity .2s; }
.project-card__phone a:hover { opacity: .6; }
.project-card__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
.project-card__social { display: contents; }
@media (min-width: 640px) { .project-grid { gap: 4rem; } }
@media (min-width: 768px) { .project-grid { grid-template-columns: 1fr 1fr; } }
.section--beige .section-head { margin-bottom: 4rem; }
@media (min-width: 640px) { .section--beige .section-head { margin-bottom: 6rem; } }

/* =========================================================================
   Подвал
   ====================================================================== */
.site-footer { position: relative; z-index: 10; padding: 2.25rem 1.25rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.site-footer__grid { display: grid; gap: 1.75rem; max-width: 80rem; margin: 0 auto; color: var(--ink-4); }
.site-footer__copy, .site-footer__credit, .site-footer__link { font-family: var(--sans); font-size: .62rem; font-weight: 300; letter-spacing: .1em; line-height: 1.625; }
.site-footer__copy .brand { display: block; margin-bottom: .5rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: .08em; line-height: 1.4; color: var(--ink); }
.site-footer__link { padding-bottom: .25rem; border-bottom: 1px solid rgba(140, 132, 124, .5); text-transform: uppercase; letter-spacing: .14em; transition: all .3s; }
.site-footer__credit .site-footer__link { text-transform: none; letter-spacing: inherit; color: var(--ink); }
.site-footer__link:hover { border-color: var(--ink); color: var(--ink); }
@media (min-width: 640px) {
	.site-footer { padding: 2.5rem 2rem; }
	.site-footer__grid { grid-template-columns: repeat(3, 1fr); align-items: end; gap: 2rem; }
	.site-footer__policy { text-align: center; }
	.site-footer__credit { text-align: right; }
}
@media (min-width: 1024px) { .site-footer { padding-left: 4rem; padding-right: 4rem; } }

/* Политика конфиденциальности */
.policy-modal {
	position: fixed; width: calc(100% - 1.5rem); max-width: 42rem; max-height: 88vh; margin: auto; padding: 1.75rem; overflow-y: auto;
	background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .4);
}
.policy-modal[open] { animation: tako-pop .3s ease-out; }
.policy-modal::backdrop { background: rgba(24, 21, 18, .65); }
.policy-modal__close { position: absolute; top: 1rem; right: 1rem; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; color: var(--ink-4); transition: all .3s; }
.policy-modal__close:hover { background: var(--ink); color: #fff; }
.policy-modal__close .icon { stroke-width: 1.25; }
.policy-modal .eyebrow { margin-bottom: 1.25rem; font-size: .62rem; letter-spacing: .25em; color: #756e67; }
.policy-modal__title { padding-right: 2.5rem; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1; color: var(--ink); }
.policy-modal__lead { margin-top: 1.75rem; font-family: var(--serif); font-weight: 300; font-size: 1.125rem; line-height: 1.625; color: #514a44; }
.policy-modal__body { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.policy-modal__body > * + * { margin-top: 0; }
.policy-modal__body h3 { margin-top: 1.75rem; font-family: var(--sans); font-size: .65rem; font-weight: 400; text-transform: uppercase; letter-spacing: .18em; line-height: 1.5; }
.policy-modal__body h3:first-child { margin-top: 0; }
.policy-modal__body p { margin-top: .75rem; font-family: var(--serif); font-weight: 300; font-size: 1.05rem; line-height: 1.625; color: #5b544d; }
.policy-modal__body > p:first-child { margin-top: 0; }
@media (min-width: 640px) { .policy-modal { padding: 3rem; } .policy-modal__close { top: 1.5rem; right: 1.5rem; } }

/* =========================================================================
   Лайтбокс
   ====================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .9); }
.lightbox__stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 1rem 4rem; overflow: hidden; }
.lightbox__stage img { max-width: 100%; max-height: 90vh; object-fit: contain; display: block; cursor: default; }
.lightbox.is-zoomable .lightbox__stage img { cursor: zoom-in; }
.lightbox.is-zoomed .lightbox__stage { overflow: auto; align-items: flex-start; justify-content: flex-start; padding: 0; }
.lightbox.is-zoomed .lightbox__stage img { max-width: none; max-height: none; cursor: zoom-out; transition: width .2s; }
.lightbox__close { position: absolute; top: 1.5rem; right: 2rem; z-index: 3; font-family: var(--sans); font-size: 2rem; font-weight: 300; line-height: 1; color: rgba(255, 255, 255, .8); background: none; }
.lightbox__close:hover { color: #fff; }
.lightbox__nav, .lightbox__zbtn {
	display: flex; align-items: center; justify-content: center; padding: .75rem; border-radius: 9999px; color: rgba(255, 255, 255, .8);
	background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: all .2s;
}
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.lightbox__nav:hover, .lightbox__zbtn:hover { background: rgba(0, 0, 0, .7); color: #fff; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox.is-zoomed .lightbox__nav { display: none; }
.lightbox__zoom { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: .75rem; }
.lightbox__zbtn { padding: .625rem; }
.lightbox__zbtn:disabled { opacity: .3; cursor: not-allowed; }
.lightbox__zval { min-width: 2.5rem; text-align: center; font-family: var(--sans); font-size: .875rem; color: rgba(255, 255, 255, .6); }
@media (min-width: 640px) { .lightbox__nav--prev { left: 2rem; } .lightbox__nav--next { right: 2rem; } .lightbox__stage { padding: 1rem 5rem; } }
.pill--all.is-dim { color: #756e67; }
.pill--all.is-dim::after { transform: scaleX(0); }
