/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--color-brand-red: #CC1823;
	--color-earth-dark: #1F2E22;
	--color-wheat-light: #F6F4EF;
	--color-sky-clear: #EAEFF2;
	--color-primary: #e31e24;
	--color-primary-dark: #c4191f;
	--color-text: #1a1a1a;
	--color-text-muted: #555;
	--color-bg: #ffffff;
	--color-border: #e0e0e0;
	--color-footer-bg: #f8f8f8;
	--font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-family: var(--font-body);
	--container-width: 1200px;
	--header-height: auto;
	--radius: 6px;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--transition: 0.2s ease;
}

/* A11y high contrast mode */
body.a11y-mode {
	--color-primary: #000;
	--color-text: #000;
	--color-bg: #fff;
	--color-border: #000;
	font-size: 118%;
	line-height: 1.7;
}

body.a11y-mode .mega-menu {
	background: #000;
}

body.a11y-mode .site-header {
	background: #fff;
}

body.a11y-mode .mega-menu__link {
	color: #fff;
}

body.a11y-mode .mega-menu__dropdown {
	background: #fff;
}

body.a11y-mode .mega-menu__sublink {
	color: #000;
}

body.a11y-mode .btn--primary {
	background: #000;
	border-color: #000;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-text);
	background: var(--color-wheat-light);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-primary-dark);
}

h1, h2, h3, h4 {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	line-height: 1.2;
}

p {
	margin: 0 0 1rem;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: var(--color-primary);
	color: #fff;
	clip: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border: 2px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

.btn--primary:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
}

.btn--outline {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
	border-radius: 24px;
	text-transform: none;
	font-weight: 400;
}

.btn--outline:hover {
	background: var(--color-primary-dark);
	color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--color-wheat-light);
	border-bottom: 1px solid rgba(31, 46, 34, 0.08);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(190px, auto) 1fr auto;
	grid-template-areas: "logo . right";
	align-items: center;
	gap: 32px;
	padding-top: 32px;
	padding-bottom: 32px;
}

.site-header__logo {
	grid-area: logo;
	padding: 12px 8px;
}

.site-header__right {
	grid-area: right;
	display: flex;
	align-items: center;
	gap: 32px;
	margin-left: auto;
}

.site-header__contacts {
	font-family: var(--font-body);
}
.site-header__actions {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 32px;
}
.site-header__burger { display: none; }

.site-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--color-earth-dark);
	text-decoration: none;
}

.site-logo:hover {
	color: var(--color-earth-dark);
}

.site-logo__mark {
	flex: 0 0 auto;
}

.site-logo__text {
	font-size: 14px;
	line-height: 1.2;
	font-weight: 600;
	white-space: nowrap;
}

.site-header__logo .custom-logo-link {
	display: block;
	background: transparent;
}

.site-header__logo .custom-logo {
	display: block;
	mix-blend-mode: multiply;
}

.site-header__phone {
	display: block;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--color-earth-dark);
	margin-bottom: 8px;
}

.site-header__social {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-body);
	font-size: 10px;
	color: var(--color-text-muted);
}

.site-header__social .social-link {
	display: inline-flex;
	align-items: center;
}

.site-header__social .social-link svg {
	width: 16px;
	height: 16px;
}

.social-link--vk {
	color: #4a76a8;
}

.site-header__actions .btn--review {
	position: relative;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-earth-dark);
	background: transparent;
	border: 0;
	border-radius: 0;
}

.site-header__actions .btn--review::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 6px;
	left: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition);
}

.site-header__actions .btn--review:hover,
.site-header__actions .btn--review:focus-visible {
	color: var(--color-brand-red);
	background: transparent;
	border-color: transparent;
}

.site-header__actions .btn--review:hover::after,
.site-header__actions .btn--review:focus-visible::after {
	transform: scaleX(1);
}

.site-header__actions .btn--feedback {
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--color-brand-red);
	border: 1px solid var(--color-brand-red);
	border-radius: 40px;
}

.site-header__actions .btn--feedback:hover,
.site-header__actions .btn--feedback:focus-visible {
	color: #fff;
	background: #A9131C;
	border-color: #A9131C;
}

/* ==========================================================================
   Mega menu
   ========================================================================== */
.mega-menu {
	background: transparent;
	border-top: 0;
	position: relative;
	z-index: 100;
}

.mega-menu__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.mega-menu__item {
	position: relative;
	flex: 0 1 auto;
}

