/* =========================================================
   Saakyan Leather Atelier — основная система стилей
   1. Токены   2. База   3. Кнопки/формы   4. Шапка   5. Подвал
   6. Каталог   7. Товар   8. Корзина   9. Блог   10. Утилиты
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
	/* палитра */
	--ink: #0b0b0c;
	--ink-2: #131215;
	--leather: #17140f;
	--leather-2: #211b14;
	--graphite: #1f1d1a;
	--line: rgba(196, 156, 70, 0.22);
	--line-soft: rgba(196, 156, 70, 0.12);
	--gold: #c49c46;
	--gold-light: #e7cd8f;
	--gold-dark: #8c6a2a;
	--bone: #ede6d8;
	--bone-dim: #b8b0a0;
	--muted: #8c8578;
	--paper: #f5f1e8;
	--oxblood: #5b2320;

	/* типографика */
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
	--font-serif: "Cormorant Garamond", Georgia, serif;

	--fs-eyebrow: 0.72rem;
	--fs-small: 0.875rem;
	--fs-body: 1.0625rem;
	--fs-lead: clamp(1.0625rem, 1.35vw, 1.25rem);
	--fs-h4: clamp(1.05rem, 1.5vw, 1.25rem);
	--fs-h3: clamp(1.25rem, 2vw, 1.5rem);
	--fs-h2: clamp(1.75rem, 3.4vw, 2.75rem);
	--fs-h1: clamp(2.1rem, 4.6vw, 4rem);

	/* сетка и отступы */
	--wrap: 1240px;
	--wrap-narrow: 860px;
	--gutter: clamp(1.125rem, 4vw, 2.5rem);
	--section-y: clamp(3.5rem, 7vw, 7rem);
	--radius: 4px;
	--radius-lg: 8px;

	/* эффекты */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
	--shadow-lift: 0 30px 70px -35px rgba(0, 0, 0, 1);
	--header-h: 78px;
}

/* ---------- 2. База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
	margin: 0;
	background-color: var(--leather);
	color: var(--bone);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: 1.7;
	font-weight: 350;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* «кожаная» подложка: тёплый градиент + микрозерно */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(122, 82, 51, 0.20) 0%, rgba(23, 20, 15, 0) 55%),
		radial-gradient(100% 90% at 100% 100%, rgba(196, 156, 70, 0.10) 0%, rgba(23, 20, 15, 0) 60%),
		linear-gradient(180deg, #131110 0%, #17140f 45%, #0e0d0b 100%);
}

.page {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.15;
	color: var(--bone);
	letter-spacing: 0.005em;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

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

a {
	color: var(--gold);
	text-decoration: none;
	transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover { color: var(--gold-light); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

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

figure { margin: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }

strong, b { font-weight: 600; color: #f3ede2; }
em, i { font-style: italic; }

small { font-size: var(--fs-small); }

hr {
	border: 0;
	border-top: 1px solid var(--line-soft);
	margin: 2rem 0;
}

blockquote {
	margin: 1.6rem 0;
	padding: 0 0 0 1.4rem;
	border-left: 2px solid var(--gold);
	font-family: var(--font-serif);
	font-size: 1.2em;
	color: var(--bone);
}

::selection {
	background: rgba(196, 156, 70, 0.32);
	color: #fff;
}

.icon {
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
}

/* скрытый, но доступный текст */
.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;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--gold);
	color: var(--ink);
	font-weight: 600;
	border-radius: var(--radius);
}

/* ---------- Контейнеры ---------- */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
	position: relative;
	padding-block: var(--section-y);
}

.section + .section { padding-top: 0; }

.section--text { padding-top: clamp(2rem, 4vw, 3rem); }

.section__head {
	margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
	max-width: 62ch;
}

.section__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	max-width: none;
	flex-wrap: wrap;
}

.section__eyebrow {
	margin: 0 0 0.6rem;
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--gold);
}

.section__title {
	margin: 0;
	font-size: var(--fs-h2);
}

.section__title--left { margin-bottom: 1rem; }

.section__lede {
	margin: 0.75rem 0 0;
	color: var(--bone-dim);
	font-family: var(--font-serif);
	font-size: var(--fs-lead);
	line-height: 1.55;
	max-width: 60ch;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	white-space: nowrap;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--line);
	transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.link-arrow:hover { border-color: var(--gold); color: var(--gold-light); }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 3. Кнопки, формы, плашки ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 0.9em 1.6em;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	color: var(--bone);
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-align: center;
	cursor: pointer;
	transition: background 0.25s var(--ease), color 0.25s var(--ease),
		border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn .icon { width: 18px; height: 18px; }

