/* ==========================================================
   Choco Rose — дизайн-система
   «Кондитерская бумага»: розово-белый фон с зерном,
   текст цвета эспрессо, один малиновый акцент.
   ========================================================== */

:root {
	/* Цвета */
	--paper: #FDF6F8;        /* фон страницы */
	--white: #FFFFFF;
	--blush: #FBE6EF;        /* розовые подложки */
	--blush-deep: #F5C4DB;   /* фирменный розовый Melissa */
	--ink: #4C2513;          /* фирменный шоколадный Melissa: текст и кнопки */
	--ink-soft: #7A5648;     /* второстепенный текст */
	--accent: #B0467A;       /* единственный акцент — насыщенный розовый */
	--accent-dark: #8E3762;
	--line: rgba(76, 37, 19, .10);
	--line-strong: rgba(76, 37, 19, .18);

	/* Шрифты */
	--serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
	--sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Форма и движение */
	--r-xl: 32px;
	--r-lg: 26px;
	--r-md: 18px;
	--gutter: clamp(16px, 4vw, 48px);
	--container: 1240px;
	--ease: cubic-bezier(.32, .72, 0, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--shadow: 0 2px 6px -2px rgba(120, 45, 70, .08), 0 30px 60px -32px rgba(120, 45, 70, .30);
	--shadow-sm: 0 1px 2px rgba(120, 45, 70, .06), 0 12px 28px -18px rgba(120, 45, 70, .30);

	/* Слои */
	--z-header: 50;
	--z-grain: 90;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Бумажное зерно поверх всей страницы */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: var(--z-grain);
	pointer-events: none;
	opacity: .07;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 8px;
}

::selection { background: var(--blush-deep); color: var(--ink); }

h1, h2, h3, h4 {
	margin: 0 0 .45em;
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.015em;
	color: var(--ink);
	text-wrap: balance;
}
h1 em, h2 em, h3 em {
	font-style: italic;
	color: var(--accent);
}

p { margin: 0 0 1em; text-wrap: pretty; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	left: 16px; top: -80px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	text-decoration: none;
	transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow { max-width: 860px; }

.site-main { min-height: 60vh; padding-top: 136px; }
.admin-bar .site-main { padding-top: 120px; }
.home .site-main { padding-top: 0; }

/* Маленькая надпись-ярлык над заголовком */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px;
	padding: 6px 14px 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .6);
	box-shadow: inset 0 0 0 1px var(--line);
	font: 600 11px/1.4 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.eyebrow::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

/* ---------- Кнопки ---------- */

.button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 0 8px 0 26px;
	border: 0;
	border-radius: 999px;
	font: 600 15px/1 var(--sans);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.button:active { transform: scale(.98); }

.button--primary {
	background: var(--ink);
	color: var(--white);
	box-shadow: 0 14px 30px -16px rgba(76, 37, 19, .7);
}
.button--primary:hover { background: #5E3220; color: var(--white); }

/* Стрелка во вложенном кружке */
.btn-icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	transition: transform .6s var(--ease), background-color .6s var(--ease), color .6s var(--ease);
}
.button:hover .btn-icon,
a:hover > .btn-icon {
	transform: translate(2px, -2px) scale(1.06);
	background: rgba(255, 255, 255, .22);
}

.text-link {
	display: inline-block;
	padding: 4px 0;
	font: 500 15px/1.4 var(--sans);
	color: var(--ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	transition: background-size .6s var(--ease), color .3s var(--ease);
}
.text-link:hover { color: var(--accent); background-size: 30% 1px; }

/* ---------- «Двойная рамка» для фото и карточек ---------- */

.bezel {
	margin: 0;
	padding: 6px;
	border-radius: var(--r-xl);
	background: rgba(255, 255, 255, .55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 1px var(--line), var(--shadow);
}
.bezel__core {
	display: block;
	width: 100%;
	border-radius: calc(var(--r-xl) - 6px);
	background: var(--white);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8);
}
img.bezel__core { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Шапка: парящая капсула ---------- */

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: var(--z-header);
	padding: 16px var(--gutter) 0;
	pointer-events: none;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__island {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: var(--container);
	min-height: 64px;
	margin: 0 auto;
	padding: 8px 8px 8px 28px;
	border-radius: 999px;
	pointer-events: auto;
}
/* стекло — на псевдоэлементе, чтобы не ломать полноэкранное меню */
.site-header__island::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: rgba(255, 252, 252, .72);
	backdrop-filter: saturate(1.6) blur(18px);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px var(--line), var(--shadow-sm);
}

.brand {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	color: var(--ink);
	text-decoration: none;
}
.site-header .brand__logo { display: block; width: auto; height: 40px; max-width: none; } /* .site-header — чтобы WooCommerce не перебивал размер */
/* эмблема-медальон чуть выступает из капсулы, как печать на упаковке */
.site-header .brand__logo--badge {
	height: 78px;
	margin: -14px 0 -22px -10px;
	filter: drop-shadow(0 10px 14px rgba(76, 37, 19, .22));
	transition: transform .6s var(--ease);
}
.brand:hover .brand__logo--badge { transform: rotate(-4deg) scale(1.03); }
.brand__name {
	font: 600 25px/1 var(--serif);
	letter-spacing: -.01em;
	white-space: nowrap;
}

.main-nav { position: relative; z-index: 1; }
.main-nav .menu {
	display: flex;
	gap: 6px;
	margin: 0; padding: 0;
	list-style: none;
}
.main-nav .menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	font: 500 15px/1 var(--sans);
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .4s var(--ease), color .4s var(--ease);
}
.main-nav .menu a:hover { background: rgba(43, 23, 20, .05); }
.main-nav li:not(.menu-item-type-custom).current-menu-item > a,
.main-nav li:not(.menu-item-type-custom).current_page_item > a { background: var(--blush); }
.main-nav__contacts { display: none; }

.site-header__actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cart-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 6px 0 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font: 600 14px/1 var(--sans);
	text-decoration: none;
	transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.cart-link:hover { background: #5E3220; color: var(--white); }
.cart-link:active { transform: scale(.97); }
.cart-link svg { display: none; }
.cart-link__count {
	display: inline-grid;
	place-items: center;
	min-width: 36px; height: 36px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font: 600 14px/1 var(--sans);
	font-variant-numeric: tabular-nums;
}
.cart-link__count[data-count="0"] { background: rgba(255, 255, 255, .14); color: var(--white); }

.menu-toggle {
	display: none;
	position: relative;
	width: 48px; height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--blush);
	cursor: pointer;
}
.menu-toggle__line {
	position: absolute;
	left: 15px;
	width: 18px; height: 1.5px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform .6s var(--ease), top .6s var(--ease);
}
.menu-toggle__line:nth-of-type(1) { top: 20px; }
.menu-toggle__line:nth-of-type(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(1) { top: 23.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(2) { top: 23.5px; transform: rotate(-45deg); }

@media (max-width: 1040px) {
	.menu-toggle { display: block; }
	.cart-link__label { display: none; }
	.cart-link { padding: 0 6px; gap: 0; }
	.cart-link svg { display: block; margin: 0 8px; }
	.site-header__island { padding-left: 22px; }
	.brand__name { font-size: 22px; }

	/* меню на весь экран */
	.main-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 120px var(--gutter) 48px;
		background: rgba(251, 244, 245, .96);
		backdrop-filter: blur(24px);
		-webkit-backdrop-filter: blur(24px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .5s var(--ease), visibility .5s;
	}
	.main-nav.is-open { opacity: 1; visibility: visible; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu a {
		padding: 10px 0;
		border-radius: 0;
		background: none !important;
		font: 500 clamp(40px, 11vw, 64px)/1.05 var(--serif);
		letter-spacing: -.02em;
		white-space: normal;
		transform: translateY(40px);
		opacity: 0;
		transition: transform .8s var(--ease-out), opacity .8s var(--ease-out);
	}
	.main-nav.is-open .menu a { transform: none; opacity: 1; }
	.main-nav.is-open .menu li:nth-child(2) a { transition-delay: .06s; }
	.main-nav.is-open .menu li:nth-child(3) a { transition-delay: .12s; }
	.main-nav.is-open .menu li:nth-child(4) a { transition-delay: .18s; }
	.main-nav.is-open .menu li:nth-child(5) a { transition-delay: .24s; }
	.main-nav__contacts {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin-top: 40px;
		padding-top: 24px;
		border-top: 1px solid var(--line);
		font-size: 15px;
		color: var(--ink-soft);
	}
	.main-nav__contacts a { font: 600 22px/1.3 var(--sans); color: var(--ink); text-decoration: none; }
	.menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
	.site-header .brand__logo { height: 34px; }
	.site-header .brand__logo--badge { height: 62px; margin: -10px 0 -16px -8px; }
	.site-header { padding: 10px 12px 0; }
	.site-header__island { gap: 10px; min-height: 58px; padding: 6px 6px 6px 18px; }
	.brand { min-width: 0; }
	.brand__name { font-size: 19px; overflow: hidden; text-overflow: ellipsis; }
	.cart-link, .menu-toggle { min-height: 44px; height: 44px; }
	.menu-toggle { width: 44px; }
	.menu-toggle__line { left: 13px; }
	.menu-toggle__line:nth-of-type(1) { top: 18px; }
	.menu-toggle__line:nth-of-type(2) { top: 25px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(1),
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(2) { top: 21.5px; }
	.cart-link__count { min-width: 32px; height: 32px; }
}

/* ---------- Главный экран ---------- */

.hero {
	position: relative;
	padding: clamp(140px, 16vw, 190px) 0 clamp(72px, 9vw, 128px);
	overflow: hidden;
	background:
		radial-gradient(48% 60% at 88% 30%, rgba(239, 208, 217, .75) 0%, rgba(239, 208, 217, 0) 70%),
		radial-gradient(40% 50% at 0% 100%, rgba(246, 228, 233, .9) 0%, rgba(246, 228, 233, 0) 70%),
		var(--paper);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: clamp(40px, 6vw, 96px);
}

.hero__title {
	margin-bottom: 28px;
	font-size: clamp(56px, 8.4vw, 118px);
	line-height: .92;
	letter-spacing: -.03em;
}
.hero__title em { display: inline-block; padding-right: .06em; }

.hero__text {
	max-width: 30em;
	margin-bottom: 40px;
	font-size: clamp(17px, 1.5vw, 19px);
	line-height: 1.65;
	color: var(--ink-soft);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}

/* Коллаж из фото товаров */
.hero__collage {
	position: relative;
	aspect-ratio: 1 / 1.08;
	max-width: 600px;
	width: 100%;
	justify-self: end;
}
.hero__card { position: absolute; }
.hero__card--1 { width: 56%; left: 2%; top: 10%; transform: rotate(-4deg); z-index: 2; }
.hero__card--2 { width: 44%; right: 0; top: 0; transform: rotate(5deg); z-index: 1; }
.hero__card--3 { width: 40%; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 3; }

.hero__note {
	position: absolute;
	left: 4%;
	bottom: 4%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--white);
	box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
	font: 500 14px/1.2 var(--sans);
	color: var(--ink);
}
.hero__note::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #4E9A6B;
	box-shadow: 0 0 0 4px rgba(78, 154, 107, .15);
}

/* Главный экран со своим фото на всю ширину */
.hero--photo {
	display: flex;
	align-items: center;
	min-height: min(100dvh, 860px);
	background: #F8EBEE;
}
.hero__bg {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(100%, max(66%, 900px));
	height: 100%;
	object-fit: cover;
	object-position: 60% 50%;
}
.hero--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, #F8EBEE 0%, #F8EBEE 30%, rgba(248, 235, 238, .6) 42%, rgba(248, 235, 238, 0) 56%);
}
.hero--photo .hero__inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 580px); }
.hero--photo .hero__text { color: var(--ink); }
.hero__note--photo { left: auto; right: var(--gutter); bottom: 40px; }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__collage { justify-self: center; max-width: 480px; margin-top: 8px; }

	.hero--photo { display: block; min-height: 0; padding-top: 0; background: var(--paper); }
	.hero--photo::after { display: none; }
	.hero--photo .hero__bg {
		position: static;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3.4;
		object-position: 82% 60%;
		margin-bottom: 36px;
	}
	.hero__note--photo { display: none; }
}

