/* Оверрайди matrason.shop поверх теми Betheme.
   Тримати правки тут — renovate5.css і structure.css згенеровані темою.
   Секції контенту головної зверстані на власних класах mfn-* (не mcb_item_custom*),
   щоб не зачіпати правила теми. */

/* ===================================================================
   ТОКЕНИ
   Шрифти теми (Lexend, Poppins) без кирилиці — замінено на
   Geologica (заголовки) + Onest (текст); Comfortaa — лише словесний знак логотипа.
   Палітра — хвойно-зелена з м'ятним акцентом (site1 — помаранчева,
   site2/site3 — індиго, тож кольори навмисно інші).
   =================================================================== */
:root {
	--font-head: "Geologica", "Segoe UI", system-ui, sans-serif;
	--font-body: "Onest", "Segoe UI", system-ui, sans-serif;
	--font-logo: "Comfortaa", "Onest", system-ui, sans-serif;

	/* --brand — лише заливки й декор (на білому контрасту не вистачає);
	   --brand-ink — текст, посилання, кнопки: 5.4:1 на білому, 4.9:1 на --bg-soft;
	   --brand-ink-hover — дрібний текст і hover: 7.1:1 на --bg-soft. */
	--brand: #3FB68B;
	--brand-ink: #17785A;
	--brand-ink-hover: #0F5C45;
	--brand-on-dark: #8FDDBB;  /* 8.5:1 на --dark */
	--warm: #F2B45A;           /* теплий акцент-крапка, декор */

	--ink: #17332C;
	--text: #3B524B;   /* 8.4:1 на білому */
	--muted: #54665F;  /* 5.5:1 на --bg-soft */
	--bg-soft: #EEF4F0;
	--line: #D5E2DA;
	--dark: #17332C;
	--dark-2: #10251F;
	--on-dark: #C9DDD4;
	--radius: 10px;
	--radius-lg: 18px;
	--header-h: 80px;
}

html {
	scroll-padding-top: var(--header-h);
}

body,
button,
input, textarea, select,
.desc, p, li, td, th,
#menu > ul > li > a,
a.action_button {
	font-family: var(--font-body);
}

body {
	color: var(--text);
}

h1, h2, h3, h4, h5, h6,
.title,
#Subheader .title,
blockquote {
	font-family: var(--font-head);
	letter-spacing: -.01em;
}

::selection {
	background: var(--brand-on-dark);
	color: var(--ink);
}

.mfn-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ===================================================================
   ПЕРЕФАРБУВАННЯ ТЕМИ: renovate5.css хардкодить помаранчевий #FE811F
   і коричневий #44382E у посиланнях, меню, мобільному меню, футері.
   =================================================================== */
a { color: var(--brand-ink); }
a:hover { color: var(--brand-ink-hover); }
h1, h1 a, h1 a:hover, h2, h2 a, h2 a:hover, h3, h3 a, h3 a:hover,
h4, h4 a, h4 a:hover, h5, h6 { color: var(--ink); }

#Top_bar .menu > li > a,
#Top_bar .responsive-menu-toggle { color: var(--ink); }
#Top_bar .menu > li a:not(.menu-toggle):after { background: var(--brand); }

#Side_slide,
#Side_slide a:not(.action_button) { color: var(--ink); }
#Side_slide a:not(.action_button):hover,
#Side_slide #menu ul li.current-menu-item > a { color: var(--brand-ink-hover); }

/* ===================================================================
   ЛОГОТИП «matrason»: знак (місяць над шарами матраца) + словесний знак
   =================================================================== */
.mfn-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	line-height: 1;
	color: var(--ink);
}

.mfn-logo__mark {
	flex: none;
	width: 40px;
	height: 40px;
	color: var(--ink);   /* заливка плашки знака — currentColor */
}

.mfn-logo__text {
	display: flex;
	flex-direction: column;
}

.mfn-logo__word {
	font-family: var(--font-logo);
	font-weight: 700;
	font-size: 25px;
	letter-spacing: -.02em;
	color: var(--ink);
}