.btn--gold {
	background: linear-gradient(180deg, #d8b46b 0%, var(--gold) 55%, #b08a39 100%);
	color: #17130c;
	font-weight: 600;
	box-shadow: 0 10px 30px -14px rgba(196, 156, 70, 0.75);
}

.btn--gold:hover {
	color: #0b0906;
	background: linear-gradient(180deg, #e9cf94 0%, #d3ab58 55%, #bd9540 100%);
	transform: translateY(-1px);
	box-shadow: 0 16px 36px -14px rgba(196, 156, 70, 0.85);
}

.btn--outline {
	border-color: var(--line);
	color: var(--bone);
	background: rgba(255, 255, 255, 0.015);
}

.btn--outline:hover {
	border-color: var(--gold);
	color: var(--gold-light);
	background: rgba(196, 156, 70, 0.07);
}

.btn--ghost {
	border-color: rgba(237, 230, 216, 0.18);
	color: var(--bone);
}

.btn--ghost:hover {
	border-color: var(--gold);
	color: var(--gold-light);
}

.btn--sm { padding: 0.7em 1.1em; font-size: 0.8rem; }
.btn--lg { padding: 1.05em 2em; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 0.7em; line-height: 0; }
.btn--icon .icon { width: 20px; height: 20px; }

.btn.is-loading { opacity: 0.65; pointer-events: none; position: relative; }
.btn.added::after {
	content: "✓";
	margin-left: 0.4em;
	color: var(--ink);
}

/* Формы */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 0.85em 1em;
	background: rgba(10, 9, 8, 0.7);
	border: 1px solid rgba(237, 230, 216, 0.16);
	border-radius: var(--radius);
	color: var(--bone);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

input::placeholder,
textarea::placeholder { color: #6f6a60; }

input:focus,
select:focus,
textarea:focus {
	border-color: var(--gold);
	background: rgba(10, 9, 8, 0.9);
	outline: none;
}

label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bone-dim);
}

.search-form {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
	flex-wrap: wrap;
}

.search-form__field {
	flex: 1 1 220px;
	background: rgba(10, 9, 8, 0.75);
}

/* Плашки-бейджи */
.badge {
	display: inline-block;
	padding: 0.3em 0.65em;
	border-radius: 2px;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.3;
}

.badge--sale { background: var(--gold); color: #17130c; }
.badge--new { background: rgba(237, 230, 216, 0.92); color: #17130c; }
.badge--out { background: rgba(10, 9, 8, 0.8); color: var(--bone); border: 1px solid var(--line); }

.notice-box {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	margin: 1.4rem 0;
	padding: 1rem 1.15rem;
	border: 1px solid var(--line-soft);
	border-left: 2px solid var(--gold);
	background: rgba(196, 156, 70, 0.05);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: var(--fs-small);
	color: var(--bone-dim);
}

.notice-box .icon { color: var(--gold); margin-top: 0.15em; }
.notice-box p { margin: 0; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
	padding-top: 1.6rem;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs__item { margin: 0; display: inline-flex; align-items: center; gap: 0.5em; }
.breadcrumbs__item:not(:last-child)::after {
	content: "/";
	color: rgba(196, 156, 70, 0.4);
}
.breadcrumbs__link { color: var(--muted); }
.breadcrumbs__link:hover { color: var(--gold-light); }
.breadcrumbs__current { color: var(--bone-dim); }

/* ---------- 4. Шапка ---------- */
.topbar {
	position: relative;
	z-index: 60;
	font-size: 0.76rem;
	letter-spacing: 0.06em;
	color: var(--bone-dim);
	background: rgba(8, 7, 6, 0.85);
	border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 40px;
}

.topbar__note {
	display: flex;
	align-items: center;
	gap: 0.55em;
	margin: 0;
	color: var(--muted);
}

.topbar__note .icon { color: var(--gold); }
.topbar__links { display: flex; align-items: center; gap: 1.1rem; }
.topbar__phone { display: inline-flex; align-items: center; gap: 0.45em; color: var(--bone); }
.topbar__phone:hover { color: var(--gold-light); }
.topbar__links .icon { color: var(--gold); }
.topbar__links a[aria-label] { display: inline-flex; opacity: 0.8; }
.topbar__links a[aria-label]:hover { opacity: 1; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 70;
	background: rgba(12, 11, 10, 0.88);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--line-soft);
	transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
	background: rgba(9, 8, 7, 0.96);
	box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}

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

.brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.brand-logo { display: inline-flex; }
.brand-logo__img { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)); }

.brand__text { display: flex; flex-direction: column; min-width: 0; }

.brand__name {
	font-family: var(--font-display);
	font-size: 1.06rem;
	letter-spacing: 0.02em;
	color: var(--bone);
	line-height: 1.2;
	white-space: nowrap;
}

.brand__tagline {
	font-size: 0.63rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	line-height: 1.5;
}

.nav .menu {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 1.9vw, 1.9rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav .menu-item { position: relative; margin: 0; flex: 0 0 auto; white-space: nowrap; }

.nav .menu > .menu-item > a {
	display: inline-block;
	padding: 0.4rem 0;
	font-size: 0.86rem;
	font-weight: 450;
	color: var(--bone-dim);
	letter-spacing: 0.02em;
}

.nav .menu > .menu-item > a::after {
	content: "";
	display: block;
	height: 1px;
	width: 0;
	margin-top: 3px;
	background: var(--gold);
	transition: width 0.28s var(--ease);
}

.nav .menu > .menu-item:hover > a,
.nav .menu > .current-menu-item > a,
.nav .menu > .current_page_item > a,
.nav .menu > .current-menu-parent > a { color: var(--bone); }

.nav .menu > .menu-item:hover > a::after,
.nav .menu > .current-menu-item > a::after,
.nav .menu > .current_page_item > a::after { width: 100%; }

/* подменю */
.nav .sub-menu {
	position: absolute;
	top: calc(100% + 0.9rem);
	left: -1rem;
	min-width: 220px;
	margin: 0;
	padding: 0.6rem 0;
	list-style: none;
	background: #14120f;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
	z-index: 5;
}

.nav .menu-item:hover > .sub-menu,
.nav .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav .sub-menu a {
	display: block;
	padding: 0.55rem 1.15rem;
	font-size: 0.85rem;
	color: var(--bone-dim);
}

.nav .sub-menu a:hover { color: var(--gold-light); background: rgba(196, 156, 70, 0.06); }

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex-shrink: 0;
}

.header-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.55rem;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius);
	color: var(--bone-dim);
	cursor: pointer;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.header-btn:hover { color: var(--gold-light); background: rgba(196, 156, 70, 0.07); }

