/*
Theme Name: Татарская слобода
Theme URI: https://example.com/tatarskaya-sloboda
Author: Студия сайта
Description: Лёгкая кастомная тема для ресторана татарской кухни: меню с фильтром категорий, галерея, контакты, разметка Restaurant. Без сборщиков и внешних библиотек.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tatarskaya-sloboda
Tags: restaurant, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   1. Переменные и база
   ========================================================================== */

:root {
	--ts-cream: #f7f1e4;
	--ts-cream-2: #fbf7ee;
	--ts-cream-3: #efe7d8;
	--ts-line: #e2d7c2;
	--ts-green: #134e3f;
	--ts-green-2: #17554a;
	--ts-green-dark: #0e3a2f;
	--ts-brown: #8a5b34;
	--ts-gold: #c8a24a;
	--ts-gold-soft: #e5c173;
	--ts-ink: #2e2a24;
	--ts-muted: #6f675c;

	--ts-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--ts-font-head: "Lora", Georgia, "Times New Roman", serif;

	--ts-wrap: 1200px;
	--ts-gap: 28px;
	--ts-radius: 14px;
	--ts-radius-lg: 20px;
	--ts-shadow: 0 10px 30px rgba(46, 42, 36, .08);
	--ts-shadow-sm: 0 4px 14px rgba(46, 42, 36, .07);
	--ts-header-h: 78px;
	--ts-ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ts-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--ts-cream);
	color: var(--ts-ink);
	font-family: var(--ts-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

body.ts-nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ts-green);
	text-decoration-color: rgba(19, 78, 63, .35);
	text-underline-offset: 3px;
	transition: color .18s var(--ts-ease), text-decoration-color .18s var(--ts-ease);
}

a:hover {
	color: var(--ts-brown);
	text-decoration-color: rgba(138, 91, 52, .5);
}

h1, h2, h3, h4 {
	font-family: var(--ts-font-head);
	font-weight: 600;
	line-height: 1.22;
	color: var(--ts-green-dark);
	margin: 0 0 .5em;
	letter-spacing: -.005em;
}

h1 { font-size: clamp(30px, 3.6vw, 46px); }
h2 { font-size: clamp(25px, 2.6vw, 34px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
	outline: 2px solid var(--ts-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ts-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 200;
	background: var(--ts-green);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
}

.ts-skip:focus {
	left: 16px;
	color: #fff;
}

.ts-wrap {
	width: 100%;
	max-width: var(--ts-wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.ts-main {
	min-height: 50vh;
}

.ts-section {
	padding: 76px 0;
}

.ts-section__head {
	text-align: center;
	margin-bottom: 42px;
}

.ts-section__title {
	margin-bottom: .3em;
}

.ts-section__more {
	text-align: center;
	margin-top: 40px;
}

.ts-ornament {
	display: inline-flex;
	color: var(--ts-gold);
	line-height: 0;
}

.ts-band {
	color: var(--ts-gold);
	line-height: 0;
	opacity: .55;
}

.ts-band svg {
	width: 100%;
	height: 20px;
	display: block;
}

/* ==========================================================================
   2. Кнопки
   ========================================================================== */

.ts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 13px 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--ts-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ts-ease), color .2s var(--ts-ease), border-color .2s var(--ts-ease), transform .2s var(--ts-ease);
}

.ts-btn--sm {
	min-height: 42px;
	padding: 10px 20px;
	font-size: 15px;
}

.ts-btn--green {
	background: var(--ts-green);
	color: #fff;
}

.ts-btn--green:hover {
	background: var(--ts-green-dark);
	color: #fff;
	transform: translateY(-1px);
}

.ts-btn--gold {
	background: var(--ts-gold);
	color: #23201a;
}

.ts-btn--gold:hover {
	background: var(--ts-gold-soft);
	color: #23201a;
	transform: translateY(-1px);
}

.ts-btn--outline {
	background: transparent;
	color: var(--ts-green);
	border-color: rgba(19, 78, 63, .3);
}

.ts-btn--outline:hover {
	background: rgba(19, 78, 63, .06);
	border-color: var(--ts-green);
	color: var(--ts-green);
}

.ts-btn--ghost {
	background: rgba(255, 255, 255, .14);
	color: #fff;
	border-color: rgba(255, 255, 255, .55);
	backdrop-filter: none;
}

.ts-btn--ghost:hover {
	background: rgba(255, 255, 255, .24);
	color: #fff;
	border-color: #fff;
}

/* ==========================================================================
   3. Шапка
   ========================================================================== */

.ts-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(247, 241, 228, .94);
	border-bottom: 1px solid var(--ts-line);
	transition: box-shadow .25s var(--ts-ease), background-color .25s var(--ts-ease);
}

.ts-header.is-stuck {
	box-shadow: 0 4px 18px rgba(46, 42, 36, .09);
	background: rgba(247, 241, 228, .985);
}

.ts-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--ts-header-h);
}

