/* ==========================================================================
   Форсита — дизайн-система и общие компоненты
   1. Шрифты  2. Токены  3. База  4. Типографика  5. Кнопки и формы
   6. Шапка  7. Меню, поиск  8. Подвал  9. Блоки главной  10. Утилиты
   ========================================================================== */

/* 1. Шрифты (свои файлы, кириллица + латиница) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }

/* 2. Токены */
:root {
	/* Цвета */
	--paper: #F7F3EE;      /* основной фон — молочный */
	--linen: #EDE5DA;      /* второй фон — лён */
	--surface: #FFFFFF;    /* карточки, выпадающие панели */
	--ink: #221E1B;        /* основной текст, кнопки */
	--ink-2: #6A615A;      /* второстепенный текст */
	--ink-3: #9B9188;      /* подписи, старая цена */
	--line: #E2D8CB;       /* разделители */
	--line-2: #CDBFAE;     /* рамки полей */
	--wine: #7B2D3B;       /* акцент: скидки, ссылки при наведении */
	--wine-2: #5E202C;
	--ok: #4D6A48;
	--error: #A3262F;
	--overlay: rgba(34, 30, 27, .45);

	/* Шрифты */
	--serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Размеры текста */
	--fs-xs: .75rem;      /* 12 */
	--fs-sm: .875rem;     /* 14 */
	--fs-base: 1rem;      /* 16 */
	--fs-md: 1.125rem;    /* 18 */
	--fs-lg: 1.375rem;    /* 22 */
	--fs-xl: clamp(2rem, 1.4rem + 2vw, 3.25rem);        /* 32–52 */
	--fs-2xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);    /* 36–60 */
	--fs-3xl: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);   /* 44–88 */

	/* Отступы (шкала 4px) */
	--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
	--section: clamp(72px, 4rem + 6vw, 168px);
	--gutter: clamp(16px, 3.2vw, 48px);
	--container: 1920px;  /* широкие экраны используются целиком, поля — --gutter */

	/* Формы */
	--radius: 0px;
	--pill: 0px;          /* острые углы — спокойнее и дороже, чем «таблетки» */
	--control-h: 48px;
	--header-h: 72px;
	--sticky-top: var(--header-h); /* высота закреплённой шапки */
	--shadow: 0 18px 50px -20px rgba(34, 30, 27, .28);

	/* Движение */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--dur: .28s;
}

/* 3. База */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-top) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--dur) var(--ease); }
a:hover { color: var(--wine); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--wine); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { min-height: 50vh; }
.page-wrap { padding-block: var(--s-5) var(--section); }

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

/* 4. Типографика */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
.page-title { font-size: var(--fs-2xl); margin: 0; }
.page-header { margin: var(--s-5) 0 var(--s-6); }
.section-title { font-size: var(--fs-xl); margin: 0; }
.eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 var(--s-3); }
.lead { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.4; }

.prose > :not(table):not(.wp-block-table):not(figure):not(.fb) { max-width: 760px; }
.prose h2 { font-size: var(--fs-lg); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.6em; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--wine); }
.prose table, .entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: var(--s-5) 0; }
.prose table { display: block; overflow-x: auto; }
.prose th, .prose td, .entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th, .prose td { white-space: nowrap; }
.prose th, .entry-content th { font-weight: 600; background: var(--linen); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-inline { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.link-inline:hover { color: var(--wine); }

/* 5. Кнопки и формы */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 34px;
	border: 1px solid transparent; border-radius: var(--pill);
	font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--wine); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--wine); }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 50%; color: var(--ink); text-decoration: none; transition: background var(--dur), color var(--dur); }
.icon-btn:hover { background: rgba(34, 30, 27, .06); color: var(--ink); }
.badge-count { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--wine); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }

.input, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], select, textarea {
	width: 100%; min-height: var(--control-h); padding: 10px 16px;
	border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
	font: inherit; font-size: 16px; color: var(--ink);
	transition: border-color var(--dur);
}
textarea { min-height: 120px; resize: vertical; }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23221E1B' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; }
label { font-size: var(--fs-sm); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { color: inherit; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; transition: all var(--dur); background: transparent; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; pointer-events: none; }
.badge { display: inline-block; padding: 5px 9px 4px; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; }
.badge--sale { background: var(--wine); color: #fff; }
.badge--muted { background: rgba(255, 255, 255, .85); color: var(--ink-2); }

/* 6. Шапка: верхний ряд — поиск · логотип · иконки; второй ряд — меню */
.topbar { background: var(--ink); color: rgba(247, 243, 238, .86); font-size: 12px; letter-spacing: .08em; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 34px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__text { flex: 1; text-align: center; }
.topbar__contact { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contacts { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.topbar__contacts a { white-space: nowrap; }
.header-brand { display: block; width: auto; height: clamp(38px, 4.6vw, 54px); }
.header-logo .logo__sub { margin-top: 4px; font-size: 9px; }
@media (max-width: 899px) {
	.topbar__row { flex-direction: column; gap: 3px; padding-block: 4px; }
	.topbar__row .hide-sm { display: none; }
	.topbar__contacts { font-size: 11px; }
}

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(34, 30, 27, .5); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: var(--s-4); }
.header-left { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.burger { margin-left: -10px; }
.header-search { display: none; align-items: center; gap: 10px; min-height: 40px; padding: 0 2px; border: 0; border-bottom: 1px solid transparent; background: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.header-search:hover { color: var(--ink); border-bottom-color: var(--ink); }

.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.logo:hover { color: var(--ink); }
.logo__word { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; margin-right: -.28em; }
.logo__sub { margin-top: 7px; white-space: nowrap; font-size: 9px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-2); margin-right: -.34em; }
.custom-logo { max-height: 56px; width: auto; }

.primary-nav { display: none; border-top: 1px solid var(--line); }
.primary-nav__row { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 2vw, 36px); min-height: 48px; }
.primary-nav .menu { display: flex; align-items: center; gap: clamp(8px, 2vw, 36px); list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a, .primary-nav__catalog { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 48px; padding: 0 2px; border: 0; background: none; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--ink); }
.primary-nav .menu a::after, .primary-nav__catalog::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.primary-nav .menu a:hover::after, .primary-nav__catalog:hover::after, .primary-nav__catalog[aria-expanded="true"]::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.primary-nav .menu a:hover, .primary-nav__catalog:hover { color: var(--ink); }
.primary-nav .menu a[href*="/sale/"] { color: var(--wine); }
.primary-nav__catalog .icon { transition: transform var(--dur); }
.primary-nav__catalog[aria-expanded="true"] .icon { transform: rotate(180deg); }

@media (min-width: 1100px) {
	:root { --header-h: 84px; --sticky-top: calc(var(--header-h) + 49px); }
	.burger { display: none; }
	.primary-nav { display: block; }
	.header-search { display: inline-flex; }
	.header-actions .js-search-open { display: none; }
}
@media (max-width: 1099px) {
	.header-row { grid-template-columns: auto 1fr auto; }
	.header-logo { text-align: center; }
}
@media (max-width: 640px) {
	:root { --header-h: 60px; }
	.logo__word { font-size: 22px; letter-spacing: .22em; margin-right: -.22em; }
	.logo__sub { display: none; }
	.hide-sm { display: none !important; }
	.icon-btn { width: 40px; height: 40px; }
	.topbar__text { font-size: 11px; letter-spacing: .04em; }
}

/* 7. Меню каталога, поиск, мобильное меню */
.catalog-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); animation: drop .22s var(--ease); }
.catalog-menu__inner { padding-block: var(--s-6) var(--s-7); }
.catalog-menu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-3) var(--s-6); }
.catalog-menu__list > li > a { font-family: var(--serif); font-size: 26px; text-decoration: none; line-height: 1.3; }
.catalog-menu__all { color: var(--wine); }
.catalog-menu__sub { list-style: none; margin: 6px 0 0; padding: 0; }
.catalog-menu__sub a { font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding-block: var(--s-5); animation: drop .22s var(--ease); }
.search-form { display: flex; align-items: center; gap: var(--s-3); border-bottom: 1px solid var(--ink); padding-bottom: var(--s-2); }
.search-form > .icon { flex: none; color: var(--ink-2); }
.search-form__input { border: 0 !important; background: transparent !important; font-size: clamp(18px, 2.4vw, 26px) !important; font-family: var(--serif); padding: 0 !important; min-height: 52px; }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-suggest { max-height: min(70vh, 640px); overflow: auto; }
.suggest { display: grid; grid-template-columns: 1fr; gap: var(--s-5); padding-top: var(--s-5); }
@media (min-width: 900px) { .suggest { grid-template-columns: 220px 1fr; } }
.suggest__group-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 var(--s-3); }
.suggest__terms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .suggest__terms { flex-direction: column; } }
.suggest__products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3); }
.suggest__item { display: flex; gap: var(--s-3); align-items: center; text-decoration: none; padding: 6px; border-radius: var(--radius); }
.suggest__item:hover, .suggest__item.is-focus { background: var(--linen); color: var(--ink); }
.suggest__item img { width: 52px; height: 70px; object-fit: cover; background: var(--linen); flex: none; }
.suggest__name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.suggest__meta { font-size: var(--fs-xs); color: var(--ink-2); }
.suggest__empty { padding-top: var(--s-5); color: var(--ink-2); }
.suggest__all { margin-top: var(--s-4); }
@media (max-width: 640px) {
	.search-form .btn { display: none; }
}

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: var(--overlay); animation: fade .25s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 88vw); background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; animation: slide-in .3s var(--ease); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.drawer__head .logo { align-items: flex-start; }
.drawer__nav { padding: var(--s-3) var(--s-5); flex: 1; }
.drawer__nav .menu { list-style: none; margin: 0; padding: 0; }
.drawer__nav .menu > li > a { display: flex; align-items: center; gap: 10px; min-height: 52px; font-family: var(--serif); font-size: 24px; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer__nav .menu--secondary { margin-top: var(--s-5); }
.drawer__nav .menu--secondary a { font-family: var(--sans) !important; font-size: var(--fs-base) !important; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group > summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-family: var(--serif); font-size: 24px; cursor: pointer; list-style: none; }
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group[open] > summary .icon { transform: rotate(180deg); }
.drawer__group .catalog-menu__list { grid-template-columns: 1fr 1fr; gap: 6px var(--s-4); padding-bottom: var(--s-4); }
.drawer__group .catalog-menu__list > li > a { font-family: var(--sans); font-size: var(--fs-base); }
.drawer__group .catalog-menu__sub { display: none; }
.drawer__foot { padding: var(--s-5); background: var(--linen); font-size: var(--fs-sm); color: var(--ink-2); }
.drawer__phone { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }

/* Тост-уведомления */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: var(--s-4); max-width: calc(100vw - 32px); padding: 14px 20px; background: var(--ink); color: var(--paper); border-radius: var(--pill); box-shadow: var(--shadow); font-size: var(--fs-sm); transition: all .3s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; font-weight: 600; white-space: nowrap; }