.header-btn--tg {
	padding: 0.6rem 1rem;
	border-color: var(--line);
	color: var(--gold);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.header-btn__label { display: none; }

@media (min-width: 1180px) {
	.header-btn__label { display: inline; }
}

.header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.7rem;
	border-radius: var(--radius);
	color: var(--bone);
	font-size: 0.82rem;
}

.header__cart:hover { background: rgba(196, 156, 70, 0.07); color: var(--gold-light); }
.header__cart .icon { color: var(--gold); }

.header__cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.45em;
	height: 1.45em;
	padding: 0 0.32em;
	border-radius: 99px;
	background: var(--gold);
	color: #17130c;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
}

.header__cart-total { display: none; }
.header__cart-total:not(:empty) { display: inline; color: var(--bone-dim); }

.header-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0 9px;
	background: transparent;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	cursor: pointer;
}

.header-burger span {
	display: block;
	height: 1.5px;
	background: var(--bone);
	transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.header-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header-search {
	border-top: 1px solid var(--line-soft);
	background: rgba(9, 8, 7, 0.98);
	padding-block: 0.9rem;
}

.header-search__inner { display: flex; align-items: center; gap: 0.8rem; }
.header-search__inner .search-form { flex: 1; }
.header-search__close {
	background: transparent;
	border: 0;
	color: var(--bone-dim);
	cursor: pointer;
	padding: 0.4rem;
}

.mobile-nav {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 200;
	width: min(88vw, 360px);
	padding: 1.4rem 1.5rem 2rem;
	background: #100e0c;
	border-right: 1px solid var(--line-soft);
	overflow-y: auto;
	transform: translateX(-102%);
	transition: transform 0.32s var(--ease);
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }

.mobile-nav__close {
	background: transparent;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	color: var(--bone);
	padding: 0.45rem;
	cursor: pointer;
	line-height: 0;
}

.menu--mobile { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.menu--mobile li { margin: 0; }
.menu--mobile a {
	display: block;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(196, 156, 70, 0.1);
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--bone);
}

.menu--mobile .sub-menu { padding-left: 1rem; list-style: none; }
.menu--mobile .sub-menu a { font-family: var(--font-sans); font-size: 0.92rem; color: var(--bone-dim); }

.mobile-nav__foot { margin-top: auto; display: grid; gap: 0.75rem; }

.mobile-nav__phone {
	font-family: var(--font-display);
	font-size: 1.25rem;
	color: var(--bone);
	text-align: center;
}

.mobile-nav__city {
	margin: 0;
	text-align: center;
	font-size: 0.78rem;
	color: var(--muted);
	letter-spacing: 0.04em;
}

.mobile-nav__overlay {
	position: fixed;
	inset: 0;
	z-index: 190;
	background: rgba(4, 4, 4, 0.65);
	backdrop-filter: blur(3px);
}

body.nav-open { overflow: hidden; }

@media (max-width: 1023px) {
	.nav { display: none; }
	.header-burger { display: flex; }
	.header-btn--tg .header-btn__label { display: none; }
	.topbar__note { display: none; }
	.topbar__inner { justify-content: flex-end; }
}

@media (max-width: 560px) {
	:root { --header-h: 66px; }
	.brand__tagline { display: none; }
	.brand__name { font-size: 0.98rem; }
	.header__cart-total { display: none !important; }
}

/* ---------- 5. Подвал ---------- */
.site-footer {
	margin-top: auto;
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	border-top: 1px solid var(--line-soft);
	background: linear-gradient(180deg, rgba(9, 8, 7, 0) 0%, rgba(8, 7, 6, 0.85) 40%, #080706 100%);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: clamp(1.5rem, 3vw, 3rem);
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.footer-col--brand .brand-logo__img { margin-bottom: 1rem; }

.footer-brand__name {
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--bone);
}

.footer-brand__text {
	margin: 0 0 1.15rem;
	max-width: 34ch;
	font-size: var(--fs-small);
	line-height: 1.65;
	color: var(--muted);
}

.footer-title {
	margin: 0 0 1rem;
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold);
}

.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 0.6rem; }
.footer-list a { color: var(--bone-dim); font-size: var(--fs-small); }
.footer-list a:hover { color: var(--gold-light); }

