/*
 * Morozmail — дизайн-система утверждённого макета.
 *
 * Токены сняты с макета design/moroz1.png (десктоп) и design/moroz2.png (мобильный).
 * Шкала: макет 1055 px соответствует вьюпорту 1440 px, коэффициент ≈ 1,365.
 */

/* ============================================================
   1. Токены
   ============================================================ */
:root {
	/* Бренд */
	--d-brand: #4740cf;
	--d-brand-dark: #3a33b5;
	--d-brand-soft: #eae7fd;
	--d-brand-ink: #443cc4;

	/* Текст */
	--d-ink: #171a30;
	--d-ink-2: #4d5166;
	/* Приглушённый текст: не ниже 4.5:1 на всех светлых подложках
	   (WCAG AA). На плашках счётчиков контраст самый низкий. */
	--d-muted: #5f6373;

	/* Линии и поверхности */
	--d-line: #eceaf2;
	--d-line-soft: #f3f1f7;
	--d-bg: #ffffff;
	--d-surface: #ffffff;
	--d-surface-2: #fbf9f7;
	--d-panel: #f2eff2;
	--d-cream: #fdf8f4;

	/* Акценты карточек */
	--d-rose: #fdedeb;
	--d-lilac: #f0edfa;
	--d-mint: #eff5e8;
	--d-amber: #fdf1dc;

	/* Плитки иконок */
	--d-icon-rose: #e6545f;
	--d-icon-lilac: #8a7cf0;
	--d-icon-mint: #2f9e5e;
	--d-icon-amber: #f2b13c;

	/* Радиусы */
	--d-r-xs: 8px;
	--d-r-sm: 12px;
	--d-r-md: 16px;
	--d-r-lg: 22px;
	--d-r-xl: 30px;
	--d-r-pill: 999px;

	/* Тени */
	--d-shadow-xs: 0 1px 2px rgba(23, 26, 48, 0.04);
	--d-shadow-sm: 0 2px 10px rgba(23, 26, 48, 0.06);
	--d-shadow-md: 0 8px 24px rgba(23, 26, 48, 0.09);
	--d-shadow-lg: 0 20px 48px rgba(23, 26, 48, 0.13);

	/* Шрифты */
	--d-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--d-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

	/* Сетка */
	--d-container: 1320px;
	--d-gutter: 24px;
	--d-section-gap: 56px;
}

/* ============================================================
   2. Базовые элементы дизайн-системы
   ============================================================ */
.mm-container {
	width: 100%;
	max-width: var(--d-container);
	margin-inline: auto;
	padding-inline: var(--d-gutter);
}

.mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 24px;
	border: 1.5px solid transparent;
	border-radius: var(--d-r-pill);
	font-family: var(--d-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mm-btn--primary {
	background: var(--d-brand);
	color: #fff;
	box-shadow: 0 6px 16px rgba(71, 64, 207, 0.22);
}

.mm-btn--primary:hover,
.mm-btn--primary:focus-visible {
	background: var(--d-brand-dark);
	color: #fff;
}

.mm-btn--outline {
	background: transparent;
	border-color: var(--d-brand);
	color: var(--d-brand);
}

.mm-btn--outline:hover,
.mm-btn--outline:focus-visible {
	background: var(--d-brand);
	color: #fff;
}

.mm-btn--ghost {
	background: #fff;
	border-color: var(--d-line);
	color: var(--d-ink);
}

.mm-btn--ghost:hover,
.mm-btn--ghost:focus-visible {
	border-color: var(--d-brand);
	color: var(--d-brand);
}

.mm-btn__arrow {
	transition: transform 0.18s ease;
}

.mm-btn:hover .mm-btn__arrow {
	transform: translateX(3px);
}

/*
 * Эмодзи ядра WordPress приходят с s.w.org уже в виде <img> без
 * width/height — на медленной сети картинка сдвигает текст. Задаём
 * размеры через CSS, сам файл остаётся внешним.
 */
img.emoji {
	width: 1.15em;
	height: 1.15em;
	vertical-align: -0.18em;
}

/* Заголовок секции: слева — заголовок и подпись, справа — ссылка */
.mm-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.mm-section__title {
	margin: 0;
	font-family: var(--d-serif);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--d-ink);
	letter-spacing: -0.01em;
}

.mm-section__sub {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--d-muted);
}

.mm-section__head--inline {
	flex-wrap: wrap;
	justify-content: flex-start;
}

.mm-section__head--inline .mm-section__title {
	margin-right: 6px;
}

.mm-section__head--inline .mm-section__sub {
	margin-right: auto;
}

.mm-section__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--d-brand);
	text-decoration: none;
}

.mm-section__link:hover,
.mm-section__link:focus-visible {
	color: var(--d-brand-dark);
	text-decoration: underline;
}

