/**
 * /реклама/ ROI-калькулятор V1 (Phase 1.F).
 *
 * Standalone styles — `mk-roi__*` BEM. Не залежить від cabinet.css /
 * catalog.css; працює як isolated блок усередині будь-якої WP-сторінки
 * (зокрема Gutenberg /реклама/ post_content).
 */

.mk-roi {
	max-width: 920px;
	margin: 32px auto;
	padding: 28px 28px 24px;
	background: linear-gradient(135deg, #fff7d6 0%, #fffbe5 100%);
	border: 1px solid #f5d77a;
	border-radius: 18px;
	font-family: var(--font-text, "Manrope", system-ui, sans-serif);
	color: #2d2517;
	box-shadow: 0 12px 30px -10px rgba(193, 156, 32, .25);
}

.mk-roi__head {
	margin: 0 0 22px;
	max-width: 600px;
}

.mk-roi__eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8a6f15;
	background: rgba(255, 255, 255, .55);
	padding: 4px 10px;
	border-radius: 999px;
	margin: 0 0 12px;
}

.mk-roi__title {
	font-family: var(--font-display, "Unbounded", "Manrope", sans-serif);
	font-size: 28px;
	line-height: 1.1;
	margin: 0 0 8px;
	color: #1c1812;
	font-weight: 700;
}

.mk-roi__lead {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	color: #5a4d2b;
}

/* ---------- Form ---------- */

.mk-roi__form {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0 0 22px;
}

.mk-roi__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mk-roi__label {
	font-size: 12px;
	font-weight: 600;
	color: #5a4d2b;
	letter-spacing: .02em;
}

.mk-roi__field select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	padding: 12px 36px 12px 14px;
	font: inherit;
	font-size: 14px;
	color: #1c1812;
	background-color: #fff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%237a6526' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1px solid #e7c97a;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}

.mk-roi__field select:hover {
	border-color: #c19c20;
}

.mk-roi__field select:focus {
	outline: none;
	border-color: #c19c20;
	box-shadow: 0 0 0 3px rgba(193, 156, 32, .25);
}

/* ---------- Results ---------- */

.mk-roi__results {
	background: #fff;
	border: 1px solid rgba(231, 201, 122, .6);
	border-radius: 14px;
	padding: 20px 22px;
	margin: 0 0 18px;
}

.mk-roi__result-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.mk-roi__result {
	border-right: 1px solid rgba(231, 201, 122, .35);
	padding: 4px 16px 4px 0;
}

.mk-roi__result:last-child {
	border-right: 0;
	padding-right: 0;
}

.mk-roi__result-label {
	font-size: 12px;
	color: #7a6526;
	font-weight: 500;
	margin: 0 0 6px;
}

.mk-roi__result-value {
	font-family: var(--font-display, "Unbounded", "Manrope", sans-serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: #1c1812;
	letter-spacing: -0.02em;
}

.mk-roi__result-hint {
	font-size: 11px;
	color: #b08a1f;
	margin-top: 4px;
	font-style: italic;
}

.mk-roi__payback {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed rgba(231, 201, 122, .55);
	font-size: 13.5px;
	color: #1c1812;
}

.mk-roi__payback-label {
	color: #5a4d2b;
}

.mk-roi__payback b {
	color: #1a8a3f;
	margin-left: 6px;
	font-weight: 700;
}

/* ---------- CTA ---------- */

.mk-roi__cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}

.mk-roi__btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 22px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	transition: background .15s, color .15s, transform .1s;
	cursor: pointer;
	border: 1px solid transparent;
}

.mk-roi__btn:active { transform: translateY(1px); }

.mk-roi__btn--primary {
	background: #1c1812;
	color: #ffd744;
}

.mk-roi__btn--primary:hover {
	background: #000;
	color: #ffe06b;
}

.mk-roi__btn--ghost {
	background: transparent;
	color: #1c1812;
	border-color: rgba(28, 24, 18, .35);
}

.mk-roi__btn--ghost:hover {
	background: rgba(28, 24, 18, .06);
}

/* ---------- Disclaimer ---------- */

.mk-roi__disclaimer {
	font-size: 11.5px;
	line-height: 1.5;
	color: #8a7641;
	margin: 0;
	font-style: italic;
}

/* ---------- Responsive ---------- */

@media ( max-width: 720px ) {
	.mk-roi {
		padding: 22px 18px 18px;
		margin: 18px auto;
		border-radius: 14px;
	}
	.mk-roi__title { font-size: 22px; }
	.mk-roi__form { grid-template-columns: 1fr; gap: 10px; }
	.mk-roi__result-row { grid-template-columns: 1fr; gap: 16px; }
	.mk-roi__result {
		border-right: 0;
		border-bottom: 1px solid rgba(231, 201, 122, .35);
		padding: 0 0 14px;
	}
	.mk-roi__result:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}
	.mk-roi__result-value { font-size: 28px; }
	.mk-roi__btn { width: 100%; justify-content: center; }
}

/* ---------- Dark mode ---------- */

body[data-theme="dark"] .mk-roi {
	background: linear-gradient(135deg, #2a2515 0%, #1f1c10 100%);
	border-color: #5a4a18;
	color: #ece2c6;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
}

body[data-theme="dark"] .mk-roi__eyebrow {
	background: rgba(255, 255, 255, .08);
	color: #f0d97a;
}

body[data-theme="dark"] .mk-roi__title { color: #fff; }
body[data-theme="dark"] .mk-roi__lead { color: #c8b481; }

body[data-theme="dark"] .mk-roi__field select {
	background-color: #2f2a1a;
	color: #ece2c6;
	border-color: #6a5722;
}

body[data-theme="dark"] .mk-roi__results {
	background: #1a160c;
	border-color: rgba(106, 87, 34, .8);
}

body[data-theme="dark"] .mk-roi__result-value { color: #fff; }
body[data-theme="dark"] .mk-roi__result-label,
body[data-theme="dark"] .mk-roi__payback-label { color: #c8b481; }

body[data-theme="dark"] .mk-roi__btn--primary { background: #ffd744; color: #1c1812; }
body[data-theme="dark"] .mk-roi__btn--primary:hover { background: #ffe06b; }
body[data-theme="dark"] .mk-roi__btn--ghost { color: #ece2c6; border-color: rgba(255,255,255,.25); }
body[data-theme="dark"] .mk-roi__btn--ghost:hover { background: rgba(255,255,255,.06); }
body[data-theme="dark"] .mk-roi__disclaimer { color: #8a7641; }
