/* ==========================================================================
   RemontKvartir.md, the one front-end stylesheet.
   Signal Steel brand system, locked 2026-07-16 from the approved concept.

   Table of contents
   1  Tokens (brand + semantic)
   2  Dark mode overrides
   3  Base and reset
   4  Typography and the emphasis device
   5  Layout: container, sections, eyebrow, patterns
   6  Buttons
   7  Badges
   8  Cards
   9  Header (minimal Phase 1 state)
   10 Hero
   11 Stats band
   12 Process steps
   13 Works gallery
   14 Price plans
   15 Reviews
   16 FAQ
   17 Dark punctuation band
   18 Footer and prefs pill
   19 Utilities
   20 Responsive
   ========================================================================== */

/* 1 Tokens
   Brand tokens NEVER flip in dark mode. Semantic tokens are the only
   thing the dark override touches. Components reference tokens only. */
:root {
	color-scheme: light dark;

	/* brand, locked */
	--orange: #D24310;
	--orange-deep: #B93D0E;
	--orange-bright: #FF7A45; /* dark-mode links, icons, emphasis ONLY, never a button fill under white text */
	--steel: #3E5A72;
	--graphite: #161B21;
	--gold: #F2A213; /* rating stars only, both modes */

	/* fonts */
	--font-head: 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* semantic, light */
	--bg: #F4F5F6;
	--bg-soft: #ECEEF1;
	--paper: #FFFFFF;
	--ink: #20262D;
	--ink-2: #49525C;
	--muted: #6B7280;
	--line: #DDE1E6;
	--em-color: var(--orange);
	--link: var(--orange-deep);
	--grid-line: rgba(62, 90, 114, 0.10);

	/* geometry, machined */
	--radius: 4px;
	--container: 1240px;
	--shadow: 0 6px 24px rgba(22, 27, 33, 0.07);
	--ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* 2 Dark mode. JS resolves "auto", so one attribute block is enough. */
[data-theme='dark'] {
	--bg: #14181D;
	--bg-soft: #101418;
	--paper: #1B2129;
	--ink: #E9ECEF;
	--ink-2: #C4CAD1;
	--muted: #8B939E;
	--line: #2A313A;
	--em-color: var(--orange-bright);
	--link: var(--orange-bright);
	--grid-line: rgba(139, 163, 184, 0.07);
}

/* No-JS fallback only. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #14181D;
		--bg-soft: #101418;
		--paper: #1B2129;
		--ink: #E9ECEF;
		--ink-2: #C4CAD1;
		--muted: #8B939E;
		--line: #2A313A;
		--em-color: var(--orange-bright);
		--link: var(--orange-bright);
		--grid-line: rgba(139, 163, 184, 0.07);
	}
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--em-color);
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--paper);
	color: var(--ink);
	padding: 10px 16px;
	z-index: 100;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* 4 Typography */
h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(30px, 4.4vw, 48px);
}

h2 {
	font-size: clamp(24px, 3.2vw, 36px);
}

h3 {
	font-size: 19px;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

/* The emphasis device: a steel corner bracket on ONE key word per
   heading, like an angle-iron profile. Never more than one per heading. */
.em {
	position: relative;
	display: inline-block;
	padding: 0.16em 0 0 0.3em;
}

.em::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0.52em;
	height: 0.52em;
	border-top: 4px solid var(--em-color);
	border-left: 4px solid var(--em-color);
}

/* 5 Layout */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: clamp(56px, 8vw, 116px) 0;
}

.section--alt {
	background: var(--bg-soft);
}

.section__head {
	max-width: 660px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section__lead {
	color: var(--ink-2);
	font-size: 17px;
}

.section__cta {
	margin-top: clamp(24px, 3vw, 40px);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--em-color);
}

.eyebrow::before {
	content: '';
	width: 26px;
	height: 3px;
	background: var(--em-color);
}

/* Patterns: blueprint grid on selected sections, hazard stripe divider.
   Pure CSS, token-driven, works in both modes. */
.pattern-grid {
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 44px 44px;
}

.stripe-accent {
	height: 8px;
	background: repeating-linear-gradient(
		-45deg,
		var(--orange) 0 12px,
		transparent 12px 26px
	);
	opacity: 0.85;
}

/* 6 Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 24px;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* Primary keeps the brand orange fill in BOTH modes (white text passes
   AA on #D24310, never on the bright dark-mode orange). */