/* ============================================================
   3. Шапка
   ============================================================ */
.mm-header {
	position: relative;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid var(--d-line-soft);
}

.mm-header--overlay {
	position: absolute;
	inset: 0 0 auto;
	background: transparent;
	border-bottom: 0;
}

.mm-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 68px;
}

.mm-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	text-decoration: none;
	color: var(--d-ink);
}

.mm-logo__mark {
	font-size: 24px;
	line-height: 1;
	color: var(--d-brand);
}

.mm-logo__text {
	font-family: var(--d-serif);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.mm-nav {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.mm-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap;
}

.mm-nav__item {
	position: relative;
}

.mm-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 11px;
	border-radius: var(--d-r-sm);
	font-size: 15px;
	font-weight: 500;
	color: var(--d-ink);
	text-decoration: none;
	white-space: nowrap;
}

.mm-nav__link:hover,
.mm-nav__link:focus-visible {
	background: var(--d-brand-soft);
	color: var(--d-brand);
}

.mm-nav__item:has(> .mm-nav__submenu) > .mm-nav__link::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: 0.65;
}

.mm-nav__submenu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--d-line);
	border-radius: var(--d-r-md);
	box-shadow: var(--d-shadow-lg);
}

.mm-nav__item:hover > .mm-nav__submenu,
.mm-nav__item:focus-within > .mm-nav__submenu {
	display: block;
}

.mm-nav__subitem a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--d-r-sm);
	font-size: 14px;
	color: var(--d-ink-2);
	text-decoration: none;
}

.mm-nav__subitem a:hover {
	background: var(--d-brand-soft);
	color: var(--d-brand);
}

.mm-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
	margin-left: auto;
}

.mm-search {
	position: relative;
	flex: none;
}

.mm-search__input {
	width: 190px;
	height: 40px;
	padding: 0 16px 0 38px;
	border: 1px solid var(--d-line);
	border-radius: var(--d-r-pill);
	background: #fff;
	font-family: var(--d-sans);
	font-size: 14px;
	color: var(--d-ink);
	appearance: none;
}

.mm-search__input::placeholder {
	color: var(--d-muted);
}

.mm-search__input:focus {
	outline: none;
	border-color: var(--d-brand);
	box-shadow: 0 0 0 3px rgba(71, 64, 207, 0.12);
}

.mm-search__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 15px;
	pointer-events: none;
	color: var(--d-muted);
}

.mm-header__cta {
	min-height: 40px;
	padding: 0 20px;
	font-size: 14px;
}

.mm-header__cta-short {
	display: none;
}

.mm-header__cta-icon--plus {
	display: none;
	font-size: 19px;
	line-height: 1;
}

.mm-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--d-line);
	border-radius: var(--d-r-sm);
	background: #fff;
	cursor: pointer;
}

.mm-nav__toggle-bar {
	display: block;
	width: 18px;
	height: 2px;
	margin: 3px auto;
	border-radius: 2px;
	background: var(--d-ink);
}

/* ============================================================
   4. Герой
   ============================================================ */
.mm-hero {
	position: relative;
	display: block; /* старая тема задаёт .mm-hero как grid — здесь своя раскладка */
	width: 100%;
	max-width: none; /* фото героя уходит в правый край страницы, как в макете */
	margin-inline: 0;
	overflow: hidden;
	padding: 0;
	background:
		radial-gradient(1100px 520px at 82% 12%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 62%),
		radial-gradient(760px 420px at 6% 4%, rgba(255, 240, 222, 0.85), rgba(255, 255, 255, 0) 68%),
		linear-gradient(180deg, #fdf8f4 0%, #fdf5ef 58%, #fdf8f4 100%);
}

.mm-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(253, 248, 244, 0.9) 0%, rgba(253, 248, 244, 0.35) 46%, rgba(253, 248, 244, 0) 62%);
	pointer-events: none;
}

.mm-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	gap: 0 24px;
	/* Левый отступ держит текст на линии контента, а фото уходит в край страницы */
	padding: 0 0 22px max(var(--d-gutter), calc((100% - 1320px) / 2));
}

.mm-hero__content {
	grid-column: 1;
	grid-row: 1;
	max-width: 740px;
	padding: 74px 24px 0 56px;
}

.mm-hero__media {
	grid-column: 2;
	grid-row: 1;
	align-self: stretch;
	justify-self: end;
	width: 100%;
	max-width: 660px;
	overflow: hidden;
}

.mm-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	border-radius: var(--d-r-pill);
	background: var(--d-brand-soft);
	color: var(--d-brand);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mm-hero__title {
	margin: 16px 0 0;
	font-family: var(--d-serif);
	font-size: clamp(30px, 3.6vw, 52px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--d-ink);
}

.mm-hero__lead {
	max-width: 520px;
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--d-ink-2);
}