.footer-list--contacts li {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	color: var(--bone-dim);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.footer-list--contacts .icon { color: var(--gold); margin-top: 0.2em; }

.footer-social { display: flex; gap: 0.55rem; }

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	color: var(--gold);
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-block: 1.2rem 1.6rem;
	border-top: 1px solid rgba(237, 230, 216, 0.07);
}

.footer-copy { margin: 0; font-size: 0.76rem; color: #6b665c; letter-spacing: 0.03em; }

.footer-legal {
	display: flex;
	gap: 1.2rem;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-legal li { margin: 0; }
.footer-legal a { font-size: 0.76rem; color: #6b665c; }
.footer-legal a:hover { color: var(--gold); }

@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 6. Каталог ---------- */
.catalog__head {
	max-width: 70ch;
	padding-block: clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 2.5vw, 2rem);
}

.catalog__title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-bottom: 0.5rem; }

.catalog__lede {
	margin: 0;
	color: var(--bone-dim);
	font-family: var(--font-serif);
	font-size: var(--fs-lead);
	line-height: 1.6;
}

.catalog__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	flex-wrap: wrap;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line-soft);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chips li { margin: 0; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.5em 0.95em;
	border: 1px solid var(--line-soft);
	border-radius: 99px;
	font-size: 0.8rem;
	color: var(--bone-dim);
	white-space: nowrap;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.chip:hover { border-color: var(--gold); color: var(--gold-light); }

.chip.is-active {
	background: rgba(196, 156, 70, 0.14);
	border-color: var(--gold);
	color: var(--gold-light);
}

.chip__count { font-size: 0.72em; opacity: 0.7; }

.woocommerce-ordering select {
	width: auto;
	min-width: 190px;
	padding: 0.55em 0.8em;
	font-size: 0.82rem;
	background-color: rgba(10, 9, 8, 0.7);
}

.catalog__body { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* сетка товаров */
ul.products,
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: clamp(1.25rem, 2.4vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* WooCommerce вставляет clearfix-псевдоэлементы — в grid они ломают раскладку. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after {
	content: none !important;
	display: none !important;
}

/* WooCommerce задаёт ширину li.procuct по классу columns-N — перебиваем. */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
.products-grid > li {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

/* Карточка товара */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, rgba(33, 27, 20, 0.55) 0%, rgba(15, 13, 11, 0.9) 100%);
	border: 1px solid rgba(196, 156, 70, 0.14);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
	border-color: rgba(196, 156, 70, 0.45);
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #0e0d0b;
}

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

.card:hover .card__img,
.card:hover .card__media img { transform: scale(1.045); }

.card__badges {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	z-index: 2;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.15rem 1.2rem 1.3rem;
	flex: 1;
}

.card__cat,
.card__cat a {
	margin: 0;
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}

.card__cat a:hover { color: var(--gold); }

.card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.12rem;
	line-height: 1.3;
	font-weight: 400;
}

.card__title a { color: var(--bone); }
.card__title a:hover { color: var(--gold-light); }

.card__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.78rem;
	color: var(--muted);
}