@media (max-width: 480px) {
	.hero__actions .button { width: 100%; justify-content: space-between; }
	.hero__actions .text-link { margin: 0 auto; }
}

/* ---------- Секции ---------- */

.section { padding: clamp(88px, 11vw, 160px) 0; }
.section--tint {
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(239, 208, 217, .55) 0%, rgba(239, 208, 217, 0) 70%),
		var(--blush);
}
.section--last { padding-bottom: clamp(96px, 12vw, 176px); }

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(36px, 5vw, 64px);
}
.section__title {
	margin: 0;
	font-size: clamp(42px, 5.6vw, 76px);
	line-height: .98;
	letter-spacing: -.025em;
}

@media (max-width: 640px) {
	.section__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Категории: асимметричная сетка ---------- */

.bento {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(300px, auto));
	gap: 16px;
	margin: 0; padding: 0;
	list-style: none;
}
.bento__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
/* если категорий 4 — вторая растягивается на всю ширину справа */
.bento__item:nth-child(2):nth-last-child(3) { grid-column: 2 / span 2; }

.bento__link {
	position: relative;
	display: block;
	height: 100%;
	min-height: 300px;
	overflow: hidden;
	border-radius: var(--r-xl);
	background: #F3DDE3; /* тот же тон, что фон фото товаров */
	color: var(--ink);
	text-decoration: none;
	box-shadow: 0 0 0 1px var(--line);
	isolation: isolate;
}
.bento__media,
.bento__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bento__media img { object-fit: cover; object-position: 50% 42%; transition: transform 1.2s var(--ease); }
.bento__link:hover .bento__media img { transform: scale(1.045); }