.mm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 20px 0 0;
}

.mm-hero__media {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 620px;
}

.mm-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 78% 50%;
}

.mm-hero__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

/* Мягкий стык фото с кремовым фоном — как в макете */
.mm-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(253, 248, 244, 0) 76%, rgba(253, 248, 244, 0.85) 100%),
		linear-gradient(90deg, #fdf8f4 0%, rgba(253, 248, 244, 0.62) 12%, rgba(253, 248, 244, 0) 38%);
	pointer-events: none;
}

.mm-hero__deco {
	position: absolute;
	pointer-events: none;
}

.mm-hero__deco--branch {
	top: -56px;
	left: -74px;
	width: 250px;
	opacity: 0.55;
}

.mm-hero__deco--lights {
	top: -22px;
	left: 32%;
	width: 420px;
	opacity: 0.6;
}

/* Декор живёт на стыке текста и фотографии, а не «плавает» отдельно */
.mm-hero__deco--star {
	top: 84px;
	right: 39.4%;
	width: 30px;
	opacity: 0.85;
}

.mm-hero__deco--snowflake {
	bottom: 84px;
	right: 40.2%;
	width: 40px;
	opacity: 0.7;
}

.mm-hero__deco--star-small {
	top: 128px;
	right: 41.4%;
	width: 16px;
	opacity: 0.6;
}

/* Счётчики */
.mm-hero__stats {
	position: relative;
	grid-column: 1;
	grid-row: 2;
	justify-self: stretch;
	width: 100%;
	max-width: 740px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	padding: 16px 24px 0 56px;
	border-top: 1px solid rgba(23, 26, 48, 0.08);
}

.mm-hero__stat {
	flex: 1 1 0;
	min-width: 0;
	padding-right: 14px;
}

.mm-hero__stat + .mm-hero__stat {
	padding-left: 14px;
	border-left: 1px solid rgba(23, 26, 48, 0.1);
}

.mm-hero__stat-value {
	display: block;
	font-family: var(--d-serif);
	font-size: 27px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--d-ink);
}

.mm-hero__stat-label {
	display: block;
	margin-top: 4px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--d-muted);
}

/* ============================================================
   5. Лента поводов
   ============================================================ */
.mm-occasions-strip {
	position: relative;
	padding: 8px 0 38px;
	background: var(--d-cream);
}

.mm-occasions {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}

.mm-occasions::-webkit-scrollbar {
	display: none;
}

.mm-occasion {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.mm-occasion__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 186px;
	padding: 12px 16px;
	border: 1px solid var(--d-line);
	border-radius: var(--d-r-md);
	background: #fff;
	box-shadow: var(--d-shadow-xs);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mm-occasion__link:hover {
	border-color: var(--d-brand);
	box-shadow: var(--d-shadow-sm);
	transform: translateY(-2px);
}

.mm-occasion--active .mm-occasion__link {
	background: var(--d-brand-soft);
	border-color: transparent;
}

.mm-occasion__icon {
	font-size: 26px;
	line-height: 1;
}

.mm-occasion__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--d-ink);
	white-space: nowrap;
}

.mm-occasion__count {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--d-muted);
	white-space: nowrap;
}

.mm-occasion__arrow {
	margin-left: auto;
	color: var(--d-brand);
	font-size: 16px;
}

.mm-occasion--all .mm-occasion__link {
	border-style: dashed;
	background: transparent;
	box-shadow: none;
}

/* Компактная строка «готовим разделы» вместо пустых карточек */
.mm-occasions__soon {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--d-muted);
}

.mm-occasions__soon-label {
	font-weight: 600;
	color: var(--d-ink-2);
}

.mm-occasions__soon-list {
	color: var(--d-muted);
}

.mm-occasions__soon-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-weight: 600;
	color: var(--d-brand);
	text-decoration: none;
}

.mm-occasions__soon-link:hover {
	text-decoration: underline;
}

/* ============================================================
   6. Что можно сделать
   ============================================================ */
.mm-section {
	padding: var(--d-section-gap) 0;
}

.mm-section--flush {
	padding-top: 0;
}

.mm-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.mm-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 320px;
	padding: 26px 24px 24px;
	border-radius: var(--d-r-lg);
	overflow: hidden;
	background: var(--d-surface);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Вся карточка — единая ссылка: клик в любом месте ведёт в раздел */
.mm-feature__link {
	color: inherit;
	text-decoration: none;
}

.mm-feature__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}

.mm-feature:hover {
	transform: translateY(-3px);
	box-shadow: var(--d-shadow-md);
}

.mm-feature:has(.mm-feature__link:focus-visible) {
	box-shadow: 0 0 0 3px rgba(71, 64, 207, 0.35);
}

.mm-feature__link:focus-visible {
	outline: none;
}

