/* 4M home v5: footage behind the words on every screen, light page, one blue accent.
   Shape rule: buttons, chips and inputs are pills or 12px; cards and media are 18px; nothing else is rounded.
   Loaded after main.css / v2.css. */
:root {
	--x-ink: #14181b;
	--x-muted: #565e66;
	--x-bg: #ffffff;
	--x-soft: #f1f4f7;
	--x-line: #dfe4e9;
	--x-accent: #1b5bd9;
	--x-accent-dark: #1549ad;
	--x-accent-soft: #e7eefc;
	--x-night: #0e1317;
	--x-radius: 18px;
	--x-ease: cubic-bezier(.23, 1, .32, 1);
	--x-shadow: 0 30px 60px -32px rgba(14, 35, 70, .38), 0 2px 6px -2px rgba(14, 35, 70, .08);
}
body { background: var(--x-bg); color: var(--x-ink); caret-color: var(--x-accent); }
::selection { background: rgba(27, 91, 217, .2); color: inherit; }
:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 3px; }
input, select, textarea { accent-color: var(--x-accent); }
html { scrollbar-color: #b9c1c9 transparent; }

.site-header { background: rgba(255, 255, 255, .97); }
.site-header .button--brass { background: var(--x-accent); color: #fff; border-radius: 999px; }
.site-header .button--brass:hover { background: var(--x-accent-dark); }

.x-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 18px; }
.x-head { display: grid; gap: 0; }
.x-h2 { margin: 0; font: 700 clamp(1.75rem, 4.4vw, 2.75rem)/1.1 var(--f-text); letter-spacing: -.028em; text-wrap: balance; max-width: 24ch; }
.x-h3 { margin: 28px 0 0; font: 700 1.2rem/1.25 var(--f-text); letter-spacing: -.015em; }
.x-lead { margin: 12px 0 0; color: var(--x-muted); font-size: 1.06rem; line-height: 1.55; max-width: 56ch; text-wrap: pretty; }
.x-sec { padding-block: clamp(64px, 9vw, 112px); }
.x-sec--tint { background: var(--x-soft); }
.x-link { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--x-accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.x-link:hover { color: var(--x-accent-dark); }

/* ---------- Buttons: pill + icon island ---------- */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 1.02rem/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--x-ease), border-color .2s var(--x-ease), color .2s var(--x-ease), transform .16s var(--x-ease); }
.x-btn:active { transform: scale(.97); }
.x-btn .icon { width: 18px; height: 18px; stroke-width: 4; }
.x-btn__ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: -14px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: transform .3s var(--x-ease); }
.x-btn--primary { background: var(--x-accent); color: #fff; }
.x-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(14, 19, 23, .28); }
.x-btn--light { background: #fff; color: var(--x-accent-dark); }
.x-btn--light .x-btn__ico { background: var(--x-accent-soft); }
@media (hover: hover) and (pointer: fine) {
	.x-btn--primary:hover { background: var(--x-accent-dark); }
	.x-btn--ghost:hover { border-color: #fff; background: rgba(14, 19, 23, .45); }
	.x-btn--light:hover { background: #f3f6fd; }
	.x-btn:hover .x-btn__ico { transform: translateY(2px); }
}

/* ---------- Hero: their footage behind the words, on phones and on desktop ---------- */
.x-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--x-night); }
.x-hero__media { position: absolute; inset: 0; z-index: -1; }
.x-hero__poster img, .x-hero__clip { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.x-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 19, 23, .5) 0%, rgba(14, 19, 23, .12) 26%, rgba(14, 19, 23, .45) 50%, rgba(14, 19, 23, .92) 78%, var(--x-night) 100%); }
.x-hero__inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(calc(100svh - var(--header-h) - 36px), 780px); padding-block: 40px 76px; }
.x-hero__title { margin: 0; max-width: 14ch; font: 700 clamp(2.4rem, 9.6vw, 4.6rem)/1.02 var(--f-text); letter-spacing: -.038em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.x-hero__lead { margin: 16px 0 0; max-width: 44ch; font-size: 1.07rem; line-height: 1.5; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.x-hero__actions { display: grid; gap: 10px; margin-top: 26px; }
.x-hero__actions .x-btn--ghost .icon { width: 18px; height: 18px; stroke-width: 3.5; }

/* Load moment: the copy rises in order. CSS only, nothing waits on JS. */
@media (prefers-reduced-motion: no-preference) {
	.x-hero__copy > * { animation: x-rise .8s var(--x-ease) both; }
	.x-hero__copy > :nth-child(2) { animation-delay: .08s; }
	.x-hero__copy > :nth-child(3) { animation-delay: .16s; }
	@keyframes x-rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- Quote card: the working form, right under the footage ---------- */
.x-quote { position: relative; z-index: 2; margin-top: -48px; }
.x-quote__card { padding: 22px 18px 18px; background: #fff; border: 1px solid var(--x-line); border-radius: var(--x-radius); box-shadow: var(--x-shadow); }
.x-quote__title { margin: 0; font: 700 1.4rem/1.15 var(--f-text); letter-spacing: -.02em; }
.x-quote__sub { margin: 6px 0 16px; color: var(--x-muted); font-size: .97rem; }
.x-quote .quote-form, .x-final .quote-form { padding: 0; background: transparent; border-radius: 0; }
.x-quote .quote-form label, .x-final .quote-form label { font-size: .86rem; color: var(--x-ink); }
.x-quote .quote-form input, .x-quote .quote-form select,
.x-final .quote-form input, .x-final .quote-form select,
.x-quote .quote-form textarea, .x-final .quote-form textarea { min-height: 52px; border-radius: 12px; border-color: #c4ccd4; background: #fff; transition: border-color .2s var(--x-ease), box-shadow .2s var(--x-ease); }
.x-quote .quote-form input:focus, .x-quote .quote-form select:focus,
.x-final .quote-form input:focus, .x-final .quote-form select:focus,
.x-quote .quote-form textarea:focus, .x-final .quote-form textarea:focus { outline: none; border-color: var(--x-accent); box-shadow: 0 0 0 4px rgba(27, 91, 217, .18); }
.x-quote .quote-form button, .x-final .quote-form button { min-height: 56px; border: 0; border-radius: 999px; background: var(--x-accent); color: #fff; font-size: 1.04rem; font-weight: 700; transition: background-color .2s var(--x-ease), transform .16s var(--x-ease); }
.x-quote .quote-form button:active, .x-final .quote-form button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
	.x-quote .quote-form button:hover, .x-final .quote-form button:hover { background: var(--x-accent-dark); }
}
.x-quote .quote-form__field, .x-final .quote-form__field { margin-bottom: 12px; }
.x-quote .quote-form__privacy, .x-final .quote-form__privacy { margin: 2px 0 12px; font-size: .82rem; color: var(--x-muted); }
.x-quote .quote-form__privacy a, .x-final .quote-form__privacy a { color: inherit; }
.quote-form__error { border-left: 0; border-radius: 12px; }

/* ---------- Trust strip: moves slowly, pauses on hover, focus or the button ---------- */
.x-strip { position: relative; margin-top: 40px; overflow: hidden; background: var(--x-ink); color: #fff; }
.x-strip__track { display: flex; width: max-content; }
.x-strip__list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.x-strip__list li { display: flex; align-items: center; gap: 14px; padding: 17px 0 17px 30px; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.x-strip__list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #6f9cf0; }
.x-strip__pause { right: 10px; top: 50%; width: 34px; height: 34px; margin-top: -17px; background: rgba(20, 24, 27, .9); }
.x-strip__pause .icon { width: 14px; height: 14px; }
.x-strip::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 70px; background: linear-gradient(90deg, rgba(20, 24, 27, 0), var(--x-ink) 60%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
	.x-strip__track { animation: x-marquee 48s linear infinite; }
	.x-strip:hover .x-strip__track, .x-strip:focus-within .x-strip__track, .x-strip.is-paused .x-strip__track { animation-play-state: paused; }
	@keyframes x-marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
	.x-strip__track { width: auto; }
	.x-strip__list { flex-wrap: wrap; padding: 8px 18px 8px 0; }
	.x-strip__list li { padding-block: 8px; }
	.x-strip__list[aria-hidden], .x-strip__pause, .x-strip::after { display: none; }
}

/* ---------- Catalogue: photo cards with a real button each ---------- */
.x-cat { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.x-cat__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; overflow: hidden; border-radius: var(--x-radius); color: #fff; background: #29313a; text-decoration: none; isolation: isolate; }
.x-cat__item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--x-ease); }
.x-cat__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 19, 23, 0) 28%, rgba(14, 19, 23, .86) 100%); }
.x-cat__item--windows { min-height: 420px; }
.x-cat__item--doors { min-height: 380px; }
.x-cat__body { display: grid; justify-items: start; gap: 4px; padding: 18px; }
.x-cat__name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; }
.x-cat__price { font-size: .95rem; color: rgba(255, 255, 255, .9); }
.x-cat__price strong { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.x-cat__note { font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .84); max-width: 40ch; }
.x-cat__btn { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; margin-top: 12px; padding: 0 7px 0 20px; border-radius: 999px; background: #fff; color: var(--x-ink); font-weight: 600; font-size: .95rem; transition: background-color .2s var(--x-ease), transform .16s var(--x-ease); }
.x-cat__btn .x-btn__ico { width: 32px; height: 32px; margin: 0; background: var(--x-accent); color: #fff; }
.x-cat__btn .icon { width: 16px; height: 16px; stroke-width: 4; }
.x-cat__item:active .x-cat__btn { transform: scale(.97); }
.x-cat__item--tile { min-height: 0; justify-content: space-between; color: var(--x-ink); background: var(--x-accent-soft); }
.x-cat__item--tile::before { display: none; }
.x-cat__item--tile .x-cat__note { color: var(--x-muted); }
.x-cat__item--tile .x-cat__btn { background: var(--x-accent); color: #fff; }
.x-cat__item--tile .x-cat__btn .x-btn__ico { background: rgba(255, 255, 255, .2); }
.x-cat__icon { display: block; padding: 20px 18px 0; color: var(--x-accent); }
.x-cat__icon .icon { width: 64px; height: 64px; stroke-width: 1.8; }
@media (hover: hover) and (pointer: fine) {
	.x-cat__item:hover img { transform: scale(1.04); }
	.x-cat__item:hover .x-cat__btn .x-btn__ico { transform: translateX(3px); }
	.x-cat__item--tile:hover .x-cat__btn { background: var(--x-accent-dark); }
}
.x-cat__foot { display: grid; gap: 18px; margin-top: 18px; }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.x-chips a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--x-line); background: #fff; color: var(--x-ink); font-weight: 600; font-size: .93rem; text-decoration: none; transition: border-color .2s var(--x-ease), color .2s var(--x-ease); }
@media (hover: hover) and (pointer: fine) { .x-chips a:hover { border-color: var(--x-accent); color: var(--x-accent); } }
.x-brands { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: var(--x-muted); font-size: .93rem; }
.x-brands strong { color: var(--x-ink); }

/* ---------- Numbers ---------- */
.x-stats { padding-block: 0 clamp(56px, 8vw, 96px); }
.x-stats__list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; }
.x-stats__list li { display: grid; align-content: start; gap: 8px; padding-top: 18px; border-top: 2px solid var(--x-ink); }
.x-stats__list strong { font: 700 clamp(2.5rem, 6.4vw, 3.8rem)/1 var(--f-text); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.x-stats__list span { color: var(--x-muted); font-size: .95rem; line-height: 1.4; max-width: 24ch; }

/* ---------- Offer band ---------- */
.x-offer { padding-block: clamp(40px, 6vw, 64px); background: var(--x-accent); color: #fff; }
.x-offer__inner { display: grid; gap: 22px; align-items: center; }
.x-offer__title { margin: 0; max-width: 26ch; font: 700 clamp(1.5rem, 3.6vw, 2.25rem)/1.15 var(--f-text); letter-spacing: -.025em; text-wrap: balance; }
.x-offer__text { margin: 10px 0 0; max-width: 52ch; color: rgba(255, 255, 255, .88); }
.x-offer .x-btn { justify-self: start; }

/* ---------- Prices ---------- */
.x-prices { display: grid; gap: 34px; }
.x-factors { display: grid; gap: 12px; margin-top: 14px; }
.x-factors li { position: relative; padding-left: 20px; color: var(--x-muted); line-height: 1.5; max-width: 56ch; }
.x-factors li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--x-accent); }
.x-factors strong { color: var(--x-ink); }
.x-pricecard { align-self: start; padding: 6px 18px 20px; background: #fff; border: 1px solid var(--x-line); border-radius: var(--x-radius); box-shadow: var(--x-shadow); }
.x-pricetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.x-pricetable thead th { padding: 14px 0 10px; font-size: .82rem; font-weight: 600; color: var(--x-muted); text-align: left; border-bottom: 1px solid var(--x-line); }
.x-pricetable thead th:last-child, .x-pricetable td { text-align: right; }
.x-pricetable tbody th { padding: 13px 14px 13px 0; font-weight: 500; text-align: left; line-height: 1.35; border-bottom: 1px solid var(--x-line); }
.x-pricetable td { padding: 13px 0; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--x-line); }
.x-pricetable tr.is-muted th, .x-pricetable tr.is-muted td { color: var(--x-muted); font-weight: 500; }
.x-pricecard__note { margin: 14px 0 18px; font-size: .88rem; color: var(--x-muted); }
.x-pricecard .x-btn { width: 100%; }

/* ---------- Work: photos and clips ---------- */
.x-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; margin: 30px -18px 0; padding: 0 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; list-style: none; }
.x-gallery::-webkit-scrollbar { display: none; }
.x-gallery li { scroll-snap-align: start; }
.x-gallery figure { margin: 0; }
.x-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--x-radius); background: #dde3e8; }
.x-gallery figcaption { margin-top: 8px; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.x-work__video { margin-top: 52px; }
.x-reels { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 12px; margin: 18px -18px 0; padding-inline: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; }
.x-reels::-webkit-scrollbar { display: none; }
.x-reel { margin: 0; scroll-snap-align: start; }
.x-reel video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--x-radius); background: #2a2f33; }
.x-reel figcaption { margin-top: 10px; font-weight: 600; font-size: .95rem; }

/* ---------- A to Z, team ---------- */
.x-az { display: grid; gap: 28px; }
.x-az__photo { margin: 0; }
.x-az__photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--x-radius); }
.x-list { display: grid; gap: 12px; margin-top: 24px; }
.x-list li { position: relative; padding-left: 34px; font-weight: 500; }
.x-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; }
.x-list--yes li::before { background: var(--x-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.x-az__extra { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--x-line); color: var(--x-muted); font-size: .95rem; max-width: 52ch; }
.x-az__extra strong { color: var(--x-ink); }
.x-team { display: grid; gap: 28px; }
.x-team__photo { margin: 0; }
.x-team__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 20%; border-radius: var(--x-radius); }