/* Модальное окно (таблица размеров) */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--s-4); }
.modal__backdrop { position: absolute; inset: 0; background: var(--overlay); }
.modal__box { position: relative; width: min(920px, 100%); max-height: 88vh; overflow: auto; background: var(--paper); padding: var(--s-6); box-shadow: var(--shadow); animation: drop .25s var(--ease); }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__title { font-size: var(--fs-xl); margin-bottom: var(--s-4); }

/* 8. Подвал */
.site-footer { background: var(--ink); color: rgba(247, 243, 238, .78); padding-block: var(--s-8) var(--s-5); font-size: var(--fs-sm); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: var(--paper); align-items: flex-start; }
.site-footer .logo__sub { color: rgba(247, 243, 238, .6); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr; } }
.footer-brand__text { margin-top: var(--s-4); max-width: 320px; }
.footer-col__title { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); margin-bottom: var(--s-4); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contacts { display: grid; gap: 10px; align-content: start; }
.footer-contacts__phone { font-family: var(--serif); font-size: 26px; color: var(--paper) !important; line-height: 1.1; }
.footer-contacts p { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(247, 243, 238, .14); font-size: var(--fs-xs); color: rgba(247, 243, 238, .55); }
.footer-bottom p { margin: 0; }
.footer-credit { flex-basis: 100%; text-align: center; }
.footer-credit a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--line-2); }
.socials { display: flex; gap: 6px; margin-top: var(--s-4); }
.social { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; opacity: .8; }
.social:hover { opacity: 1; }
.drawer .social { color: var(--ink); }