.ts-logo__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ts-green-dark);
}

.ts-logo__mark {
	color: var(--ts-green);
	line-height: 0;
	flex: 0 0 auto;
}

.ts-logo__mark svg {
	width: 40px;
	height: 40px;
}

.ts-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.ts-logo__name {
	font-family: var(--ts-font-head);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: .01em;
}

.ts-logo__sub {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ts-muted);
}

.custom-logo {
	max-height: 52px;
	width: auto;
}

.ts-nav {
	margin-left: auto;
}

.ts-nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-nav__list a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	color: var(--ts-ink);
}

.ts-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--ts-gold);
	transition: right .25s var(--ts-ease);
}

.ts-nav__list a:hover::after,
.ts-nav__list .current-menu-item > a::after,
.ts-nav__list .current_page_item > a::after {
	right: 0;
}

.ts-nav__list .current-menu-item > a,
.ts-nav__list .current_page_item > a {
	color: var(--ts-green-dark);
}

.ts-nav__list .ts-menu-phone,
.ts-nav__cta {
	display: none;
}

.ts-header__aside {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ts-header__phone {
	font-size: 17px;
	font-weight: 600;
	color: var(--ts-green-dark);
	text-decoration: none;
	white-space: nowrap;
}

.ts-header__phone:hover {
	color: var(--ts-brown);
}

.ts-burger {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--ts-line);
	border-radius: 12px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.ts-burger__box {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
}

.ts-burger__line,
.ts-burger__line::before,
.ts-burger__line::after {
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: var(--ts-green-dark);
	border-radius: 2px;
	transition: transform .25s var(--ts-ease), opacity .18s linear, top .25s var(--ts-ease);
}

.ts-burger__line {
	top: 6px;
}

.ts-burger__line::before {
	content: "";
	top: -6px;
}

.ts-burger__line::after {
	content: "";
	top: 6px;
}

.ts-burger[aria-expanded="true"] .ts-burger__line {
	background: transparent;
}

.ts-burger[aria-expanded="true"] .ts-burger__line::before {
	top: 0;
	transform: rotate(45deg);
}

.ts-burger[aria-expanded="true"] .ts-burger__line::after {
	top: 0;
	transform: rotate(-45deg);
}

.ts-overlay {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(24, 34, 30, .45);
	opacity: 0;
	transition: opacity .25s var(--ts-ease);
}

.ts-overlay.is-visible {
	opacity: 1;
}

/* ==========================================================================
   4. Первый экран
   ========================================================================== */

.ts-hero {
	position: relative;
	isolation: isolate;
	min-height: min(78vh, 660px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.ts-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.ts-hero__media img,
.ts-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 58%;
}

.ts-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 40, 33, .18) 0%, rgba(14, 40, 33, .34) 45%, rgba(11, 32, 26, .78) 100%);
}

.ts-hero__inner {
	width: 100%;
	max-width: var(--ts-wrap);
	margin: 0 auto;
	padding: 0 24px 72px;
}

.ts-hero__content {
	max-width: 640px;
	color: #fff;
}

.ts-hero__eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ts-gold-soft);
}

.ts-hero__title {
	color: #fff;
	margin-bottom: .35em;
	font-size: clamp(36px, 5vw, 60px);
	text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}

.ts-hero__text {
	font-size: clamp(17px, 1.4vw, 19px);
	color: rgba(255, 255, 255, .92);
	margin-bottom: 30px;
	max-width: 30em;
}

.ts-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 26px;
}

.ts-hero__place {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, .78);
}

/* ==========================================================================
   5. Сетки и карточки
   ========================================================================== */

.ts-grid {
	display: grid;
	gap: var(--ts-gap);
}

.ts-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ts-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ts-card {
	display: flex;
	flex-direction: column;
	background: var(--ts-cream-2);
	border: 1px solid var(--ts-line);
	border-radius: var(--ts-radius-lg);
	overflow: hidden;
	transition: transform .25s var(--ts-ease), box-shadow .25s var(--ts-ease), border-color .25s var(--ts-ease);
}