.mega-menu__link {
	position: relative;
	display: block;
	padding: 17px 10px 16px;
	color: var(--color-earth-dark);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--transition);
}

.mega-menu__link:hover,
.mega-menu__link:focus-visible,
.mega-menu__item.is-active > .mega-menu__link,
.mega-menu__item:hover > .mega-menu__link {
	color: var(--color-brand-red);
}

.mega-menu__dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--color-wheat-light);
	box-shadow: 0 16px 36px rgba(31, 46, 34, 0.14);
	border: 1px solid var(--color-sky-clear);
	border-radius: 0 0 10px 10px;
	overflow: hidden;
	z-index: 200;
}

.mega-menu__item.has-mega-dropdown:hover > .mega-menu__dropdown,
.mega-menu__item.has-mega-dropdown.is-open > .mega-menu__dropdown {
	display: block;
}

.mega-menu__sublist {
	padding: 8px 0;
}

.mega-menu__sublink {
	display: block;
	padding: 8px 16px;
	color: var(--color-earth-dark);
	font-family: var(--font-body);
	font-size: 14px;
}

.mega-menu__sublink:hover,
.mega-menu__sublink:focus-visible {
	background: var(--color-sky-clear);
	color: var(--color-brand-red);
}

/* Mobile nav */
.site-header__burger {
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}

.site-header__burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-text);
	transition: transform var(--transition), opacity var(--transition);
}

body.nav-open .site-header__burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.nav-open .site-header__burger span:nth-child(2) {
	opacity: 0;
}

body.nav-open .site-header__burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Main content
   ========================================================================== */
.site-main {
	min-height: 50vh;
}

.page-content {
	padding: 40px 0 60px;
}

.section {
	padding: 48px 0;
}

.section:nth-child(even) {
	background: #fafafa;
}

.section__title {
	font-size: 28px;
	margin-bottom: 24px;
	color: var(--color-text);
}

.section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.section__header .section__title {
	margin-bottom: 0;
}

.section__link {
	font-weight: 700;
}

.hero {
	background: linear-gradient(180deg, var(--color-wheat-light) 0%, rgba(234, 239, 242, 0.55) 100%);
	padding: 120px 0;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 560px;
	overflow: hidden;
	background: var(--color-earth-dark);
	border-radius: 32px;
	box-shadow: 0 20px 50px rgba(31, 46, 34, 0.05);
}

.hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 64px;
	background: var(--color-earth-dark);
}

.hero__content:only-child {
	grid-column: 1 / -1;
}