.card__highlights li { margin: 0; }
.card__highlights li::after { content: "·"; margin-left: 0.55rem; color: rgba(196, 156, 70, 0.4); }
.card__highlights li:last-child::after { content: none; }

.card__meta {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 0.76rem;
	color: var(--muted);
}

.card__stock.is-in { color: #8fae7c; }
.card__stock.is-out { color: var(--gold); }
.card__dot { opacity: 0.4; }

.card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.9rem;
}

.card__price,
.card__price .amount,
.card__price ins {
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--gold-light);
	text-decoration: none;
	font-weight: 400;
}

.card__price del,
.card__price del .amount {
	margin-right: 0.45em;
	font-size: 0.8em;
	color: var(--muted);
	opacity: 0.8;
}

.card__price ins { background: none; }

.card__actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.6rem;
}

.card__actions .btn { flex: 1; }

.catalog__empty {
	padding: clamp(2rem, 5vw, 4rem);
	text-align: center;
	border: 1px dashed var(--line-soft);
	border-radius: var(--radius-lg);
}

.catalog__empty h2 { font-size: var(--fs-h3); }
.catalog__empty p { color: var(--bone-dim); max-width: 46ch; margin-inline: auto; }

/* пагинация WooCommerce и WP */
nav.woocommerce-pagination,
.pagination {
	display: flex;
	justify-content: center;
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

.woocommerce-pagination ul,
.pagination .nav-links {
	display: flex;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce-pagination ul li { border: 0; margin: 0; }

.woocommerce-pagination a,
.woocommerce-pagination span,
.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.8em;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	color: var(--bone-dim);
	font-size: 0.85rem;
}

.woocommerce-pagination a:hover,
.pagination a:hover { border-color: var(--gold); color: var(--gold-light); }

.woocommerce-pagination .current,
.pagination .current {
	background: rgba(196, 156, 70, 0.16);
	border-color: var(--gold);
	color: var(--gold-light);
}

/* сообщения WooCommerce */
.woocommerce-notices-wrapper { margin-bottom: 1.5rem; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	position: relative;
	margin: 0 0 0.8rem;
	padding: 1rem 1.2rem 1rem 2.8rem;
	border: 1px solid var(--line-soft);
	border-left: 2px solid var(--gold);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: rgba(196, 156, 70, 0.06);
	color: var(--bone);
	font-size: var(--fs-small);
	list-style: none;
}

.woocommerce-error { border-left-color: #a4554e; background: rgba(164, 85, 78, 0.08); }

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }

.woocommerce-message .button,
.woocommerce-info .button {
	float: right;
	margin-left: 1rem;
	padding: 0.5em 1em;
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	font-size: 0.78rem;
	color: var(--gold);
}

/* всплывающее уведомление о добавлении */
.cart-toast {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 300;
	max-width: min(360px, 90vw);
	padding: 1rem 1.2rem;
	background: #14120f;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	color: var(--bone);
	font-size: var(--fs-small);
	transform: translateY(12px);
	opacity: 0;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cart-toast.is-visible { opacity: 1; transform: translateY(0); }
.cart-toast a { color: var(--gold-light); text-decoration: underline; }

/* ---------- 7. Страница товара ---------- */
.catalog__body--single { padding-top: clamp(1rem, 2.5vw, 2rem); }

.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.single-product div.product .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	position: sticky;
	top: calc(var(--header-h) + 20px);
}

.single-product div.product .summary {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.woocommerce-product-gallery__wrapper { border-radius: var(--radius-lg); overflow: hidden; }

.woocommerce-product-gallery img { border-radius: var(--radius-lg); }

.flex-control-thumbs {
	display: flex;
	gap: 0.6rem;
	margin: 0.8rem 0 0;
	padding: 0;
	list-style: none;
}

.flex-control-thumbs li { width: 84px; margin: 0; }
.flex-control-thumbs img { border: 1px solid var(--line-soft); border-radius: var(--radius); opacity: 0.6; }
.flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--gold); }