.bento__body {
	position: absolute;
	left: 14px; right: 14px; bottom: 14px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .9);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--shadow-sm);
}
.bento__name {
	font: 500 clamp(24px, 2.2vw, 30px)/1.05 var(--serif);
	letter-spacing: -.01em;
}
.bento__meta {
	flex: none;
	font: 500 13px/1 var(--sans);
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}
.bento__link > .btn-icon {
	position: absolute;
	top: 16px; right: 16px;
	width: 44px; height: 44px;
	background: var(--white);
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}
.bento__link:hover > .btn-icon { background: var(--ink); color: var(--white); }

@media (max-width: 900px) {
	.bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 12px; }
	.bento__item:nth-child(1),
	.bento__item:nth-child(2):nth-last-child(3) { grid-column: 1 / -1; grid-row: auto; }
	.bento__link { min-height: 220px; }
	.bento__item:nth-child(1) .bento__link { min-height: 340px; }
}
@media (max-width: 480px) {
	.bento__body { flex-direction: column; gap: 6px; padding: 12px 14px; left: 10px; right: 10px; bottom: 10px; }
	.bento__name { font-size: 22px; }
	.bento__link > .btn-icon { width: 36px; height: 36px; top: 10px; right: 10px; }
}

/* ---------- Как заказать ---------- */