.ts-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ts-shadow);
	border-color: rgba(200, 162, 74, .55);
}

.ts-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ts-cream-3);
	overflow: hidden;
}

.ts-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ts-ease);
}

.ts-card:hover .ts-card__media img {
	transform: scale(1.035);
}

.ts-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 22px;
}

.ts-card__title {
	font-size: 20px;
	margin-bottom: .35em;
}

.ts-card__desc {
	color: var(--ts-muted);
	font-size: 15px;
	line-height: 1.55;
	margin-bottom: 18px;
}

.ts-card__meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: auto 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--ts-line);
}

.ts-card__price {
	font-size: 19px;
	font-weight: 700;
	color: var(--ts-green-dark);
}

.ts-card__weight {
	font-size: 14px;
	color: var(--ts-muted);
}

.ts-card--large .ts-card__media {
	aspect-ratio: 16 / 10;
}

.ts-card--large .ts-card__title {
	font-size: 23px;
}

.ts-card--compact .ts-card__media {
	aspect-ratio: 3 / 2;
}

.ts-card.is-hidden {
	display: none;
}

/* Блок преимуществ на главной */

.ts-section__lead {
	max-width: 62ch;
	margin: 0 auto;
	color: var(--ts-muted);
	font-size: 17px;
}

.ts-features {
	background: var(--ts-cream-2);
	border-top: 1px solid var(--ts-line);
	border-bottom: 1px solid var(--ts-line);
}

.ts-features__row {
	gap: var(--ts-gap);
}

.ts-feature {
	height: 100%;
	padding: 26px 26px 28px;
	background: var(--ts-cream);
	border: 1px solid var(--ts-line);
	border-radius: var(--ts-radius-lg);
}

.ts-feature h3 {
	margin-bottom: .45em;
	font-size: 21px;
}

.ts-feature p {
	margin: 0;
	color: var(--ts-muted);
	font-size: 16px;
	line-height: 1.6;
}

.ts-features .wp-block-columns {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.ts-features .wp-block-columns {
		flex-wrap: wrap;
		gap: 16px;
	}

	.ts-features .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ==========================================================================
   6. Меню с фильтром
   ========================================================================== */

.ts-menu {
	padding: 0 0 70px;
}

.ts-menu__tabs {
	position: sticky;
	top: var(--ts-header-h);
	z-index: 40;
	display: flex;
	gap: 10px;
	margin: 0 auto 46px;
	padding: 14px 24px;
	max-width: var(--ts-wrap);
	overflow-x: auto;
	scrollbar-width: thin;
	background: rgba(247, 241, 228, .96);
	-webkit-overflow-scrolling: touch;
}

.ts-menu__tabs::-webkit-scrollbar {
	height: 4px;
}

.ts-menu__tabs::-webkit-scrollbar-thumb {
	background: var(--ts-line);
	border-radius: 4px;
}

.ts-tab {
	flex: 0 0 auto;
	padding: 10px 20px;
	background: transparent;
	border: 1px solid var(--ts-line);
	border-radius: 999px;
	font-family: var(--ts-font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--ts-ink);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s var(--ts-ease), color .2s var(--ts-ease), border-color .2s var(--ts-ease);
}

.ts-tab:hover {
	border-color: var(--ts-gold);
}

.ts-tab.is-active {
	background: var(--ts-green);
	border-color: var(--ts-green);
	color: #fff;
}

.ts-menu__body {
	max-width: var(--ts-wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.ts-menu__section {
	margin-bottom: 72px;
	scroll-margin-top: calc(var(--ts-header-h) + 84px);
}

.ts-menu__section.is-hidden {
	display: none;
}

.ts-menu__head {
	margin-bottom: 30px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ts-line);
}

.ts-menu__title {
	margin-bottom: .2em;
}

.ts-menu__note {
	margin: 0;
	color: var(--ts-muted);
	font-size: 16px;
}

.ts-list {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 40px;
}

.ts-list__item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.ts-list__media {
	flex: 0 0 92px;
	width: 92px;
	height: 92px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ts-cream-3);
}

.ts-list__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-list__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ts-list__row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.ts-list__title {
	font-size: 18px;
	margin: 0;
	flex: 0 1 auto;
}

.ts-list__dots {
	flex: 1 1 auto;
	min-width: 18px;
	height: 1px;
	border-bottom: 1px dotted var(--ts-line);
	transform: translateY(-3px);
}

.ts-list__price {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--ts-green-dark);
}