.product_title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.2;
}

.single-product .product_category,
.single-product .posted_in,
.single-product .tagged_as {
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.single-product .product_category a { color: var(--muted); }
.single-product .product_category a:hover { color: var(--gold); }

.single-product .price {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	color: var(--gold-light);
}

.single-product .price del { font-size: 0.62em; color: var(--muted); }
.single-product .price ins { text-decoration: none; }

.woocommerce-product-details__short-description {
	color: var(--bone-dim);
	font-size: 1rem;
	line-height: 1.7;
}

.woocommerce-product-details__short-description strong { color: var(--bone); }

/* форма добавления в корзину */
.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	align-items: stretch;
	margin: 0.4rem 0 0;
	padding-top: 1.1rem;
	border-top: 1px solid var(--line-soft);
}

.single-product form.cart .quantity {
	display: inline-flex;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	overflow: hidden;
}

.single-product form.cart .quantity input.qty {
	width: 68px;
	padding: 0.85em 0.5em;
	border: 0;
	background: rgba(10, 9, 8, 0.6);
	text-align: center;
	font-size: 0.95rem;
}

.single-product .single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
	padding: 1em 1.6em;
	background: linear-gradient(180deg, #d8b46b 0%, var(--gold) 55%, #b08a39 100%);
	border: 0;
	border-radius: var(--radius);
	color: #17130c;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.single-product .single_add_to_cart_button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.single-product .single_add_to_cart_button.disabled { opacity: 0.5; }

.product-trust {
	display: grid;
	gap: 0.65rem;
	margin: 0.4rem 0 0;
	padding: 1.1rem 0 0;
	list-style: none;
	border-top: 1px solid var(--line-soft);
}

.product-trust li { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; }
.product-trust .icon { color: var(--gold); margin-top: 0.2em; }
.product-trust span { display: flex; flex-direction: column; }
.product-trust strong { font-size: 0.88rem; font-weight: 500; color: var(--bone); }
.product-trust em {
	font-style: normal;
	font-size: 0.78rem;
	color: var(--muted);
	line-height: 1.5;
}

.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.82rem;
	color: var(--muted);
}

.star-rating { color: var(--gold); font-family: inherit; }
.star-rating::before { color: rgba(196, 156, 70, 0.28); }

/* вкладки товара */
.woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: clamp(2rem, 4vw, 3.5rem);
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 1px solid var(--line-soft);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: transparent;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none; }

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.7em 1.2em;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	color: var(--bone-dim);
}

.woocommerce-tabs ul.tabs li.active {
	background: rgba(196, 156, 70, 0.12);
	border-color: var(--gold);
}

.woocommerce-tabs ul.tabs li.active a { color: var(--gold-light); }

.woocommerce-Tabs-panel { max-width: 76ch; color: var(--bone-dim); }
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3 { color: var(--bone); font-size: var(--fs-h3); margin-top: 1.2rem; }
.woocommerce-Tabs-panel h2:first-child,
.woocommerce-Tabs-panel h3:first-child { margin-top: 0; }
.woocommerce-Tabs-panel ul { padding-left: 1.1em; }
.woocommerce-Tabs-panel li { color: var(--bone-dim); }

/* отзывы на странице товара */
#reviews #comments ol.commentlist { padding: 0; list-style: none; }
#reviews .comment_container { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); }
#reviews .comment_container img.avatar { width: 46px; height: 46px; border-radius: 50%; }
#reviews .comment-text { flex: 1; }
#reviews .comment-text .meta { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.4rem; }
#reviews .comment-text .description { color: var(--bone-dim); }

