/* My Key Responder UA — main stylesheet (mobile-first). Tokens mirror theme.json. */

:root {
	--navy: #0B1220;
	--graphite: #151E2D;
	--graphite-2: #1C2738;
	--light: #F5F7FA;
	--white: #FFFFFF;
	--accent: #FF7A1A;
	--accent-hover: #FF9142;
	--accent-ink: #B54708;
	--ink: #0F1726;
	--muted: #4A5568;
	--muted-dark: #A9B4C8;
	--line: #DDE2EA;
	--line-dark: rgba(255, 255, 255, 0.12);
	--radius: 16px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.07);
	--shadow-hover: 0 2px 4px rgba(11, 18, 32, 0.08), 0 16px 40px rgba(11, 18, 32, 0.12);
	--gutter: clamp(16px, 4vw, 32px);
	--wide: 1200px;
	--text: 760px;
	--header-h: 64px;
	--bar-h: 0px;
	--focus: 0 0 0 3px var(--navy), 0 0 0 6px var(--accent);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--wp--preset--font-family--geologica, system-ui, sans-serif);
	overflow-x: clip;
	padding-bottom: var(--bar-h);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
/* text-wrap: pretty on every paragraph made first layout ~2x slower on mobile CPUs; headings keep balance. */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: none;
	box-shadow: var(--focus);
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--accent); color: var(--navy); font-weight: 700;
	padding: 12px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.nowrap { white-space: nowrap; }