.mfn-logo__tagline {
	margin-top: 5px;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 9.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
}

.mfn-logo--light .mfn-logo__mark { color: rgba(255, 255, 255, .1); }
.mfn-logo--light .mfn-logo__word { color: #fff; }
.mfn-logo--light .mfn-logo__tagline { color: var(--on-dark); }

#Top_bar.is-sticky .mfn-logo__tagline {
	display: none;
}

#Top_bar.is-sticky .mfn-logo__mark {
	width: 34px;
	height: 34px;
}

@media (max-width: 767px) {
	.mfn-logo { gap: 8px; }
	.mfn-logo__mark { width: 32px; height: 32px; }
	.mfn-logo__word { font-size: 20px; }
	.mfn-logo__tagline { font-size: 7.5px; letter-spacing: .18em; margin-top: 4px; }
}

/* ===================================================================
   ШАПКА І МЕНЮ
   =================================================================== */
#Top_bar #menu > ul > li > a {
	font-size: 14.5px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

#Top_bar #menu > ul > li.current-menu-item > a,
#Top_bar #menu > ul > li.current-menu-item > a span,
#Top_bar #menu > ul > li > a:hover,
#Top_bar #menu > ul > li > a:hover span {
	color: var(--brand-ink-hover);
}

/* Кнопка «Консультація» у меню */
@media (min-width: 1240px) {
	/* Вертикальний відступ посилання лишаємо теми: вона сама змінює його
	   (22.5px над банером, 0 у липкій шапці). Кнопка 42px центрується
	   всередині 60px-рядка пункту меню полями по 9px. */
	#Top_bar #menu > ul > li.mfn-menu-cta {
		margin-left: 12px;
	}
	#Top_bar #menu > ul > li.mfn-menu-cta > a:after {
		display: none;
	}
	#Top_bar #menu > ul > li.mfn-menu-cta > a span {
		display: block;
		margin: 9px 0;
		padding: 0 20px;
		line-height: 42px;
		border-radius: var(--radius);
		background-color: var(--ink);
		color: #fff;
		transition: background-color .2s ease;
	}
	#Top_bar #menu > ul > li.mfn-menu-cta > a:hover span {
		background-color: var(--brand-ink);
		color: #fff;
	}
}

/* ===================================================================
   ГОЛОВНИЙ БАНЕР (замість Revolution Slider, зламаного в поставці теми)
   Фото ліворуч, текст праворуч — дзеркально до site1.
   =================================================================== */
.mfn-hero {
	position: relative;
	background:
		radial-gradient(900px 480px at 100% 0, rgba(63, 182, 139, .16), transparent 70%),
		var(--bg-soft);
	overflow: hidden;
}

.mfn-hero__inner {
	display: flex;
	align-items: center;
	gap: 64px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 120px 20px 90px;
}

.mfn-hero__text {
	flex: 1 1 45%;
	min-width: 0;
}

.mfn-hero__media {
	position: relative;
	flex: 1 1 55%;
	min-width: 0;
}

.mfn-hero__media::before {
	/* зміщена підкладка за фото */
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border-radius: var(--radius-lg);
	background: var(--ink);
}

.mfn-hero__media img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
}

.mfn-hero__tag {
	position: absolute;
	left: 18px;
	top: 18px;
	padding: 8px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .92);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}

.mfn-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--brand-ink-hover);
}

.mfn-hero__badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--warm);
}

.mfn-hero__title {
	margin: 0 0 20px;
	font-size: 52px;
	line-height: 1.08;
	font-weight: 600;
	color: var(--ink);
	text-wrap: balance;
}

.mfn-hero__title span {
	color: var(--brand-ink);
}

.mfn-hero__lead {
	max-width: 540px;
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
}

.mfn-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}