.ts-list__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ts-muted);
}

.ts-list__weight {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #8d8577;
}

/* ==========================================================================
   7. Галерея и лайтбокс
   ========================================================================== */

.ts-gallery-section {
	background: var(--ts-cream-2);
	border-top: 1px solid var(--ts-line);
	border-bottom: 1px solid var(--ts-line);
}

.ts-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.ts-gallery__item {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	border-radius: var(--ts-radius);
	overflow: hidden;
	background: var(--ts-cream-3);
	aspect-ratio: 1 / 1;
	cursor: zoom-in;
}

.ts-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s var(--ts-ease);
}

.ts-gallery__item:hover img {
	transform: scale(1.05);
}

.ts-gallery__item:nth-child(1),
.ts-gallery__item:nth-child(8) {
	grid-column: span 2;
	grid-row: span 2;
	aspect-ratio: 1 / 1;
}

.ts-lightbox {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 64px;
	background: rgba(14, 26, 22, .92);
	opacity: 0;
	transition: opacity .22s var(--ts-ease);
}

/* Атрибут hidden должен побеждать display: flex, иначе лайтбокс перекрывает страницу. */
.ts-lightbox[hidden] {
	display: none;
}

.ts-lightbox.is-open {
	opacity: 1;
}

.ts-lightbox__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	text-align: center;
}

.ts-lightbox__img {
	max-width: 100%;
	max-height: 78vh;
	width: auto;
	border-radius: 10px;
	margin: 0 auto;
}

.ts-lightbox__caption {
	margin-top: 16px;
	color: rgba(255, 255, 255, .8);
	font-size: 15px;
}

.ts-lightbox__close,
.ts-lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	border-radius: 50%;
	width: 46px;
	height: 46px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s var(--ts-ease);
}

.ts-lightbox__close:hover,
.ts-lightbox__nav:hover {
	background: rgba(255, 255, 255, .22);
}

.ts-lightbox__close {
	top: 22px;
	right: 22px;
	font-size: 26px;
}

.ts-lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ts-lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   8. Контакты и карта
   ========================================================================== */

.ts-contacts__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 40px;
	align-items: start;
}

.ts-contacts__list {
	margin: 0;
}

.ts-contacts__list > div {
	padding: 16px 0;
	border-bottom: 1px solid var(--ts-line);
}

.ts-contacts__list > div:first-child {
	padding-top: 0;
}

.ts-contacts__list dt {
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ts-muted);
	margin-bottom: 5px;
}

.ts-contacts__list dd {
	margin: 0;
	font-size: 18px;
	color: var(--ts-ink);
}

.ts-contacts__hours {
	display: block;
	font-size: 17px;
}

.ts-contacts__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.ts-map {
	margin: 0;
	border: 1px solid var(--ts-line);
	border-radius: var(--ts-radius-lg);
	overflow: hidden;
	background: var(--ts-cream-3);
}

.ts-map__svg {
	display: block;
	width: 100%;
	height: auto;
}

.ts-map__caption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	background: var(--ts-cream-2);
	border-top: 1px solid var(--ts-line);
	font-size: 15px;
	color: var(--ts-muted);
}

.ts-hours {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-hours li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--ts-line);
}

/* ==========================================================================
   9. Страницы, блюдо, архивы
   ========================================================================== */

.ts-page__head {
	padding: 54px 0 34px;
	text-align: center;
	background: var(--ts-cream-2);
	border-bottom: 1px solid var(--ts-line);
}

.ts-page__head--flat {
	background: transparent;
	border: 0;
	padding: 24px 0 30px;
}

.ts-page__title {
	margin-bottom: .3em;
}

.ts-page__content {
	padding: 60px 0 80px;
}

.ts-page__content--bare {
	padding: 0;
}

.ts-page__content > .ts-wrap,
.ts-page__content > p,
.ts-page__content > h2,
.ts-page__content > h3,
.ts-page__content > ul,
.ts-page__content > ol,
.ts-page__content > figure,
.ts-page__content > blockquote {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.ts-page__content > .ts-section,
.ts-page__content > .ts-hero,
.ts-page__content > .ts-menu,
.ts-page__content > .wp-block-columns,
.ts-page__content > .wp-block-group {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.ts-crumbs {
	padding: 18px 0 0;
	font-size: 14px;
	color: var(--ts-muted);
}

.ts-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-crumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--ts-line);
}

.ts-dish {
	padding: 0 0 80px;
}

.ts-dish__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: start;
	padding: 34px 0 0;
}