.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(40px, 8vw, 120px);
	align-items: start;
}
.split__intro { position: sticky; top: 130px; }
.split__text { margin-top: 28px; max-width: 26em; color: var(--ink-soft); }

.steps {
	margin: 0; padding: 0;
	list-style: none;
	counter-reset: step;
}
.step {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 0 8px;
	padding: 36px 0;
	border-top: 1px solid var(--line-strong);
	counter-increment: step;
}
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step::before {
	content: counter(step, decimal-leading-zero);
	grid-row: span 2;
	font: italic 500 44px/1 var(--serif);
	color: var(--accent);
}
.step__title {
	margin-bottom: 10px;
	font-size: clamp(28px, 2.6vw, 36px);
	letter-spacing: -.015em;
}
.step p { margin: 0; max-width: 32em; color: var(--ink-soft); }

@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split__intro { position: static; }
	.step { grid-template-columns: 60px 1fr; padding: 28px 0; }
	.step::before { font-size: 34px; }
}

/* ---------- Подарок к празднику ---------- */

.bezel--wide { padding: 8px; border-radius: 40px; }
.callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
	padding: clamp(36px, 6vw, 72px);
	border-radius: 32px;
	background:
		radial-gradient(70% 120% at 100% 0%, rgba(239, 208, 217, .95) 0%, rgba(239, 208, 217, 0) 65%),
		radial-gradient(50% 90% at 0% 100%, rgba(246, 228, 233, .9) 0%, rgba(246, 228, 233, 0) 70%),
		var(--white);
}
.callout__title { margin-bottom: 14px; font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -.02em; }
.callout p { margin: 0; max-width: 32em; color: var(--ink-soft); }