/* Основна кнопка сайту (використовується і поза банером) */
.mfn-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 2px solid var(--brand-ink);
	border-radius: var(--radius);
	background-color: var(--brand-ink);
	color: #fff !important;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mfn-hero__btn:hover {
	border-color: var(--brand-ink-hover);
	background-color: var(--brand-ink-hover);
	transform: translateY(-2px);
}

.mfn-hero__btn i {
	font-size: 14px;
}

.mfn-hero__btn--ghost {
	border-color: var(--ink);
	background-color: transparent;
	color: var(--ink) !important;
}

.mfn-hero__btn--ghost:hover {
	border-color: var(--ink);
	background-color: var(--ink);
	color: #fff !important;
}

/* Світла кнопка на темних блоках */
.mfn-hero__btn--light {
	border-color: var(--brand-on-dark);
	background-color: var(--brand-on-dark);
	color: var(--ink) !important;
}

.mfn-hero__btn--light:hover {
	border-color: #fff;
	background-color: #fff;
}

/* Факти — рядок з роздільниками під кнопками */
.mfn-hero__facts {
	display: flex;
	margin: 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.mfn-hero__facts li {
	flex: 1 1 0;
	padding: 0 18px;
	border-left: 1px solid var(--line);
	font-size: 14px;
	line-height: 1.35;
	color: var(--muted);
}

.mfn-hero__facts li:first-child {
	padding-left: 0;
	border-left: 0;
}

.mfn-hero__facts strong {
	display: block;
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--ink);
}

@media (max-width: 1240px) {
	.mfn-hero__title { font-size: 42px; }
	.mfn-hero__inner { gap: 52px; }
}

@media (max-width: 960px) {
	.mfn-hero__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 44px;
		padding: 40px 20px 64px;
	}
	.mfn-hero__text, .mfn-hero__media { flex: 1 1 auto; width: 100%; }
	.mfn-hero__text { order: -1; }
	.mfn-hero__media::before { inset: 14px -10px -14px 10px; }
	.mfn-hero__title { font-size: 34px; }
	.mfn-hero__lead { font-size: 16px; }
}

@media (max-width: 480px) {
	.mfn-hero__btn { width: 100%; }
	.mfn-hero__title { font-size: 30px; }
	.mfn-hero__facts li { padding: 0 10px; font-size: 12.5px; }
	.mfn-hero__facts strong { font-size: 24px; }
	.mfn-hero__tag { left: 10px; top: 10px; font-size: 12px; padding: 6px 10px; }
	.mfn-hero__inner { padding-bottom: 52px; }
}

/* ===================================================================
   КАРКАС СЕКЦІЙ
   =================================================================== */
.mfn-sec {
	padding: 100px 0;
	background: #fff;
	scroll-margin-top: var(--header-h);
}

.mfn-sec--soft {
	background: var(--bg-soft);
}

.mfn-sec--dark {
	background: var(--dark);
	color: var(--on-dark);
}

.mfn-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.mfn-sec ul,
.mfn-sec ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mfn-sec__head {
	max-width: 760px;
	margin-bottom: 44px;
}

.mfn-sec__head--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.mfn-sec__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
	max-width: none;
}

.mfn-sec__head--row > div {
	max-width: 700px;
}

.mfn-eyebrow {
	display: block;
	margin-bottom: 14px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	/* дрібний текст — потрібно 4.5:1 і на білому, і на --bg-soft */
	color: var(--brand-ink-hover);
}

.mfn-sec__title {
	margin: 0;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 600;
	color: var(--ink);
	text-wrap: balance;
}

.mfn-sec__lead {
	margin: 18px 0 0;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--text);
}

