/*
Theme Name: MP Blank
Theme URI: https://menopace.ua/
Description: Тема сайту Менопейс (Delta Medical). Без WPML, WPBakery та Impreza: блочна верстка, мови через DM Lang, SEO через DM Site Settings.
Version: 1.0.3
Author: Delta Medical
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: mp-blank
*/

/* ---------- Шрифт (у темі, без Google Fonts) ---------- */
@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/commissioner-cyr.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/commissioner-lat.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Змінні ---------- */
:root {
	--mp-brand: #c81244;
	--mp-brand-dark: #9c0d35;
	--mp-original: #c81244;
	--mp-plus: #6b3394;
	--mp-night: #253f80;
	--mp-tone: var(--mp-brand);
	--mp-tone-dark: var(--mp-brand-dark);
	--mp-tone-soft: #fbeff3;
	--mp-ink: #2d1626;
	--mp-text: #4b3644;
	--mp-muted: #7b6573;
	--mp-blush: #fbeff3;
	--mp-blush-2: #f5dfe7;
	--mp-line: #eedbe3;
	--mp-paper: #fff;
	--mp-radius: 26px;
	--mp-radius-s: 14px;
	--mp-wrap: 1180px;
	--mp-text-w: 760px;
	--mp-pad: clamp(56px, 8vw, 104px);
	--mp-font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.mp-tone-plus { --mp-tone: var(--mp-plus); --mp-tone-dark: #4f2370; --mp-tone-soft: #f3ecf8; }
body.mp-tone-night { --mp-tone: var(--mp-night); --mp-tone-dark: #172b5c; --mp-tone-soft: #ebeff8; }
body.mp-tone-original { --mp-tone: var(--mp-original); --mp-tone-dark: var(--mp-brand-dark); --mp-tone-soft: #fbeff3; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	font-family: var(--mp-font);
	font-size: 18px;
	line-height: 1.65;
	color: var(--mp-text);
	background: var(--mp-paper);
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--mp-tone); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--mp-tone-dark); }
:focus-visible { outline: 3px solid var(--mp-tone); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--mp-ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(22px, 2.3vw, 28px); }
h4 { font-size: clamp(20px, 2vw, 24px); }
p, ul, ol, table, figure { margin: 0 0 1.1em; }
strong { color: var(--mp-ink); font-weight: 650; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mp-ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.mp-wrap { width: min(100% - 32px, var(--mp-wrap)); margin-inline: auto; }

/* Кольори палітри редактора */
.has-brand-color { color: var(--mp-brand) !important; }
.has-plus-color { color: var(--mp-plus) !important; }
.has-night-color { color: var(--mp-night) !important; }
.has-ink-color { color: var(--mp-ink) !important; }
.has-white-color { color: #fff !important; }
.has-brand-background-color { background-color: var(--mp-brand) !important; }
.has-plus-background-color { background-color: var(--mp-plus) !important; }
.has-night-background-color { background-color: var(--mp-night) !important; }
.has-blush-background-color { background-color: var(--mp-blush) !important; }
.has-white-background-color { background-color: #fff !important; }

/* ---------- Кнопки ---------- */
.mp-btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 52px; padding: 12px 26px;
	border-radius: 999px; border: 2px solid var(--mp-tone);
	background: var(--mp-tone); color: #fff;
	font: 650 16px/1.2 var(--mp-font); letter-spacing: .01em;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.mp-btn:hover, .wp-block-button__link:hover { background: var(--mp-tone-dark); border-color: var(--mp-tone-dark); color: #fff; }
.is-style-outline > .wp-block-button__link, .mp-btn--line { background: transparent; color: var(--mp-tone); }
.is-style-outline > .wp-block-button__link:hover, .mp-btn--line:hover { background: var(--mp-tone); color: #fff; }
.wp-block-button.mp-btn-quiet > .wp-block-button__link { background: transparent; border-color: transparent; color: var(--mp-ink); text-decoration: underline; text-decoration-color: var(--mp-tone); text-underline-offset: .3em; padding-inline: 8px; }
.wp-block-button.mp-btn-quiet > .wp-block-button__link:hover { color: var(--mp-tone); }
.mp-btn--sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.2em; }
.wp-block-buttons:last-child { margin-bottom: 0; }

/* ---------- Шапка ---------- */
.mp-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.3) blur(10px);
	-webkit-backdrop-filter: saturate(1.3) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.admin-bar .mp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mp-header { top: 0; } }
.mp-header.is-scrolled { border-bottom-color: var(--mp-line); }
.mp-header .mp-wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.mp-brand { display: block; flex: none; line-height: 0; }
.mp-brand img { width: 132px; height: auto; }
.mp-nav { flex: 1; }
.mp-nav .menu, .mp-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.mp-nav > .menu { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; }
.mp-nav a, .mp-sub-toggle {
	display: block; padding: 8px 10px; border-radius: 999px;
	color: var(--mp-ink); text-decoration: none; white-space: nowrap;
	font: 550 15px/1.3 var(--mp-font); background: none; border: 0; cursor: pointer;
}
.mp-nav a:hover, .mp-sub-toggle:hover { background: var(--mp-blush); color: var(--mp-ink); }
.mp-nav .current-menu-item > a, .mp-nav a[aria-current="page"] { color: var(--mp-brand); }
.mp-sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mp-nav .menu-item-has-children { position: relative; }
.mp-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 280px; padding: 8px;
	background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-s);
	box-shadow: 0 18px 40px -24px rgba(80, 20, 50, .45);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.mp-nav .menu-item-has-children:hover > .sub-menu,
.mp-nav .menu-item-has-children:focus-within > .sub-menu,
.mp-nav .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mp-nav .sub-menu a { border-radius: 10px; }
.mp-header__tools { display: flex; align-items: center; gap: 12px; flex: none; }
.dm-lang-switch ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border: 1px solid var(--mp-line); border-radius: 999px; }
.dm-lang-switch a, .dm-lang-switch span { display: block; padding: 4px 10px; border-radius: 999px; font: 650 14px/1.3 var(--mp-font); text-decoration: none; color: var(--mp-muted); }
.dm-lang-switch .is-current span { background: var(--mp-ink); color: #fff; }
.dm-lang-switch a:hover { color: var(--mp-ink); }
.mp-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--mp-line); border-radius: 50%; background: #fff; cursor: pointer; position: relative; }
.mp-burger span, .mp-burger span::before, .mp-burger span::after { position: absolute; left: 13px; width: 18px; height: 2px; background: var(--mp-ink); content: ""; transition: .2s; }
.mp-burger span { top: 22px; }
.mp-burger span::before { left: 0; top: -6px; }
.mp-burger span::after { left: 0; top: 6px; }
.mp-burger[aria-expanded="true"] span { background: transparent; }
.mp-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.mp-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1240px) { .mp-header__cta { display: none; } }
@media (max-width: 1080px) {
	.mp-burger { display: block; }
	.mp-header__cta { display: none; }
	.mp-nav {
		position: fixed; inset: 76px 0 0; z-index: 49; overflow-y: auto;
		padding: 16px 16px 40px; background: #fff;
		opacity: 0; visibility: hidden; transition: .2s;
	}
	.admin-bar .mp-nav { top: 122px; }
	.mp-nav.is-open { opacity: 1; visibility: visible; }
	.mp-nav > .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.mp-nav a, .mp-sub-toggle { padding: 14px 8px; font-size: 19px; border-radius: 0; white-space: normal; border-bottom: 1px solid var(--mp-line); width: 100%; text-align: left; }
	.mp-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; display: none; }
	.mp-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.mp-nav__cta { display: flex; margin-top: 20px; }
	body.mp-menu-open { overflow: hidden; }
}
@media (min-width: 1081px) { .mp-nav__cta { display: none; } }