.mm-feature--rose { background: var(--d-rose); }
.mm-feature--lilac { background: var(--d-lilac); }
.mm-feature--mint { background: var(--d-mint); }
.mm-feature--amber { background: var(--d-amber); }

.mm-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: var(--d-r-md);
	color: #fff;
}

.mm-feature--rose .mm-feature__icon { background: var(--d-icon-rose); }
.mm-feature--lilac .mm-feature__icon { background: var(--d-icon-lilac); }
.mm-feature--mint .mm-feature__icon { background: var(--d-icon-mint); }
.mm-feature--amber .mm-feature__icon { background: var(--d-icon-amber); }

.mm-feature__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mm-feature__title {
	margin: 20px 0 0;
	font-family: var(--d-serif);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--d-ink);
}

.mm-feature__text {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--d-ink-2);
}

.mm-feature__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: auto;
	border-radius: 50%;
	background: #fff;
	color: var(--d-brand);
	box-shadow: var(--d-shadow-sm);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mm-feature:hover .mm-feature__arrow {
	background: var(--d-brand);
	color: #fff;
	transform: translateX(4px);
}

.mm-feature__media {
	position: absolute;
	right: -12px;
	bottom: -10px;
	width: 150px;
	z-index: 1;
	pointer-events: none;
	opacity: 0.96;
}

/* Текст и кнопка всегда поверх иллюстрации */
.mm-feature__icon,
.mm-feature__title,
.mm-feature__text,
.mm-feature__arrow {
	position: relative;
	z-index: 2;
}

.mm-feature__media picture {
	display: block;
	width: 100%;
}

.mm-feature__media img {
	display: block;
	width: 100%;
	height: auto;
}

.mm-feature__media--wide {
	width: 230px;
	right: -40px;
}

/* ============================================================
   7. Популярное сейчас
   ============================================================ */
.mm-posts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.mm-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--d-line-soft);
	border-radius: var(--d-r-lg);
	overflow: hidden;
	box-shadow: var(--d-shadow-xs);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mm-post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--d-shadow-md);
}

.mm-post-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--d-panel);
	overflow: hidden;
}

.mm-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mm-post-card__chip {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 12px;
	border-radius: var(--d-r-pill);
	background: var(--d-brand-soft);
	color: var(--d-brand);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mm-post-card__chip--pink {
	background: #fde8f1;
	color: #c2256b;
}

.mm-post-card__chip--red {
	background: #fdeaea;
	color: #d33a3a;
}

.mm-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 20px 20px;
}

.mm-post-card__title {
	margin: 0;
	font-family: var(--d-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.28;
	color: var(--d-ink);
}

.mm-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.mm-post-card__title a:hover {
	color: var(--d-brand);
}

.mm-post-card__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 13px;
	color: var(--d-muted);
}

.mm-post-card__meta svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

/* ============================================================
   8. Материалы для печати
   ============================================================ */
.mm-card--material .mm-card__media {
	aspect-ratio: 3 / 4;
	max-height: 280px;
	background: var(--d-surface-2);
}

.mm-card--material .mm-card__img {
	object-fit: contain;
	padding: 12px;
}

.mm-card__download {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	font-size: 13px;
}

.mm-card__download-icon {
	width: 15px;
	height: 15px;
	flex: none;
}

.mm-materials {
	display: grid;
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2.6fr);
	gap: 30px;
	padding: 38px;
	border-radius: var(--d-r-xl);
	background: var(--d-panel);
}

.mm-materials__title {
	margin: 0;
	font-family: var(--d-serif);
	font-size: clamp(28px, 2.6vw, 36px);
	font-weight: 600;
	line-height: 1.14;
	color: var(--d-ink);
}

.mm-materials__text {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--d-ink-2);
}

.mm-materials__cta {
	margin-top: 22px;
}

.mm-materials__cta-short {
	display: none;
}

.mm-materials__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

/* Карточка материала в панели главной: единый вид с библиотекой */
.mm-materials__grid .mm-card {
	height: 100%;
	border: 0;
	border-radius: var(--d-r-md);
	background: #fff;
	box-shadow: var(--d-shadow-xs);
}

.mm-materials__grid .mm-card__media {
	aspect-ratio: 3 / 4;
	background: var(--d-surface-2);
}

.mm-materials__grid .mm-card__img {
	object-fit: contain;
	padding: 10px;
}

.mm-materials__grid .mm-card__body {
	padding: 12px 14px 14px;
}

.mm-materials__grid .mm-card__title {
	font-size: 14px;
	line-height: 1.3;
}

.mm-materials__grid .mm-card__quality {
	font-size: 12px;
}

.mm-materials__grid .mm-card__download {
	margin-top: 10px;
}

/* ============================================================
   9. Страница материала: качество файла
   ============================================================ */