.mfn-sec--dark .mfn-eyebrow { color: var(--brand-on-dark); }
.mfn-sec--dark .mfn-sec__title { color: #fff; }

@media (max-width: 960px) {
	.mfn-sec { padding: 72px 0; }
	.mfn-sec__title { font-size: 30px; }
	.mfn-sec__head { margin-bottom: 32px; }
	.mfn-sec__head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
	.mfn-sec { padding: 56px 0; }
	.mfn-sec__title { font-size: 25px; }
	.mfn-sec__head--row .mfn-hero__btn { width: 100%; }
}

/* ===================================================================
   ЯК ОБРАТИ — темна смуга одразу під банером
   =================================================================== */
.mfn-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	counter-reset: step;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.mfn-steps li {
	padding: 30px 28px 6px 0;
	counter-increment: step;
}

.mfn-steps li + li {
	padding-left: 28px;
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.mfn-steps li::before {
	content: counter(step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--brand-on-dark);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
}

.mfn-steps h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 500;
	color: #fff;
}

.mfn-steps p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--on-dark);
}

@media (max-width: 1100px) {
	.mfn-steps { grid-template-columns: repeat(2, 1fr); }
	.mfn-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
	.mfn-steps li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 560px) {
	.mfn-steps { grid-template-columns: 1fr; }
	.mfn-steps li,
	.mfn-steps li + li { padding: 24px 0 20px; border-left: 0; }
	.mfn-steps li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
	.mfn-steps li::before { width: 34px; height: 34px; margin-bottom: 14px; }
}

/* ===================================================================
   КАТАЛОГ: фільтр і картки
   =================================================================== */
.mfn-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.mfn-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.mfn-chip span {
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--bg-soft);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	color: var(--muted);
}

.mfn-chip:hover {
	border-color: var(--brand-ink);
}

.mfn-chip.is-active {
	border-color: var(--brand-ink);
	background: var(--brand-ink);
	color: #fff;
}

.mfn-chip.is-active span {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

@media (max-width: 767px) {
	/* На телефоні чипи в одну прокручувану стрічку */
	.mfn-filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 -20px 24px;
		padding: 0 20px 4px;
		scrollbar-width: none;
	}
	.mfn-filter::-webkit-scrollbar { display: none; }
	.mfn-chip { flex: none; }
}

.mfn-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (min-width: 1100px) {
	.mfn-catalog { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
	.mfn-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 560px) {
	.mfn-grid { grid-template-columns: 1fr; }
}

.mfn-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
	overflow: hidden;
	transition: transform .28s ease, box-shadow .28s ease;
}

.mfn-card[hidden] {
	display: none;
}

.mfn-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 0 0 1px var(--line), 0 18px 36px rgba(23, 51, 44, .12);
}

.mfn-card__img {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bg-soft);
}

.mfn-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.mfn-card:hover .mfn-card__img img {
	transform: scale(1.045);
}

.mfn-card__img--white {
	aspect-ratio: 16 / 9;
	background: #fff;
}

.mfn-card__img--white img {
	object-fit: contain;
}

/* Бренд — плашкою поверх фото */
.mfn-card__brand {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--ink);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
}

.mfn-card__img--white .mfn-card__brand {
	background: var(--bg-soft);
	color: var(--ink);
}

/* Eon Home: фото ще немає — типографічна плашка з висотою */
.mfn-card__ph {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	height: 100%;
	padding-top: 28%;
	background:
		repeating-linear-gradient(0deg, transparent 0 16px, rgba(23, 51, 44, .06) 16px 17px),
		linear-gradient(160deg, #E4EFE8, #CFE3D8);
	font-family: var(--font-head);
	font-size: 18px;
	color: var(--ink);
}

.mfn-card__ph b {
	font-size: 58px;
	font-weight: 500;
	line-height: 1;
}

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

.mfn-card__kicker {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--brand-ink-hover);
}

.mfn-card__title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--ink);
}

.mfn-card__kicker + .mfn-card__title {
	margin-top: 6px;
}

.mfn-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px !important;
}

.mfn-card__specs li {
	padding: 2px 9px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 13px;
	line-height: 20px;
	color: var(--ink);
}

.mfn-card__body p {
	flex: 1 1 auto;
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text);
}

.mfn-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: var(--radius);
	background: var(--bg-soft);
	color: var(--brand-ink-hover) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}