/* ---------- Контент ---------- */
.mp-main { display: block; }
.mp-content > * { width: min(100% - 32px, var(--mp-text-w)); margin-inline: auto; }
.mp-content > .alignwide { width: min(100% - 32px, var(--mp-wrap)); }
.mp-content > .alignfull { width: 100%; }
.mp-content > :first-child { margin-top: 0; }
.mp-page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.mp-page-head .mp-wrap { max-width: var(--mp-text-w); }
.mp-page-head h1 { margin: 0; }
.mp-crumbs { font-size: 15px; color: var(--mp-muted); margin: 0 0 14px; }
.mp-crumbs a { color: var(--mp-muted); }
.mp-content { padding-bottom: var(--mp-pad); }
.mp-content h2, .mp-content h3 { margin-top: 1.6em; }
.mp-content ul, .mp-content ol { padding-left: 1.3em; }
.mp-content li { margin-bottom: .35em; }
.mp-content li::marker { color: var(--mp-tone); }
.mp-content .wp-block-image img { border-radius: var(--mp-radius-s); }
.mp-content .wp-block-image.mp-flat img { border-radius: 0; }
.wp-block-image.aligncenter, .wp-block-image .aligncenter { text-align: center; margin-inline: auto; }
.wp-block-image figcaption, .wp-element-caption { font-size: 15px; color: var(--mp-muted); margin-top: 8px; }
.mp-small, .mp-content .mp-small { font-size: 14px; line-height: 1.55; color: var(--mp-muted); }