.btn--primary {
	background: var(--orange);
	color: #fff;
}

.btn--primary:hover {
	background: var(--orange-deep);
	color: #fff;
	transform: translateY(-1px);
}

.btn--ghost {
	border: 2px solid var(--em-color);
	color: var(--em-color);
	padding: 12px 22px;
	background: transparent;
}

.btn--ghost:hover {
	background: var(--em-color);
	color: var(--bg);
}

.btn__arrow {
	transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow,
.card__link:hover .btn__arrow {
	transform: translateX(4px);
}

/* 7 Badges */
.badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 26px 0 0;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ink) 6%, transparent);
	font-size: 14px;
	font-weight: 600;
}

.badge .icon {
	color: var(--em-color);
}

/* Google rating proof chip, linked to the Business Profile */
.gproof {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 16px;
	padding: 10px 18px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 600;
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.gproof:hover {
	border-color: var(--em-color);
	color: var(--ink);
	transform: translateY(-1px);
}

.gproof strong {
	font-family: var(--font-head);
	font-size: 16.5px;
	font-weight: 800;
}

.gproof__g {
	font-size: 18px;
}

.gproof__stars {
	display: inline-flex;
	gap: 2px;
	color: var(--gold);
	font-size: 14px;
}

.gproof__count {
	color: var(--ink-2);
}

.gproof__arrow {
	color: var(--em-color);
	transition: transform 0.2s var(--ease);
}

.gproof:hover .gproof__arrow {
	transform: translateX(4px);
}

.gproof--panel {
	border-radius: var(--radius);
	padding: 13px 20px;
	font-size: 15px;
}

/* 8 Cards */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}

.card p {
	color: var(--ink-2);
	font-size: 15px;
	flex: 1;
}

.card__icon {
	display: inline-flex;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--orange) 10%, transparent);
	color: var(--em-color);
	font-size: 22px;
	margin-bottom: 16px;
}

.card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	color: var(--link);
}

/* 9 Header, minimal Phase 1 state (full nav lands in Phase 2) */
.site-head {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.site-head__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}

.brand {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 20px;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}

.brand__md {
	background: var(--orange);
	color: #fff;
	border-radius: 2px;
	padding: 1px 5px;
	margin-left: 4px;
	font-size: 0.82em;
	vertical-align: 2px;
}

.site-head__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	color: var(--em-color);
}

/* 10 Hero: split layout, real object photo with bracket frame */
.hero {
	padding: clamp(44px, 6vw, 96px) 0;
}

.hero__grid {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	gap: clamp(28px, 4.5vw, 64px);
	align-items: center;
}

.hero__title {
	margin-bottom: 18px;
}

.hero__lead {
	max-width: 58ch;
	font-size: 17px;
	color: var(--ink-2);
	margin-bottom: 26px;
}

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__figure {
	position: relative;
	margin: 0;
}

.hero__figure img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* echo of the emphasis device, oversized */
.hero__figure::before {
	content: '';
	position: absolute;
	top: -14px;
	left: -14px;
	width: 72px;
	height: 72px;
	border-top: 6px solid var(--orange);
	border-left: 6px solid var(--orange);
}

.hero__figure::after {
	content: '';
	position: absolute;
	bottom: -14px;
	right: -14px;
	width: 72px;
	height: 72px;
	border-bottom: 6px solid var(--steel);
	border-right: 6px solid var(--steel);
}

.hero__tag {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--graphite);
	color: #E9ECEF;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: var(--radius);
}

.hero__tag .icon {
	color: var(--orange-bright);
}

/* 11 Stats band */
.stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.stat {
	background: var(--paper);
	border: 1px solid var(--line);
	border-left: 4px solid var(--orange);
	border-radius: var(--radius);
	padding: 22px 24px;
}

.stat__value {
	display: block;
	font-family: var(--font-head);
	font-size: clamp(30px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.05;
}

.stat__label {
	color: var(--ink-2);
	font-size: 14.5px;
}

/* 12 Process steps */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	counter-reset: step;
}

.step {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}

.step__num {
	position: relative;
	display: inline-block;
	font-family: var(--font-head);
	font-size: 34px;
	font-weight: 800;
	color: var(--em-color);
	padding: 6px 0 0 10px;
	margin-bottom: 10px;
}

.step__num::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border-top: 4px solid var(--steel);
	border-left: 4px solid var(--steel);
}