.mm-material__quality {
	margin: 20px 0 0;
	padding: 18px 20px;
	border: 1px solid var(--d-line);
	border-radius: var(--d-r-md);
	background: var(--d-surface-2);
}

.mm-material__quality--poor {
	border-color: #f2d3c4;
	background: #fdf2ec;
}

.mm-material__quality--low {
	border-color: #f0dfbe;
	background: #fdf7ea;
}

.mm-material__quality--good,
.mm-material__quality--excellent,
.mm-material__quality--vector {
	border-color: #d8e7cb;
	background: #f3f8ee;
}

.mm-material__quality-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--d-ink);
}

.mm-material__quality-text {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--d-ink-2);
}

.mm-material__quality-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	margin: 16px 0 0;
}

.mm-material__quality-facts dt {
	font-size: 12px;
	color: var(--d-muted);
}

.mm-material__quality-facts dd {
	margin: 3px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--d-ink);
}

.mm-material__quality .mm-material__note {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: var(--d-r-sm);
	background: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	line-height: 1.5;
	color: var(--d-ink-2);
}

/* ============================================================
   10. Создать своё
   ============================================================ */
.mm-tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.mm-tool {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	padding: 18px;
	border: 1px solid var(--d-line-soft);
	border-radius: var(--d-r-lg);
	background: #fff;
	box-shadow: var(--d-shadow-xs);
}

.mm-tool__media {
	border-radius: var(--d-r-md);
	overflow: hidden;
	background: var(--d-panel);
}

/* Страница инструмента: две колонки — описание слева, сам инструмент
   справа. Без этого правила третий блок уезжал на вторую строку сетки
   и между колонками оставалась пустая пропасть. */
.mm-tool--page {
	align-items: start;
}

.mm-tool__media picture {
	display: block;
	width: 100%;
}

.mm-tool__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.mm-tool__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--d-ink);
}

.mm-tool__text {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--d-ink-2);
}

.mm-tool__cta {
	margin-top: 16px;
	min-height: 40px;
	padding: 0 20px;
	font-size: 14px;
}

/* ============================================================
   11. Страница праздника: тематический первый экран
   ============================================================ */
.mm-occ-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--d-line-soft);
	background:
		radial-gradient(900px 420px at 78% 6%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, #fdf8f4 0%, #fdf5ef 60%, #fdf8f4 100%);
}

.mm-occ-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: 34px;
	padding: 40px 0 44px;
}

.mm-occ-hero__content {
	max-width: 640px;
}

.mm-occ-hero__crumbs {
	margin-bottom: 14px;
	font-size: 13px;
}

.mm-occ-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: var(--d-r-pill);
	background: var(--d-brand-soft);
	color: var(--d-brand);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mm-occ-hero__title {
	margin: 16px 0 0;
	font-family: var(--d-serif);
	font-size: clamp(32px, 4vw, 54px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--d-ink);
}

.mm-occ-hero__lead {
	margin: 14px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--d-ink-2);
}

.mm-occ-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
}

.mm-occ-hero__stats {
	margin: 18px 0 0;
	font-size: 14px;
	color: var(--d-muted);
}

.mm-occ-hero__media {
	position: relative;
	border-radius: var(--d-r-xl);
	overflow: hidden;
	box-shadow: var(--d-shadow-md);
}

.mm-occ-hero__media picture,
.mm-occ-hero__media img {
	display: block;
	width: 100%;
}

.mm-occ-hero__media img {
	height: auto;
}

/* ============================================================
   12. Подвал
   ============================================================ */
.mm-footer {
	position: relative;
	padding: 46px 0 26px;
	background: var(--d-surface-2);
	border-top: 1px solid var(--d-line-soft);
}

.mm-footer__grid {
	display: grid;
	grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 0.8fr)) minmax(160px, 0.9fr);
	gap: 30px;
}

.mm-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--d-ink);
	text-decoration: none;
}

.mm-footer__logo-mark {
	font-size: 22px;
	color: var(--d-brand);
}

.mm-footer__logo-text {
	font-family: var(--d-serif);
	font-size: 22px;
	font-weight: 700;
}

.mm-footer__about {
	max-width: 260px;
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--d-muted);
}

.mm-footer__title {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--d-ink);
}

.mm-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-footer__links li + li {
	margin-top: 8px;
}

.mm-footer__links a {
	font-size: 14px;
	color: var(--d-ink-2);
	text-decoration: none;
}

.mm-footer__links a:hover {
	color: var(--d-brand);
}

.mm-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.mm-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.mm-footer__social a:hover {
	transform: translateY(-2px);
	opacity: 0.88;
}

.mm-footer__social svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.mm-footer__deco {
	position: absolute;
	right: 36px;
	bottom: 26px;
	width: 54px;
	opacity: 0.9;
	pointer-events: none;
}