.mfn-card__btn:hover {
	background: var(--brand-ink);
	color: #fff !important;
}

/* Список Eon Home у блоці подушок */
.mfn-card--list .mfn-card__body {
	padding: 26px;
}

.mfn-plist {
	flex: 1 1 auto;
	margin-bottom: 20px !important;
}

.mfn-plist li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 15px;
	color: var(--text);
}

.mfn-plist li b {
	flex: none;
	font-weight: 600;
	color: var(--ink);
}

/* ===================================================================
   CTA-картка в каталозі (ширину задає js/site.js → fitCta)
   =================================================================== */
.mfn-card--cta {
	justify-content: center;
	box-shadow: none;
	background:
		radial-gradient(420px 260px at 100% 100%, rgba(63, 182, 139, .35), transparent 70%),
		var(--dark);
}

.mfn-card--cta:hover {
	transform: none;
	box-shadow: none;
}

.mfn-card--cta .mfn-card__body {
	justify-content: center;
	flex: 0 0 auto;
	padding: 30px;
}

.mfn-card--cta .mfn-card__title {
	margin-top: 0;
	color: #fff;
}

.mfn-card--cta p {
	flex: 0 0 auto;
	color: var(--on-dark);
}

.mfn-card__cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}

a.mfn-card__phone {
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* Коли картка займає 2+ колонки — текст і кнопки в один рядок */
.mfn-card--cta.is-wide .mfn-card__body {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "title actions" "text actions";
	column-gap: 40px;
	align-content: center;
	height: 100%;
	padding: 36px 40px;
}

.mfn-card--cta.is-wide .mfn-card__title { grid-area: title; font-size: 26px; }
.mfn-card--cta.is-wide p { grid-area: text; margin: 0; max-width: 520px; }
.mfn-card--cta.is-wide .mfn-card__cta-actions { grid-area: actions; flex-direction: column; align-items: stretch; text-align: center; }

@media (max-width: 767px) {
	.mfn-card--cta.is-wide .mfn-card__body { display: flex; padding: 28px 24px; }
	.mfn-card--cta.is-wide .mfn-card__cta-actions { align-items: flex-start; }
}

/* Кнопка «Відкрити весь каталог» під сіткою */
.mfn-more {
	margin-top: 32px;
	text-align: center;
}

.mfn-more[hidden] {
	display: none;
}

.mfn-more__btn {
	min-height: 50px;
	padding: 0 26px;
	border-color: var(--ink);
	font-weight: 600;
}

/* ===================================================================
   БРЕНДИ — рядки таблиці замість карток
   =================================================================== */
.mfn-brands-wrap {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
	align-items: start;
}

.mfn-brands-wrap .mfn-sec__head {
	margin-bottom: 0;
}

.mfn-brand {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	align-items: center;
	gap: 12px 28px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.mfn-brand:first-child {
	border-top: 1px solid var(--line);
}

.mfn-brand__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mfn-brand__name {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 600;
	color: var(--ink);
}

.mfn-brand__meta {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--muted);
}

.mfn-brand p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
}

.mfn-brand a {
	font-weight: 600;
	font-size: 14.5px;
	white-space: nowrap;
	color: var(--brand-ink-hover) !important;
}

.mfn-brand a i {
	margin-left: 4px;
	font-size: 12px;
}

@media (max-width: 1100px) {
	.mfn-brands-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
	.mfn-brand { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
}

/* ===================================================================
   ТЕХНОЛОГІЇ
   =================================================================== */
.mfn-split {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: center;
}

.mfn-split--reverse {
	grid-template-columns: 1fr 1.05fr;
}

.mfn-split__text .mfn-sec__title {
	margin-bottom: 34px;
}

.mfn-split__media {
	margin: 0;
}

.mfn-split__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}

.mfn-split__media figcaption {
	margin-top: 12px;
	font-size: 13px;
	color: var(--muted);
}

.mfn-features {
	display: grid;
	gap: 26px;
}