.hero__title {
	max-width: 600px;
	margin-bottom: 24px;
	color: var(--color-wheat-light);
	font-family: var(--font-heading);
	font-size: clamp(54px, 5.5vw, 76px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.025em;
}

.hero__subtitle {
	max-width: 520px;
	margin: 0 0 24px;
	color: #D8C79A;
	font-family: var(--font-body);
	font-size: clamp(18px, 1.7vw, 21px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.6;
}

.hero__description {
	max-width: 500px;
	margin: 0;
	color: rgba(246, 244, 239, 0.78);
	font-size: 15px;
	line-height: 1.7;
}

.hero__directions {
	display: flex;
	gap: 24px;
	width: 100%;
	margin-top: 40px;
}

.hero-direction {
	flex: 1 1 0;
	min-width: 0;
}

a.hero-direction {
	color: inherit;
	text-decoration: none;
}

a.hero-direction .hero-direction__icon,
a.hero-direction .hero-direction__title {
	transition: color var(--transition);
}

a.hero-direction:hover .hero-direction__icon {
	color: #E7C97A;
}

a.hero-direction:hover .hero-direction__title {
	color: #fff;
}

a.hero-direction:focus-visible {
	outline: 2px solid rgba(216, 199, 154, 0.8);
	outline-offset: 8px;
	border-radius: 4px;
}

.hero-direction__icon {
	display: block;
	width: 24px;
	height: 24px;
	margin-bottom: 12px;
	color: #D8C79A;
}

.hero-direction__icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.hero-direction__title {
	color: var(--color-wheat-light);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 32px;
	padding: 12px 24px;
	color: var(--color-earth-dark);
	background: var(--color-wheat-light);
	border: 1px solid var(--color-wheat-light);
	border-radius: 40px;
	font-size: 14px;
	font-weight: 600;
	transition: color var(--transition), background var(--transition), transform var(--transition);
}

.hero__cta:hover,
.hero__cta:focus-visible {
	color: var(--color-earth-dark);
	background: #fff;
	transform: translateY(-2px);
}

.hero__image {
	position: relative;
	min-height: 100%;
	overflow: hidden;
}

.hero__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section--about {
	padding: 72px 0;
	background: var(--color-wheat-light);
}

.section--about .section__title {
	max-width: 760px;
	margin-bottom: 28px;
	color: var(--color-earth-dark);
	font-size: clamp(42px, 5vw, 60px);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.about__intro {
	max-width: 900px;
	color: var(--color-earth-dark);
	font-size: 20px;
	line-height: 1.7;
}

.directions__label {
	margin: 44px 0 24px;
	color: #6D7664;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.directions-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 36px;
}

.direction-card {
	display: block;
	overflow: hidden;
	color: var(--color-earth-dark);
	background: var(--color-wheat-light);
	border: 1px solid rgba(31, 46, 34, 0.14);
	border-radius: 18px;
	text-decoration: none;
	transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.direction-card:hover,
.direction-card:focus-visible {
	color: var(--color-earth-dark);
	border-color: var(--color-brand-red);
	box-shadow: 0 16px 36px rgba(31, 46, 34, 0.12);
	transform: translateY(-3px);
}

.direction-card:focus-visible {
	outline: 2px solid var(--color-brand-red);
	outline-offset: 3px;
}

.direction-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--color-sky-clear);
}

.direction-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.direction-card:hover .direction-card__image,
.direction-card:focus-visible .direction-card__image {
	transform: scale(1.035);
}

.direction-card__image--placeholder {
	object-fit: cover;
}

.direction-card__content {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 82px;
	padding: 18px 20px;
}

.direction-card__number {
	display: block;
	color: var(--color-brand-red);
	font-family: var(--font-heading);
	font-size: 38px;
	font-weight: 600;
	line-height: 1;
}

.direction-card__title {
	color: var(--color-earth-dark);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.direction-card__arrow {
	color: var(--color-earth-dark);
	font-size: 22px;
	line-height: 1;
	transition: color var(--transition), transform var(--transition);
}

.direction-card:hover .direction-card__arrow,
.direction-card:focus-visible .direction-card__arrow {
	color: var(--color-brand-red);
	transform: translateX(4px);
}

.about-details {
	max-width: 960px;
	border-top: 1px solid rgba(31, 46, 34, 0.16);
	border-bottom: 1px solid rgba(31, 46, 34, 0.16);
}

.about-details__summary {
	position: relative;
	padding: 22px 48px 22px 0;
	color: var(--color-earth-dark);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.about-details__summary::-webkit-details-marker {
	display: none;
}

.about-details__summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	color: var(--color-brand-red);
	font-family: var(--font-heading);
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	transform: translateY(-50%);
}

.about-details[open] .about-details__summary::after {
	content: "−";
}

.about-details__summary:focus-visible {
	outline: 2px solid var(--color-brand-red);
	outline-offset: 4px;
}

.about__body {
	max-width: 960px;
	padding: 8px 0 20px;
	color: var(--color-earth-dark);
	font-size: 17px;
	line-height: 1.8;
}

.about__body > p {
	margin-bottom: 1.35em;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.advantage-card {
	padding: 24px;
	background: #fff;
	border-left: 4px solid var(--color-primary);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
}

.advantage-card__title {
	font-size: 18px;
	color: var(--color-primary);
}

.prose {
	max-width: 800px;
}

.prose p:last-child {
	margin-bottom: 0;
}

/* Cards */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.cards-grid--featured {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: calc(var(--radius) + 2px);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
}

.card__image {
	display: block;
	overflow: hidden;
}

.card__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.card:hover .card__img {
	transform: scale(1.05);
}

.card__img--placeholder {
	object-fit: cover;
}

.card--product .card__media--placeholder .card__img--placeholder,
.card--store .card__media--placeholder .card__img--placeholder {
	filter: sepia(10%) contrast(105%) brightness(98%);
	transition: all 0.6s ease;
}

.card--product:hover .card__media--placeholder .card__img--placeholder,
.card--store:hover .card__media--placeholder .card__img--placeholder {
	filter: none;
}

.card--product .card__media--placeholder::after,
.card--store .card__media--placeholder::after {
	content: "Каменское";
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-wheat-light);
	font-family: var(--font-heading);
	font-size: clamp(32px, 3.5vw, 48px);
	font-weight: 500;
	letter-spacing: 0.02em;
	opacity: 0.15;
	pointer-events: none;
}

.card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--color-primary);
	font-size: 12px;
	font-weight: 700;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.card__date {
	display: block;
	font-size: 13px;
	color: var(--color-text-muted);
	margin-bottom: 6px;
}

.card__title {
	font-size: 18px;
	margin-bottom: 8px;
	line-height: 1.3;
}

.card__title a {
	color: var(--color-text);
}

.card__title a:hover {
	color: var(--color-primary);
}

.card__excerpt {
	font-size: 14px;
	color: var(--color-text-muted);
	margin-bottom: 16px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--color-border);
}

.card__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--color-primary);
}