/* ---------- Steps: a real sequence, the line fills as you scroll ---------- */
.x-flow { counter-reset: f; position: relative; display: grid; gap: 26px; margin-top: 34px; }
.x-flow::before, .x-flow::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--x-line); }
.x-flow::after { background: var(--x-accent); transform-origin: top; transform: scaleY(var(--flow, 1)); }
.x-flow li { counter-increment: f; position: relative; z-index: 1; display: grid; align-content: start; gap: 4px; padding-left: 58px; }
.x-flow__n { position: absolute; left: 0; top: -6px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--x-accent); border-radius: 50%; background: #fff; color: var(--x-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.x-flow__n::before { content: counter(f); }
.x-flow li strong { font-size: 1.08rem; letter-spacing: -.01em; }
.x-flow li > span:last-child { color: var(--x-muted); line-height: 1.45; }
.x-flow__cta { margin-top: 36px; }

/* ---------- Warranty ---------- */
.x-warranty__list { display: grid; gap: 12px; margin-top: 32px; }
.x-warranty__list li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: end; padding: 24px 22px; background: #fff; border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.x-warranty__list strong { grid-row: 1 / span 2; font: 700 clamp(4.2rem, 11vw, 6.2rem)/.82 var(--f-text); letter-spacing: -.055em; color: var(--x-accent); font-variant-numeric: tabular-nums; }
.x-warranty__unit { font-weight: 700; font-size: 1.15rem; }
.x-warranty__what { color: var(--x-muted); font-size: .95rem; line-height: 1.35; }