/* 9. Блоки главной и разделов */
.fb { padding-block: calc(var(--section) / 2); }
.fb--linen { background: var(--linen); padding-block: calc(var(--section) * .7); margin-block: calc(var(--section) / 2); }
.home-blocks > .fb:first-child:not(.hero) { padding-top: var(--section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-7); }
.img-placeholder { background: linear-gradient(135deg, var(--linen), #e4d9cb); aspect-ratio: 4 / 5; width: 100%; }

/* Баннер */
.hero { position: relative; padding: 0; --hero-h: min(calc(100svh - var(--sticky-top) - 34px), 880px); }
.hero__track { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-slide { grid-area: 1 / 1; display: grid; min-width: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero-slide.is-active, .hero__track > .hero-slide:only-child, .hero:not(.is-ready) .hero-slide:first-child { opacity: 1; visibility: visible; }
.hero-slide__media { position: relative; overflow: hidden; background: var(--linen); }
.hero-slide__img, .hero-slide__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50%) var(--focus-y, 25%); aspect-ratio: auto; }
.hero-slide__media picture { display: contents; }
.hero-slide.is-active .hero-slide__img { animation: ken 12s var(--ease) both; }
@keyframes ken { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero-slide__inner { max-width: 600px; }
.hero-slide__title { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; margin-bottom: var(--s-5); text-wrap: balance; }
.hero-slide__text { font-size: var(--fs-md); line-height: 1.6; color: var(--ink-2); max-width: 440px; margin-bottom: var(--s-7); }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .eyebrow { letter-spacing: .28em; margin-bottom: var(--s-5); }

/* «Текст + фото»: вертикальное фото целиком в своей пропорции 3:4 — без обрезки людей */
.hero-slide--split { grid-template-columns: 1fr; }
.hero-slide--split .hero-slide__media { aspect-ratio: 4 / 5; }
.hero-slide--split .hero-slide__content { display: flex; align-items: center; padding: var(--s-6) var(--gutter) var(--s-8); }
@media (min-width: 900px) {
	.hero-slide--split { grid-template-columns: minmax(0, 1fr) auto; height: var(--hero-h); min-height: 560px; }
	.hero-slide--split .hero-slide__media { order: 2; height: 100%; aspect-ratio: 3 / 4; max-width: 56vw; }
	.hero-slide--split .hero-slide__img { position: absolute; inset: 0; }
	.hero-slide--split .hero-slide__content { padding: var(--s-8) clamp(32px, 5vw, 96px) var(--s-9) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
}

/* «Фото на всю ширину»: горизонтальный кадр, привязан к верху (лица в кадре) */
.hero-slide--full { position: relative; height: var(--hero-h); min-height: 560px; }
.hero-slide--full .hero-slide__media { position: absolute; inset: 0; }
.hero-slide--full .hero-slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 14, .55) 0%, rgba(20, 16, 14, .18) 45%, rgba(0, 0, 0, 0) 70%); }
.hero-slide--full.hero-slide--text-right .hero-slide__media::after { background: linear-gradient(270deg, rgba(20, 16, 14, .55) 0%, rgba(20, 16, 14, .18) 45%, rgba(0, 0, 0, 0) 70%); }
.hero-slide--full .hero-slide__content { position: relative; z-index: 1; align-self: center; padding: var(--s-8) var(--gutter); max-width: var(--container); width: 100%; margin-inline: auto; color: #fff; }
.hero-slide--full .hero-slide__inner { max-width: min(560px, 46%); }
.hero-slide--full.hero-slide--text-right .hero-slide__inner { margin-left: auto; }
.hero-slide--full .eyebrow, .hero-slide--full .hero-slide__text { color: rgba(255, 255, 255, .9); }
.hero-slide--full .btn--primary { background: var(--paper); color: var(--ink); }
.hero-slide--full .btn--primary:hover { background: #fff; color: var(--wine); }
.hero-slide--full .btn--outline { border-color: rgba(255, 255, 255, .8); color: #fff; }
.hero-slide--full .btn--outline:hover { background: #fff; color: var(--ink); }
@media (max-width: 899px) {
	/* На телефоне любой слайд — фото сверху (вертикальное, если задано), текст под ним. */
	.hero-slide--full { height: auto; min-height: 0; }
	.hero-slide--full .hero-slide__media { position: relative; inset: auto; aspect-ratio: 4 / 5; }
	.hero-slide--full .hero-slide__media::after { display: none; }
	.hero-slide--full .hero-slide__content { color: var(--ink); padding: var(--s-6) var(--gutter) var(--s-8); }
	.hero-slide--full .hero-slide__inner { max-width: none; }
	.hero-slide--full .eyebrow, .hero-slide--full .hero-slide__text { color: var(--ink-2); }
	.hero-slide--full .btn--primary { background: var(--ink); color: var(--paper); }
	.hero-slide--full .btn--outline { border-color: var(--ink); color: var(--ink); }
	.hero-slide--full.hero-slide--text-right .hero-slide__inner { margin-left: 0; }
	.hero-slide__img { object-position: var(--focus, 50%) 15%; }
}

.hero__nav { position: absolute; left: 0; right: 0; bottom: var(--s-6); display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 3; }
.hero__nav > * { pointer-events: auto; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 44px; height: 2px; padding: 8px 0; border: 0; background: transparent; position: relative; }
.hero__dot::before, .hero__dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.hero__dot::before { background: rgba(34, 30, 27, .2); }
.hero__dot::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: progress var(--hero-interval, 6s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows .icon-btn { width: 48px; height: 48px; background: rgba(247, 243, 238, .92); }
.hero__arrows .icon-btn:hover { background: #fff; }
@media (max-width: 899px) {
	.hero__nav { bottom: auto; top: calc(125vw - 40px); }
	.hero__arrows { display: none; }
}

/* Ленты с прокруткой */
.rail { position: relative; }
.rail > ul { scroll-snap-type: x mandatory; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.rail > ul::-webkit-scrollbar { display: none; }
.rail > ul > li { scroll-snap-align: start; }
.rail__btn { position: absolute; top: 38%; z-index: 3; background: var(--paper); box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); }
.rail__btn--prev { left: -18px; }
.rail__btn--next { right: -18px; }
.rail__btn:hover { background: #fff; }
@media (hover: none) { .rail__btn { display: none !important; } }

/* Плитки категорий: крупные, подпись поверх фото */
.cat-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--s-3); }
@media (min-width: 700px) { .cat-rail { grid-auto-columns: calc((100% - 2 * var(--s-4)) / 3); gap: var(--s-4); } }
@media (min-width: 1200px) { .cat-rail { grid-auto-columns: calc((100% - 3 * var(--s-5)) / 4); gap: var(--s-5); } }
.cat-tile { position: relative; display: block; overflow: hidden; text-decoration: none; color: #fff; }
.cat-tile:hover { color: #fff; }
.cat-tile__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: var(--img-focus, 50% 10%); background: var(--linen); transition: transform 1.2s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, rgba(20, 16, 14, 0), rgba(20, 16, 14, .55)); pointer-events: none; }
.cat-tile:hover .cat-tile__img { transform: scale(1.04); }
.cat-tile__name { position: absolute; left: var(--s-5); bottom: var(--s-5); z-index: 1; font-family: var(--serif); font-size: clamp(24px, 2vw, 32px); line-height: 1.1; }
.cat-tile__count { position: absolute; right: var(--s-5); bottom: calc(var(--s-5) + 6px); z-index: 1; font-size: 11px; letter-spacing: .18em; color: rgba(255, 255, 255, .8); }

/* Категории крупно — во всю ширину, вплотную, по 3 в ряд; остальные — следующими рядами.
   Неполный последний ряд растягивается на всю ширину. */
.fb-triptych { padding-block: 0; }
.triptych { display: flex; flex-wrap: wrap; gap: 0; --tile-h: min(calc(100vw / 3 * 1.3), calc(100svh - var(--sticky-top)), 980px); }
.triptych__tile { position: relative; display: block; flex: 1 1 33.333%; min-width: 33.333%; height: var(--tile-h); min-height: 420px; overflow: hidden; color: #fff; text-decoration: none; background: var(--linen); }
.triptych--n1 .triptych__tile { min-width: 100%; }
.triptych--n2 .triptych__tile { min-width: 50%; }
.triptych__tile:hover { color: #fff; }
.triptych__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, 50% 15%); transition: transform 1.6s var(--ease); }
.triptych__tile:hover .triptych__img { transform: scale(1.04); }
.triptych__tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, rgba(20, 16, 14, 0), rgba(20, 16, 14, .5)); pointer-events: none; }
.triptych__caption { position: absolute; left: clamp(20px, 2.4vw, 40px); right: clamp(20px, 2.4vw, 40px); bottom: clamp(24px, 3vw, 48px); z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.triptych__name { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 44px); line-height: 1.05; }
.triptych__more { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); white-space: nowrap; }
.triptych__tile:hover .triptych__more, .triptych__tile:focus-visible .triptych__more { opacity: 1; transform: none; }
.triptych__all { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-6); padding-block: var(--s-6) 0; }
.triptych__all a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.triptych__all a:hover { color: var(--ink); }
.triptych__all-main { color: var(--ink) !important; border-bottom: 1px solid var(--ink); }
@media (max-width: 699px) {
	/* телефон — по 2 в ряд */
	.triptych { --tile-h: 66vw; }
	.triptych__tile, .triptych--n1 .triptych__tile { flex-basis: 50%; min-width: 50%; min-height: 0; }
	.triptych__name { font-size: 22px; }
	.triptych__more { display: none; }
	.triptych__caption { left: 14px; right: 14px; bottom: 16px; }
}

/* Коллекции и подборки */
.looks-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 700px) { .looks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .looks-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.look-card__link { display: block; text-decoration: none; }
.look-card__media { overflow: hidden; background: var(--linen); }
.look-card__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--img-focus, 50% 10%); transition: transform .8s var(--ease); }
.look-card--wide .look-card__img { aspect-ratio: 16 / 11; }
.look-card__link:hover .look-card__img { transform: scale(1.03); }
.look-card__body { padding-top: var(--s-4); }
.look-card__body .eyebrow { margin-bottom: 6px; }
.look-card__title { font-size: var(--fs-lg); margin: 0 0 4px; }
.look-card__meta { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* Фото + текст */
.editorial__grid { display: grid; gap: var(--s-6); align-items: center; }
.editorial__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--img-focus, 50% 20%); }
.editorial__title { font-size: var(--fs-2xl); margin-bottom: var(--s-5); }
.editorial__text { font-size: var(--fs-md); color: var(--ink-2); max-width: 560px; margin-bottom: var(--s-6); }
.editorial--split .editorial__content { padding-inline: clamp(0px, 4vw, 80px); }
@media (min-width: 900px) {
	.editorial--split .editorial__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
	.editorial--img-right .editorial__media { order: 2; }
}
.editorial--overlay { padding-block: 0; }
.editorial--overlay .editorial__grid { position: relative; display: block; }
.editorial--overlay .editorial__media { position: relative; overflow: hidden; }
.editorial--overlay .editorial__img { aspect-ratio: auto; width: 100%; height: min(92vh, 920px); min-height: 560px; object-fit: cover; object-position: 70% 25%; }
.editorial--overlay .editorial__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 14, .66) 0%, rgba(20, 16, 14, .28) 40%, rgba(20, 16, 14, 0) 65%); }
/* Колонка текста — по сетке сайта, ширина не зависит от отступов (раньше текст ломался по слову в строку). */
.editorial--overlay .editorial__content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--s-8) var(--gutter); color: #fff; }
.editorial--overlay .editorial__content > * { max-width: 560px; }
.editorial--overlay .editorial__text, .editorial--overlay .eyebrow { color: rgba(255, 255, 255, .88); }
.editorial--overlay .editorial__title { font-style: italic; font-weight: 400; }
@media (max-width: 899px) {
	.editorial--overlay .editorial__img { height: 92vh; max-height: 760px; min-height: 520px; }
	.editorial--overlay .editorial__media::after { background: linear-gradient(180deg, rgba(20, 16, 14, 0) 25%, rgba(20, 16, 14, .8) 100%); }
	.editorial--overlay .editorial__content { justify-content: flex-end; }
}