.card__more {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-primary);
	white-space: nowrap;
	transition: gap var(--transition);
}

.card__more::after {
	content: " →";
}

.card:hover .card__more {
	color: var(--color-primary-dark);
}

.card__meta {
	font-size: 14px;
	color: var(--color-text-muted);
	margin-bottom: 4px;
}

.card__phone {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
}

.card__phone:hover {
	color: var(--color-primary);
}

.card__link {
	font-size: 14px;
	font-weight: 700;
}

.badge {
	display: inline-block;
	padding: 4px 10px;
	background: #fef0f0;
	color: var(--color-primary);
	font-size: 12px;
	font-weight: 700;
	border-radius: 12px;
	margin-bottom: 8px;
}

.category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.category-filter__link {
	padding: 8px 16px;
	border: 1px solid var(--color-border);
	border-radius: 20px;
	font-size: 14px;
	color: var(--color-text);
}

.category-filter__link.is-active,
.category-filter__link:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.archive-header {
	margin-bottom: 32px;
}

.archive-header__title {
	font-size: 32px;
}

/* Single */
.single-article__header {
	margin-bottom: 24px;
}

.single-article__title {
	font-size: 32px;
}

.single-article__date {
	color: var(--color-text-muted);
	font-size: 14px;
}

.single-article__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.single-article__image img {
	border-radius: var(--radius);
}

.product-specs {
	padding: 16px;
	background: #fafafa;
	border-radius: var(--radius);
	margin-bottom: 20px;
}

/* Store detail */
.store-detail__header {
	margin-bottom: 36px;
}

.store-detail__title {
	max-width: 900px;
	margin: 0;
	color: var(--color-earth-dark);
	font-size: clamp(42px, 5vw, 60px);
	font-weight: 600;
	line-height: 1.05;
}

.store-detail__layout {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.store-detail__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--color-sky-clear);
	border-radius: 18px;
}

.store-detail__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.store-detail__image--placeholder {
	object-fit: cover;
}

.store-detail__description {
	margin-bottom: 24px;
	padding: 24px 28px;
	background: rgba(234, 239, 242, 0.7);
	border-radius: 18px;
	color: var(--color-earth-dark);
	font-size: 18px;
	line-height: 1.65;
}

.store-detail__description p:last-child {
	margin-bottom: 0;
}

.store-detail__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.store-detail__fact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 112px;
	padding: 20px;
	background: var(--color-sky-clear);
	border-radius: 16px;
}

.store-detail__fact-label {
	color: #6D7664;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.store-detail__fact-value {
	color: var(--color-earth-dark);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

a.store-detail__fact-value:hover,
a.store-detail__fact-value:focus-visible {
	color: var(--color-brand-red);
}

.store-detail__content {
	margin-top: 28px;
	color: var(--color-earth-dark);
}

.store-detail__map {
	margin-top: 64px;
}

.store-detail__section-title {
	margin-bottom: 24px;
	color: var(--color-earth-dark);
	font-size: 36px;
	font-weight: 600;
}

.store-detail__map-frame {
	overflow: hidden;
	background: var(--color-sky-clear);
	border-radius: 18px;
}

.store-detail__map-frame iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

.media-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	margin: 20px 0;
}

.media-gallery__item img {
	border-radius: var(--radius);
	width: 100%;
	height: 120px;
	object-fit: cover;
}

/* Media single: video + Gutenberg gallery */
.single-article--media .prose {
	max-width: 960px;
}

.single-article--media .single-article__image {
	margin-bottom: 24px;
	border-radius: var(--radius);
	overflow: hidden;
}

.single-article--media .single-article__image img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
}

.media-embed {
	margin: 0 0 28px;
}

.media-embed__frame {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: #111;
	box-shadow: var(--shadow);
}

.media-embed__frame iframe,
.media-embed__frame embed,
.media-embed__frame object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.single-article--media .wp-block-video,
.single-article--media figure.wp-block-video {
	margin: 0 0 28px;
	border-radius: var(--radius);
	overflow: hidden;
	background: #111;
	box-shadow: var(--shadow);
}