/* ---------- Тексты страниц ---------- */

.page-title {
	margin: clamp(24px, 4vw, 48px) 0 clamp(28px, 4vw, 48px);
	font-size: clamp(48px, 6.4vw, 92px);
	line-height: .95;
	letter-spacing: -.03em;
}

.prose { font-size: 18px; max-width: 40em; }
.prose h2 { margin-top: 1.4em; font-size: clamp(32px, 3.4vw, 44px); }
.prose h3 { margin-top: 1.2em; font-size: 28px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--accent); }

.entry { margin-bottom: 56px; }
.entry__title a { text-decoration: none; }

.empty-state { padding: 40px 0 120px; }
.empty-state .button { margin-top: 12px; }

/* ---------- Подвал ---------- */

.site-footer {
	padding: clamp(72px, 9vw, 112px) 0 28px;
	background:
		radial-gradient(60% 90% at 100% 0%, rgba(239, 208, 217, .6) 0%, rgba(239, 208, 217, 0) 70%),
		var(--blush);
	font-size: 15px;
	line-height: 1.6;
	overflow: hidden;
}
.site-footer a { text-decoration: none; transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0 0 10px; }

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px clamp(24px, 4vw, 56px);
	align-items: start;
}
.site-footer__lead .eyebrow { margin-bottom: 20px; background: rgba(255, 255, 255, .7); }
.site-footer__phone {
	display: block;
	margin-bottom: 10px;
	font: 500 clamp(28px, 2.8vw, 38px)/1.1 var(--sans); /* у Cormorant цифры «прыгают» — телефон ровным шрифтом */
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* подписи колонок стоят на одной линии с ярлыком «Контакты» */
.site-footer__label {
	display: flex;
	align-items: center;
	min-height: 29px;
	margin: 0 0 20px;
	font: 600 11px/1.4 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.site-footer__col p:first-of-type { color: var(--ink); }
.site-footer__muted { color: var(--ink-soft); }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin-bottom: 10px; }

.site-footer .site-footer__wordmark {
	margin: clamp(72px, 9vw, 120px) 0 0;
	padding-bottom: .14em; /* место для хвостиков «д» и «р» */
	font: 500 clamp(40px, 8.4vw, 124px)/1 var(--serif);
	letter-spacing: -.035em;
	white-space: nowrap;
	color: var(--ink);
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line-strong);
	font-size: 13px;
	color: var(--ink-soft);
}

@media (max-width: 1040px) {
	.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__lead { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.site-footer__col:nth-child(2) { grid-column: 1 / -1; }
	.site-footer .site-footer__wordmark { white-space: normal; font-size: clamp(40px, 13vw, 64px); }
}
/* Логотип Melissa в подвале */
.site-footer__brand {
	display: flex;
	justify-content: center;
	margin: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
}
.site-footer__brand img { width: min(240px, 56vw); height: auto; }

/* ---------- Появление при прокрутке ---------- */

.has-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.has-reveal .reveal.is-visible {
	animation: reveal-up 1s var(--ease-out) var(--reveal-delay, 0ms) backwards;
}
@keyframes reveal-up {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