.mfn-features li {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 18px;
	align-items: start;
}

.mfn-features i,
.mfn-process i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--bg-soft);
	color: var(--brand-ink);
	font-size: 20px;
}

.mfn-features h3,
.mfn-process h3 {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 500;
	color: var(--ink);
}

.mfn-features p,
.mfn-process p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
}

@media (max-width: 960px) {
	.mfn-split,
	.mfn-split--reverse { grid-template-columns: 1fr; gap: 40px; }
	.mfn-split--reverse .mfn-split__media { order: 1; }
}

/* ===================================================================
   ГАЛЕРЕЯ (слайдер теми)
   =================================================================== */
.mfn-gallery {
	padding: 90px 0 30px;
	background: #fff;
}

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

/* Пагінація: активна точка теми — помаранчева (.themebg) */
.mfn-gallery .slider_pagination a.selected,
.mfn-gallery .slider_pagination .slick-active a,
.mfn-gallery .slider_pagination a.selected:after,
.mfn-gallery .slider_pagination .slick-active a:after {
	background-color: var(--brand-ink) !important;
}

/* Тема підкладає сіру смугу під слайди */
.mfn-gallery .mcb-wrap_inner,
.mfn-gallery .content_slider,
.mfn-gallery .content_slider_ul {
	background: none !important;
}

/* ===================================================================
   ДОСТАВКА — процес із чотирьох кроків
   =================================================================== */
.mfn-process {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.mfn-process::before {
	/* лінія, що з'єднує іконки */
	content: "";
	position: absolute;
	left: 24px;
	right: 12%;
	top: 24px;
	border-top: 2px dashed var(--line);
}

.mfn-process li {
	position: relative;
}

.mfn-process i {
	position: relative;
	margin-bottom: 18px;
	background: var(--ink);
	color: var(--brand-on-dark);
	box-shadow: 0 0 0 8px #fff;
}

.mfn-guarantee {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 44px 0 0;
	padding: 20px 24px;
	border-radius: var(--radius);
	background: var(--bg-soft);
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
}

.mfn-guarantee i {
	flex: none;
	color: var(--brand-ink);
	font-size: 18px;
	line-height: 1.4;
}

.mfn-guarantee b {
	color: var(--ink);
}

@media (max-width: 1100px) {
	.mfn-process { grid-template-columns: repeat(2, 1fr); }
	.mfn-process::before { display: none; }
}

@media (max-width: 560px) {
	.mfn-process { grid-template-columns: 1fr; gap: 22px; }
	.mfn-process li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
	.mfn-process i { grid-row: span 2; margin: 0; box-shadow: none; }
}

/* ===================================================================
   FAQ — дві колонки карток-«акордеонів»
   =================================================================== */
.mfn-faq {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
	align-items: start;
}

.mfn-faq details {
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}

.mfn-faq summary {
	position: relative;
	padding: 20px 56px 20px 22px;
	font-family: var(--font-head);
	font-size: 16.5px;
	line-height: 1.4;
	font-weight: 500;
	color: var(--ink);
	list-style: none;
	cursor: pointer;
}

.mfn-faq summary::-webkit-details-marker {
	display: none;
}

/* «+», що обертається на «×» */
.mfn-faq summary::before,
.mfn-faq summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 14px;
	height: 2px;
	margin-top: -1px;
	border-radius: 2px;
	background: var(--brand-ink);
	transition: transform .2s ease;
}

.mfn-faq summary::after {
	transform: rotate(90deg);
}

.mfn-faq details[open] summary::before {
	transform: rotate(45deg);
}

.mfn-faq details[open] summary::after {
	transform: rotate(135deg);
}

.mfn-faq summary:hover {
	color: var(--brand-ink-hover);
}

.mfn-faq details p {
	margin: 0;
	padding: 0 22px 22px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--text);
}

@media (max-width: 860px) {
	.mfn-faq { grid-template-columns: 1fr; gap: 10px; }
	.mfn-faq summary { font-size: 16px; padding-right: 50px; }
}