.single-article--media .wp-block-video video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	vertical-align: middle;
}

.single-article--media .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	margin: 28px 0;
	padding: 0;
	list-style: none;
}

.single-article--media .wp-block-gallery .wp-block-image,
.single-article--media .wp-block-gallery .blocks-gallery-item {
	margin: 0;
}

.single-article--media .wp-block-gallery figure {
	margin: 0;
	height: 100%;
}

.single-article--media .wp-block-gallery img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--radius);
	cursor: zoom-in;
	transition: opacity var(--transition);
}

.single-article--media .wp-block-gallery img:hover {
	opacity: 0.9;
}

.single-article--media .wp-block-image {
	margin: 0 0 24px;
}

.single-article--media .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.single-article--media .wp-block-gallery .wp-block-image {
	margin: 0;
}

.single-article--media .wp-block-gallery .wp-block-image img {
	height: 180px;
	object-fit: cover;
	box-shadow: none;
	cursor: zoom-in;
}

.single-article--media .wp-block-file:empty,
.single-article--media .wp-block-file:not(:has(a[href])) {
	display: none;
}

.card--media .card__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(227, 30, 36, 0.92);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.card--media .card__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.media-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.85);
}

.media-lightbox[hidden] {
	display: none;
}

.media-lightbox__img {
	max-width: min(1100px, 100%);
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--radius);
}

.media-lightbox__close {
	position: absolute;
	top: 16px;
	right: 20px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

/* Contacts */
.contacts-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
}

.contacts-info__item {
	margin-bottom: 20px;
}

.contacts-info__item strong {
	display: block;
	margin-bottom: 4px;
}

.contacts-map iframe {
	width: 100%;
	height: 400px;
	border: 0;
	border-radius: var(--radius);
}

.contacts-map__placeholder {
	border: 2px dashed var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
}

.contacts-map__placeholder p {
	padding: 16px;
	margin: 0;
	font-size: 14px;
	color: var(--color-text-muted);
}

/* 404 */
.page-404 {
	text-align: center;
	padding: 80px 0;
}

.page-404__title {
	font-size: 72px;
	color: var(--color-primary);
}

/* Pagination */
.navigation.pagination {
	margin-top: 40px;
	text-align: center;
}

.nav-links {
	display: inline-flex;
	gap: 8px;
}

.page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer__divider {
	height: 6px;
	background: var(--color-primary);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 180px 180px 1fr 220px;
	gap: 32px;
	padding: 40px 0;
	align-items: start;
}

.site-footer__heading {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
	padding: 8px 12px;
	background: #eee;
	display: inline-block;
}

.site-footer__links li {
	margin-bottom: 8px;
}

.site-footer__links a {
	color: var(--color-text);
	font-size: 14px;
}

.site-footer__links a:hover {
	color: var(--color-primary);
}

.site-footer__product-img {
	border-radius: var(--radius);
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.site-footer__product-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
	border: 2px dashed var(--color-border);
	border-radius: var(--radius);
	font-size: 13px;
	color: var(--color-text-muted);
	text-align: center;
}

.site-footer__tagline {
	font-size: 13px;
	color: var(--color-text-muted);
	margin-top: 12px;
}

.site-footer__phone {
	font-size: 14px;
	margin-bottom: 8px;
}

.site-footer__phone-label {
	display: block;
	font-size: 12px;
	color: var(--color-text-muted);
}

.site-footer__social {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 13px;
}

.site-footer__bottom {
	background: var(--color-footer-bg);
	padding: 16px 0;
	font-size: 13px;
	color: var(--color-text-muted);
	text-align: center;
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: var(--shadow);
	z-index: 90;
	transition: background var(--transition), opacity var(--transition);
}

.back-to-top:hover {
	background: var(--color-primary-dark);
}

.back-to-top:not([hidden]) {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal[hidden] {
	display: none;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.modal__content {
	position: relative;
	background: #fff;
	border-radius: var(--radius);
	padding: 32px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--color-text-muted);
}

.modal__title {
	font-size: 22px;
	margin-bottom: 20px;
	padding-right: 32px;
}

/* CF7 styles */
.wpcf7-form p {
	margin-bottom: 16px;
}

.wpcf7-form label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 4px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 15px;
}

.wpcf7-form textarea {
	min-height: 120px;
	resize: vertical;
}

.wpcf7-form input[type="submit"] {
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: 12px 24px;
	font-weight: 700;
	cursor: pointer;
	border-radius: var(--radius);
}