.mm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 34px;
	padding-top: 18px;
	border-top: 1px solid var(--d-line);
}

.mm-footer__note {
	margin: 0;
	font-size: 13px;
	color: var(--d-muted);
}

/* ============================================================
   13. Адаптив
   ============================================================ */
@media (max-width: 1280px) {
	.mm-search__input {
		width: 170px;
	}

	.mm-feature__media {
		width: 150px;
		right: -28px;
	}

	.mm-materials {
		grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.4fr);
		padding: 30px;
	}
}

@media (max-width: 1080px) {
	.mm-nav__list {
		gap: 0;
	}

	.mm-nav__link {
		padding: 8px 9px;
		font-size: 14px;
	}

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

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

	.mm-materials {
		grid-template-columns: 1fr;
	}

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

	.mm-tools {
		grid-template-columns: 1fr;
	}

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

	.mm-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.mm-occ-hero__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 30px 0 34px;
	}

	.mm-occ-hero__media {
		order: -1;
	}

	.mm-header__inner {
		gap: 16px;
	}

	.mm-nav {
		position: absolute;
		top: 100%;
		left: var(--d-gutter);
		right: var(--d-gutter);
		display: none;
		padding: 10px;
		background: #fff;
		border: 1px solid var(--d-line);
		border-radius: var(--d-r-lg);
		box-shadow: var(--d-shadow-lg);
	}

	/* Мобильное меню. Контракт классов — nav.js: при открытии на <body>
		 добавляется .mm-nav-open. */
	body.mm-nav-open .mm-nav {
		display: block;
	}

	.mm-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.mm-nav__submenu {
		position: static;
		display: block;
		padding: 0 0 0 12px;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.mm-nav__toggle {
		display: block;
	}

	.mm-search {
		display: none;
	}

	.mm-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		gap: 22px;
	}

	.mm-hero__content {
		grid-column: 1;
		grid-row: 1;
		max-width: none;
		padding: 72px 24px 0 0;
	}

	.mm-hero__media {
		grid-column: 1;
		grid-row: 2;
		justify-self: stretch;
		max-width: none;
		aspect-ratio: 16 / 11;
	}

	.mm-hero__stats {
		grid-column: 1;
		grid-row: 3;
		max-width: none;
		padding-left: 0;
	}

	.mm-hero__deco--star {
		top: 84px;
		right: 6%;
	}

	.mm-hero__deco--snowflake,
	.mm-hero__deco--star-small {
		display: none;
	}
}