.mkr-icon { width: 1.25em; height: 1.25em; flex: none; }
.mkr-icon--sm { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */

.mkr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.mkr-btn,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 22px;
	border-radius: var(--radius-sm); border: 2px solid transparent;
	font: 700 1rem/1.2 inherit; font-family: inherit;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.mkr-btn--sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.mkr-btn--block { width: 100%; }

.mkr-btn--primary, .wp-element-button, .wp-block-button__link {
	background: var(--accent); color: var(--navy);
	box-shadow: 0 6px 20px rgba(255, 122, 26, .28);
}
.mkr-btn--primary:hover, .wp-block-button__link:hover { background: var(--accent-hover); color: var(--navy); transform: translateY(-1px); }
.mkr-btn--primary:active { transform: translateY(0); }

.mkr-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.is-style-section-dark .mkr-btn--ghost, .hero .mkr-btn--ghost, .page-hero .mkr-btn--ghost, .mkr-cta--dark .mkr-btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.mkr-btn--ghost:hover { border-color: var(--accent); color: inherit; }
.is-style-section-dark .mkr-btn--ghost:hover, .hero .mkr-btn--ghost:hover, .page-hero .mkr-btn--ghost:hover { color: var(--white); border-color: var(--accent); }

.mkr-btn--light { background: var(--white); color: var(--navy); }

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

.mkr-btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 48px; height: 48px; border-radius: 12px;
	background: rgba(255, 255, 255, .06); color: var(--white);
	border: 1px solid var(--line-dark); cursor: pointer;
	text-decoration: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn--call { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.icon-btn--call:hover { background: var(--accent-hover); }

/* ---------- Header ---------- */

.site-header-part { position: sticky; top: 0; z-index: 50; }

.site-header {
	background: rgba(11, 18, 32, .92);
	color: var(--white);
	border-bottom: 1px solid transparent;
	transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
	.site-header { background: rgba(11, 18, 32, .94); backdrop-filter: saturate(140%) blur(14px); }
}
.is-scrolled .site-header { border-color: var(--line-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

.site-header__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto; padding: 8px var(--gutter);
	min-height: var(--header-h);
	display: flex; align-items: center; gap: 16px;
	transition: min-height .25s var(--ease);
}
.is-scrolled .site-header__inner { min-height: 58px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.brand__b { color: var(--accent); }
.brand__img { max-height: 44px; width: auto; }

.site-nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.header-phone, .header-cta { display: none !important; }

@media (min-width: 1100px) {
	.site-nav { display: block; margin-right: auto; }
	.brand { margin-right: 24px; }
	.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
	.site-nav__list a {
		display: block; padding: 10px 12px; white-space: nowrap; border-radius: 10px;
		color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 500; font-size: .9375rem;
	}
	.site-nav__list a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
	.site-nav__list a[aria-current="page"], .site-nav__list a.is-section { color: var(--white); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
	.header-cta { display: inline-flex !important; white-space: nowrap; }
	.menu-toggle { display: none; }
}
@media (min-width: 1320px) {
	.header-phone {
		display: inline-flex !important; align-items: center; gap: 8px;
		color: var(--white); text-decoration: none; font-weight: 700; padding: 8px 10px; white-space: nowrap;
	}
	.header-phone .mkr-icon { color: var(--accent); }
	.icon-btn--call { display: none; }
}

/* Full-screen mobile menu (native <dialog>: focus containment + Escape) */
.mobile-menu {
	width: 100%; max-width: none; height: 100%; max-height: none;
	margin: 0; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
	border: 0; background: var(--navy); color: var(--white);
	display: none; flex-direction: column; overflow-y: auto;
}
.mobile-menu[open] { display: flex; }
.mobile-menu::backdrop { background: var(--navy); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding-top: 8px; }
.mobile-menu__list { list-style: none; margin: 16px 0 24px; padding: 0; }
.mobile-menu__list a {
	display: flex; align-items: center; min-height: 56px; padding: 8px 4px;
	color: var(--white); text-decoration: none; font-size: 1.375rem; font-weight: 650;
	border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__list a[aria-current="page"] { color: var(--accent); }
.mobile-menu__actions { display: grid; gap: 12px; margin-top: auto; }
.mobile-menu__city { display: flex; gap: 8px; align-items: center; color: var(--muted-dark); margin: 8px 0 0; }
.mobile-menu__city .mkr-icon { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
	.mobile-menu[open] { animation: mkr-fade .22s var(--ease); }
	.lead-dialog[open] { animation: mkr-rise .26s var(--ease); }
}
@keyframes mkr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mkr-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */

.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--navy); color: var(--white);
	margin-top: calc(-1 * var(--header-h));
	padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
}
.hero__bg {
	position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 50% at 78% 45%, rgba(255, 122, 26, .16), transparent 70%),
		radial-gradient(70% 60% at 10% 0%, rgba(53, 84, 140, .35), transparent 70%),
		linear-gradient(180deg, #0B1220 0%, #0E1626 60%, #0B1220 100%);
}
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { max-width: var(--wide); margin: 0 auto; display: grid; gap: 20px; align-items: center; }
.hero__city {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
	padding: 8px 14px 8px 10px; border-radius: 999px;
	background: rgba(255, 122, 26, .12); border: 1px solid rgba(255, 122, 26, .35);
	color: var(--white); font-weight: 650; font-size: .9375rem;
}
.hero__city .mkr-icon { color: var(--accent); }
.hero__title {
	margin: 0 0 16px; font-size: clamp(1.875rem, 7.4vw, 3.6rem); line-height: 1.06; font-weight: 800; letter-spacing: -.028em;
	max-width: 15ch;
}
.hero__lead { margin: 0 0 24px; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: #D3DAE6; max-width: 36rem; }
.hero__actions .mkr-btn { flex: 1 1 200px; }
.hero__facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted-dark); font-size: .9375rem; }
.hero__facts li { display: flex; gap: 10px; align-items: flex-start; }
.hero__facts .mkr-icon { color: var(--accent); margin-top: 2px; }

.hero__visual { position: relative; display: grid; place-items: center; margin-inline: auto; width: min(72vw, 420px); }
.hero__img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 1600 / 1400; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s var(--ease); }
.hero__glow { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .30), transparent 65%); filter: blur(20px); z-index: 0; }
.hero__rings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; transform: translate3d(calc(var(--px, 0) * -0.5), calc(var(--py, 0) * -0.5), 0); transition: transform .6s var(--ease); }

@media (min-width: 900px) {
	.hero { padding: calc(var(--header-h) + 56px) var(--gutter) 88px; }
	.hero__inner { grid-template-columns: 1.05fr .95fr; gap: 40px; }
	.hero__actions .mkr-btn { flex: 0 0 auto; }
	.hero__visual { width: 100%; max-width: 600px; }
}
@media (prefers-reduced-motion: no-preference) {
	.motion-on .hero__img { animation: mkr-float 9s ease-in-out infinite alternate; }
}
@keyframes mkr-float { from { translate: 0 0; } to { translate: 0 -10px; } }

/* ---------- Page hero ---------- */