.form-placeholder {
	font-size: 14px;
	color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "logo . right";
		gap: 24px;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.site-header__right,
	.site-header__actions {
		gap: 24px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hero {
		padding: 88px 0;
	}

	.hero__content {
		padding: 56px;
	}

	.hero__image {
		min-height: 440px;
	}

	.section--about {
		padding: 64px 0;
	}

	.direction-card__content {
		padding: 16px 18px;
	}

	.advantages-grid {
		grid-template-columns: 1fr 1fr;
	}

	.single-article__layout {
		grid-template-columns: 1fr;
	}

	.store-detail__layout {
		grid-template-columns: 300px minmax(0, 1fr);
		gap: 32px;
	}

	.store-detail__facts {
		grid-template-columns: 1fr;
	}

	.store-detail__fact {
		min-height: 0;
	}

	.contacts-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo burger"
			"right right";
		gap: 16px;
		padding-top: 22px;
		padding-bottom: 22px;
	}

	.site-header__burger {
		display: flex;
		grid-area: burger;
		justify-self: end;
		position: relative;
		z-index: 301;
	}

	body.nav-open .site-header__burger {
		position: fixed;
		top: 16px;
		right: 20px;
		background: var(--color-wheat-light);
		border-radius: 50%;
	}

	.site-header__logo {
		padding: 6px 0;
	}

	.site-header__right {
		width: 100%;
		margin-left: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.site-header__actions {
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
		justify-content: space-between;
		gap: 16px;
	}

	.site-header__actions .btn {
		min-width: 0;
	}

	.site-logo__text {
		white-space: normal;
	}

	.mega-menu {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 300;
		overflow-y: auto;
		padding-top: 60px;
		background: var(--color-wheat-light);
		border-top: 0;
	}

	body.nav-open .mega-menu {
		display: block;
	}

	.mega-menu__list {
		flex-direction: column;
	}

	.mega-menu__link {
		text-align: left;
		padding: 16px 20px;
		color: var(--color-earth-dark);
		border-bottom: 0;
	}

	.mega-menu__dropdown {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		background: var(--color-sky-clear);
	}

	.mega-menu__item.has-mega-dropdown.is-open > .mega-menu__dropdown {
		display: block;
	}

	.mega-menu__item.has-mega-dropdown:hover > .mega-menu__dropdown {
		display: none;
	}

	.mega-menu__item.has-mega-dropdown.is-open:hover > .mega-menu__dropdown {
		display: block;
	}

	.mega-menu__sublink {
		color: var(--color-earth-dark);
		padding-left: 32px;
	}

	.hero {
		padding: 64px 0;
	}

	.hero__inner {
		gap: 0;
		border-radius: 24px;
	}

	.hero__content {
		padding: 40px 32px;
	}

	.hero__title {
		font-size: clamp(44px, 13vw, 60px);
		line-height: 1;
	}

	.hero__subtitle {
		font-size: 18px;
	}

	.hero__description {
		font-size: 14px;
	}

	.hero__directions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 20px;
		margin-top: 32px;
	}

	.hero-direction {
		display: grid;
		grid-template-columns: 24px 1fr;
		gap: 12px;
		align-items: start;
	}

	.hero-direction__icon {
		margin-bottom: 0;
	}

	.hero__image {
		min-height: 340px;
	}

	.section--about {
		padding: 64px 0;
	}

	.section--about .section__title {
		font-size: 40px;
	}

	.about__intro {
		font-size: 18px;
	}

	.directions__label {
		margin-top: 36px;
	}

	.directions-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 40px;
	}

	.direction-card {
		border-radius: 16px;
	}

	.direction-card__media {
		aspect-ratio: 16 / 9;
	}

	.direction-card__content {
		gap: 12px;
		min-height: 74px;
		padding: 14px 16px;
	}

	.direction-card__number {
		font-size: 34px;
	}

	.store-detail__header {
		margin-bottom: 28px;
	}

	.store-detail__title {
		font-size: 42px;
	}

	.store-detail__layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.store-detail__media {
		width: 100%;
		max-width: 480px;
	}

	.store-detail__description {
		padding: 22px;
		font-size: 17px;
	}

	.store-detail__map {
		margin-top: 48px;
	}

	.store-detail__section-title {
		font-size: 32px;
	}

	.store-detail__map-frame iframe {
		height: 320px;
	}

	.advantages-grid {
		grid-template-columns: 1fr;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.site-footer__social {
		justify-content: center;
	}
}
