/* ============================================================
   Мой Бизнес — ver2
   Полностью самостоятельный прототип редизайна. Ничего не наследует
   от Bitrix/Tailwind основного сайта — своя дизайн-система, но та же
   цветовая палитра, что и в live main2023 (обязательное условие).
   ============================================================ */

/* ---------- fonts (self-hosted, copied from the live site) ---------- */

@font-face { font-family: "Circe"; src: url("../assets/fonts/Circe-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Circe"; src: url("../assets/fonts/Circe-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Circe"; src: url("../assets/fonts/Circe-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Circe"; src: url("../assets/fonts/Circe-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("../assets/fonts/PTSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("../assets/fonts/PTSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- design tokens ---------- */

:root {
	/* brand — identical in both themes, this is the mandatory constant */
	--brand: #F24D49;
	--brand-2: #F36454;
	--peach: #F8CFAD;
	--peach-light: #FAD3C6;
	--brown: #C39875;
	--cream-text: #C7976F;

	/* neutrals — remapped by [data-theme="dark"] */
	--bg: #FFFFFF;
	--bg-cream: #FBF5EF;
	--surface: #FFFFFF;
	--surface-2: #F6F1EC;
	--border: #E6E6E6;
	--border-strong: #CCCCCC;
	--text: #14110F;
	--text-muted: #6B6560;
	--on-brand: #FFFFFF;

	--font-display: "Circe", sans-serif;
	--font-body: "PT Sans", sans-serif;

	--radius-s: 10px;
	--radius-m: 16px;
	--radius-l: 24px;
	--radius-full: 999px;

	--shadow-s: 0 2px 10px -4px rgba(20, 17, 15, .12);
	--shadow-m: 0 16px 40px -16px rgba(20, 17, 15, .22);
	--shadow-brand: 0 14px 30px -12px rgba(242, 77, 73, .45);

	--ease: cubic-bezier(.16, 1, .3, 1);
	--container: 1320px;
}

:root[data-theme="dark"] {
	--bg: #121011;
	--bg-cream: #1C1714;
	--surface: #1B1715;
	--surface-2: #211B18;
	--border: #2B2420;
	--border-strong: #4A3E36;
	--text: #F5EFE9;
	--text-muted: #B9AFA6;
	--on-brand: #FFFFFF;
	--shadow-s: 0 2px 10px -4px rgba(0, 0, 0, .4);
	--shadow-m: 0 16px 40px -16px rgba(0, 0, 0, .6);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

@view-transition { navigation: auto; }

/* ---------- layout ---------- */

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 40px; } }

.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 120px; } }
.section--tight { padding-block: 48px; }

.section-head { max-width: 640px; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }

/* ---------- typography ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.display { font-size: clamp(2.6rem, 2rem + 3vw, 5.2rem); line-height: 1.02; font-weight: 800; }
h2, .h2 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1.1; }
h3, .h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.9rem); line-height: 1.25; }
h4, .h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--text-muted); max-width: 46ch; }
.muted { color: var(--text-muted); }

/* ---------- buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 28px; border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand);
	font: 700 15px/1 var(--font-body); white-space: nowrap;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); background: var(--brand-2); }
.btn:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; background: transparent; }

.btn--light { background: var(--on-brand); color: var(--brand); }
.btn--light:hover { background: var(--peach-light); color: var(--text); }

.btn--sm { padding: 11px 20px; font-size: 13.5px; }
.btn:disabled { opacity: .45; pointer-events: none; }

.btn-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: var(--radius-full);
	border: 1.5px solid var(--border-strong); background: var(--surface); flex-shrink: 0;
	transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.btn-icon:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn-icon:disabled { opacity: .3; pointer-events: none; }
.btn-icon svg { width: 18px; height: 18px; display: block; }

/* social icon (bare, no circle — header) */
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; opacity: .55; transition: opacity .2s var(--ease), transform .2s var(--ease); flex-shrink: 0; }
.social-icon:hover { opacity: 1; transform: translateY(-1px); }
.social-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
:root[data-theme="dark"] .social-icon img { filter: invert(1) brightness(1.6); }

/* social icon in a circle (footer) */
.social-circle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: var(--radius-full);
	border: 1.5px solid var(--border-strong); flex-shrink: 0; line-height: 0;
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.social-circle:hover { border-color: var(--brand); transform: translateY(-1px); }
.social-circle img { width: 18px; height: 18px; display: block; object-fit: contain; }
:root[data-theme="dark"] .social-circle img { filter: invert(1) brightness(1.6); }

/* ---------- scroll progress ---------- */

.progress-bar {
	position: fixed; top: 0; left: 0; height: 3px; width: 0%;
	background: linear-gradient(90deg, var(--brand), var(--peach));
	z-index: 90; transition: width .1s linear;
}

/* ---------- header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 60;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; transition: padding .3s var(--ease); gap: 20px; }
.site-header.is-shrunk .container { padding-block: 9px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; transition: height .3s var(--ease); display: block; }
.site-header.is-shrunk .brand img { height: 36px; }
.brand-divider { width: 1px; height: 34px; background: var(--border-strong); flex-shrink: 0; }
.brand-gov { height: 34px !important; }
.site-header.is-shrunk .brand-gov { height: 27px !important; }

.main-nav { display: none; align-items: center; gap: 30px; }
@media (min-width: 1180px) { .main-nav { display: flex; } }
.main-nav a { font: 700 14.5px/1 var(--font-body); position: relative; padding-block: 6px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right .25s var(--ease); }
.main-nav a:hover::after { right: 0; }

.header-social { display: none; align-items: center; gap: 14px; padding-inline: 4px; }
@media (min-width: 1180px) { .header-social { display: flex; } }

.info-bar { background: var(--bg-cream); border-bottom: 1px solid var(--border); padding-block: 8px; }
.info-bar__inner {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 14px;
	font-size: 12.5px; color: var(--text-muted); text-align: center;
}
.info-bar__inner a:hover { color: var(--brand); }
.info-bar__dot { width: 3px; height: 3px; border-radius: 999px; background: var(--border-strong); flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.burger { display: flex; width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--border-strong); align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
@media (min-width: 1180px) { .burger { display: none; } }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 16px; height: 2px; background: var(--text); position: relative; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
	position: fixed; inset: 0; top: 73px; z-index: 55; overflow-y: auto;
	background: var(--bg); padding: 28px 20px 40px; display: flex; flex-direction: column; gap: 20px;
	transform: translateX(100%); transition: transform .35s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a:not(.btn) { font: 700 20px/1 var(--font-display); }
.mobile-nav .btn { margin-top: 8px; align-self: flex-start; }
.mobile-nav .header-social { display: flex; margin-top: 8px; }

/* ---------- theme toggle ---------- */

.theme-toggle svg { width: 18px; height: 18px; stroke: var(--text); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ================================================================
   HERO SLIDER — the showcase moment. Real programs/partners from the
   live site, full-bleed, Ken-Burns drift on the active slide, a
   persistent brand panel anchored bottom-left, story-style progress
   bars for pagination.
   ================================================================ */

.hero-intro { padding-top: 48px; padding-bottom: 36px; position: relative; }
@media (min-width: 1024px) { .hero-intro { padding-top: 64px; padding-bottom: 44px; } }
.hero-intro .container { position: relative; }
.hero-statement h1 { max-width: 620px; }
.hero-statement p.lead { margin-top: 16px; }
.hero-statement .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-media-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-media-row { grid-template-columns: 2fr 1fr; align-items: start; } }

.hero-slider { position: relative; background: #14110F; overflow: hidden; border-radius: var(--radius-l); }
.hero-slider__viewport { position: relative; height: min(56vh, 560px); min-height: 320px; }
@media (min-width: 900px) { .hero-slider__viewport { min-height: 420px; } }

.hero-slide {
	position: absolute; inset: 0; opacity: 0; visibility: hidden;
	transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s var(--ease); z-index: 1; }
.hero-slide__bg {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	transform: scale(1.08); transition: transform 7s linear;
}
.hero-slide.is-active .hero-slide__bg { transform: scale(1); }
.hero-slide::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(0deg, rgba(10, 8, 7, .5) 0%, rgba(10, 8, 7, 0) 22%);
}

.hero-rocket-path { position: absolute; top: -8px; right: 0; width: 84px; height: 84px; z-index: 1; opacity: .8; pointer-events: none; display: none; }
@media (min-width: 640px) { .hero-rocket-path { display: block; } }
.hero-rocket-path .track { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.hero-rocket-mark { offset-path: path("M6,78 C10,40 40,10 78,6"); offset-rotate: 0deg; animation: rocket-fly 6s ease-in-out infinite; transform-origin: center; }
@keyframes rocket-fly {
	0% { offset-distance: 0%; opacity: 0; }
	8% { opacity: 1; }
	92% { opacity: 1; }
	100% { offset-distance: 100%; opacity: 0; }
}

.hero-controls {
	position: absolute; z-index: 3; right: 20px; bottom: 20px;
	display: flex; align-items: center; gap: 8px;
}
@media (min-width: 1024px) { .hero-controls { right: 40px; bottom: 40px; } }
.hero-arrow {
	width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4);
	background: rgba(255,255,255,.08); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-arrow:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.hero-arrow svg { width: 18px; height: 18px; color: #fff; }

.hero-progress-nav {
	position: absolute; z-index: 3; left: 20px; right: 100px; bottom: 20px;
	display: flex; gap: 8px;
}
@media (min-width: 1024px) { .hero-progress-nav { left: 40px; right: 220px; bottom: 40px; } }
.hero-progress-nav button { flex: 1; max-width: 64px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; }
.hero-progress-nav button .fill { position: absolute; inset: 0; width: 0%; background: #fff; border-radius: 3px; }
.hero-progress-nav button.is-active .fill { animation: hero-progress-fill linear forwards; }
.hero-progress-nav button.is-done .fill { width: 100%; }
@keyframes hero-progress-fill { from { width: 0%; } to { width: 100%; } }

/* ---------- events calendar (iOS-widget style) ---------- */

.event-calendar {
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-l);
	padding: 22px 18px; display: flex; flex-direction: column;
}
.event-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.event-calendar__month { font: 800 15px/1 var(--font-display); color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }
.event-calendar__nav {
	width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
	color: var(--text-muted); transition: background .2s var(--ease), color .2s var(--ease);
}
.event-calendar__nav:hover { background: var(--surface-2); color: var(--text); }
.event-calendar__nav svg { width: 14px; height: 14px; }

.event-calendar__weekdays {
	display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
	font: 700 12px/1 var(--font-body); color: var(--text-muted); margin-bottom: 8px;
}
.event-calendar__weekdays .is-weekend { color: var(--border-strong); }

.event-calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; }
.cal-day {
	position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
	font: 600 14px/1 var(--font-body); color: var(--text); border-radius: 999px; background: none;
}
.cal-day.is-empty { visibility: hidden; }
.cal-day.is-weekend { color: var(--text-muted); }
.cal-day.is-today { background: var(--brand); color: #fff; font-weight: 800; }
.cal-day:disabled { cursor: default; }
.cal-day.has-event { cursor: pointer; }
.cal-day.has-event::after {
	content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
	width: 14px; height: 2px; border-radius: 2px; background: var(--brand);
}
.cal-day.is-today.has-event::after { background: #fff; }
.cal-day.is-selected { box-shadow: inset 0 0 0 1.5px var(--brand); }

.event-calendar__panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.event-calendar__panel.is-open { margin-top: 14px; }
.event-calendar__panel-inner { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.cal-event { display: flex; gap: 10px; align-items: flex-start; }
.cal-event__time { font: 800 12.5px/1.4 var(--font-display); color: var(--brand); flex-shrink: 0; min-width: 40px; }
.cal-event__title { font-size: 13px; line-height: 1.45; color: var(--text); }

.event-calendar__all { display: block; text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font: 700 13px/1 var(--font-body); color: var(--text-muted); }
.event-calendar__all:hover { color: var(--text); }

/* ---------- quick links ---------- */

.quick-links { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 700px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }
.quick-link {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 18px 18px 18px 20px; border-radius: var(--radius-m); border: 1px solid var(--border);
	transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.quick-link:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.quick-link span.txt { font: 700 14px/1.3 var(--font-body); }
.quick-link .arrow { width: 30px; height: 30px; border-radius: 999px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-link .arrow img { width: 12px; height: 12px; }

/* ---------- trust / partners marquee (clickable) ---------- */

.trust-strip { padding-block: 20px; border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; align-items: center; gap: 28px; }
.trust-strip .trust-label { flex: 0 0 auto; max-width: 160px; font: 700 12.5px/1.4 var(--font-body); color: var(--text-muted); }
.trust-marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.trust-track { display: flex; width: max-content; animation: trust-scroll 55s linear infinite; }
.trust-strip:hover .trust-track, .trust-strip:focus-within .trust-track { animation-play-state: paused; }
.trust-set { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.trust-item {
	display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px;
	border-radius: var(--radius-full); border: 1px solid transparent;
	transition: border-color .2s var(--ease), background .2s var(--ease);
}
.trust-item:hover { border-color: var(--border); background: var(--surface); }
.trust-item img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.trust-item span { font: 700 14px/1.2 var(--font-body); color: var(--text); white-space: nowrap; }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.trust-track { animation: none; flex-wrap: wrap; width: 100%; }
	.trust-set[aria-hidden="true"] { display: none; }
}

/* ---------- one orchestrated entrance (hero content only) ---------- */

.enter-up { opacity: 0; transform: translateY(18px); animation: enter-up .8s var(--ease) forwards; }
@keyframes enter-up { to { opacity: 1; transform: translateY(0); } }

/* ---------- process steps (a real sequence — numbering earned) ---------- */

.steps { display: grid; gap: 36px 40px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; }
.step .num { font: 300 40px/1 var(--font-display); color: var(--border-strong); margin-bottom: 14px; display: block; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- finder (interactive widget) ---------- */

.finder { border-radius: var(--radius-l); background: var(--bg-cream); padding: 20px; margin-top: 44px; }
@media (min-width: 768px) { .finder { padding: 28px; } }

.finder-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .finder-grid { grid-template-columns: .85fr 1.15fr; gap: 20px; } }

.finder-profiles { display: flex; flex-direction: column; gap: 10px; }
.finder-profile {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left;
	border-radius: var(--radius-m); background: var(--surface); border: 1.5px solid transparent;
	transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.finder-profile:hover { transform: translateX(3px); }
.finder-profile.is-active { border-color: var(--brand); box-shadow: var(--shadow-s); }
.finder-profile__icon {
	width: 42px; height: 42px; border-radius: 999px; background: var(--peach-light); flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--brand);
	transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.finder-profile__icon svg { width: 20px; height: 20px; }
.finder-profile.is-active .finder-profile__icon { background: var(--brand); color: #fff; transform: scale(1.06); }
.finder-profile__text { display: flex; flex-direction: column; gap: 2px; }
.finder-profile__text strong { font: 700 14.5px/1.3 var(--font-body); }
.finder-profile__text small { font-size: 12.5px; color: var(--text-muted); }

.finder-panel { background: var(--surface); border-radius: var(--radius-m); padding: 26px 24px; display: flex; flex-direction: column; }
.finder-panel__count { font: 700 14.5px/1 var(--font-body); color: var(--text-muted); }
.finder-panel__count b { font: 800 30px/1 var(--font-display); color: var(--brand); margin-right: 8px; }

.finder-result { margin-top: 18px; display: flex; flex-direction: column; }
.finder-result-item {
	display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; border-bottom: 1px solid var(--border);
	opacity: 0; transform: translateY(8px); animation: finder-in .35s var(--ease) forwards;
}
.finder-result-item:last-child { border-bottom: none; }
.finder-result-item .ico { width: 36px; height: 36px; border-radius: 999px; background: var(--peach-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; font-size: 13px; color: var(--brand); font-family: var(--font-display); }
.finder-result-item .ico svg { width: 17px; height: 17px; }
@keyframes finder-in { to { opacity: 1; transform: translateY(0); } }

/* ---------- stats ---------- */

.stats { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .stats.stats--3 { grid-template-columns: repeat(3, 1fr); } }
.stat { padding-top: 24px; border-top: 2px solid var(--border); }
.stat .num { font: 800 clamp(2rem, 1.6rem + 1.6vw, 3.2rem)/1 var(--font-display); color: var(--brown); }
.stat .label { margin-top: 10px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- measures: full category columns, mirrors the site's real support-measures menu ---------- */

.measures-columns { display: grid; gap: 40px 32px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 640px) { .measures-columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .measures-columns { grid-template-columns: repeat(3, 1fr); } }

.measures-col__title { font: 800 17px/1.35 var(--font-display); margin-bottom: 16px; }
.measures-col__title span { color: var(--brand); }
.measures-col__list { display: flex; flex-direction: column; gap: 11px; }
.measures-col__list a { display: inline-block; font-size: 14.5px; line-height: 1.4; color: var(--text); transition: color .2s var(--ease); }
.measures-col__list a:hover { color: var(--brand); }

/* ---------- testimonials — quote-forward, distinct from measures ---------- */

.testimonial-wrap { position: relative; margin-top: 44px; }
.testimonial-track { display: flex; gap: 1px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--border); border-radius: var(--radius-l); }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card { flex: 0 0 100%; scroll-snap-align: start; background: var(--surface); padding: 40px 24px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 720px) { .testimonial-card { flex-basis: 50%; padding: 48px 44px; } }
.testimonial-card .quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.4; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--peach); display: flex; align-items: center; justify-content: center; font: 800 15px var(--font-display); color: var(--text); flex-shrink: 0; }
.testimonial-result { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: var(--radius-full); background: var(--bg-cream); color: var(--brown); font: 700 12.5px/1 var(--font-body); }

/* ---------- news: one featured story + a compact headline list ---------- */

.news-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 900px) { .news-grid { grid-template-columns: 1.3fr 1fr; } }

.news-feature { display: block; }
.news-feature__img { aspect-ratio: 16/10; border-radius: var(--radius-m); overflow: hidden; position: relative; background: var(--bg-cream); }
.news-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-feature:hover .news-feature__img img { transform: scale(1.04); }
.news-feature__date { margin-top: 18px; font: 700 13px/1 var(--font-body); color: var(--brown); }
.news-feature__title { margin-top: 8px; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.3; }

.news-list { display: flex; flex-direction: column; }
.news-row { display: flex; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.news-list > .news-row:first-child { padding-top: 0; }
.news-row__thumb { width: 92px; height: 68px; border-radius: 10px; overflow: hidden; flex-shrink: 0; position: relative; background: var(--bg-cream); }
.news-row__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-row__thumb--icon { display: flex; align-items: center; justify-content: center; background: var(--peach-light); font: 800 22px var(--font-display); color: var(--brand); }
.news-row__thumb--icon svg { width: 22px; height: 22px; }
.news-row__date { font: 700 12.5px/1 var(--font-body); color: var(--brown); }
.news-row__title { margin-top: 6px; font-size: 14.5px; font-weight: 700; line-height: 1.35; }

.news-more-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ---------- MSP.RF widget wrapper ---------- */

.msp-widget-wrap { border-radius: var(--radius-l); border: 1px solid var(--border); padding: 8px; overflow: hidden; }

/* ---------- contact / map ---------- */

.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-card { border-radius: var(--radius-l); background: var(--bg-cream); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ico { width: 38px; height: 38px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .ico svg { width: 17px; height: 17px; color: var(--brand); }
.copy-btn { margin-left: auto; width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; transition: color .2s var(--ease), background .2s var(--ease); }
.copy-btn:hover { color: var(--brand); background: var(--surface); }
.copy-btn svg { width: 14px; height: 14px; }
.map-frame { border-radius: var(--radius-l); overflow: hidden; min-height: 340px; background: var(--bg-cream); position: relative; }
.map-frame iframe, .map-frame > script + div { width: 100%; height: 100%; }

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

.cta-banner { border-radius: var(--radius-l); background: var(--brand); color: var(--on-brand); padding: 48px 28px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta-banner { padding: 72px 64px; } }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 90% 10%, rgba(255,255,255,.18), transparent 70%); }
.cta-banner-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-banner h2 { max-width: 480px; color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- footer ---------- */

.site-footer { background: var(--bg-cream); padding-top: 64px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border-strong); }
.footer-top .brand img { height: 44px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; } }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-bottom {
	margin-top: 48px; padding-block: 24px; border-top: 1px solid var(--border-strong);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	color: var(--text-muted); font-size: 13.5px;
}
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- floating action button ---------- */

.fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-menu { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.fab.is-open .fab-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-menu button, .fab-menu a { display: flex; align-items: center; gap: 10px; background: var(--surface); box-shadow: var(--shadow-m); padding: 10px 16px 10px 10px; border-radius: var(--radius-full); font: 700 13.5px/1 var(--font-body); }
.fab-menu .ic { width: 30px; height: 30px; border-radius: 999px; background: var(--bg-cream); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.fab-menu .ic svg { width: 15px; height: 15px; }
.fab-toggle { width: 58px; height: 58px; border-radius: 999px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand); transition: transform .3s var(--ease); }
.fab.is-open .fab-toggle { transform: rotate(45deg); }
.fab-toggle svg { width: 24px; height: 24px; }

/* ---------- modal (request form) ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 10, .55); backdrop-filter: blur(2px); }
.modal-panel {
	position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto;
	background: var(--surface); border-radius: var(--radius-l); padding: 36px 28px; box-shadow: var(--shadow-m);
	opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.modal.is-open .modal-panel { opacity: 1; transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.field input, .field textarea {
	font: inherit; padding: 13px 16px; border-radius: var(--radius-s); border: 1.5px solid var(--border-strong);
	background: var(--bg); color: var(--text); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; cursor: pointer; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.consent-row span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.consent-row a { text-decoration: underline; }

.modal-submit { width: 100%; margin-top: 22px; }

.modal-success { display: none; text-align: center; padding-block: 12px; }
.modal-success.is-visible { display: block; }
.modal-success .ico { width: 56px; height: 56px; border-radius: 999px; background: var(--peach-light); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.modal-success .ico svg { width: 26px; height: 26px; }
.modal-form.is-hidden { display: none; }

/* ---------- about page ---------- */

.about-hero { padding-top: 56px; padding-bottom: 56px; background: var(--bg-cream); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .about-hero { padding-top: 80px; padding-bottom: 80px; } }
.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--brand); }
.about-hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-hero-grid { grid-template-columns: 1.2fr .8fr; } }
.play-circle { width: 120px; height: 120px; border-radius: 999px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand); transition: transform .3s var(--ease); margin-inline: auto; }
.play-circle:hover { transform: scale(1.06); }
.play-circle svg { width: 34px; height: 34px; }

.timeline { position: relative; margin-top: 48px; padding-left: 28px; border-left: 2px solid var(--border); display: grid; gap: 36px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 12px; height: 12px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px var(--bg-cream); }
.timeline-item .year { font: 800 15px/1 var(--font-display); color: var(--brand); margin-bottom: 6px; }

.values-grid { display: grid; gap: 1px; grid-template-columns: 1fr; margin-top: 40px; background: var(--border); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(3, 1fr); } .values-grid > :last-child { grid-column: span 2; } }
.value-card { padding: 26px; background: var(--surface); }
.value-card .icon { width: 44px; height: 44px; border-radius: 999px; background: var(--peach-light); display: flex; align-items: center; justify-content: center; font: 800 17px var(--font-display); color: var(--brand); margin-bottom: 14px; }
.value-card .icon svg { width: 20px; height: 20px; }

.accordion { margin-top: 32px; border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; text-align: left; font: 700 17px/1.4 var(--font-display); }
.accordion-trigger .plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after { content: ""; position: absolute; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), background .3s var(--ease); }
.accordion-trigger .plus::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.accordion-trigger .plus::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.accordion-item.is-open .accordion-trigger .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-item.is-open .accordion-trigger { color: var(--brand); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion-panel-inner { padding-bottom: 22px; color: var(--text-muted); max-width: 720px; line-height: 1.6; }

/* ---------- misc ---------- */

.cursor-glow { position: relative; --gx: 50%; --gy: 50%; }
.cursor-glow::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
	background: radial-gradient(220px circle at var(--gx) var(--gy), color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
	transition: opacity .3s var(--ease);
}
.cursor-glow:hover::before { opacity: 1; }

/* ---------- cookie consent banner ---------- */

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; padding: 16px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__card {
	max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-m);
}
.cookie-banner__card p { font-size: 13.5px; line-height: 1.55; color: var(--text); margin: 0; }
.cookie-banner__card a { color: var(--brand); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.cookie-banner__actions .btn { flex: 1; }

/* ---------- scroll reveal ---------- */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- header search trigger ---------- */

.search-trigger { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 999px; border: 1.5px solid var(--border-strong); color: var(--text-muted); flex-shrink: 0; transition: border-color .2s var(--ease), color .2s var(--ease); }
.search-trigger:hover { border-color: var(--brand); color: var(--text); }
.search-trigger svg { width: 16px; height: 16px; flex-shrink: 0; }
.search-trigger__label { display: none; font: 700 13px/1 var(--font-body); white-space: nowrap; }
.search-trigger__kbd { display: none; font: 700 10.5px/1 var(--font-body); border: 1px solid var(--border-strong); border-radius: 5px; padding: 3px 6px; color: var(--text-muted); }
@media (min-width: 1180px) {
	.search-trigger__label { display: inline; }
	.search-trigger__kbd { display: inline-block; }
}

/* ---------- command palette ---------- */

.cmdk { position: fixed; inset: 0; z-index: 110; padding: 10vh 20px 20px; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 10, .55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.cmdk-panel {
	position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; max-height: 72vh;
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-m);
	opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.cmdk.is-open .cmdk-panel { opacity: 1; transform: translateY(0) scale(1); }
.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cmdk-input-row svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.cmdk-input { flex: 1; min-width: 0; border: none; background: none; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.cmdk-input::placeholder { color: var(--text-muted); }
.cmdk-esc { flex-shrink: 0; font: 700 10.5px/1 var(--font-body); border: 1px solid var(--border-strong); border-radius: 5px; padding: 4px 7px; color: var(--text-muted); }
.cmdk-list { overflow-y: auto; padding: 8px; }
.cmdk-empty { padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-s); cursor: pointer; }
.cmdk-item svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.cmdk-item .t { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cmdk-item .d { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.cmdk-item.is-active { background: var(--bg-cream); }

/* ---------- toast ---------- */

.toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%) translateY(12px);
	background: var(--text); color: var(--bg); font: 700 13.5px/1 var(--font-body); padding: 13px 22px;
	border-radius: var(--radius-full); box-shadow: var(--shadow-m); opacity: 0; pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease); max-width: calc(100vw - 40px); text-align: center;
}
.toast[hidden] { display: none; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
