/* ==========================================================================
   Etalon Enerhoklimat v2 — "Trust & Authority"
   Navy plus a gold accent, serif headings (EB Garamond) with Source Sans 3.
   Design direction generated by the ui-ux-pro-max plugin.
   ========================================================================== */

:root {
	/* Structural navy */
	--ms-blue-900: #0e2038;
	--ms-blue-800: #17304f;
	--ms-blue-700: #1E3A5F;   /* Primary navy */
	--ms-blue-600: #2563EB;   /* Secondary — interactive blue (links, icons) */
	--ms-blue-500: #4b82ef;
	--ms-blue-100: #e4ebf4;   /* soft navy tint for backdrops */
	--ms-blue-50:  #f1f5fb;

	/* Gold accent (CTA / trust) */
	--ms-accent:      #A16207;
	--ms-accent-dark: #7f4d05;
	--ms-accent-soft: #f7edd7;

	--ms-ink:      #0F172A;
	--ms-body:     #33415a;
	--ms-muted:    #64748b;
	--ms-line:     #CBD5E1;
	--ms-white:    #ffffff;
	--ms-bg-muted: #F8FAFC;

	--ms-radius:      14px;
	--ms-radius-sm:   10px;
	--ms-radius-lg:   22px;
	--ms-shadow:      0 12px 34px rgba(15, 34, 66, .10);
	--ms-shadow-lg:   0 26px 64px rgba(15, 34, 66, .18);
	--ms-shadow-sm:   0 5px 18px rgba(15, 34, 66, .08);
	--ms-shadow-gold: 0 10px 26px rgba(161, 98, 7, .30);

	--ms-container: 1200px;
	--ms-gap:       clamp(1rem, 2.5vw, 2rem);
	--ms-section-y: clamp(3.5rem, 7vw, 6.5rem);

	/* Source Sans 3 instead of Lato: Lato has no Cyrillic, so Ukrainian text
	   fell back to a system font anyway. The families are self-hosted, see fonts.css. */
	--ms-font:      'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--ms-font-head: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--ms-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ms-body);
	background: var(--ms-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--ms-font-head); color: var(--ms-ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--ms-blue-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ms-blue-700); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.ms-skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 999;
	width: auto; height: auto; clip: auto;
	background: var(--ms-blue-700); color: #fff; padding: 10px 18px; border-radius: 8px;
}

.container {
	width: 100%;
	max-width: var(--ms-container);
	margin: 0 auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: 820px; }

/* Icons */
.ms-icon { flex: none; width: 24px; height: 24px; }

/* Section reveal — switched on by the is-inview class from JS */
.ms-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.ms-reveal.is-inview { opacity: 1; transform: none; }