.ts-dish__media {
	border-radius: var(--ts-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ts-line);
	background: var(--ts-cream-3);
}

.ts-dish__cat {
	margin-bottom: 10px;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ts-dish__meta {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 24px;
}

.ts-dish__price {
	font-size: 28px;
	font-weight: 700;
	color: var(--ts-green-dark);
}

.ts-dish__weight {
	color: var(--ts-muted);
}

.ts-dish__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 28px 0 18px;
}

.ts-dish__note {
	font-size: 14px;
	color: var(--ts-muted);
}

.ts-related {
	padding-top: 70px;
}

.ts-archive {
	padding: 20px 0 80px;
}

.ts-posts {
	display: grid;
	gap: 26px;
}

.ts-post {
	padding: 24px;
	background: var(--ts-cream-2);
	border: 1px solid var(--ts-line);
	border-radius: var(--ts-radius);
}

.ts-post__title {
	font-size: 22px;
}

.ts-empty {
	font-size: 18px;
	color: var(--ts-muted);
}

.ts-404 {
	padding: 90px 0 110px;
	text-align: center;
}

.ts-404__code {
	font-family: var(--ts-font-head);
	font-size: 84px;
	line-height: 1;
	color: var(--ts-gold);
	margin-bottom: 10px;
}

.ts-404__text {
	max-width: 46ch;
	margin: 18px auto 30px;
	color: var(--ts-muted);
}

.ts-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.ts-search {
	display: flex;
	gap: 10px;
	max-width: 460px;
}

.ts-search__field {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--ts-line);
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 16px;
}

.pagination,
.navigation.pagination {
	margin-top: 44px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--ts-line);
	border-radius: 10px;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ts-green);
	border-color: var(--ts-green);
	color: #fff;
}

/* Контент страниц (Gutenberg) */

.ts-page__content .wp-block-image img {
	border-radius: var(--ts-radius);
}

.ts-page__content blockquote {
	border-left: 3px solid var(--ts-gold);
	margin-left: 0;
	padding-left: 20px;
	font-family: var(--ts-font-head);
	font-size: 19px;
	color: var(--ts-green-dark);
}

.ts-page__content ul,
.ts-page__content ol {
	padding-left: 1.3em;
}

.ts-page__content li {
	margin-bottom: .4em;
}

.ts-page__content h2 {
	margin-top: 1.6em;
}

.ts-page__content h3 {
	margin-top: 1.4em;
}

/* ==========================================================================
   10. Подвал
   ========================================================================== */

.ts-footer {
	background: var(--ts-green-dark);
	color: rgba(255, 255, 255, .82);
	margin-top: 0;
}

.ts-footer a {
	color: rgba(255, 255, 255, .88);
	text-decoration: none;
}

.ts-footer a:hover {
	color: var(--ts-gold-soft);
}

.ts-footer .ts-band {
	color: var(--ts-gold);
	opacity: .35;
	background: var(--ts-green);
}

.ts-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 44px;
}

.ts-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.ts-footer__logo .ts-logo__mark {
	color: rgba(255, 255, 255, .12);
}

.ts-footer__name {
	font-family: var(--ts-font-head);
	font-size: 21px;
	color: #fff;
}

.ts-footer__tagline {
	font-size: 15px;
	color: rgba(255, 255, 255, .66);
	max-width: 30ch;
}

.ts-footer__title {
	font-size: 14px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ts-gold-soft);
	font-family: var(--ts-font-body);
	font-weight: 600;
	margin-bottom: 16px;
}

.ts-footer__menu,
.ts-footer__contacts,
.ts-footer__hours {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 16px;
}

.ts-footer__menu li,
.ts-footer__contacts li,
.ts-footer__hours li {
	margin-bottom: 9px;
}

.ts-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	padding-top: 22px;
	padding-bottom: 30px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
	color: rgba(255, 255, 255, .55);
}

.ts-footer__bottom p {
	margin: 0;
}

/* ==========================================================================
   11. Анимация появления
   ========================================================================== */

.ts-js .ts-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s var(--ts-ease), transform .5s var(--ts-ease);
}

.ts-js .ts-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   12. Адаптив
   ========================================================================== */

@media (max-width: 1440px) {
	:root {
		--ts-wrap: 1160px;
	}
}

@media (max-width: 1280px) {
	:root {
		--ts-wrap: 1040px;
		--ts-gap: 24px;
	}

	.ts-nav__list {
		gap: 22px;
	}

	.ts-section {
		padding: 64px 0;
	}
}