/* ---------- For business ---------- */
.x-biz { padding-block: clamp(64px, 9vw, 104px); background: var(--x-night); color: #fff; }
.x-biz__grid { display: grid; gap: 12px; margin-top: 30px; }
.x-biz__card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--x-radius); background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; transition: background-color .2s var(--x-ease), border-color .2s var(--x-ease); }
.x-biz__name { font: 700 1.3rem/1.2 var(--f-text); letter-spacing: -.015em; }
.x-biz__text { flex: 1; color: rgba(255, 255, 255, .76); line-height: 1.5; }
.x-biz__go { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-weight: 600; }
.x-biz__go .x-btn__ico { width: 34px; height: 34px; margin: 0; background: var(--x-accent); }
.x-biz__go .icon { width: 16px; height: 16px; stroke-width: 4; }
.x-biz__card:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
	.x-biz__card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .26); }
	.x-biz__card:hover .x-btn__ico { transform: translateX(3px); }
}

/* ---------- Service area with the map ---------- */
.x-area { display: grid; gap: 30px; }
.x-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--x-line); list-style: none; }
@media (max-width: 599px) {
	.x-map__labels text { font-size: 30px; stroke-width: 8px; }
	.x-map__city { font-size: 38px; }
	.x-map__km, .x-map__lake { font-size: 28px; }
}
.x-cities li { padding: 6px 0; font-weight: 600; font-size: .95rem; }
.x-map { margin: 0; overflow: hidden; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: #eef2f5; }
.x-map__svg { display: block; width: 100%; height: auto; }
.x-map__land { fill: #eef2f5; }
.x-map__water path { fill: #cfe0f4; }
.x-map__zone { fill: rgba(27, 91, 217, .07); }
.x-map__ring { fill: none; stroke: var(--x-accent); stroke-width: 2.5; stroke-dasharray: 10 9; opacity: .75; }
.x-map__ring--in { opacity: .35; }
.x-map__km { font: 700 22px var(--f-text); fill: var(--x-accent); }
.x-map__lake { font: 500 22px var(--f-text); fill: #5f81ad; letter-spacing: .02em; }
.x-map__dot { fill: var(--x-ink); stroke: #fff; stroke-width: 3; }
.x-map__labels text { font: 600 22px var(--f-text); fill: var(--x-ink); paint-order: stroke; stroke: #eef2f5; stroke-width: 6px; stroke-linejoin: round; }
.x-map__home { fill: var(--x-accent); stroke: #fff; stroke-width: 4; }
.x-map__pulse { fill: var(--x-accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.x-map__city { font: 700 30px var(--f-text); fill: var(--x-ink); paint-order: stroke; stroke: #eef2f5; stroke-width: 8px; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
	.x-map__pulse { animation: x-pulse 2.4s var(--x-ease) 3; }
	@keyframes x-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(3.4); opacity: 0; } }
}

/* ---------- Guide copy ---------- */
.x-guide { display: grid; gap: 26px; margin-top: 28px; }
.x-guide .x-h3 { margin: 0 0 8px; }
.x-guide p { margin: 0; color: var(--x-muted); line-height: 1.6; max-width: 62ch; }
.x-guide a { color: var(--x-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(27, 91, 217, .45); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .x-guide a:hover { color: var(--x-accent); } }

/* ---------- FAQ ---------- */
.x-faqwrap { display: grid; gap: 18px; }
.x-faq .faq__item { border-top: 1px solid var(--x-line); }
.x-faq .faq__item:last-child { border-bottom: 1px solid var(--x-line); }
.x-faq .faq__item button .icon { color: var(--x-accent); }

/* ---------- Final ---------- */
.x-final { padding-block: clamp(64px, 9vw, 104px); background: var(--x-night); color: #fff; }
.x-final .x-lead { color: rgba(255, 255, 255, .78); }
.x-final__grid { display: grid; gap: 28px; }
.x-final__call { margin: 22px 0 0; line-height: 1.9; }
.x-final__call a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.x-final__form { padding: 22px 18px 18px; background: #fff; color: var(--x-ink); border-radius: var(--x-radius); }

.mobile-bar__quote { background: var(--x-accent) !important; color: #fff !important; }

/* ---------- 600+ ---------- */
@media (min-width: 600px) {
	.x-hero__actions { display: flex; flex-wrap: wrap; }
	.x-cat { grid-template-columns: 1fr 1fr; }
	.x-cat__item--windows { grid-column: 1 / -1; }
	.x-cat__item--tile { grid-column: 1 / -1; }
}

/* ---------- 760+ ---------- */
@media (min-width: 760px) {
	.x-wrap { padding-inline: 32px; }
	.x-quote__card { padding: 26px 28px 22px; }
	.x-stats__list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
	.x-gallery { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 34px 0 0; padding: 0; overflow: visible; }
	.x-reels { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 18px 0 0; padding: 0; overflow: visible; }
	.x-az { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
	.x-az__photo { order: 2; }
	.x-team { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
	.x-warranty__list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.x-warranty__list li { grid-template-columns: 1fr; row-gap: 6px; align-items: start; padding: 28px 26px; }
	.x-warranty__list strong { grid-row: auto; margin-bottom: 10px; }
	.x-biz__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.x-guide { grid-template-columns: 1fr 1fr; gap: 36px 56px; }
	.x-offer__inner { grid-template-columns: 1fr auto; gap: 40px; }
	.x-offer .x-btn { justify-self: end; }
	.x-final__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
	.x-final__form { padding: 28px; }
}

/* ---------- 980+: the footage fills the whole stage, words on the left ---------- */
@media (min-width: 980px) {
	.x-hero__media::after { background: linear-gradient(90deg, rgba(14, 19, 23, .9) 0%, rgba(14, 19, 23, .66) 36%, rgba(14, 19, 23, .2) 66%, rgba(14, 19, 23, .06) 100%), linear-gradient(0deg, rgba(14, 19, 23, .85) 0%, rgba(14, 19, 23, 0) 32%); }
	.x-hero__inner { min-height: clamp(560px, calc(100svh - var(--header-h) - 170px), 860px); padding-block: 64px 124px; }
	.x-hero__title { font-size: clamp(3.2rem, 4.7vw, 4.6rem); max-width: 21ch; }
	.x-hero__lead { font-size: 1.18rem; }
	.x-quote { margin-top: -72px; }
	.x-quote__card { display: grid; gap: 14px; padding: 24px 28px 20px; }
	.x-quote__sub { margin-bottom: 0; }
	.x-quote__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
	.x-quote__head .x-quote__sub { margin-top: 0; }
	.x-quote .quote-form--short { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; grid-auto-flow: row dense; gap: 0 12px; }
	.x-quote .quote-form--short .quote-form__field:first-of-type { grid-column: auto; }
	.x-quote .quote-form--short .quote-form__field { margin-bottom: 8px; }
	.x-quote .quote-form--short button { grid-column: 5; align-self: end; width: auto; margin: 0 0 8px; padding: 0 28px; white-space: nowrap; }
	.x-quote .quote-form--short .quote-form__privacy { grid-column: 1 / -1; margin: 0; }
	/* Row 1: need, city, name, phone (to the right edge). Row 2: email, message, button. */
	.x-quote .quote-form--short .quote-form__field:has([name="phone"]) { grid-column: 4 / -1; }
	.x-quote .quote-form--short .quote-form__field:has([name="email"]) { grid-column: 1; }
	.x-quote .quote-form--short .quote-form__field:has(textarea) { grid-column: 2 / 5; }
	.x-head { max-width: 760px; }
	.x-head .x-lead { margin-top: 14px; }
	.x-cat { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; gap: 16px; margin-top: 40px; }
	.x-cat__item { grid-column: span 4; min-height: 330px; }
	.x-cat__item--windows { grid-column: span 7; min-height: 470px; }
	.x-cat__item--doors { grid-column: span 5; min-height: 470px; }
	.x-cat__item--tile { grid-column: span 4; }
	.x-cat__body { padding: 24px; }
	.x-cat__item--windows .x-cat__name, .x-cat__item--doors .x-cat__name { font-size: 1.7rem; }
	.x-cat__foot { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
	.x-brands { justify-content: flex-end; text-align: right; max-width: 420px; }
	.x-prices { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
	.x-pricecard { padding: 10px 32px 30px; }
	.x-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
	.x-flow::before, .x-flow::after { left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 2px; }
	.x-flow::after { transform-origin: left; transform: scaleX(var(--flow, 1)); }
	.x-flow li { padding: 60px 0 0; }
	.x-flow__n { top: 0; }
	.x-area { grid-template-columns: 5fr 7fr; grid-template-areas: "head map" "cities map"; grid-template-rows: auto 1fr; gap: 26px 56px; }
	.x-area__head { grid-area: head; }
	.x-map { grid-area: map; align-self: center; }
	.x-cities { grid-area: cities; align-self: start; }
	.x-cities { grid-template-columns: repeat(3, 1fr); }
	.x-faqwrap { grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
}

/* Wide desktop: heading beside the form row */
@media (min-width: 1180px) {
	.x-quote__card { grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; padding: 26px 28px 20px; }
	.x-quote__head { display: block; }
	.x-quote__head .x-quote__sub { margin-top: 6px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.x-cat__item img, .x-btn, .x-btn__ico, .x-cat__btn { transition: none; }
}

/* ---------- Pause buttons on looping video ---------- */
.x-vbtn { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(14, 19, 23, .55); color: #fff; cursor: pointer; transition: background-color .2s var(--x-ease), transform .16s var(--x-ease); }
.x-vbtn:active { transform: scale(.94); }
.x-vbtn .icon { width: 16px; height: 16px; stroke-width: 5; }
.x-vbtn .icon:last-child { display: none; fill: currentColor; stroke-width: 3; }
.x-vbtn.is-paused .icon:first-of-type { display: none; }
.x-vbtn.is-paused .icon:last-child { display: block; }
@media (hover: hover) and (pointer: fine) { .x-vbtn:hover { background: rgba(14, 19, 23, .8); } }
.x-hero__pause { left: 18px; top: 16px; }
.x-reel__media { position: relative; }
.x-reel__media .x-vbtn { right: 10px; bottom: 10px; }
@media (min-width: 760px) { .x-hero__pause { left: 32px; } }
@media (min-width: 980px) { .x-hero__pause { left: auto; top: auto; right: 32px; bottom: 100px; } }

/* ---------- Touch and native controls ---------- */
a, button, select, input, label { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: rgba(27, 91, 217, .14); }
.x-quote .quote-form select, .x-final .quote-form select { color: var(--x-ink); }
.x-final__hours { margin: 14px 0 0; color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* ---------- Google rating and reviews (real, quoted word for word) ---------- */
.x-stars { color: #f5b301; letter-spacing: 1px; }
.x-hero__rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: rgba(255, 255, 255, .9); font-size: .95rem; text-decoration: none; }
.x-hero__rating strong { color: #fff; }
@media (hover: hover) and (pointer: fine) { .x-hero__rating:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; } }
.x-reviews__list { display: grid; gap: 12px; margin-top: 30px; list-style: none; }
.x-reviews__list figure { display: flex; flex-direction: column; gap: 14px; height: 100%; margin: 0; padding: 24px 22px; background: #fff; border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.x-reviews__list blockquote { flex: 1; margin: 0; }
.x-reviews__list blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--x-ink); }
.x-reviews__list figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--x-line); font-size: .9rem; }
.x-reviews__list figcaption span { color: var(--x-muted); }
@media (min-width: 760px) { .x-reviews__list { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1180px) { .x-reviews__list { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .x-hero__copy > :nth-child(4) { animation-delay: .24s; } }

/* ---------- v5.2: price objection quotes, motion that explains or confirms ---------- */
.x-said { margin: 26px 0 0; padding: 18px 20px; border-left: 3px solid var(--x-accent); border-radius: 0 12px 12px 0; background: #fff; }
.x-sec--tint .x-said { background: #fff; }
.x-said blockquote { margin: 0; }
.x-said p { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.x-said figcaption { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--x-muted); font-size: .88rem; }
.x-prices__copy .x-said { background: var(--x-soft); }
/* FAQ: answers open and close instead of jumping (state indication) */
.x-faq .faq__answer { display: grid; grid-template-rows: 0fr; padding: 0; opacity: 0; transition: grid-template-rows .26s var(--x-ease), opacity .2s var(--x-ease); }
.x-faq .faq__answer > div { min-height: 0; overflow: hidden; }
.x-faq .faq__answer p { margin: 0; padding-bottom: 22px; max-width: 62ch; color: var(--x-muted); }
.x-faq .faq__item.is-open .faq__answer { grid-template-rows: 1fr; opacity: 1; }
/* Hero footage fades in over its poster once it really plays (no black flash) */
.has-motion .x-hero__clip { opacity: 0; transition: opacity .6s var(--x-ease); }
.has-motion .x-hero__clip.is-playing { opacity: 1; }
/* Press feedback on chips */
.x-chips a { transition: border-color .2s var(--x-ease), color .2s var(--x-ease), transform .16s var(--x-ease); }
.x-chips a:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
	.x-faq .faq__answer { transition: none; }
	.x-chips a { transition: none; }
}