/* ------------------------------- Buttons -------------------------------- */
.ms-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font: inherit; font-weight: 700; line-height: 1; letter-spacing: .01em;
	padding: .9rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; text-align: center; transition: all .2s ease;
	white-space: normal; max-width: 100%;
}
.ms-btn--lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.ms-btn--primary { background: var(--ms-accent); color: #fff; box-shadow: var(--ms-shadow-gold); }
.ms-btn--primary:hover { background: var(--ms-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(161,98,7,.40); }
.ms-btn--outline { background: transparent; color: var(--ms-blue-700); border-color: var(--ms-blue-700); }
.ms-btn--outline:hover { background: var(--ms-blue-700); color: #fff; }
.ms-btn--outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.ms-btn--outline-light:hover { background: #fff; color: var(--ms-blue-700); }

/* ------------------------------- Sections ------------------------------- */
.ms-section { padding-block: var(--ms-section-y); }
.ms-section--muted { background: var(--ms-bg-muted); }

/*
 * Blueprint background (project sketches).
 * ::before is the tiled technical grid, ::after is the large sketch in the corner.
 * z-index: -1 plus isolation: isolate keep the backdrop under the content,
 * so no z-index is needed on .container.
 */
/* overflow: hidden so the bleeding sketch (::after) never causes horizontal scroll. */
.ms-section--blueprint { position: relative; isolation: isolate; overflow: hidden; }
.ms-section--blueprint::before,
.ms-section--blueprint::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
}
/* Backdrop: tiled technical graph paper. */
.ms-section--blueprint::before {
	inset: 0;
	background: url("../img/bg/blueprint-grid.svg") repeat 0 0 / 320px 320px;
	opacity: .4;
}
.ms-section--blueprint::after {
	right: -4%; bottom: -6%; width: min(46rem, 62%); aspect-ratio: 3 / 2;
	background: no-repeat right bottom / contain;
	opacity: .13;
}
.ms-cta.ms-section--blueprint::after { background-image: url("../img/bg/blueprint-boiler.svg"); }
.ms-projects.ms-section--blueprint::after { background-image: url("../img/bg/blueprint-hvac.svg"); }

/*
 * Dark section.
 *
 * The corner sketch only reads on a dark ground: light lines on navy carry
 * their own contrast. On white the same sketch disappears entirely behind the
 * opaque cards — verified, which is why light sections keep the graph paper
 * only, with no sketch.
 *
 * The same gradient as the form section, so the two dark sections read as one
 * language. The CTA has its own rules and is not involved here.
 */
.ms-section--dark {
	background: radial-gradient(120% 120% at 85% 0%, var(--ms-blue-700) 0%, var(--ms-blue-900) 70%);
	color: #fff;
}
.ms-section--dark .ms-section__title { color: #fff; }
.ms-section--dark .ms-section__lead { color: rgba(255,255,255,.82); }
.ms-section--dark .ms-section__eyebrow { background: rgba(255,255,255,.16); color: #fff; }
/*
 * The dark CTA section (with the form) — the approved look, left untouched.
 * Its background uses a dedicated shorthand so changing the other sections cannot reach it.
 *
 * invert + grayscale yields neutral light lines on navy. Without grayscale the inversion
 * would push the navy and gold lines into a warm/blue tint.
 */
.ms-section--blueprint-dark::before {
	background: url("../img/bg/blueprint-grid.svg") repeat 0 0 / 320px 320px;
	opacity: .16;
	filter: invert(1) grayscale(1);
}
.ms-section--blueprint-dark::after { opacity: .12; filter: invert(1) grayscale(1); }
.ms-section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.ms-section__eyebrow {
	display: inline-block; font-family: var(--ms-font); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ms-accent-dark);
	background: var(--ms-accent-soft); padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1rem;
}
.ms-section__eyebrow--light { background: rgba(255,255,255,.16); color: #fff; }
.ms-section__title { font-size: clamp(1.95rem, 4vw, 3rem); }
.ms-section__lead { font-family: var(--ms-font); color: var(--ms-muted); font-size: 1.08rem; margin: 0; }

.ms-grid { display: grid; gap: var(--ms-gap); }

/* ------------------------------- Header --------------------------------- */
.ms-header { position: sticky; top: 0; z-index: 100; }
.ms-topbar { background: var(--ms-blue-900); color: #cdd8e8; font-size: .9rem; }
.ms-topbar__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .55rem; flex-wrap: wrap; }
.ms-topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: #cdd8e8; }
.ms-topbar__item .ms-icon { width: 17px; height: 17px; color: var(--ms-accent); }
.ms-topbar__phone { margin-left: auto; font-weight: 700; color: #fff; }
.ms-topbar__phone:hover { color: #fff; opacity: .85; }

.ms-navbar { background: #fff; border-bottom: 1px solid var(--ms-line); box-shadow: var(--ms-shadow-sm); }
.ms-navbar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.ms-brand__link { display: inline-flex; align-items: center; gap: .6rem; }
.ms-brand__logo { max-height: 46px; width: auto; }
/*
 * The logo mark stands without a badge: it carries a gold arm, and inside a navy square
 * both the mark and the accent would lose contrast.
 */
.ms-brand__mark { display: inline-flex; align-items: center; flex: none; }
.ms-mark { display: block; width: 40px; height: 40px; }
.ms-brand__name { font-family: var(--ms-font-head); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.15; color: var(--ms-ink); letter-spacing: -.01em; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 48px; width: auto; }

.ms-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.ms-menu { display: flex; align-items: center; gap: 1.5rem; }
.ms-menu a { color: var(--ms-ink); font-weight: 700; position: relative; padding-block: .25rem; }
.ms-menu a:hover { color: var(--ms-accent-dark); }
.ms-menu .current-menu-item > a { color: var(--ms-accent-dark); }

.ms-nav-toggle {
	display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
	margin-left: auto; padding: 10px; background: var(--ms-blue-50); border: 1px solid var(--ms-line);
	border-radius: 10px; cursor: pointer;
}
.ms-nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ms-blue-700); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.ms-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ms-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ms-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- Hero ---------------------------------- */
.ms-hero { position: relative; color: #fff; overflow: hidden; }
.ms-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ms-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ms-hero__overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(14,32,56,.94) 0%, rgba(30,58,95,.86) 48%, rgba(30,58,95,.55) 100%); }
.ms-hero__inner { position: relative; z-index: 1; padding-block: clamp(3.25rem, 7vw, 6rem); }
.ms-hero__content { max-width: 680px; }
.ms-hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(161,98,7,.22); border: 1px solid rgba(214,164,73,.5); color: #f3dca6; padding: .5rem 1rem; border-radius: 999px; font-family: var(--ms-font); font-weight: 700; font-size: .9rem; letter-spacing: .04em; margin-bottom: 1.4rem; }
.ms-hero__eyebrow .ms-icon { width: 18px; height: 18px; }
.ms-hero__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 600; letter-spacing: -.015em; margin-bottom: 1rem; }
.ms-hero__text { font-family: var(--ms-font); color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 600px; margin-bottom: 2rem; }
.ms-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.ms-hero__badges { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2.25rem; }
.ms-hero__badges li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .98rem; transition: transform .2s ease; }
.ms-hero__badges li:hover { transform: translateY(-2px); }
.ms-hero__badges .ms-icon { width: 20px; height: 20px; color: #e0b25f; }
.ms-hero__phone { display: inline-flex; align-items: center; gap: .85rem; color: #fff; }
.ms-hero__phone:hover { color: #fff; }
.ms-hero__phone .ms-icon { width: 46px; height: 46px; padding: 11px; background: rgba(161,98,7,.28); border-radius: 50%; color: #f3dca6; }
.ms-hero__phone-label { display: block; font-family: var(--ms-font); font-size: .82rem; color: rgba(255,255,255,.75); }
.ms-hero__phone-num { display: block; font-size: 1.3rem; font-weight: 700; }

/* ----------------------------- Hero slider ------------------------------ */
/* Crossfade: the hero text stays put, only the background photos change. */
.ms-hero-slider__track { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.ms-hero-slider__slide {
	position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
}
.ms-hero-slider__slide.is-active { opacity: 1; }
/* A subtle Ken Burns on the active slide only. */
.ms-hero-slider__slide img { transform: scale(1.02); transition: transform 8s ease-out; }
.ms-hero-slider__slide.is-active img { transform: scale(1.08); }

/* Caption top-right, so it does not compete with the slider controls below. */
.ms-hero-slider__caption {
	position: absolute; right: 1.5rem; top: 1.5rem; z-index: 2;
	font-family: var(--ms-font); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
	color: rgba(255,255,255,.9); background: rgba(14,32,56,.55);
	border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .4rem .9rem;
	backdrop-filter: blur(4px);
}

/*
 * On wide screens the controls move to the bottom-right of the hero so they add no
 * height to the already dense content column (otherwise the buttons fall below the
 * fold). On narrower screens they stay in flow under the content.
 */
.ms-hero-slider__nav { display: flex; align-items: center; gap: .75rem; margin-top: 2.25rem; }
@media (min-width: 901px) {
	.ms-hero-slider__nav {
		position: absolute; margin-top: 0;
		/* The offsets mirror the container padding so the buttons align with the grid. */
		right: clamp(1rem, 4vw, 2rem);
		bottom: clamp(2rem, 4vw, 3rem);
	}
}
.ms-hero-slider__arrow {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; flex: 0 0 auto; padding: 0; cursor: pointer;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
	border-radius: 50%; color: #fff; transition: background .2s ease, border-color .2s ease;
}
.ms-hero-slider__arrow:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }
/* Chevron made of borders — no extra SVG needed. */
.ms-hero-slider__chev {
	width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
[data-hero-prev] .ms-hero-slider__chev { transform: rotate(-135deg); margin-right: 2px; }
[data-hero-next] .ms-hero-slider__chev { transform: rotate(45deg); margin-left: 2px; }

.ms-hero-slider__dots { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
/* The dot itself is a pseudo-element while the button around it keeps 24×24 px:
   visually small, yet a finger still lands on it (touch target size requirement). */
.ms-hero-slider__dots button {
	display: flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; padding: 0; cursor: pointer;
	background: none; border: 0;
}
.ms-hero-slider__dots button::before {
	content: ""; display: block; width: 10px; height: 10px;
	background: rgba(255,255,255,.35); border-radius: 999px;
	transition: width .25s ease, background .25s ease;
}
.ms-hero-slider__dots button:hover::before { background: rgba(255,255,255,.6); }
.ms-hero-slider__dots button[aria-current="true"] { width: 40px; }
.ms-hero-slider__dots button[aria-current="true"]::before { width: 26px; background: var(--ms-accent); }

.ms-hero-slider__nav :focus-visible { outline: 2px solid #f3dca6; outline-offset: 3px; }

/* ------------------------------ Services -------------------------------- */
.ms-grid--services { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ms-card {
	background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius);
	padding: 2rem 1.75rem; box-shadow: var(--ms-shadow-sm);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
	display: flex; flex-direction: column;
}
.ms-card:hover { transform: translateY(-6px); box-shadow: var(--ms-shadow-lg); border-color: rgba(161,98,7,.35); }
.ms-card__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--ms-accent-soft); color: var(--ms-accent-dark); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: background .22s ease, color .22s ease; }
.ms-card__icon .ms-icon { width: 30px; height: 30px; }
.ms-card:hover .ms-card__icon { background: var(--ms-accent); color: #fff; }
.ms-card__title { font-size: 1.45rem; margin-bottom: .5rem; }
.ms-card__text { font-family: var(--ms-font); color: var(--ms-muted); font-size: .98rem; margin-bottom: 1.25rem; flex: 1; }
.ms-card__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; color: var(--ms-accent-dark); }
.ms-card__link .ms-icon { width: 18px; height: 18px; transition: transform .2s ease; }
.ms-card__link:hover { color: var(--ms-accent); }
.ms-card__link:hover .ms-icon { transform: translateX(4px); }

.ms-services__cta {
	margin-top: 2.5rem; padding: 2rem; border-radius: var(--ms-radius-lg);
	background: linear-gradient(120deg, var(--ms-accent-soft), #fbf4e4);
	border: 1px solid rgba(161,98,7,.2);
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.ms-services__cta p { margin: 0; font-weight: 700; color: var(--ms-ink); font-size: 1.08rem; font-family: var(--ms-font-head); }

/* ------------------------------ Why us ---------------------------------- */
.ms-grid--why { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ms-feature { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem; background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.ms-feature:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow); }
.ms-feature__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--ms-blue-700); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ms-feature__icon .ms-icon { width: 26px; height: 26px; }
.ms-feature__title { font-size: 1.3rem; margin-bottom: .35rem; }
.ms-feature__text { font-family: var(--ms-font); color: var(--ms-muted); font-size: .96rem; margin: 0; }

.ms-stats {
	margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem; background: linear-gradient(120deg, var(--ms-blue-800), var(--ms-blue-700));
	border-radius: var(--ms-radius-lg); padding: clamp(1.75rem, 3vw, 2.75rem); color: #fff; text-align: center;
	border: 1px solid rgba(214,164,73,.25);
}
.ms-stat__value { display: block; font-family: var(--ms-font-head); font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1; color: #f3dca6; }
.ms-stat__label { display: block; font-family: var(--ms-font); margin-top: .5rem; color: rgba(255,255,255,.85); font-size: .95rem; }

/* ------------------------------ Projects -------------------------------- */
.ms-grid--projects { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ms-project { position: relative; margin: 0; border-radius: var(--ms-radius); overflow: hidden; box-shadow: var(--ms-shadow-sm); background: #fff; }
.ms-project__media { aspect-ratio: 4/3; overflow: hidden; }
.ms-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ms-project:hover .ms-project__media img { transform: scale(1.06); }
/*
 * The scrim must stay dense in its upper part too: with real photos a bright frame
 * used to swallow the gold category label that sits above the title.
 */
.ms-project__caption { position: absolute; inset: auto 0 0 0; padding: 2.75rem 1.25rem .9rem; background: linear-gradient(0deg, rgba(14,32,56,.95) 0%, rgba(14,32,56,.82) 45%, rgba(14,32,56,.35) 78%, transparent 100%); color: #fff; display: flex; flex-direction: column; }
/*
 * A text shadow, not just the gradient: the caption height depends on the title length,
 * so the category label can end up over a bright area of the photo. The shadow keeps
 * it legible regardless of the frame and the number of lines.
 */
.ms-project__cat { font-family: var(--ms-font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #f0c778; font-weight: 700; text-shadow: 0 1px 4px rgba(14,32,56,.95), 0 0 12px rgba(14,32,56,.7); }
.ms-project__title { font-family: var(--ms-font-head); font-weight: 600; font-size: 1.25rem; text-shadow: 0 1px 4px rgba(14,32,56,.95), 0 0 12px rgba(14,32,56,.7); }

/* ------------------------------ Reviews --------------------------------- */
.ms-grid--reviews { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ms-review { position: relative; background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); padding: 2rem 1.75rem; box-shadow: var(--ms-shadow-sm); display: flex; flex-direction: column; }
.ms-review__quote { color: var(--ms-accent-soft); position: absolute; top: 1.1rem; right: 1.25rem; }
.ms-review__quote .ms-icon { width: 42px; height: 42px; }
.ms-review__text { font-family: var(--ms-font); color: var(--ms-ink); font-size: 1.05rem; margin: .75rem 0 1.5rem; flex: 1; font-style: italic; }
.ms-review__author { display: flex; align-items: center; gap: .85rem; }
.ms-review__avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
/* Monogram — used when a review has no client photo. */
.ms-review__monogram {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--ms-blue-700); color: #f3dca6;
	border: 2px solid var(--ms-accent-soft);
	font-family: var(--ms-font-head); font-size: 1.35rem; font-weight: 700; line-height: 1;
}
.ms-review__name { display: block; font-family: var(--ms-font-head); font-size: 1.15rem; font-weight: 600; color: var(--ms-ink); }
.ms-review__role { display: block; font-family: var(--ms-font); font-size: .88rem; color: var(--ms-muted); }

.ms-stars { display: inline-flex; gap: 2px; }
.ms-star { color: #dfe4ec; }
.ms-star .ms-icon { width: 18px; height: 18px; }
.ms-star--on { color: #d4a437; }

/* -------------------------------- FAQ ----------------------------------- */
.ms-accordion { display: flex; flex-direction: column; gap: .85rem; }
.ms-accordion__item { background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius-sm); box-shadow: var(--ms-shadow-sm); overflow: hidden; }
.ms-accordion__heading { margin: 0; }
.ms-accordion__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.15rem 1.4rem; background: none; border: 0; cursor: pointer;
	font: inherit; font-family: var(--ms-font-head); font-weight: 600; font-size: 1.2rem; color: var(--ms-ink); text-align: left;
}
.ms-accordion__trigger:hover { color: var(--ms-accent-dark); }
.ms-accordion__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ms-accent-soft); color: var(--ms-accent-dark); display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease, background .25s ease; }
.ms-accordion__icon .ms-icon { width: 20px; height: 20px; }
.ms-accordion__trigger[aria-expanded="true"] .ms-accordion__icon { transform: rotate(135deg); background: var(--ms-accent); color: #fff; }
.ms-accordion__panel { padding: 0 1.4rem 1.3rem; font-family: var(--ms-font); color: var(--ms-muted); }
.ms-accordion__panel p { margin: 0; }

/* -------------------------------- CTA ----------------------------------- */
.ms-cta { background: radial-gradient(120% 120% at 85% 0%, var(--ms-blue-700) 0%, var(--ms-blue-900) 70%); color: #fff; }
.ms-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ms-cta__title { color: #fff; font-size: clamp(1.95rem, 3.8vw, 2.9rem); }
.ms-cta__text { font-family: var(--ms-font); color: rgba(255,255,255,.86); font-size: 1.08rem; margin-bottom: 2rem; }
.ms-cta__contacts { display: grid; gap: 1.1rem; }
.ms-cta__contacts li { display: flex; align-items: center; gap: .9rem; }
.ms-cta__contacts .ms-icon { flex: none; width: 44px; height: 44px; padding: 10px; background: rgba(161,98,7,.28); border-radius: 12px; color: #f3dca6; }
.ms-cta__contact-label { display: block; font-family: var(--ms-font); font-size: .82rem; color: rgba(255,255,255,.7); }
.ms-cta__contacts a, .ms-cta__contacts div > span:last-child { font-family: var(--ms-font); color: #fff; font-weight: 700; }

.ms-form-card { background: #fff; color: var(--ms-body); border-radius: var(--ms-radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--ms-shadow-lg); }
.ms-form-card__title { font-family: var(--ms-font-head); color: var(--ms-ink); font-size: 1.6rem; margin-bottom: 1.25rem; }
.ms-form-card__fallback { margin: 0; font-family: var(--ms-font); color: var(--ms-muted); }

/* Contact Form 7 */
.wpcf7 { margin: 0; }
.wpcf7 label { display: block; font-weight: 700; color: var(--ms-ink); font-size: .95rem; margin-bottom: 1rem; }
.wpcf7 .ms-field-label { display: block; margin-bottom: .35rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="tel"], .wpcf7 input[type="email"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ms-ink);
	padding: .8rem 1rem; border: 1.5px solid var(--ms-line); border-radius: var(--ms-radius-sm);
	background: var(--ms-blue-50); transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--ms-accent); box-shadow: 0 0 0 3px rgba(161,98,7,.18); background: #fff; }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] {
	width: 100%; font: inherit; font-weight: 700; font-size: 1.02rem; color: #fff;
	background: var(--ms-accent); border: 0; border-radius: 999px; padding: 1rem 1.5rem;
	cursor: pointer; margin-top: .5rem; transition: background .2s ease, transform .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--ms-accent-dark); transform: translateY(-2px); }
.wpcf7-not-valid-tip { color: #d33; font-size: .85rem; font-weight: 500; }
.wpcf7 .wpcf7-response-output { border-radius: var(--ms-radius-sm); padding: .85rem 1.1rem !important; margin: 1rem 0 0 !important; font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #27ae60 !important; background: #eafaf1; color: #1e7d47; }

/* ------------------------------- Footer --------------------------------- */
.ms-footer { background: var(--ms-blue-900); color: #b7c5da; }
.ms-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4rem); }
/*
 * Mark inversion for the dark footer — the same SVG, only the variables are redefined.
 * A lighter gold (#e0b25f) is used because #A16207 reads muddy on navy.
 */
.ms-footer__brand {
	display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
	--ms-mark-main: #ffffff;
	--ms-mark-accent: #e0b25f;
}
.ms-footer__name { font-family: var(--ms-font-head); font-size: 1.45rem; font-weight: 600; color: #fff; }
/* Slightly taller than the header's 46px — the footer has more room to breathe. */
.ms-footer__logo { max-height: 52px; width: auto; }
.ms-footer__tagline { font-family: var(--ms-font); color: #93a6c1; max-width: 340px; }
.ms-footer__title { font-family: var(--ms-font-head); color: #fff; font-size: 1.2rem; margin-bottom: 1.1rem; }
.ms-footer__list li, .ms-footer__contacts li { margin-bottom: .7rem; font-family: var(--ms-font); }
.ms-footer__list a { color: #b7c5da; }
.ms-footer__list a:hover { color: #e0b25f; }
.ms-footer__contacts li { display: flex; align-items: center; gap: .6rem; }
.ms-footer__contacts .ms-icon { width: 20px; height: 20px; color: var(--ms-accent); flex: none; }
.ms-footer__contacts a { color: #dbe4f2; }
.ms-socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.ms-socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease; }
.ms-socials a:hover { background: var(--ms-accent); }
.ms-socials .ms-icon { width: 20px; height: 20px; }
.ms-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.ms-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; font-family: var(--ms-font); font-size: .9rem; color: #8ca1c0; }
.ms-footer__bottom-inner p { margin: 0; }

/* Floating call button (mobile) */
.ms-fab { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--ms-accent); color: #fff; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(161,98,7,.5); animation: ms-pulse 2.2s infinite; }
.ms-fab:hover { color: #fff; background: var(--ms-accent-dark); }
@keyframes ms-pulse { 0%,100% { box-shadow: 0 10px 24px rgba(161,98,7,.5); } 50% { box-shadow: 0 10px 24px rgba(161,98,7,.5), 0 0 0 12px rgba(161,98,7,.12); } }

/* Regular pages / 404 */
.ms-entry { max-width: 820px; margin: 0 auto; }
.ms-404 { text-align: center; max-width: 640px; margin: 0 auto; }
.ms-404__code { display: block; font-family: var(--ms-font-head); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--ms-accent-soft); line-height: 1; }
.ms-404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.ms-empty { text-align: center; font-family: var(--ms-font); color: var(--ms-muted); padding: 2rem; }

/* Archive pagination (appears only when there are more posts than the page limit) */
.pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 .75rem;
	font-family: var(--ms-font); font-weight: 700; text-decoration: none;
	color: var(--ms-ink); background: #fff;
	border: 1px solid var(--ms-line, #cbd5e1); border-radius: 8px;
}
.pagination .page-numbers:hover { border-color: var(--ms-accent); color: var(--ms-accent); }
.pagination .page-numbers.current { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }
.ms-section--dark .pagination .page-numbers { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.ms-section--dark .pagination .page-numbers.current { background: var(--ms-accent); border-color: var(--ms-accent); }

/* "Show all" button under a front-page section */
.ms-section__more { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.ms-section__more .ms-btn { display: inline-flex; align-items: center; gap: .55rem; }
.ms-section__more .ms-btn .ms-icon { width: 18px; height: 18px; transition: transform .18s ease; }
.ms-section__more .ms-btn:hover .ms-icon { transform: translateX(3px); }

/* The project card became a link — remove the default underline */
.ms-project__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.ms-project__link:hover .ms-project__title { color: #f0c778; }

/* ------------------------- Service pages -------------------------------- */
.ms-service-hero { background: var(--ms-blue-900); color: #fff; }
.ms-service-hero .ms-section__title,
.ms-service-hero__title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 .75rem; }
.ms-service-hero__text { font-family: var(--ms-font); color: rgba(255,255,255,.88); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 62ch; margin: 0; }
.ms-service-hero__inner { display: flex; gap: 1.75rem; align-items: flex-start; }
.ms-service-hero__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 16px; background: rgba(161,98,7,.22); border: 1px solid rgba(214,164,73,.5); color: #f0c778; }
.ms-service-hero__icon .ms-icon { width: 36px; height: 36px; }
.ms-service-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.ms-service-hero__actions .ms-btn { display: inline-flex; align-items: center; gap: .5rem; }

.ms-breadcrumbs { font-family: var(--ms-font); font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.ms-breadcrumbs a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: .2em; }
.ms-breadcrumbs a:hover { color: #f0c778; }

.ms-service-body__figure { margin: 0 0 2rem; border-radius: var(--ms-radius, 12px); overflow: hidden; }
.ms-service-body__figure img { display: block; width: 100%; height: auto; }
.ms-service-body .ms-entry__content { font-family: var(--ms-font); font-size: 1.05rem; line-height: 1.75; }
.ms-service-body .ms-entry__content > * + * { margin-top: 1.15rem; }
.ms-service-body .ms-entry__content h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 2.5rem; }
.ms-service-body .ms-entry__content h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); margin-top: 1.9rem; }
/* Restore list markers: the global ul { list-style: none } is needed for menus
   and grids, but inside article copy lists should look like lists. */
.ms-service-body .ms-entry__content ul,
.ms-service-body .ms-entry__content ol { padding-left: 1.4rem; list-style: revert; }
.ms-service-body .ms-entry__content ul { list-style-type: disc; }
.ms-service-body .ms-entry__content li { margin-left: .2rem; }
.ms-service-body .ms-entry__content li::marker { color: var(--ms-accent); }
.ms-service-body .ms-entry__content li + li { margin-top: .5rem; }

.ms-service-hero + .ms-service-body { padding-top: clamp(2.5rem, 5vw, 4rem); }

@media (max-width: 700px) {
	.ms-service-hero__inner { flex-direction: column; gap: 1.15rem; }
	.ms-service-hero__icon { width: 56px; height: 56px; }
	.ms-service-hero__icon .ms-icon { width: 28px; height: 28px; }
}

/* ---------------------------- Responsive -------------------------------- */
@media (max-width: 900px) {
	.ms-footer__grid { grid-template-columns: 1fr 1fr; }
	.ms-cta__grid { grid-template-columns: 1fr; }
	.ms-cta__info { order: 2; }
}

@media (max-width: 782px) {
	.ms-nav-toggle { display: flex; }
	.ms-nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
		flex-direction: column; align-items: stretch; gap: 1rem;
		background: #fff; padding: 5.5rem 1.75rem 2rem; margin: 0;
		box-shadow: -10px 0 40px rgba(15,34,66,.18);
		transform: translateX(100%); transition: transform .3s ease; z-index: 105;
	}
	.ms-nav.is-open { transform: translateX(0); }
	.ms-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ms-menu li { border-bottom: 1px solid var(--ms-line); }
	.ms-menu a { display: block; padding: .9rem 0; }
	.ms-nav__cta { margin-top: 1rem; }
	body.ms-nav-open { overflow: hidden; }
	body.ms-nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(14,32,56,.5); z-index: 99; }
	.ms-fab { display: inline-flex; }
	.ms-topbar__address { display: none; }
	/* On narrow screens the corner sketch survives only in dark sections,
	   where it reads; on light ones it is invisible behind the cards anyway. */
	.ms-section--blueprint:not(.ms-section--blueprint-dark)::after { display: none; }
	/*
	 * A finer grid and a weaker line on narrow screens.
	 * :not(--dark) keeps the rule off the dark sections: they have their own
	 * opacity, which must stay the same on mobile as on desktop.
	 */
	.ms-section--blueprint:not(.ms-section--blueprint-dark)::before {
		background-size: 220px 220px;
		opacity: .35;
	}
}

/* Sliders on mobile */
@media (max-width: 782px) {
	.ms-slider {
		display: flex; flex-wrap: nowrap;
		grid-template-columns: none;
		overflow-x: auto; overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 1rem;
		padding: .5rem .25rem 1.25rem;
		margin-inline: -.25rem;
		scrollbar-width: none;
	}
	.ms-slider::-webkit-scrollbar { display: none; }
	.ms-slider > * {
		flex: 0 0 84%;
		scroll-snap-align: center;
		min-width: 0;
	}
	.ms-grid--reviews.ms-slider > * { flex-basis: 88%; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.ms-topbar__inner { justify-content: center; }
	.ms-topbar__hours { display: none; }
	.ms-topbar__phone { margin-left: 0; }
	.ms-hero__actions .ms-btn { width: 100%; }
	.ms-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
	.ms-services__cta { flex-direction: column; align-items: flex-start; text-align: left; }
	.ms-services__cta .ms-btn { width: 100%; }
	.ms-hero-slider__caption { display: none; }
}

/* Narrowest screens: keep only the brand mark in the header. */
@media (max-width: 400px) {
	.ms-brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
	.ms-reveal { opacity: 1 !important; transform: none !important; }
	/* No Ken Burns — the slide is shown without scaling. */
	.ms-hero-slider__slide img,
	.ms-hero-slider__slide.is-active img { transform: none !important; }
}