@media (max-width: 640px) {
	:root {
		--d-gutter: 18px;
		--d-section-gap: 40px;
	}

	.mm-logo__text {
		font-size: 21px;
	}

	.mm-logo__mark {
		font-size: 21px;
	}

	.mm-header__inner {
		min-height: 60px;
	}

	/* На главной шапка — «плавающая» белая карточка поверх фото (как в макете) */
	.mm-header--overlay {
		padding-top: 10px;
	}

	.mm-header--overlay .mm-header__inner {
		min-height: 58px;
		padding-inline: 14px;
		border-radius: 18px;
		background: #fff;
		box-shadow: 0 12px 30px rgba(23, 26, 48, 0.16);
	}

	.mm-header__cta {
		min-height: 38px;
		padding: 0 16px;
		font-size: 14px;
	}

	.mm-header__cta-long {
		display: none;
	}

	.mm-header__cta-short {
		display: inline;
	}

	.mm-header__cta-icon--snow {
		display: none;
	}

	.mm-header__cta-icon--plus {
		display: inline-block;
	}

	.mm-hero {
		padding: 0;
		background-position: 62% center;
	}

	.mm-hero::before {
		background: linear-gradient(90deg, rgba(253, 248, 244, 0.92) 0%, rgba(253, 248, 244, 0.55) 45%, rgba(253, 248, 244, 0) 75%);
	}

	.mm-hero__media {
		/* Растягиваем фото на весь герой. Важно: абсолютный grid-элемент
		   позиционируется по своей grid-area, а без явного span берёт нулевую
		   по высоте строку — поэтому задаём area на всю сетку. */
		grid-column: 1 / -1;
		grid-row: 1 / -1;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 66%;
		max-width: none;
		aspect-ratio: auto;
		align-self: stretch;
		justify-self: stretch;
		z-index: 0;
	}

	.mm-hero__media img {
		object-position: 60% 35%;
	}

	.mm-hero__media::after {
		content: '';
		position: absolute;
		inset: 0;
		background:
			linear-gradient(180deg, rgba(253, 248, 244, 0) 44%, rgba(253, 248, 244, 0.7) 74%, #fdf8f4 100%),
			linear-gradient(90deg, #fdf8f4 0%, rgba(253, 248, 244, 0.9) 34%, rgba(253, 248, 244, 0.24) 66%, rgba(253, 248, 244, 0) 100%);
	}

	.mm-hero__content {
		position: relative;
		z-index: 1;
		max-width: none;
		padding: 96px 38% 0 0;
	}

	.mm-hero__title {
		margin-top: 16px;
		font-size: clamp(24px, 6.2vw, 30px);
	}

	.mm-hero__lead {
		font-size: 14px;
		line-height: 1.55;
	}

	.mm-hero__actions {
		flex-direction: column;
		align-items: stretch;
		margin: 22px 0 0;
	}

	.mm-hero__actions .mm-btn {
		width: 100%;
		padding-inline: 18px;
		font-size: 15px;
		white-space: nowrap;
	}

	.mm-hero__stats {
		position: relative;
		z-index: 1;
		display: flex;
		flex-wrap: nowrap;
		gap: 0;
		padding: 18px 24px 24px 0;
	}

	.mm-hero__stat {
		padding-right: 10px;
	}

	.mm-hero__stat + .mm-hero__stat {
		padding-left: 10px;
		border-left: 1px solid rgba(23, 26, 48, 0.1);
	}

	.mm-hero__stat-value {
		font-size: 20px;
	}

	.mm-hero__stat-label {
		font-size: 9.5px;
		letter-spacing: 0.06em;
	}

	.mm-section__head {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 14px;
	}

	.mm-section__sub {
		display: none;
	}

	.mm-section__title {
		font-size: 28px;
	}

	.mm-features {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mm-feature {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr) 84px 38px;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 12px;
		min-height: 0;
		padding: 16px 14px;
	}

	.mm-feature__icon {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 48px;
		height: 48px;
		border-radius: var(--d-r-sm);
	}

	.mm-feature__icon svg {
		width: 22px;
		height: 22px;
	}

	.mm-feature__title {
		grid-column: 2;
		grid-row: 1;
		margin-top: 0;
		font-size: 18px;
	}

	.mm-feature__text {
		grid-column: 2;
		grid-row: 2;
		margin-top: 4px;
		font-size: 13px;
	}

	.mm-feature__arrow {
		grid-column: 4;
		grid-row: 1 / span 2;
		margin-top: 0;
		width: 38px;
		height: 38px;
	}

	/* Иллюстрация — отдельной колонкой, чтобы не наезжать на текст */
	.mm-feature__media {
		grid-column: 3;
		grid-row: 1 / span 2;
		position: relative;
		right: auto;
		bottom: auto;
		width: 100%;
		max-width: 84px;
		opacity: 1;
		align-self: center;
		justify-self: end;
	}

	.mm-feature__media img {
		width: 100%;
		height: auto;
		max-height: 92px;
		object-fit: contain;
	}

	.mm-posts {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.mm-posts::-webkit-scrollbar {
		display: none;
	}

	.mm-post-card {
		flex: 0 0 74%;
		scroll-snap-align: start;
	}

	/* Мобильная версия блока материалов — как в макете: заголовок со ссылкой
	   и лента карточек без «фиолетовой» подложки */
	.mm-materials {
		display: block;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}

	.mm-materials__intro {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
		margin-bottom: 18px;
	}

	.mm-materials__title {
		min-width: 0;
		font-size: 24px;
	}

	.mm-materials__text {
		display: none;
	}

	.mm-materials__cta {
		margin-top: 0;
		min-height: 0;
		padding: 0;
		flex: none;
		white-space: nowrap;
		background: transparent;
		box-shadow: none;
		color: var(--d-brand);
		font-size: 15px;
		font-weight: 600;
	}

	.mm-materials__cta:hover {
		background: transparent;
	}

	.mm-materials__cta-long {
		display: none;
	}

	.mm-materials__cta-short {
		display: inline;
	}

	.mm-materials__grid {
		display: flex;
		gap: 12px;
		margin-inline: calc(var(--d-gutter) * -1);
		padding-inline: var(--d-gutter);
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.mm-materials__grid::-webkit-scrollbar {
		display: none;
	}

	.mm-materials__grid .mm-card {
		flex: 0 0 44%;
		scroll-snap-align: start;
	}

	.mm-tool {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 14px;
	}

	.mm-tool__media img {
		aspect-ratio: 16 / 10;
	}

	.mm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 20px;
	}

	.mm-footer__brand {
		grid-column: 1 / -1;
	}

	.mm-footer__deco {
		display: none;
	}
}

@media (max-width: 420px) {
	.mm-header__cta {
		padding: 0 14px;
	}

	.mm-header__cta .mm-btn__icon {
		display: none;
	}

	.mm-occasion__link {
		min-width: 168px;
	}

	.mm-materials__grid .mm-card {
		flex: 0 0 62%;
	}
}

/* ============================================================
   14. Чтение статьи: колонка, подписи, заголовки
   ============================================================ */

/*
 * Текстовая колонка ограничена 720 px: при ширине контейнера 1320 px
 * строка получалась около 150 знаков — читать такой текст тяжело.
 * Ориентир — 65–75 знаков в строке.
 */
.mm-article__body {
	max-width: 720px;
	margin-inline: auto;
}

/* Иллюстрация статьи шире текста, но тоже центрируется. */
.mm-article__media {
	max-width: 960px;
	margin-inline: auto;
	/* Картинка центрируется, если она уже натуральной ширины. */
	text-align: center;
}

/* Заголовку нужен и отступ снизу: без него текст прилипает к нему. */
.mm-article__body h2 {
	margin-bottom: var(--d-sp-3, 12px);
}

.mm-article__body h3 {
	margin-bottom: var(--d-sp-2, 8px);
}

/* Первый абзац после заголовка отделяем чуть меньше. */
.mm-article__body h2 + *,
.mm-article__body h3 + * {
	margin-top: 0;
}

/* Подписи к картинкам внутри текста. */
.mm-article__body figure {
	margin: 0;
}

.mm-article__body figcaption,
.mm-article__body .wp-caption-text {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--d-muted, #6b6f76);
	text-align: center;
}

.mm-article__body .wp-caption {
	max-width: 100%;
}

/* Цитата и таблица — по ширине текстовой колонки, без выхода за неё. */
.mm-article__body blockquote,
.mm-article__body table {
	max-width: 100%;
}

/*
 * Блок связанных материалов: три карточки в одну колонку и в строку —
 * он идёт сразу после текста статьи и не должен занимать полэкрана.
 */
.mm-article + .mm-section {
	margin-top: var(--d-section-gap);
	padding-top: 28px;
	border-top: 1px solid var(--d-line);
}

.mm-article + .mm-section .mm-card-grid {
	grid-template-columns: 1fr;
	gap: 12px;
}

.mm-article + .mm-section .mm-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
}

.mm-article + .mm-section .mm-card__media {
	flex: 0 0 128px;
	width: 128px;
	border-radius: var(--d-r-sm);
}

.mm-article + .mm-section .mm-card__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}

.mm-article + .mm-section .mm-card__title {
	font-size: 16px;
}

.mm-article + .mm-section .mm-card__text {
	-webkit-line-clamp: 2;
}

@media (max-width: 860px) {
	.mm-article__body,
	.mm-article__media {
		max-width: 100%;
	}

	.mm-article + .mm-section .mm-card {
		align-items: flex-start;
	}

	.mm-article + .mm-section .mm-card__media {
		flex: 0 0 96px;
		width: 96px;
	}
}

/* ============================================================
   15. Форма комментариев
   ============================================================ */

/*
 * Комментарии выводятся ядром WordPress (в теме нет comments.php),
 * поэтому разметка и стили раньше не задавались: textarea с атрибутом
 * cols="45" задавал фиксированную ширину ~350 px и вылезал за экран
 * на узких телефонах. Ниже — оформление в токенах дизайн-системы
 * и явная ширина полей в 100 %.
 */
.comments-area {
	max-width: 720px;
	margin-top: var(--d-section-gap);
	padding-top: 32px;
	border-top: 1px solid var(--d-line);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 20px;
	font-family: var(--d-serif);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--d-ink);
}

.comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 16px 0 0;
	padding: 0 0 0 18px;
	list-style: none;
	border-left: 2px solid var(--d-line);
}

.comment-list li {
	padding: 16px 0;
	border-bottom: 1px solid var(--d-line-soft);
}

.comment-author .fn {
	font-weight: 600;
	color: var(--d-ink);
}

.comment-metadata a {
	font-size: 13px;
	color: var(--d-muted);
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--d-brand);
}

.comment-content {
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--d-ink-2);
}

.comment-content p {
	margin: 0 0 10px;
}

.comment-reply-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--d-brand);
	text-decoration: none;
}

.comment-reply-link:hover {
	color: var(--d-brand-dark);
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--d-ink-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 11px 14px;
	border: 1.5px solid var(--d-line);
	border-radius: var(--d-r-sm);
	background: var(--d-surface);
	font-family: var(--d-sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--d-ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--d-brand);
	box-shadow: 0 0 0 3px rgba(71, 64, 207, 0.12);
}

.comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 2px 0 0;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
}

.comment-form .form-submit {
	margin-bottom: 0;
}

.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--d-r-pill);
	background: var(--d-brand);
	color: #fff;
	font-family: var(--d-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(71, 64, 207, 0.22);
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form input[type="submit"]:focus-visible {
	background: var(--d-brand-dark);
}

@media (max-width: 640px) {
	.comment-list .children {
		padding-left: 12px;
	}
}