/* ===================================================================
   ЗАЯВКА — темна картка з формою
   =================================================================== */
.mfn-order {
	padding-top: 0;
	background: var(--bg-soft);
}

.mfn-order__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 460px;
	gap: 60px;
	align-items: center;
	padding: 64px;
	border-radius: 24px;
	background:
		radial-gradient(520px 360px at 0 100%, rgba(63, 182, 139, .28), transparent 70%),
		var(--dark);
	overflow: hidden;
}

.mfn-order__inner::after {
	/* великий місяць з логотипа — декор */
	content: "";
	position: absolute;
	right: -70px;
	top: -90px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	box-shadow: inset -34px 26px 0 0 rgba(143, 221, 187, .12);
	pointer-events: none;
}

.mfn-order__text,
.mfn-form {
	position: relative;
	z-index: 1;
}

.mfn-order .mfn-eyebrow {
	color: var(--brand-on-dark);
}

.mfn-order .mfn-sec__title {
	color: #fff;
}

.mfn-order .mfn-sec__title span {
	color: var(--brand-on-dark);
}

.mfn-order__text p {
	max-width: 520px;
	margin: 20px 0 28px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--on-dark);
}

a.mfn-order__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 500;
	color: #fff !important;
	text-decoration: none;
	white-space: nowrap;
}

.mfn-order__phone i {
	color: var(--brand-on-dark);
}

.mfn-form {
	padding: 30px;
	border-radius: var(--radius-lg);
	background: #fff;
}

.mfn-form__row {
	margin-bottom: 16px;
}

.mfn-form__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 0 12px;
}

.mfn-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.mfn-form label span {
	color: var(--brand-ink);
}

.mfn-form input[type="text"],
.mfn-form input[type="tel"],
.mfn-form select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #BFD1C7;
	border-radius: var(--radius);
	background-color: var(--bg-soft);
	color: var(--ink);
	font-size: 16px; /* 16px — щоб iOS не зумив поле */
	box-shadow: none;
}

.mfn-form input:focus,
.mfn-form select:focus {
	border-color: var(--brand-ink);
	background-color: #fff;
	outline: 2px solid rgba(23, 120, 90, .25);
	outline-offset: 1px;
}

.mfn-form input[aria-invalid="true"] {
	border-color: #B3261E;
}

.mfn-form__hp {
	position: absolute;
	left: -9999px;
}

.mfn-form__submit {
	width: 100%;
	margin-top: 6px;
}

.mfn-form__submit:disabled {
	opacity: .6;
	cursor: default;
	transform: none;
}

.mfn-form__note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

.mfn-form__status:empty {
	display: none;
}

.mfn-form__status {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--bg-soft);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
}

.mfn-form__status.is-ok {
	background: #E3F3EA;
	color: #1B5E3A;
}

.mfn-form__status.is-error {
	background: #FBE9E7;
	color: #8C1D18;
}

@media (max-width: 1100px) {
	.mfn-order__inner { grid-template-columns: 1fr 400px; gap: 40px; padding: 48px; }
}

@media (max-width: 960px) {
	.mfn-order__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
}

@media (max-width: 480px) {
	.mfn-order .mfn-wrap { padding: 0 12px; }
	.mfn-order__inner { padding: 32px 18px 18px; border-radius: 18px; }
	.mfn-form { padding: 22px 18px; }
	.mfn-form__grid { grid-template-columns: 1fr; }
	a.mfn-order__phone { font-size: 21px; }
}

/* ===================================================================
   ПОСИЛАННЯ, ФУТЕР
   =================================================================== */
#Content a:not(.mfn-hero__btn):not(.mfn-card__btn):not(.mfn-order__phone):not(.mfn-card__phone) {
	color: var(--brand-ink);
}

#Footer {
	background-color: var(--dark-2);
	color: var(--on-dark);
}