/* Таблиці */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wp-block-table td, .wp-block-table th { padding: 10px 14px; border-bottom: 1px solid var(--mp-line); text-align: left; vertical-align: top; }
.wp-block-table tr:last-child td { border-bottom: 0; }

/* Акордеон */
.wp-block-details { border-top: 1px solid var(--mp-line); padding: 0; margin: 0; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--mp-line); }
.wp-block-details summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 20px 48px 20px 0; color: var(--mp-ink); font-weight: 650; font-size: 19px; line-height: 1.4;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
	border-radius: 50%; background: var(--mp-blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c81244' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
	transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-left: 0; }
.wp-block-details[open] { padding-bottom: 20px; }

/* Відео (заглушка YouTube) */
.mp-video { margin: 0 0 1.4em; }
.mp-yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--mp-radius); overflow: hidden; background: #1d0f18; }
.mp-yt img, .mp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.mp-yt__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: rgba(29, 15, 24, .18); color: var(--mp-brand); cursor: pointer; transition: background .2s; }
.mp-yt__play:hover { background: rgba(29, 15, 24, .05); }
.mp-yt__play svg { width: 76px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }

/* ---------- Секції сторінок ---------- */
.mp-section {
	padding-block: clamp(44px, 6vw, 84px);
	padding-inline: max(16px, calc((100% - var(--mp-wrap)) / 2));
}
.mp-content > .mp-section, .mp-content > .mp-hero, .mp-content > .mp-phero { width: 100%; }
.mp-section > * { margin-inline: 0; }
.mp-section > p, .mp-section > ul, .mp-section > ol, .mp-section > h2, .mp-section > h3, .mp-section > h4, .mp-section > .wp-block-details, .mp-section > .wp-block-table { max-width: var(--mp-text-w); }
.mp-section > h2:first-child { margin-top: 0; }
.mp-section > .wp-block-image { margin-block: 1.6em; }
.mp-section--soft { background: var(--mp-tone-soft); }
.mp-section--ink { background: var(--mp-ink); color: #eadbe2; }
.mp-section--ink h2, .mp-section--ink h3, .mp-section--ink h4, .mp-section--ink strong, .mp-section--ink .mp-lead { color: #fff; }
.mp-section--center { text-align: center; }
.mp-section--center > * { margin-inline: auto; }
.mp-section--center .wp-block-buttons { justify-content: center; }
.mp-section--range { padding-top: 0; margin-top: calc(-1 * clamp(24px, 4vw, 56px)); position: relative; z-index: 2; }
.mp-section--video > * { max-width: 960px; margin-inline: auto; }
.mp-section .wp-block-columns { display: flex; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 1.4em; }
.mp-section .wp-block-columns:last-child { margin-bottom: 0; }
.mp-section .wp-block-column { flex: 1 1 0; min-width: 0; }
.mp-section .wp-block-column > :last-child { margin-bottom: 0; }
.mp-section .wp-block-column > h2:first-child, .mp-section .wp-block-column > h3:first-child { margin-top: 0; }
@media (max-width: 781px) { .mp-section .wp-block-columns { flex-direction: column; align-items: stretch; } }
.mp-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--mp-ink); }
.mp-trio { align-items: stretch !important; }
.mp-trio > .wp-block-column { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 24px 24px 22px; font-size: 16px; }
.mp-trio strong { display: block; color: var(--mp-brand); font-size: 17px; margin-bottom: 4px; }
.mp-chart img { width: 100%; }