@media (max-width: 1024px) {
	.ts-header__phone {
		display: none;
	}

	.ts-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ts-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ts-gallery__item:nth-child(1),
	.ts-gallery__item:nth-child(8) {
		grid-column: span 2;
		grid-row: span 2;
	}

	.ts-contacts__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ts-dish__grid {
		gap: 32px;
	}
}

@media (max-width: 900px) {
	.ts-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ts-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px;
	}
}

@media (max-width: 768px) {
	:root {
		--ts-header-h: 66px;
		--ts-gap: 18px;
	}

	body {
		font-size: 16px;
	}

	.ts-wrap {
		padding: 0 18px;
	}

	.ts-burger {
		display: inline-flex;
	}

	.ts-header__call {
		display: none;
	}

	.ts-nav {
		position: fixed;
		top: var(--ts-header-h);
		right: 0;
		bottom: 0;
		width: min(360px, 86vw);
		z-index: 95;
		padding: 28px 24px 40px;
		background: var(--ts-cream-2);
		border-left: 1px solid var(--ts-line);
		overflow-y: auto;
		transform: translateX(105%);
		transition: transform .28s var(--ts-ease);
		visibility: hidden;
	}

	.ts-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.ts-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ts-nav__list li {
		border-bottom: 1px solid var(--ts-line);
	}

	.ts-nav__list a {
		display: block;
		padding: 15px 0;
		font-size: 18px;
	}

	.ts-nav__list a::after {
		display: none;
	}

	.ts-nav__list .ts-menu-phone {
		border-bottom: 0;
	}

	.ts-nav__list .ts-menu-phone a {
		font-weight: 700;
		color: var(--ts-green-dark);
	}

	.ts-nav__cta {
		display: block;
		margin-top: 20px;
	}

	.ts-nav__cta .ts-btn {
		width: 100%;
	}

	.ts-hero {
		min-height: 74vh;
		align-items: flex-end;
	}

	.ts-hero__inner {
		padding-bottom: 48px;
	}

	.ts-section {
		padding: 52px 0;
	}

	.ts-section__head {
		margin-bottom: 30px;
	}

	.ts-grid--2,
	.ts-grid--3 {
		grid-template-columns: 1fr;
	}

	.ts-menu__tabs {
		padding: 12px 18px;
		gap: 8px;
	}

	.ts-menu__body {
		padding: 0 18px;
	}

	.ts-menu__section {
		margin-bottom: 52px;
	}

	.ts-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ts-gallery__item:nth-child(1),
	.ts-gallery__item:nth-child(8) {
		grid-column: span 2;
		grid-row: auto;
		aspect-ratio: 3 / 2;
	}

	.ts-dish__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ts-page__head {
		padding: 36px 0 26px;
	}

	.ts-page__content {
		padding: 40px 0 60px;
	}

	.ts-page__content > p,
	.ts-page__content > h2,
	.ts-page__content > h3,
	.ts-page__content > ul,
	.ts-page__content > ol,
	.ts-page__content > figure,
	.ts-page__content > blockquote {
		padding-left: 18px;
		padding-right: 18px;
	}

	.ts-lightbox {
		padding: 20px 14px 30px;
	}

	.ts-lightbox__nav {
		bottom: 18px;
		top: auto;
		transform: none;
	}

	.ts-lightbox__nav--prev { left: 24%; }
	.ts-lightbox__nav--next { right: 24%; }

	.ts-lightbox__img {
		max-height: 66vh;
	}

	.ts-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-top: 40px;
	}
}

@media (max-width: 480px) {
	.ts-logo__sub {
		display: none;
	}

	.ts-logo__name {
		font-size: 18px;
	}

	.ts-logo__mark svg {
		width: 34px;
		height: 34px;
	}

	.ts-hero__actions .ts-btn {
		flex: 1 1 100%;
	}

	.ts-list__media {
		flex-basis: 76px;
		width: 76px;
		height: 76px;
	}

	.ts-card__body {
		padding: 17px 18px 19px;
	}

	.ts-404__code {
		font-size: 64px;
	}

	.ts-contacts__actions .ts-btn,
	.ts-dish__actions .ts-btn,
	.ts-404__actions .ts-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.ts-js .ts-reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.ts-header,
	.ts-footer,
	.ts-menu__tabs,
	.ts-lightbox,
	.ts-overlay,
	.ts-btn {
		display: none !important;
	}

	body {
		background: #fff;
	}
}