#review_form_wrapper { margin-top: 1.5rem; }
.comment-form-rating .stars { color: var(--gold); }
.comment-form input[type="submit"],
#review_form input[type="submit"] {
	padding: 0.85em 1.6em;
	background: linear-gradient(180deg, #d8b46b 0%, var(--gold) 55%, #b08a39 100%);
	border: 0;
	border-radius: var(--radius);
	color: #17130c;
	font-weight: 600;
	cursor: pointer;
}

.comment-form label { text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; color: var(--bone-dim); }

.related.products,
.upsells.products {
	grid-column: 1 / -1;
	margin-top: clamp(2rem, 4vw, 3.5rem);
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 1px solid var(--line-soft);
}

.related.products > h2,
.upsells.products > h2 { font-size: var(--fs-h3); margin-bottom: 1.4rem; }

@media (max-width: 1280px) {
	/* шапка плотнее: меню, иконки и «Написать» должны помещаться в одну строку */
	.nav .menu { gap: clamp(0.6rem, 1.2vw, 1.1rem); }
	.nav .menu > .menu-item > a { font-size: 0.8rem; }
	.site-header__inner { gap: 0.8rem; }
	.header__cart-total { display: none !important; }
}

@media (max-width: 860px) {
	.single-product div.product { grid-template-columns: 1fr; }
	.single-product div.product .woocommerce-product-gallery { position: static; }
	ul.products, .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ---------- 8. Корзина и оформление ---------- */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main { padding-bottom: clamp(3rem, 6vw, 5rem); }

.entry > h1, .woocommerce > h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: rgba(14, 12, 10, 0.5);
	color: var(--bone-dim);
}

.woocommerce table.shop_table th {
	padding: 0.9rem 1rem;
	background: rgba(196, 156, 70, 0.06);
	border-bottom: 1px solid var(--line-soft);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	text-align: left;
}

.woocommerce table.shop_table td {
	padding: 1rem;
	border-bottom: 1px solid rgba(237, 230, 216, 0.07);
	vertical-align: middle;
}

.woocommerce table.shop_table a { color: var(--bone); }
.woocommerce table.shop_table a:hover { color: var(--gold-light); }

.woocommerce table.cart img { width: 76px; border-radius: var(--radius); }

.woocommerce table.cart td.product-name { font-size: 0.95rem; }
.woocommerce table.cart .quantity input { width: 62px; }

.woocommerce .cart_totals h2,
.woocommerce #order_review_heading { font-size: var(--fs-h3); }

.woocommerce .cart-collaterals { margin-top: 2rem; }

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.5em;
	background: rgba(196, 156, 70, 0.12);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--gold-light);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.woocommerce .button:hover,
.woocommerce a.button:hover { background: rgba(196, 156, 70, 0.2); border-color: var(--gold); color: #fff; }

.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order {
	background: linear-gradient(180deg, #d8b46b 0%, var(--gold) 55%, #b08a39 100%);
	border: 0;
	color: #17130c;
	font-weight: 600;
}

.woocommerce .button.alt:hover,
.woocommerce #place_order:hover { filter: brightness(1.07); color: #17130c; }

.woocommerce form .form-row { margin-bottom: 1rem; }
.woocommerce form .form-row label { color: var(--bone-dim); }

.select2-container--default .select2-selection--single {
	height: auto;
	padding: 0.55em 0.6em;
	background: rgba(10, 9, 8, 0.7);
	border: 1px solid rgba(237, 230, 216, 0.16);
	border-radius: var(--radius);
	color: var(--bone);
}

.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--bone); line-height: 1.6; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); }

.select2-dropdown {
	background: #14120f;
	border: 1px solid var(--line-soft);
	color: var(--bone);
}

.select2-results__option { color: var(--bone-dim); }
.select2-results__option--highlighted { background: rgba(196, 156, 70, 0.16) !important; color: var(--gold-light) !important; }

.woocommerce-checkout #payment {
	background: rgba(14, 12, 10, 0.6);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
}

.woocommerce-checkout #payment div.payment_box {
	background: rgba(196, 156, 70, 0.06);
	color: var(--bone-dim);
}

.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line-soft); }
.woocommerce-checkout #payment ul.payment_methods li { list-style: none; }

.woocommerce-info,
.woocommerce-checkout .woocommerce-info { border-left-color: var(--gold); }