#Footer a,
#Footer a:not(.button):not(.icon_bar) {
	color: #fff;
}

#Footer a:not(.button):not(.icon_bar):hover {
	color: var(--brand-on-dark);
}

#Footer .footer_copy {
	border-top-color: rgba(255, 255, 255, .1);
}

#Footer .footer_copy .copyright {
	color: var(--on-dark);
}

.mfn-footer {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding: 72px 0 56px;
}

.mfn-footer p {
	margin: 0 0 12px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--on-dark);
}

.mfn-footer__brand .mfn-logo {
	margin-bottom: 18px;
}

.mfn-footer__brand p {
	max-width: 320px;
}

.mfn-footer h4 {
	margin: 4px 0 16px;
	font-family: var(--font-body);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--brand-on-dark);
}

.mfn-footer-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mfn-footer-nav li {
	margin-bottom: 8px;
}

.mfn-footer-nav a {
	font-size: 14.5px;
}

a.mfn-footer__phone {
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.mfn-footer { grid-template-columns: 1fr; gap: 28px; padding: 56px 0 40px; }
}

/* ===================================================================
   АНІМАЦІЯ
   Reveal працює на рідному механізмі теми (animations.js додає клас
   data-anim-type елементам .animate, коли вони входять у в'юпорт).
   =================================================================== */
.mfn-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .4s cubic-bezier(.22, .61, .36, 1),
	            transform .4s cubic-bezier(.22, .61, .36, 1);
	will-change: opacity, transform;
}

.mfn-reveal.mfn-in {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* --- Повага до налаштувань руху ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.mfn-reveal,
	.mfn-reveal.mfn-in {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.mfn-card,
	.mfn-card__img img,
	.mfn-hero__btn,
	.mfn-faq summary::before,
	.mfn-faq summary::after {
		transition: none;
	}

	.mfn-card:hover,
	.mfn-card:hover .mfn-card__img img,
	.mfn-hero__btn:hover {
		transform: none;
	}
}

/* ===================================================================
   СТОРІНКА 404 (404.html) — без CSS теми, лише токени й компоненти вище
   =================================================================== */
.mfn-404 {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	background: var(--bg-soft);
	color: var(--text);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

.mfn-404 a {
	text-decoration: none;
}

.mfn-404__bar {
	max-width: 1240px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 20px;
	box-sizing: border-box;
}

.mfn-404__main {
	flex: 1 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 40px;
	max-width: 1240px;
	width: 100%;
	margin: 0 auto;
	padding: 40px 20px 80px;
	box-sizing: border-box;
}

.mfn-404__text .mfn-sec__title span {
	color: var(--brand-ink);
}

.mfn-404__text .mfn-sec__lead {
	max-width: 540px;
	margin-bottom: 32px;
}

.mfn-404__phone {
	display: inline-block;
}

.mfn-404__phone span {
	display: block;
	font-size: 14px;
	color: var(--muted);
}

.mfn-404__phone strong {
	font-size: 22px;
	font-weight: 600;
	color: var(--brand-ink-hover);
}

/* «4 ☾ 4»: нуль — місяць зі знака логотипа */
.mfn-404__num {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .06em;
	font-family: var(--font-head);
	font-size: clamp(110px, 17vw, 230px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--ink);
}

.mfn-404__num i {
	display: block;
	width: .7em;
	height: .7em;
	border-radius: 50%;
	box-shadow: inset .17em -.12em 0 0 var(--brand);
	transform: none;
}

.mfn-404__foot {
	padding: 24px 20px;
	font-size: 13px;
	text-align: center;
	color: var(--muted);
}

@media (max-width: 860px) {
	.mfn-404__main {
		grid-template-columns: 1fr;
		gap: 8px;
		padding-top: 8px;
	}
	.mfn-404__art { order: -1; }
	.mfn-404__num { justify-content: flex-start; font-size: 96px; }
}

@media (max-width: 480px) {
	.mfn-404 .mfn-hero__btn { width: 100%; }
}