/* ---------- Головна: перший екран ---------- */
.mp-hero {
	position: relative; overflow: hidden;
	padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px);
	background:
		radial-gradient(1200px 520px at 85% 0%, #f8d9e4 0%, rgba(248, 217, 228, 0) 62%),
		linear-gradient(180deg, #fff6f9 0%, #fff 100%);
}
.mp-hero > .wp-block-columns { width: min(100% - 32px, var(--mp-wrap)); margin-inline: auto; position: relative; z-index: 1; }
.mp-hero__title { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 30px; color: var(--mp-ink); font-weight: 680; }
.mp-hero__word { display: block; font-size: clamp(52px, 7vw, 100px); line-height: 1; letter-spacing: -.035em; color: var(--mp-brand); font-weight: 820; margin-bottom: .12em; }
.mp-hero__quiz { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.mp-hero__quiz p { margin: 0; font-size: 20px; font-weight: 600; color: var(--mp-ink); }
.mp-hero__packs { position: relative; min-height: clamp(300px, 36vw, 470px); }
.mp-hero__packs .wp-block-image { position: absolute; margin: 0; width: 42%; }
.mp-hero__packs .wp-block-image img { width: 100%; height: auto; border-radius: 0; filter: drop-shadow(0 26px 30px rgba(70, 10, 40, .22)); }
.mp-hero__packs .wp-block-image:nth-child(1) { left: 2%; top: 14%; transform: rotate(-9deg); z-index: 1; }
.mp-hero__packs .wp-block-image:nth-child(2) { left: 29%; top: 0; z-index: 3; width: 46%; }
.mp-hero__packs .wp-block-image:nth-child(3) { right: 0; top: 16%; transform: rotate(8deg); z-index: 2; }
/* Кільце циклу — фірмовий елемент: лінія, що стоншується по колу */
.mp-ring { position: absolute; z-index: 0; pointer-events: none; color: var(--mp-brand); opacity: .9; }
.mp-hero .mp-ring { right: max(-120px, calc(50% - 760px)); top: -90px; width: min(760px, 70vw); }
@media (max-width: 781px) {
	.mp-hero__packs { min-height: 0; aspect-ratio: 1 / .8; margin-top: 12px; }
	.mp-hero .mp-ring { width: 120vw; right: -40vw; top: auto; bottom: -30vw; opacity: .5; }
}

/* ---------- Лінійка продуктів (плитки) ---------- */
.mp-range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mp-range > .wp-block-group {
	--c: var(--mp-original);
	position: relative; display: flex; flex-direction: column;
	padding: 28px 26px 24px; border-radius: var(--mp-radius);
	background: #fff; border: 1px solid var(--mp-line);
	border-top: 6px solid var(--c);
	text-decoration: none;
}
.mp-range > .mp-p-plus { --c: var(--mp-plus); }
.mp-range > .mp-p-night { --c: var(--mp-night); }
.mp-range .wp-block-image { order: -1; margin: 0 0 14px; height: 210px; display: flex; align-items: flex-end; }
.mp-range .wp-block-image img { max-height: 210px; width: auto; border-radius: 0 !important; filter: drop-shadow(0 16px 18px rgba(50, 10, 30, .18)); }
.mp-range h3 { font-size: 24px; margin: 0 0 8px; color: var(--c); }
.mp-range h3 a { color: inherit; text-decoration: none; }
.mp-range h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mp-range h3 a:focus-visible { outline: none; }
.mp-range > .wp-block-group:focus-within { outline: 3px solid var(--c); outline-offset: 3px; }
.mp-range > .wp-block-group:hover { border-color: var(--c); box-shadow: 0 24px 40px -30px rgba(60, 10, 40, .5); }
.mp-range p { font-size: 16px; margin: 0 0 14px; }
.mp-range .mp-badge { margin-top: auto; }
@media (max-width: 900px) { .mp-range { grid-template-columns: 1fr; } .mp-range > .wp-block-group { display: grid; grid-template-columns: 110px 1fr; column-gap: 18px; } .mp-range .wp-block-image { grid-row: span 3; height: auto; align-items: center; margin: 0; } .mp-range .wp-block-image img { max-height: 150px; } }

.mp-badge, p.mp-badge {
	display: inline-block; align-self: flex-start; justify-self: start;
	padding: 5px 12px; border-radius: 999px; margin: 0;
	background: var(--mp-tone-soft); color: var(--mp-tone);
	font-size: 14px; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
}
.mp-range .mp-badge { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }

/* ---------- Періоди клімактерію (лінія життя) ---------- */
.mp-content .mp-periods, .mp-periods { list-style: none; margin: 28px 0 8px; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: per; }
.mp-periods::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #f4b9cb 0%, var(--mp-brand) 38%, var(--mp-brand) 42%, #b98aa0 60%, #d9c6cf 100%); }
.mp-content .mp-periods li, .mp-periods li { position: relative; padding: 44px 22px 0 0; margin: 0; font-size: 16px; line-height: 1.55; }
.mp-periods li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--mp-brand); }
.mp-periods li:nth-child(2)::before { background: var(--mp-brand); box-shadow: 0 0 0 6px rgba(200, 18, 68, .15); }
.mp-periods li::marker { content: none; }
.mp-periods strong { display: block; font-size: 19px; margin-bottom: 6px; color: var(--mp-ink); }
@media (max-width: 900px) {
	.mp-periods { grid-template-columns: 1fr; }
	.mp-periods::before { left: 9px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: linear-gradient(180deg, #f4b9cb, var(--mp-brand) 35%, #b98aa0 70%, #d9c6cf); }
	.mp-periods li { padding: 0 0 26px 44px; }
	.mp-periods li::before { top: 2px; }
}

/* ---------- Сітка іконок ---------- */
.mp-icons { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 26px 28px; margin: 0 auto; }
.mp-icons.mp-cols-1 { --cols: 1; }
.mp-icons.mp-cols-4 { --cols: 4; }
.mp-icons.mp-cols-6 { --cols: 6; }
.mp-icons > .wp-block-group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mp-icons .wp-block-image { margin: 0; width: 64px; height: 64px; padding: 12px; border-radius: 50%; background: var(--mp-tone-soft); display: grid; place-items: center; flex: none; }
.mp-icons .wp-block-image img { width: 40px; height: 40px; object-fit: contain; border-radius: 0 !important; }
.mp-icons p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--mp-ink); }
.mp-icons.mp-icons--center > .wp-block-group { align-items: center; text-align: center; }
.mp-section--ink .mp-icons .wp-block-image { background: rgba(255, 255, 255, .1); }
.mp-section--ink .mp-icons p { color: #fff; }
@media (max-width: 900px) { .mp-icons, .mp-icons.mp-cols-4, .mp-icons.mp-cols-6, .mp-icons.mp-cols-3 { --cols: 2; } .mp-icons.mp-cols-1 { --cols: 1; } }
@media (max-width: 460px) { .mp-icons.mp-cols-6 { --cols: 2; } .mp-icons p { font-size: 16px; } }

/* ---------- Продукт: перший екран ---------- */
.mp-phero { position: relative; overflow: hidden; background: var(--mp-tone-soft); padding-block: clamp(36px, 6vw, 80px); }
.mp-phero > .wp-block-columns { width: min(100% - 32px, var(--mp-wrap)); margin-inline: auto; position: relative; z-index: 1; }
.mp-phero h1 { color: var(--mp-tone); margin-bottom: 14px; }
.mp-phero .mp-sub { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; color: var(--mp-ink); font-weight: 600; margin: 0 0 18px; }
.mp-phero .mp-pack { margin: 0; text-align: center; }
.mp-phero .mp-pack img { max-height: 440px; width: auto; border-radius: 0 !important; filter: drop-shadow(0 30px 34px rgba(40, 10, 30, .25)); }
.mp-phero .mp-ring { color: var(--mp-tone); right: -160px; top: -140px; width: 620px; opacity: .55; }
.mp-phero .wp-block-buttons { margin-top: 26px; }

/* ---------- Склад (етикетка) ---------- */
.mp-facts { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.mp-facts > .wp-block-image { margin: 0; position: sticky; top: 110px; text-align: center; }
.mp-facts > .wp-block-image img { max-height: 380px; width: auto; border-radius: 0 !important; filter: drop-shadow(0 22px 26px rgba(40, 10, 30, .2)); }
.mp-facts__panel { border: 2px solid var(--mp-ink); border-radius: var(--mp-radius-s); padding: 18px 22px 8px; background: #fff; }
.mp-facts__panel > p { font-weight: 750; color: var(--mp-ink); font-size: 20px; margin: 4px 0 6px; padding-bottom: 8px; border-bottom: 8px solid var(--mp-ink); }
.mp-facts__panel > p:not(:first-child) { margin-top: 26px; }
.mp-facts__panel .wp-block-table { margin: 0; }
.mp-facts__panel .wp-block-table td { padding: 8px 0; font-size: 16px; }
.mp-facts__panel .wp-block-table td:last-child { text-align: right; font-weight: 650; color: var(--mp-ink); white-space: nowrap; padding-left: 12px; }
.mp-facts__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 781px) { .mp-facts { grid-template-columns: 1fr; } .mp-facts > .wp-block-image { position: static; } .mp-facts > .wp-block-image img { max-height: 240px; } .mp-facts__cols { grid-template-columns: 1fr; } }

/* ---------- Вибір продукту (акордеон) ---------- */
.mp-chooser { max-width: 900px; margin-inline: auto; }
.mp-chooser .wp-block-details summary { font-size: 20px; padding-left: 52px; }
.mp-chooser .wp-block-details summary::before { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 2px solid var(--mp-brand); }
.mp-chooser .wp-block-details[open] summary::before { background: var(--mp-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/18px no-repeat; }
.mp-chooser .wp-block-details[open] { display: grid; grid-template-columns: 1fr 140px; column-gap: 28px; align-items: center; }
.mp-chooser .wp-block-details[open] > summary { grid-column: 1 / -1; }
.mp-chooser .wp-block-details[open] > p { grid-column: 1; margin: 0 0 14px 52px; }
.mp-chooser .wp-block-details[open] > .wp-block-image { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
.mp-chooser .wp-block-details[open] > .wp-block-image img { border-radius: 0 !important; filter: drop-shadow(0 14px 16px rgba(40, 10, 30, .2)); }
.mp-chooser .wp-block-details[open] > .wp-block-buttons { grid-column: 1; margin-left: 52px; }
@media (max-width: 600px) { .mp-chooser .wp-block-details[open] { grid-template-columns: 1fr 90px; } .mp-chooser .wp-block-details[open] > p, .mp-chooser .wp-block-details[open] > .wp-block-buttons { margin-left: 0; } }

/* ---------- Банер «разом дешевше» ---------- */
.mp-promo { border-radius: var(--mp-radius); background: linear-gradient(120deg, var(--mp-brand) 0%, #8f0c45 100%); color: #fff; padding: clamp(28px, 4vw, 48px); }
.mp-promo h2, .mp-promo h3, .mp-promo h4, .mp-promo p { color: #fff; }
.mp-promo .wp-block-button__link { background: #fff; border-color: #fff; color: var(--mp-brand); }
.mp-promo .wp-block-button__link:hover { background: var(--mp-blush); border-color: var(--mp-blush); color: var(--mp-brand-dark); }
.mp-promo .wp-block-image { margin: 0; }
.mp-promo .wp-block-image img { border-radius: 0 !important; }

/* ---------- Цитата/виділення ---------- */
.mp-note { border-left: 4px solid var(--mp-tone); padding: 6px 0 6px 22px; font-size: 20px; color: var(--mp-ink); font-weight: 550; }

/* ---------- Картки статей ---------- */
.mp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.mp-content > .mp-cards, .mp-content > .wp-block-shortcode { width: min(100% - 32px, var(--mp-wrap)); }
.mp-card { display: flex; flex-direction: column; position: relative; }
.mp-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--mp-radius-s); overflow: hidden; background: var(--mp-blush); margin-bottom: 16px; }
.mp-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mp-card:hover .mp-card__img { transform: scale(1.03); }
.mp-card__title { font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.mp-card__title a { color: var(--mp-ink); text-decoration: none; }
.mp-card__title a::after { content: ""; position: absolute; inset: 0; }
.mp-card:hover .mp-card__title a { color: var(--mp-brand); }
.mp-card__text { font-size: 16px; color: var(--mp-text); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mp-card__more { margin-top: auto; font-weight: 650; font-size: 15px; text-decoration: none; }
@media (max-width: 900px) { .mp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mp-cards { grid-template-columns: 1fr; } }

/* ---------- Стаття ---------- */
.mp-article-head { padding: clamp(28px, 5vw, 64px) 0 clamp(16px, 3vw, 28px); }
.mp-article-head .mp-wrap { max-width: var(--mp-text-w); }
.mp-article-head h1 { font-size: clamp(32px, 4.4vw, 52px); margin: 0 0 12px; }
.mp-article-meta { color: var(--mp-muted); font-size: 15px; margin: 0; }
.mp-article-cover { width: min(100% - 32px, 980px); margin: 0 auto clamp(24px, 4vw, 44px); }
.mp-article-cover img { width: 100%; height: auto; border-radius: var(--mp-radius); display: block; }
.single-post .mp-content { font-size: 19px; }
.single-post .mp-content h2 { font-size: clamp(26px, 3vw, 34px); }
.mp-toc { background: var(--mp-blush); border-radius: var(--mp-radius-s); padding: 18px 22px; }
.mp-related { background: var(--mp-blush); padding-block: clamp(40px, 6vw, 72px); }
.mp-related h2 { margin-bottom: 24px; }
.mp-cta-strip { width: min(100% - 32px, var(--mp-text-w)); margin: 0 auto var(--mp-pad); padding: 24px 28px; border-radius: var(--mp-radius); background: var(--mp-ink); color: #f5e9ef; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.mp-cta-strip p { margin: 0; color: #fff; font-weight: 600; font-size: 19px; max-width: 30ch; }
.mp-cta-strip .mp-btn { background: #fff; border-color: #fff; color: var(--mp-ink); }
.mp-cta-strip .mp-btn:hover { background: var(--mp-blush); border-color: var(--mp-blush); }

/* ---------- Де купити ---------- */
.mp-buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mp-buy > .wp-block-group { --c: var(--mp-original); text-align: center; padding: 26px 22px; border-radius: var(--mp-radius); border: 1px solid var(--mp-line); border-top: 6px solid var(--c); background: #fff; }
.mp-buy > .mp-p-plus { --c: var(--mp-plus); }
.mp-buy > .mp-p-night { --c: var(--mp-night); }
.mp-buy .wp-block-image { margin: 0 auto 16px; }
.mp-buy .wp-block-image img { max-height: 220px; width: auto; border-radius: 0 !important; }
.mp-buy p { font-size: 22px; font-weight: 700; }
.mp-buy p a { color: var(--c); text-decoration: none; }
.mp-buy .wp-block-buttons { justify-content: center; flex-direction: column; align-items: stretch; }
.mp-buy .wp-block-button__link { --mp-tone: var(--c); width: 100%; }
@media (max-width: 900px) { .mp-buy { grid-template-columns: 1fr; } }

/* ---------- Тест (QSM) ---------- */
.qmn_quiz_container, .qsm-quiz-container { font-family: var(--mp-font) !important; font-size: 18px; color: var(--mp-text); }
.qsm-quiz-container .qmn_btn, .qsm-quiz-container .mlw_qmn_quiz_link, .qsm-quiz-container input[type="submit"], .qsm-quiz-container .qsm-btn, .qmn_quiz_container .qmn_btn {
	background: var(--mp-brand) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	padding: 12px 26px !important; font: 650 16px/1.2 var(--mp-font) !important; min-height: 50px; cursor: pointer;
}
.qsm-quiz-container .mlw_qmn_question, .qmn_quiz_container .mlw_qmn_question { font-size: 20px; font-weight: 650; color: var(--mp-ink); }
.qsm-quiz-container .qmn_mc_answer_wrap, .qmn_quiz_container .qmn_mc_answer_wrap { padding: 8px 12px; border: 1px solid var(--mp-line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.qsm-quiz-container .qmn_mc_answer_wrap:hover { border-color: var(--mp-brand); }
.qsm-quiz-container .qsm-progress-bar, .qsm-quiz-container .progressbar-text { color: var(--mp-brand) !important; }

/* ---------- Результат тесту ---------- */
.mp-result { text-align: center; }
.mp-result .wp-block-buttons { justify-content: center; }

/* ---------- Контакти ---------- */
.mp-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mp-offices > .wp-block-group { border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 22px; }
.mp-offices iframe { width: 100%; height: 300px; border: 0; border-radius: var(--mp-radius-s); display: block; }
@media (max-width: 781px) { .mp-offices { grid-template-columns: 1fr; } }

/* ---------- Підвал ---------- */
.mp-footer { background: var(--mp-ink); color: #d9c7d0; font-size: 15px; padding-top: clamp(40px, 6vw, 64px); }
.mp-footer a { color: #fff; }
.mp-footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mp-footer__logo img { width: 150px; height: auto; filter: brightness(0) invert(1); }
.mp-footer__nav .menu, .mp-footer__nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.mp-footer__nav > .menu { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mp-footer__nav a { color: #fff; text-decoration: none; font-weight: 550; }
.mp-footer__nav a:hover { text-decoration: underline; }
.mp-footer__nav .mp-sub-toggle { display: none; }
.mp-footer__nav .sub-menu { display: contents; }
.mp-footer__nav .menu-item-has-children { display: contents; }
.mp-footer__brands { display: flex; gap: 14px; align-items: center; }
.mp-footer__brands img { height: 40px; width: auto; }
.mp-footer__claim { color: #fff; font-weight: 650; font-size: 17px; margin: 24px 0 10px; }
.mp-footer__legal { font-size: 13px; line-height: 1.6; color: #c9b4bf; margin: 0; max-width: 1080px; }
.mp-footer__copy { padding: 20px 0 28px; font-size: 13px; color: #a8919d; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 781px) { .mp-footer__top { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.mp-404 { text-align: center; padding: clamp(60px, 10vw, 140px) 16px; }
.mp-404 b { display: block; font-size: clamp(80px, 14vw, 160px); line-height: 1; color: var(--mp-brand); letter-spacing: -.04em; }

/* ---------- Редактор ---------- */
.editor-styles-wrapper { font-family: var(--mp-font); font-size: 18px; color: var(--mp-text); }
.editor-styles-wrapper .mp-hero__packs .wp-block-image { position: static; transform: none; width: 30%; display: inline-block; }

/* ---------- 1.0.2: ближче до старого сайту ---------- */
/* Перший екран: жінка праворуч */
.mp-hero > .wp-block-columns { align-items: center; }
.mp-hero__person { margin: 0; text-align: center; position: relative; z-index: 1; }
.mp-hero__person img { width: 100%; max-width: 480px; height: auto; border-radius: 0 !important; }
.mp-hero__quiz { gap: 16px 20px; }
.mp-hero__quiz p {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	width: 150px; height: 150px; padding: 18px; border-radius: 50%;
	background: #f6c9d6; color: var(--mp-ink); font-size: 17px; font-weight: 700; line-height: 1.2;
	box-shadow: 0 18px 30px -20px rgba(200, 18, 68, .6);
}
@media (max-width: 781px) {
	.mp-hero__person img { max-width: 320px; }
	.mp-hero__quiz p { width: 128px; height: 128px; font-size: 15px; }
}

/* Лінійка: кольорові плашки, як на старому сайті */
.mp-range > .wp-block-group { background: var(--c); border: 0; color: rgba(255, 255, 255, .92); overflow: hidden; }
.mp-range > .wp-block-group:hover { border: 0; box-shadow: 0 26px 44px -26px var(--c); transform: translateY(-2px); transition: transform .2s, box-shadow .2s; }
.mp-range h3, .mp-range h3 a { color: #fff; }
.mp-range p { color: rgba(255, 255, 255, .9); }
.mp-range .mp-badge { background: rgba(255, 255, 255, .18); color: #fff; }
.mp-range .wp-block-image img { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .3)); }
.mp-range > .wp-block-group:focus-within { outline-color: var(--mp-ink); }

/* Сторінка продукту: фото праворуч, упаковка поверх */
.mp-phero > .wp-block-columns { align-items: center; }
.mp-phero__visual { position: relative; }
.mp-phero__visual .mp-person { margin: 0; }
.mp-phero__visual .mp-person img { width: 100%; height: auto; border-radius: 0 !important; mix-blend-mode: multiply; }
.mp-phero__visual .mp-pack { position: absolute; left: -4%; bottom: -4%; width: 34%; margin: 0; }
.mp-phero__visual .mp-pack img { max-height: none; width: 100%; }
@media (max-width: 781px) { .mp-phero__visual .mp-pack { width: 30%; left: 0; } }

/* Білі іконки — на кольоровому колі */
.mp-icons .wp-block-image.mp-icon-light { background: var(--mp-brand); }

/* Логотипи в підвалі — світлі */
.mp-footer__brands img { filter: brightness(0) invert(1); opacity: .9; }

.mp-phero > .wp-block-columns { z-index: auto; }

/* 1.0.3: більші іконки, ілюстрації без кола, пара картинок поруч */
.mp-icons .wp-block-image { width: 84px; height: 84px; padding: 14px; }
.mp-icons .wp-block-image img { width: 56px; height: 56px; }
.mp-icons--big .wp-block-image { width: 132px; height: 132px; padding: 0; background: none; }
.mp-icons--big .wp-block-image img { width: 132px; height: 132px; }
.mp-icons--big > .wp-block-group { align-items: center; text-align: center; }
.mp-duo { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 24px 56px; margin-top: 24px; }
.mp-duo .wp-block-image { margin: 0; width: 230px; }
.mp-duo .wp-block-image img { width: 100%; height: auto; border-radius: 0 !important; }
@media (max-width: 560px) { .mp-duo { justify-content: center; } .mp-duo .wp-block-image { width: 44%; } }