.woocommerce-form-coupon,
.woocommerce-form-login {
	padding: 1.4rem;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	background: rgba(14, 12, 10, 0.4);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line-soft); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 0.8rem 0; color: var(--bone-dim); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--gold-light); }

/* ---------- 9. Блог и страницы ---------- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(1.25rem, 2.4vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-grid--list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.blog-grid li { margin: 0; }

.blog-card {
	height: 100%;
	border: 1px solid rgba(196, 156, 70, 0.14);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: rgba(20, 17, 14, 0.6);
	transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.blog-card:hover { border-color: rgba(196, 156, 70, 0.45); transform: translateY(-3px); }
.blog-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }

.blog-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0e0d0b; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }

.blog-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.2rem 1.3rem 1.4rem; }
.blog-card__date { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.blog-card__title { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.3; color: var(--bone); }
.blog-card__excerpt { font-size: 0.88rem; line-height: 1.6; color: var(--muted); }

.entry { max-width: 100%; }
.entry__head { padding-block: clamp(1rem, 2.5vw, 2rem) 1.2rem; }
.entry__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0; }
.entry__lede { margin: 0.8rem 0 0; color: var(--bone-dim); font-family: var(--font-serif); font-size: var(--fs-lead); }
.entry__date { display: block; margin-bottom: 0.6rem; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.entry__media { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.entry__foot { margin-top: 2rem; }

.entry-content {
	color: var(--bone-dim);
	line-height: 1.75;
}

.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: var(--fs-h2); margin-top: 2rem; color: var(--bone); }
.entry-content h3 { font-size: var(--fs-h3); margin-top: 1.7rem; color: var(--bone); }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(196, 156, 70, 0.4); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--gold); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content blockquote { color: var(--bone); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.7rem; border-bottom: 1px solid var(--line-soft); text-align: left; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.tags li { margin: 0; }
.tags a {
	display: inline-block;
	padding: 0.4em 0.8em;
	border: 1px solid var(--line-soft);
	border-radius: 99px;
	font-size: 0.76rem;
	color: var(--muted);
}

.post-nav { margin-top: 2.5rem; }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a {
	display: block;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	color: var(--bone-dim);
}

.post-nav a:hover { border-color: var(--gold); }
.post-nav__label { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.post-nav__title { font-family: var(--font-display); font-size: 1.05rem; color: var(--bone); }
.post-nav .nav-next { text-align: right; }

.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.comments__title { font-size: var(--fs-h3); }
.comments__list { list-style: none; padding: 0; }
.comments__list li { margin-bottom: 1.2rem; }
.comment-body { padding: 1.1rem 1.3rem; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.comment-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }
.comments__note { font-size: 0.8rem; color: var(--muted); }

.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }

.error404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.error404__code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: rgba(196, 156, 70, 0.28); margin: 0; }
.error404__title { font-size: var(--fs-h2); }
.error404__text { color: var(--bone-dim); max-width: 46ch; margin-inline: auto; }
.error404__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0; }
.error404__search { max-width: 460px; margin-inline: auto; }

/* виджеты */
.widget { margin-bottom: 2rem; }
.widget__title { font-size: 1.05rem; margin-bottom: 0.8rem; }
.widget ul { list-style: none; padding: 0; }
.widget a { color: var(--bone-dim); }
.widget a:hover { color: var(--gold-light); }

/* ---------- 10. Утилиты и анимации ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* появление блоков при скролле (включается JS-классом) */
.js-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
	.js-reveal { opacity: 1; transform: none; }
}

/* Печать */
@media print {
	.topbar, .site-header, .site-footer, .mobile-nav, .hero__scroll, .btn { display: none !important; }
	body { background: #fff; color: #000; }
	body::before { display: none; }
	a { color: #000; }
}

/* ---------- 9. Страницы-шаблоны ---------- */
/* На шаблоне «Отзывы» заголовок секции дублирует H1 страницы — оставляем только оценку. */
.page-template-reviews .section--reviews .section__title,
.page-template-reviews .section--reviews .section__lede { display: none; }

.page-template-reviews .section--reviews { padding-top: clamp(1rem, 2vw, 1.6rem); }
.page-template-reviews .section--reviews .section__head { margin-bottom: 1.4rem; }

/* Дополнительный блок внутри страницы не должен терять отступы. */
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns { margin-top: 1.6rem; }