.page-hero {
	position: relative; overflow: hidden;
	background: radial-gradient(55% 80% at 90% 10%, rgba(255, 122, 26, .14), transparent 70%), linear-gradient(180deg, #0B1220, #101A2B);
	color: var(--white);
	margin-top: calc(-1 * var(--header-h));
	padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
}
.page-hero__inner { max-width: var(--wide); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.page-hero__title { margin: 8px 0 14px; font-size: clamp(1.75rem, 5.6vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; max-width: 22ch; }
.page-hero__lead { margin: 0 0 22px; color: #D3DAE6; font-size: clamp(1.0625rem, 2vw, 1.1875rem); max-width: 40rem; }
.page-hero__meta { color: var(--muted-dark); margin: 0 0 12px; }
.page-hero .hero__city { margin: 8px 0 4px; }
.page-hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); border: 1px solid var(--line-dark); }
.page-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
	.page-hero { padding: calc(var(--header-h) + 32px) var(--gutter) 64px; }
	.page-hero__inner.has-media { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .875rem; color: var(--muted-dark); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumbs a { color: var(--muted-dark); text-decoration: none; padding: 6px 0; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Sections & content ---------- */

.site-main { display: block; }
/* Template parts sit flush: the global block gap would leave a white strip under the sticky header. */
body .wp-site-blocks > * { margin-block: 0; }
/* Hero areas slide under the translucent sticky header (beats WordPress' first-child margin reset). */
body .wp-site-blocks :is(.hero, .page-hero) { margin-top: calc(-1 * var(--header-h)); }
.mkr-content > :where(:not(.mkr-section):not(.hero):not(.mkr-reviews):not(.mkr-marquee)) {
	max-width: var(--text); margin-left: auto; margin-right: auto; padding-inline: var(--gutter);
}
.mkr-content > p:first-child, .mkr-content > :where(h2, h3, p, ul, ol):only-child { margin-block: 48px; }

.mkr-section { padding: clamp(48px, 8vw, 96px) var(--gutter); }
.mkr-section > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.mkr-section > :where(h2, h3, p, ul, ol, .wp-block-heading, .wp-block-list, .mkr-limits, .mkr-callout-box) {
	max-width: min(var(--text), var(--wide));
	margin-left: max(0px, calc((100% - var(--wide)) / 2));
	margin-right: auto;
}
.mkr-section > * + * { margin-top: 1.1rem; }
.mkr-section > .wp-block-heading + * { margin-top: .9rem; }
.mkr-section > * + .wp-block-heading { margin-top: 2.4rem; }
.mkr-section > :first-child { margin-top: 0; }
.mkr-section h2 { font-size: clamp(1.625rem, 4vw, 2.375rem); margin-bottom: 0; }

.is-style-section-white { background: var(--white); }
.is-style-section-light { background: var(--light); }
.is-style-section-dark { background: var(--graphite); color: #E8ECF3; }
.is-style-section-dark h2, .is-style-section-dark h3 { color: var(--white); }
.is-style-section-dark a:not(.mkr-btn) { color: var(--accent); }
.is-style-section-dark a:not(.mkr-btn):hover { color: var(--white); }
.is-style-section-dark + .is-style-section-dark { border-top: 1px solid var(--line-dark); }
.is-style-section-light + .is-style-section-light, .is-style-section-white + .is-style-section-white { padding-top: 0; }

.mkr-section-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: var(--text); }
.mkr-section-title { margin-block: 0; font-size: clamp(1.625rem, 4vw, 2.375rem); }
.mkr-section-intro, p.mkr-section-intro { margin-top: 12px; margin-bottom: 0; color: var(--muted); font-size: 1.0625rem; }
.is-style-section-dark .mkr-section-intro { color: var(--muted-dark); }

.mkr-section ul.wp-block-list, .mkr-prose ul { padding-left: 1.25rem; }
.mkr-section li + li { margin-top: .4rem; }

.is-style-check, .is-style-info { list-style: none; padding-left: 0 !important; }
.is-style-check > li, .is-style-info > li { position: relative; padding-left: 34px; }
.is-style-check > li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: rgba(255, 122, 26, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23B54708' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.is-style-section-dark .is-style-check > li::before { background-color: rgba(255, 122, 26, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23FF7A1A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.is-style-info > li::before {
	content: "!"; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center; font-weight: 800; font-size: .8rem;
	background: var(--navy); color: var(--accent);
}

.mkr-cols { gap: clamp(24px, 4vw, 56px) !important; }
.mkr-cols h2 { margin-top: 0; }
.mkr-cols .wp-block-column > * + * { margin-top: 1rem; }

.mkr-limits {
	background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent);
	border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow);
}
.mkr-limits h2 { margin-top: 0; font-size: clamp(1.375rem, 3vw, 1.75rem); }
.mkr-limits > * + * { margin-top: 1rem; }
.is-style-section-light .mkr-limits { background: var(--white); }

.mkr-callout-box {
	background: var(--light); border-radius: var(--radius); padding: 20px 24px; border-left: 4px solid var(--accent);
}
.is-style-section-light .mkr-callout-box { background: var(--white); }
.mkr-callout-box h3 { margin: 0 0 6px; font-size: 1.125rem; }
.mkr-callout-box p { margin: 0; }

.mkr-callout { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.mkr-callout .mkr-icon { color: var(--accent-ink); margin-top: 2px; }

.mkr-more a, .mkr-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--accent-ink); }
.is-style-section-dark .mkr-link { color: var(--accent); }

/* ---------- Grids & cards ---------- */

.mkr-grid { display: grid; gap: 20px; }
.mkr-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mkr-grid--related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mkr-grid--reviews { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.mkr-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mkr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #C9D1DE; }
.mkr-card:focus-within { box-shadow: var(--focus); }
.mkr-card__media { background: var(--navy); }
.mkr-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mkr-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mkr-card__title { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
.mkr-card__title a { color: var(--ink); text-decoration: none; }
.mkr-card__title a::after { content: ""; position: absolute; inset: 0; }
.mkr-card__title a:focus-visible { box-shadow: none; }
.mkr-card__text { margin: 0; color: var(--muted); font-size: .9688rem; }
.mkr-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 700; font-size: .9375rem; }
.mkr-card__more .mkr-icon { transition: transform .25s var(--ease); }
.mkr-card:hover .mkr-card__more .mkr-icon { transform: translateX(4px); }
.mkr-card--compact .mkr-card__body { padding: 18px 20px; }

/* Problem cards overlap the hero */
.mkr-section--problems { padding-top: clamp(36px, 6vw, 72px); }
.mkr-problems { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 24px !important; }
@media (min-width: 640px) { .mkr-problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mkr-problems { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.problem-card {
	position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon text" "icon go";
	gap: 4px 16px; align-content: start;
	padding: 20px; border-radius: var(--radius);
	background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
	color: var(--ink); text-decoration: none;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.problem-card__icon {
	grid-area: icon; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
	background: var(--navy); color: var(--accent);
}
.problem-card__icon .mkr-icon { width: 28px; height: 28px; }
.problem-card__title { grid-area: title; font-weight: 750; font-size: 1.125rem; line-height: 1.3; }
.problem-card__text { grid-area: text; color: var(--muted); font-size: .9375rem; }
.problem-card__go { grid-area: go; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 700; font-size: .9063rem; }
@media (min-width: 1100px) {
	.problem-card { grid-template-columns: 1fr; grid-template-areas: "icon" "title" "text" "go"; gap: 10px; padding: 24px; }
}

/* Steps */
.mkr-steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 28px !important; }
.mkr-step {
	counter-increment: step; position: relative; padding: 64px 22px 22px;
	border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark);
}
.is-style-section-light .mkr-step, .is-style-section-white .mkr-step { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.mkr-step::before {
	content: counter(step, decimal-leading-zero); position: absolute; top: 20px; left: 22px;
	font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--accent);
}
.mkr-step h3 { margin: 0 0 8px; font-size: 1.125rem; }
.mkr-step p { margin: 0; color: var(--muted-dark); font-size: .9688rem; }
.is-style-section-light .mkr-step p, .is-style-section-white .mkr-step p { color: var(--muted); }

/* Info cards */
.mkr-infocards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 28px !important; }
.mkr-infocard { padding: 24px; border-radius: var(--radius); background: var(--light); border: 1px solid transparent; }
.is-style-section-light .mkr-infocard { background: var(--white); border-color: var(--line); }
.is-style-section-dark .mkr-infocard { background: var(--graphite-2); border-color: var(--line-dark); }
.mkr-infocard h3 { margin: 0 0 8px; font-size: 1.125rem; position: relative; padding-top: 18px; }
.mkr-infocard h3::before { content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 4px; border-radius: 2px; background: var(--accent); }
.mkr-infocard p { margin: 0; color: var(--muted); }
.is-style-section-dark .mkr-infocard p { color: var(--muted-dark); }

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

.mkr-cta { display: grid; gap: 20px; align-items: center; }
.mkr-cta .mkr-section-head { margin: 0; }
.mkr-cta--light { background: var(--light); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); }
.is-style-section-light .mkr-cta--light { background: var(--white); }
.mkr-cta--light .mkr-section-title { font-size: clamp(1.25rem, 3vw, 1.625rem); }
.mkr-cta--dark .mkr-section-title { color: var(--white); }
@media (min-width: 900px) {
	.mkr-cta { grid-template-columns: 1fr auto; gap: 32px; }
}

/* ---------- Contacts, area, prices, FAQ, reviews ---------- */

.mkr-contacts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.mkr-contacts__item { display: flex; gap: 14px; align-items: flex-start; }
.mkr-contacts__item > .mkr-icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.mkr-contacts__item > div { display: grid; gap: 2px; }
.mkr-contacts__label { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.is-style-section-dark .mkr-contacts__label { color: var(--muted-dark); }
.mkr-contacts__phone { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 800; text-decoration: none; color: inherit !important; }
.mkr-contacts__note { font-size: .875rem; color: var(--muted); }
.is-style-section-dark .mkr-contacts__note { color: var(--muted-dark); }
.mkr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mkr-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: inherit !important; font-weight: 650; }
.is-style-section-dark .mkr-chip { border-color: var(--line-dark); }
.mkr-chip:hover { border-color: var(--accent); }

.mkr-area__city { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.mkr-area__city .mkr-icon { width: 28px; height: 28px; color: var(--accent); }
.mkr-area__city strong { font-size: 1.25rem; }
.mkr-area__city p { margin: 6px 0 0; color: #D3DAE6; }
.mkr-area__label { font-weight: 650; margin: 20px 0 10px; }
.mkr-area__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.mkr-area__list li { padding: 8px 14px; border-radius: 999px; background: var(--light); border: 1px solid var(--line); margin: 0 !important; }
.mkr-area__note { color: var(--muted); margin: 16px 0 0; }
.mkr-area__map { margin-top: 20px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--light); }
.mkr-area__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.mkr-area { max-width: var(--text) !important; margin-left: max(0px, calc((100% - var(--wide)) / 2)) !important; }

.mkr-prices__table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 20px 0 0; }
.mkr-prices__table caption { text-align: left; font-weight: 750; font-size: 1.125rem; padding: 0 0 10px; }
.mkr-prices__table th, .mkr-prices__table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.mkr-prices__table thead th { background: var(--navy); color: var(--white); font-size: .875rem; font-weight: 650; }
.mkr-prices__table td { white-space: nowrap; font-weight: 750; }
.mkr-prices__table tbody th { font-weight: 500; }
.mkr-prices__note, .mkr-prices__unit { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.mkr-prices__foot { color: var(--muted); font-size: .9375rem; margin-top: 12px; }

.mkr-faq { max-width: var(--text) !important; margin-left: max(0px, calc((100% - var(--wide)) / 2)) !important; }
.mkr-faq__list { display: grid; gap: 10px; }
.mkr-faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.is-style-section-white .mkr-faq__item { background: var(--light); border-color: transparent; }
.mkr-faq__q {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.0625rem; min-height: 56px;
}
.mkr-faq__q::-webkit-details-marker { display: none; }
.mkr-faq__sign { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); position: relative; }
.mkr-faq__sign::before, .mkr-faq__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); translate: -50% -50%; transition: rotate .25s var(--ease); }
.mkr-faq__sign::after { rotate: 90deg; }
.mkr-faq__item[open] .mkr-faq__sign::after { rotate: 0deg; }
.mkr-faq__a { padding: 0 20px 18px; color: var(--muted); }
.mkr-faq__a p { margin: 0 0 .6em; }
.mkr-faq__a p:last-child { margin: 0; }