/* Преимущества */
.fb-benefits { border-block: 1px solid var(--line); margin-block: calc(var(--section) / 2); }
.benefits__title { text-align: center; margin-bottom: var(--s-7); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--linen); color: var(--wine); margin-bottom: var(--s-4); }
.benefit__title { font-family: var(--sans); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.benefit__text { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } .benefit { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-4); } .benefit__icon { grid-row: span 2; margin: 0; } }

/* Салон */
.boutique { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .boutique { grid-template-columns: 7fr 5fr; gap: var(--s-8); } }
.boutique__img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: var(--img-focus, 50% 20%); }
.boutique__content .section-title { margin-bottom: var(--s-4); }
.boutique__list { list-style: none; margin: var(--s-5) 0 var(--s-6); padding: 0; display: grid; gap: var(--s-3); }
.boutique__list li { display: flex; gap: var(--s-3); align-items: center; }
.boutique__list .icon { color: var(--wine); flex: none; }
.boutique__list a { font-weight: 600; text-decoration: none; }
.boutique__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Бренды */
.brands { text-align: center; }
.brands__list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-6); }
.brands__list a { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-style: italic; text-decoration: none; color: var(--ink-2); }
.brands__list a:hover { color: var(--wine); }

/* Подписка */
.fb-subscribe { background: var(--linen); padding-block: calc(var(--section) * .75); margin-top: calc(var(--section) / 2); }
.subscribe { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .subscribe { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.subscribe__text p { color: var(--ink-2); margin: var(--s-3) 0 0; max-width: 460px; }
.subscribe__row { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); }
.subscribe__row .input { border-radius: var(--pill); padding-inline: 22px; }
.subscribe__msg { margin: var(--s-3) 0 0; font-size: var(--fs-sm); min-height: 1.5em; }
@media (max-width: 520px) { .subscribe__row { flex-direction: column; } }

/* Пустые состояния, 404 */
.empty-state { padding: var(--s-8) 0; text-align: center; color: var(--ink-2); }
.empty-state__title { font-family: var(--serif); font-size: var(--fs-xl); color: var(--ink); margin-bottom: var(--s-3); }
.empty-page { text-align: center; max-width: 640px; }
.search-inline { display: flex; gap: var(--s-2); margin: var(--s-6) 0; }

/* Записи (если появится блог) */
.post-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card__title { font-size: var(--fs-lg); margin-top: var(--s-3); }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { color: var(--ink-2); font-size: var(--fs-sm); }

/* 10. Утилиты, анимация появления */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* Блоки внутри обычной страницы (контакты и т. п.) — без двойных отступов. */
.page-wrap .fb { padding-top: 0; }
.page-wrap .fb > .container { padding-inline: 0; }
@media (max-width: 1600px) { .rail__btn--prev { left: -8px; } .rail__btn--next { right: -8px; } }

/* Для вошедшего администратора — шапка ниже чёрной панели WordPress. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.prose .about-statement {
	margin-block: clamp(24px, 4vw, 48px); padding-block: .7em;
	border-block: 1px solid var(--line); color: var(--wine); font-family: var(--serif);
	font-size: clamp(28px, 4vw, 44px); line-height: 1.15; text-wrap: balance;
}
.prose .about-invitation { margin-top: 1.4em; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }


/* Страница «О компании» — фото всегда целиком, без обрезки */
.prose > .about, .page-wrap .about { width: 100%; max-width: 1600px !important; margin-inline: auto; }
.about > section { margin-block: clamp(56px, 8vw, 128px); }
.about figure { margin: 0; }
.about img { display: block; width: 100%; height: auto; }
.about p { margin: 0; }
.about-intro { text-align: center; max-width: 920px; margin-inline: auto; }
.about-eyebrow { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-5) !important; }
.about .about-statement { font-family: var(--serif); font-size: clamp(40px, 6vw, 84px); line-height: 1.02; color: var(--ink); text-wrap: balance; }
.about .about-statement em { color: var(--wine); }
.about-lead { margin-top: var(--s-6) !important; font-size: var(--fs-md); color: var(--ink-2); }
.about-photos { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 800px) { .about-photos { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.about-photos figure { background: var(--linen); aspect-ratio: 2 / 3; }
.about .about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-cols { display: grid; gap: var(--s-7) var(--s-8); border-top: 1px solid var(--line); padding-top: var(--s-7); }
@media (min-width: 800px) { .about-cols { grid-template-columns: 1fr 1fr; } }
.about-cols p { font-size: var(--fs-md); line-height: 1.7; color: var(--ink-2); max-width: 52ch; margin-top: 1em; }
.about-h { font-size: var(--fs-xl); line-height: 1.05; margin: 0; }
.about-list__title { font-size: var(--fs-xl); margin: 0 0 var(--s-6); text-align: center; }
.about-list ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.about-list li { display: grid; gap: var(--s-2) var(--s-6); padding: var(--s-6) 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
@media (min-width: 800px) { .about-list li { grid-template-columns: 60px 3fr 5fr; } }
.about-list__n { font-family: var(--serif); font-size: var(--fs-lg); color: var(--wine); }
.about-list h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: 0; margin: 0; }
.about-list p { color: var(--ink-2); line-height: 1.65; }
.about-closing { text-align: center; max-width: 880px; margin-inline: auto; padding: clamp(40px, 6vw, 88px) 0; border-block: 1px solid var(--line); }
.about .about-invitation { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; text-wrap: balance; }
.about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.about-actions .btn--primary { background: var(--wine); color: #fff; }
.about-actions .btn--primary:hover { background: var(--wine-2); }

/* Прокрутка в стиле сайта: тонкая, без стрелок */
html, .bag-panel, .bag-items, .drawer, .suggest, dialog {
	scrollbar-width: thin;
	scrollbar-color: var(--line-2) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: content-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* Поиск: разделы строкой, товары — карточками с крупными фото */
.search-panel .container { max-width: 1280px; }
.search-form .btn--primary { background: var(--wine); border-color: var(--wine); color: #fff; }
.search-form .btn--primary:hover { background: var(--wine-2); border-color: var(--wine-2); }
.search-form:focus-within { border-bottom-color: var(--wine); }
.search-suggest { max-height: calc(100svh - var(--sticky-top) - 120px); }
.suggest { display: block; padding-top: var(--s-5); }
.suggest__terms { flex-direction: row !important; margin-bottom: var(--s-5); }
.suggest__group-title { color: var(--ink-3); }
.suggest__products { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); }
@media (min-width: 640px) { .suggest__products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .suggest__products { grid-template-columns: repeat(6, 1fr); } }
.suggest__item { flex-direction: column; align-items: stretch; gap: var(--s-3); padding: 0; }
.suggest__item:hover, .suggest__item.is-focus { background: none; }
.suggest__item img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 0; border-radius: 10px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.suggest__item:hover img, .suggest__item:focus-visible img { transform: translateY(-4px); box-shadow: var(--shadow); }
.suggest__item > span { display: grid; gap: 4px; }
.suggest__name { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.suggest__item:hover .suggest__name { color: var(--wine); }
.suggest__meta { font-size: var(--fs-sm); color: var(--ink); }
.suggest__meta b { font-weight: 600; }
.suggest__sale { color: var(--wine); }
.suggest__meta s { color: var(--ink-3); margin-left: 4px; }
.suggest__sku { font-size: 11px; color: var(--ink-3); }
.suggest__all { text-align: center; margin: var(--s-6) 0 0; }

/* Категории на компьютере, как на cerca-trova.ru: три крупные колонки пропорции 635:900.
   Это почти пропорция самих фото, поэтому срезается только узкая полоска снизу. */
@media (min-width: 761px) {
	.triptych--n3 .triptych__tile { height: auto; min-height: 0; aspect-ratio: 635 / 900; }
	.triptych--n3 .triptych__img { object-position: 50% 0 !important; }
}

/* Информационные страницы: меню разделов слева, текст карточками */
.info-layout { display: grid; gap: var(--s-6); max-width: 1200px; align-items: start; }
.page-wrap--info { max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; }
.info-nav { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.info-nav a { flex: none; padding: 12px 16px; border: 1px solid var(--line); font-size: var(--fs-sm); text-decoration: none; color: var(--ink-2); transition: color var(--dur), background var(--dur), border-color var(--dur); }
.info-nav a:hover { color: var(--wine); border-color: var(--wine); }
.info-nav a[aria-current="page"] { background: var(--wine); border-color: var(--wine); color: #fff; }
@media (min-width: 960px) {
	.info-layout { grid-template-columns: 250px minmax(0, 1fr); gap: var(--s-7); }
	.info-nav { position: sticky; top: calc(var(--sticky-top) + 24px); flex-direction: column; gap: 0; overflow: visible; }
	.info-nav a { border: 0; border-left: 2px solid var(--line); }
	.info-nav a:hover { border-color: var(--wine); }
}
.prose.info-content > * { max-width: none; }
.info-content { display: grid; gap: var(--s-4); min-width: 0; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 40px); }
.info-card > :first-child { margin-top: 0; }
.info-card > :last-child { margin-bottom: 0; }
.info-card p, .info-card li { line-height: 1.75; max-width: 75ch; }
.info-card p { margin: 0 0 1em; }
.info-content .info-card h2, .info-content .info-card h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: 0; line-height: 1.2; margin: 0 0 var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
/* Шаги заказа */
.info-card ol { list-style: none; padding: 0; counter-reset: step; }
.info-card ol li { counter-increment: step; position: relative; padding: 6px 0 var(--s-4) 56px; margin: 0; }
.info-card ol li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: #fff; font-family: var(--serif); font-size: 20px; }
.info-card ol li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 44px; bottom: 2px; width: 1px; background: var(--line-2); }
.info-card ul li::marker { color: var(--wine); }
/* Вопросы и ответы */
.info-faq { padding: 0; }
.info-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) clamp(20px, 3vw, 40px); cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
.info-faq summary::-webkit-details-marker { display: none; }
.info-faq summary::after { content: "+"; flex: none; color: var(--wine); font: 300 32px/1 var(--sans); transition: transform var(--dur) var(--ease); }
.info-faq[open] summary::after { transform: rotate(45deg); }
.info-faq[open] { border-color: var(--wine); }
.info-faq > div { padding: 0 clamp(20px, 3vw, 40px) var(--s-5); color: var(--ink-2); }
.info-faq > div > :last-child { margin-bottom: 0; }
/* Таблица размеров */
.info-card table { display: table; width: 100%; margin: 0; border-collapse: collapse; }
.info-card th, .info-card td { text-align: center !important; padding: 14px 10px !important; }
.info-card th { background: var(--wine); color: #fff; white-space: normal !important; font-size: var(--fs-sm); }
.info-card tbody tr:nth-child(even) td { background: var(--paper); }
.info-card tbody tr:hover td { background: var(--linen); }
.info-card td:first-child { font-family: var(--serif); font-size: 22px; color: var(--wine); }
.info-content--tablitsa-razmerov .info-card { padding: var(--s-3); overflow-x: auto; }

/* Окно «Таблица размеров»: помещается целиком, без ползунка снизу */
.modal__box { width: min(880px, 100%); max-height: 92vh; border-radius: 14px; padding: clamp(14px, 3vw, 32px); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--wine) transparent; }
.modal__title { text-align: center; font-size: clamp(26px, 3vw, 38px); padding-inline: 40px; }
.modal__close { width: 40px; height: 40px; border: 1px solid var(--wine); border-radius: 50%; color: var(--wine); }
.modal__close:hover { background: var(--wine); color: #fff; }
.modal__box .prose table { display: table; table-layout: fixed; width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.modal__box .prose th, .modal__box .prose td { white-space: normal; text-align: center; padding: 7px 4px; font-size: var(--fs-sm); line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.modal__box .prose th { background: var(--wine); color: #fff; border: 0; padding-block: 12px; }
.modal__box .prose tbody tr:nth-child(even) td { background: var(--paper); }
.modal__box .prose tbody tr:hover td { background: var(--linen); }
.modal__box .prose td:first-child { font-family: var(--serif); font-size: 20px; color: var(--wine); }
@media (max-width: 640px) {
	.modal { padding: 8px; }
	.modal__box .prose th { font-size: 9px; padding-inline: 1px; }
	.modal__box .prose td { font-size: 11px; padding-inline: 1px; }
	.modal__box .prose td:first-child { font-size: 16px; }
}