.step p {
	color: var(--ink-2);
	font-size: 14.5px;
	margin: 0;
}

/* 13 Works gallery */
.works {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.work {
	position: relative;
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.work img {
	width: 100%;
	transition: transform 0.35s var(--ease);
}

.work:hover img {
	transform: scale(1.03);
}

.work figcaption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 34px 16px 14px;
	background: linear-gradient(transparent, rgba(22, 27, 33, 0.82));
	color: #E9ECEF;
	font-size: 14.5px;
	font-weight: 600;
}

/* 14 Price plans */
.plans {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.plan {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
	display: flex;
	flex-direction: column;
}

.plan--featured {
	border-top: 4px solid var(--orange);
}

.plan__name {
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}

.plan__price {
	font-family: var(--font-head);
	font-size: 26px;
	font-weight: 800;
	margin: 0;
}

.plan__price span {
	display: block;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}

.plan__materials {
	color: var(--ink-2);
	font-size: 14px;
	margin: 6px 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.plan__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

.plan__list li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 14.5px;
	color: var(--ink-2);
}

.plan__list .icon {
	color: var(--em-color);
	margin-top: 3px;
}

.plans__note {
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 14px;
	max-width: 72ch;
}

/* 15 Reviews */
.reviews {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.review {
	margin: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}

.review__mark {
	color: var(--em-color);
	font-size: 26px;
	margin-bottom: 10px;
}

.review p {
	color: var(--ink-2);
	font-size: 15px;
	flex: 1;
}

.review footer {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.review cite {
	font-style: normal;
	font-weight: 700;
	font-family: var(--font-head);
}

.review footer span {
	color: var(--muted);
	font-size: 13.5px;
}

/* 16 FAQ */
.faq {
	max-width: 800px;
	display: grid;
	gap: 10px;
}

.faq__item {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0 20px;
}

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	list-style: none;
	cursor: pointer;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 16.5px;
	padding: 17px 0;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__chevron {
	color: var(--em-color);
	transform: rotate(90deg);
	transition: transform 0.2s var(--ease);
	font-size: 18px;
}

.faq__item[open] .faq__chevron {
	transform: rotate(-90deg);
}

.faq__item p {
	color: var(--ink-2);
	font-size: 15px;
	padding-bottom: 18px;
	margin: 0;
}

/* 17 Dark punctuation band: stays graphite in BOTH modes, so it
   locally redefines the semantic tokens it uses. Riveted steel look. */
.band-dark {
	background-color: var(--graphite);
	background-image: radial-gradient(rgba(233, 236, 239, 0.06) 1.5px, transparent 1.5px);
	background-size: 26px 26px;
	--ink: #E9ECEF;
	--ink-2: #C4CAD1;
	--em-color: var(--orange-bright);
	color: var(--ink);
	padding: clamp(48px, 7vw, 96px) 0;
}

.band-dark h2 {
	color: var(--ink);
}

.band-dark__lead {
	color: var(--ink-2);
	max-width: 52ch;
	margin: 0;
}

.band-dark__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

/* 18 Footer */
.site-foot {
	background: var(--paper);
	border-top: 1px solid var(--line);
	padding: 22px 0;
}

.site-foot__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.site-foot__legal {
	margin: 0;
	font-size: 13.5px;
	color: var(--muted);
}

.site-foot__legal a {
	color: inherit;
}

.site-foot__sep {
	margin: 0 6px;
}

.prefs {
	display: inline-flex;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.prefs__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: transparent;
	color: var(--muted);
	font: 600 13px var(--font-body);
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
}

.prefs__btn[aria-pressed='true'] {
	background: color-mix(in srgb, var(--ink) 8%, transparent);
	color: var(--ink);
}

/* 19 Utilities */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* 20 Responsive */
@media (max-width: 1000px) {
	.cards,
	.plans {
		grid-template-columns: repeat(2, 1fr);
	}

	.steps,
	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.works {
		grid-template-columns: repeat(2, 1fr);
	}

	.reviews {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 820px) {
	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero__figure {
		order: -1;
		max-width: 560px;
	}

	.band-dark__row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.site-head__phone span {
		display: none;
	}

	.site-head__phone .icon {
		font-size: 22px;
	}

	.hero__ctas .btn {
		width: 100%;
		justify-content: center;
	}

	.cards,
	.plans,
	.steps,
	.stats,
	.works {
		grid-template-columns: 1fr;
	}
}