.mkr-reviews.mkr-section--reviews { background: var(--light); padding: clamp(48px, 8vw, 96px) var(--gutter); max-width: none !important; }
.mkr-reviews.mkr-section--reviews > * { max-width: var(--wide); margin-inline: auto; }
.mkr-review { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mkr-review blockquote { margin: 0 0 14px; font-size: 1.0625rem; }
.mkr-review figcaption { color: var(--muted); font-size: .875rem; }

.mkr-editor-note { padding: 12px 16px; border: 1px dashed #8a94a6; border-radius: 8px; background: #f5f7fa; color: #3a4252; font-size: 14px; }

/* ---------- Lead form ---------- */

.mkr-section--lead .mkr-cols { align-items: start; }
.mkr-lead, .lead-dialog .mkr-form { color: var(--ink); }
.mkr-section--lead .mkr-lead, .mkr-lead { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.is-style-section-white .mkr-lead, .is-style-section-light .mkr-lead { box-shadow: var(--shadow); border: 1px solid var(--line); }
.mkr-lead .mkr-section-title { font-size: 1.5rem; color: var(--ink); }

.mkr-form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
	.mkr-form:not(.mkr-form--compact) .mkr-form__grid { grid-template-columns: 1fr 1fr; }
	.mkr-form:not(.mkr-form--compact) .mkr-field--message, .mkr-form:not(.mkr-form--compact) .mkr-field--address { grid-column: 1 / -1; }
}
.mkr-field { display: grid; gap: 6px; }
.mkr-field__label { font-weight: 650; font-size: .9375rem; }
.mkr-req { color: var(--accent-ink); font-weight: 500; font-size: .8125rem; }
.mkr-opt { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.mkr-field__hint { margin: 0; font-size: .8125rem; color: var(--muted); }
.mkr-field input[type="text"], .mkr-field input[type="tel"], .mkr-field select, .mkr-field textarea {
	width: 100%; min-height: 52px; padding: 12px 14px;
	font: inherit; font-size: 1.0625rem; color: var(--ink);
	background: var(--white); border: 1.5px solid #B9C2D0; border-radius: var(--radius-sm);
	transition: border-color .2s, box-shadow .2s;
}
.mkr-field textarea { min-height: 96px; resize: vertical; }
.mkr-field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230F1726' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 20px no-repeat; padding-right: 40px; }
.mkr-field :is(input, select, textarea):hover { border-color: #8A95A8; }
.mkr-field :is(input, select, textarea):focus-visible { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 122, 26, .45); border-radius: var(--radius-sm); }
.mkr-field [aria-invalid="true"] { border-color: #C4320A; background-color: #FFF6F2; }
.mkr-field__error { margin: 0; color: #B42318; font-size: .875rem; font-weight: 600; }
.mkr-field--consent { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; margin-top: 18px; font-size: .9375rem; }
.mkr-field--consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent-ink); }
.mkr-field--consent label { cursor: pointer; }
.mkr-field--consent .mkr-field__error { grid-column: 1 / -1; }
.mkr-form__actions { margin-top: 20px; }
.mkr-form__submit { width: 100%; }
.mkr-form__status:empty { display: none; }
.mkr-form__status { margin-top: 16px; outline: none; }
.mkr-form__ok, .mkr-form__err { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.mkr-form__ok { background: #ECFDF3; color: #05603A; border: 1px solid #A6F4C5; }
.mkr-form__err { background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }
.mkr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mkr-form { position: relative; }

/* Request dialog */
.lead-dialog {
	width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
	padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: auto;
}
.lead-dialog::backdrop { background: rgba(5, 9, 18, .72); }
@supports (backdrop-filter: blur(1px)) { .lead-dialog::backdrop { backdrop-filter: blur(4px); } }
.lead-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0 24px; }
.lead-dialog__title { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; }
.lead-dialog__close { background: var(--light); color: var(--ink); border-color: var(--line); }
.lead-dialog__close:hover { background: #E8ECF2; }
.lead-dialog__desc { margin: 8px 24px 16px; color: var(--muted); font-size: .9688rem; }
.lead-dialog .mkr-form { padding: 0 24px 24px; }
@media (max-width: 639px) {
	.lead-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
	.lead-dialog .mkr-form { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.toast {
	position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px); translate: -50% 0; z-index: 90;
	width: min(480px, calc(100% - 32px)); padding: 14px 18px; border-radius: 14px;
	background: #05603A; color: var(--white); font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}

/* ---------- Footer & mobile bar ---------- */

.site-footer { background: var(--navy); color: #C9D1DE; }
.site-footer__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	padding: clamp(48px, 7vw, 80px) var(--gutter) 32px;
	display: grid; gap: 36px; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.site-footer__brand p { margin: 16px 0 0; max-width: 32ch; color: var(--muted-dark); }
.site-footer__title { margin: 0 0 14px; color: var(--white); font-weight: 750; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: #D3DAE6; text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__phone { font-size: 1.25rem; font-weight: 800; color: var(--white) !important; }
.site-footer__muted { color: var(--muted-dark); padding: 4px 0; }
.site-footer__contacts .mkr-btn { margin-top: 16px; color: var(--navy); }
.site-footer__contacts .mkr-btn:hover { color: var(--navy); text-decoration: none; }
.site-footer__bottom {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter);
	border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	font-size: .875rem; color: var(--muted-dark);
}
.site-footer__bottom p { margin: 0; }

.mobile-bar {
	position: fixed; inset: auto 0 0 0; z-index: 60;
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: rgba(11, 18, 32, .96); border-top: 1px solid var(--line-dark);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
}
.mobile-bar--single { grid-template-columns: 1fr; }
.mobile-bar .mkr-btn { min-height: 52px; padding: 10px 10px; font-size: .9688rem; box-shadow: none; white-space: nowrap; gap: 8px; }
@media (max-width: 419px) { .mobile-bar:not(.mobile-bar--single) .mkr-btn .mkr-icon { display: none; } }
body { --bar-h: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
	.mobile-bar { display: none; }
	body { --bar-h: 0px; }
}
@media print { .mobile-bar, .site-header-part, .lead-dialog { display: none !important; } }

/* ---------- Blog ---------- */

.mkr-posts__list { list-style: none; padding: 0; display: grid; gap: 16px; }
.mkr-post-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.mkr-post-card h2 { margin: 0 0 6px; }
.mkr-post-card h2 a { color: var(--ink); text-decoration: none; }
.mkr-post-card .wp-block-post-date { color: var(--muted); font-size: .875rem; }
.mkr-article > * { max-width: var(--text) !important; }
.mkr-prose > * + * { margin-top: 1.1em; }

/* ---------- Reveal on scroll (JS adds .reveal; content is visible without JS) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
	.js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.hero__img, .hero__rings { transform: none !important; }
}

/* =====================================================================
   Blog
   ===================================================================== */

.mkr-prose { max-width: var(--text) !important; margin-left: max(0px, calc((100% - var(--wide)) / 2)) !important; font-size: 1.0938rem; }
.mkr-prose > * + * { margin-top: 1.1em; }
.mkr-prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.mkr-prose h3 { margin-top: 1.6em; }
.mkr-prose a { color: var(--accent-ink); }
.mkr-prose .mkr-callout-box { margin-block: 1.6em; }
.mkr-prose .wp-block-details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; background: var(--light); }
.mkr-prose .wp-block-details + .wp-block-details { margin-top: 10px; }
.mkr-prose .wp-block-details summary { padding: 16px 20px; font-weight: 650; cursor: pointer; }
.mkr-prose .wp-block-details > :not(summary) { padding: 0 20px 16px; margin: 0; color: var(--muted); }

.mkr-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--light); }
.mkr-toc__title { margin: 0 0 8px; font-weight: 750; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mkr-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 4px; }
.mkr-toc a { color: var(--ink); text-decoration: none; }
.mkr-toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.page-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .9375rem; }
.page-hero__tag, .mkr-card__tag, .mkr-post-card__tag a {
	display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 650;
	background: rgba(255, 122, 26, .14); color: var(--accent); text-decoration: none;
}
.mkr-card__tag, .mkr-post-card__tag a { color: var(--accent-ink); background: rgba(255, 122, 26, .12); align-self: flex-start; }

.mkr-posts__list { list-style: none; margin: 0; padding: 0; display: grid !important; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mkr-post-card { position: relative; height: 100%; display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mkr-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mkr-post-card__media { margin: 0 !important; background: var(--navy); }
.mkr-post-card__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mkr-post-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.mkr-post-card__body > * { margin: 0 !important; }
.mkr-post-card__title { font-size: 1.1875rem !important; line-height: 1.3; }
.mkr-post-card__title a { color: var(--ink); text-decoration: none; }
.mkr-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.mkr-post-card__excerpt { color: var(--muted); font-size: .9688rem; }
.mkr-post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.mkr-post-card__date { color: var(--muted); font-size: .8125rem; }
.mkr-post-card__tag { position: relative; z-index: 1; }
.wp-block-query-pagination { margin-top: 32px; gap: 8px; font-weight: 650; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); }
.wp-block-query-pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* =====================================================================
   Motion ("Webflow-style" interactions). Transform-based only, so they never delay LCP or move layout.
   Everything here is skipped when the visitor prefers reduced motion.
   ===================================================================== */

/* Services marquee (decorative, aria-hidden; the real links live in the services grid) */
.mkr-marquee { overflow: hidden; background: var(--accent); color: var(--navy); border-block: 1px solid rgba(11, 18, 32, .12); }
.mkr-marquee__track { display: flex; width: max-content; }
.mkr-marquee__group { display: flex; align-items: center; gap: 28px; padding: 14px 14px; margin: 0; list-style: none; flex: none; }
.mkr-marquee__group li { display: inline-flex; align-items: center; gap: 28px; font-weight: 750; font-size: 1.0625rem; white-space: nowrap; }
.mkr-marquee__group li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); opacity: .55; }

/* Steps: a progress rail that fills while the section scrolls through the viewport */
.mkr-steps { position: relative; }
@media (min-width: 900px) {
	.mkr-steps { padding-top: 22px; }
	.mkr-steps::before, .mkr-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; }
	.mkr-steps::before { background: var(--line-dark); }
	.is-style-section-light .mkr-steps::before, .is-style-section-white .mkr-steps::before { background: var(--line); }
	.mkr-steps::after { background: linear-gradient(90deg, var(--accent), #FFB37A); transform-origin: left; }
}

/* Card spotlight follows the pointer (custom properties set by site.js) */
.mkr-card, .problem-card, .mkr-post-card, .mkr-infocard, .mkr-step { --mx: 50%; --my: 50%; }
.mkr-card::before, .problem-card::before, .mkr-post-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 1;
	background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 122, 26, .13), transparent 60%);
	opacity: 0; transition: opacity .3s var(--ease);
}
.mkr-card:hover::before, .problem-card:hover::before, .mkr-post-card:hover::before { opacity: 1; }
.mkr-card__media, .mkr-post-card__media { overflow: hidden; }
.mkr-card__media img, .mkr-post-card__media img { transition: transform .6s var(--ease); }
.mkr-card:hover .mkr-card__media img, .mkr-post-card:hover .mkr-post-card__media img { transform: scale(1.045); }
.problem-card__icon { transition: transform .35s var(--ease), background-color .35s var(--ease); }
.problem-card:hover .problem-card__icon { transform: rotate(-6deg) scale(1.06); background: #16223A; }

/* Primary buttons: a light sweep on hover */
.mkr-btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.mkr-btn--primary::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
	transform: translateX(-120%);
}
.mkr-btn--primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }

/* Section titles: accent bar grows when the heading enters the viewport */
.mkr-section h2.wp-block-heading, .mkr-section-title { position: relative; }
.js .mkr-section h2.wp-block-heading.reveal-line::after, .js .mkr-section-title.reveal-line::after {
	content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--accent);
	transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .15s;
}
.js .reveal-line.is-visible::after { transform: scaleX(1) !important; }

@media (prefers-reduced-motion: no-preference) {
	/* Hero entrance: transform-only stagger (text stays fully opaque for LCP) */
	.hero__text > * { animation: mkr-enter .7s var(--ease) both; }
	.hero__text > :nth-child(2) { animation-delay: .06s; }
	.hero__text > :nth-child(3) { animation-delay: .12s; }
	.hero__text > :nth-child(4) { animation-delay: .18s; }
	.hero__text > :nth-child(5) { animation-delay: .24s; }
	.hero__visual { animation: mkr-zoom 1.1s var(--ease) both; }
	/* Ambient loops start after the first interaction (html.motion-on), so the initial load stays idle. */
	.motion-on .hero__rings { animation: mkr-spin 60s linear infinite; }
	.motion-on .hero__glow { animation: mkr-glow 6s ease-in-out infinite alternate; }

	.motion-on .mkr-marquee__track { animation: mkr-marquee 38s linear infinite; }
	.mkr-marquee:hover .mkr-marquee__track { animation-play-state: paused; }

	@supports (animation-timeline: view()) {
		.mkr-steps::after { animation: mkr-fill linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
		.hero__visual { animation: mkr-zoom 1.1s var(--ease) both, mkr-drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 90vh; }
	}
}
@keyframes mkr-enter { from { transform: translateY(18px); } to { transform: none; } }
@keyframes mkr-zoom { from { transform: scale(.94) translateY(10px); } to { transform: none; } }
@keyframes mkr-drift { from { translate: 0 0; } to { translate: 0 60px; } }
@keyframes mkr-spin { to { rotate: 360deg; } }
@keyframes mkr-glow { from { opacity: .75; scale: .96; } to { opacity: 1; scale: 1.04; } }
@keyframes mkr-marquee { to { transform: translateX(-50%); } }
@keyframes mkr-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
	.mkr-steps::after { transform: none; }
	.mkr-btn--primary::after { display: none; }
}

/* Flush full-width blocks and grid items (the flow layout's block gap would offset them). */
body .mkr-content > :is(.hero, .mkr-section, .mkr-marquee, .mkr-reviews) { margin-block: 0; }
body :is(.mkr-problems, .mkr-steps, .mkr-infocards, .mkr-posts__list) > * { margin-block: 0; }
body .mkr-section .mkr-posts__list > li { margin: 0; }
body .site-main > * + * { margin-block-start: 0; }

/* Contrast: links inside white form cards keep the dark-orange ink even within dark sections. */
.is-style-section-dark :is(.mkr-lead, .mkr-cta--light) a:not(.mkr-btn), .lead-dialog a:not(.mkr-btn) { color: var(--accent-ink); }

/* Infinite decorative animations pause while off-screen (class toggled by site.js). */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
