/* ============================================================
   Проектное бюро Жерлицына А. М. — constructors.work
   ============================================================ */

:root {
	--c-bg: #ffffff;
	--c-bg-soft: #f4f6f9;
	--c-dark: #101720;
	--c-dark-2: #182230;
	--c-text: #1d2733;
	--c-muted: #5b6c80;
	--c-muted-light: #9fb0c3;
	--c-accent: #ffc400;
	--c-accent-dark: #e6ae00;
	--c-line: #e3e9f0;
	--radius: 14px;
	--shadow: 0 10px 40px rgba(16, 23, 32, 0.10);
	--header-h: 72px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

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

a { color: inherit; }

.container {
	width: min(1160px, 100% - 48px);
	margin-inline: auto;
}

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

.btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent {
	background: var(--c-accent);
	color: #14100a;
	box-shadow: 0 6px 24px rgba(255, 196, 0, 0.35);
}
.btn--accent:hover { background: var(--c-accent-dark); }

.btn--ghost {
	border: 2px solid rgba(255, 255, 255, 0.55);
	color: #fff;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.accent { color: var(--c-accent); }

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

.header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(16, 23, 32, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: #fff;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
.header--scrolled {
	background: rgba(16, 23, 32, 0.92);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 32px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	margin-right: auto;
}
.logo__mark {
	width: 36px;
	height: 36px;
	fill: var(--c-accent);
	flex: none;
}
.logo__text {
	font-size: 12px;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}
.logo__text strong { color: #fff; font-size: 13px; }

.nav { display: flex; gap: 28px; }
.nav a {
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
	transition: color 0.15s ease;
}
.nav a:hover { color: var(--c-accent); }

.header__phone {
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	color: #fff;
	padding: 9px 20px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	transition: border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.header__phone:hover { border-color: var(--c-accent); color: var(--c-accent); }

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}
.burger span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #fff;
	overflow: hidden;
	padding-top: var(--header-h);
}

.hero__bg,
.hero__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__bg img { animation: hero-zoom 18s ease-out forwards; }

@keyframes hero-zoom {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(13, 19, 27, 0.55) 0%, rgba(13, 19, 27, 0.35) 45%, rgba(13, 19, 27, 0.82) 100%);
}

.hero__content {
	position: relative;
	z-index: 1;
	padding-block: 64px 40px;
}

.hero__kicker {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--c-accent);
}

.hero__title {
	margin: 0 0 22px;
	font-size: clamp(34px, 5.4vw, 62px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.hero__subtitle {
	margin: 0 0 36px;
	max-width: 560px;
	font-size: clamp(16px, 1.6vw, 19px);
	color: rgba(255, 255, 255, 0.88);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__stats {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding-block: 36px 48px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin-top: 48px;
}

.stat__value {
	display: block;
	font-size: 20px;
	font-weight: 800;
	color: var(--c-accent);
	margin-bottom: 6px;
}
.stat__label {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sections (shared) ---------- */

.section { padding-block: clamp(72px, 9vw, 120px); }

.section__kicker {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--c-accent-dark);
}
.section--dark .section__kicker { color: var(--c-accent); }

.section__title {
	margin: 0 0 20px;
	font-size: clamp(26px, 3.6vw, 42px);
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.section__note {
	margin: 0 0 44px;
	max-width: 640px;
	color: var(--c-muted);
}

/* ---------- About ---------- */

.about { background: var(--c-bg); }

.about__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.about__text p { color: var(--c-muted); margin: 0 0 16px; }
.about__text p:first-of-type { color: var(--c-text); font-size: 17px; }

.about__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}
.about__points li {
	padding: 24px 28px;
	background: var(--c-bg-soft);
	border-left: 4px solid var(--c-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.about__points h3 { margin: 0 0 8px; font-size: 17px; }
.about__points p { margin: 0; font-size: 14.5px; color: var(--c-muted); }

/* ---------- Services ---------- */

.section--dark {
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(255, 196, 0, 0.08), transparent 60%),
		var(--c-dark);
	color: #fff;
}

.services__grid {
	margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.service {
	padding: 30px 28px;
	background: var(--c-dark-2);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: var(--radius);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.service:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 196, 0, 0.45);
}

.service__icon {
	width: 40px;
	height: 40px;
	fill: var(--c-accent);
	margin-bottom: 18px;
}

.service h3 {
	margin: 0 0 10px;
	font-size: 17px;
	line-height: 1.35;
}
.service p {
	margin: 0;
	font-size: 14.5px;
	color: var(--c-muted-light);
}

/* ---------- Projects ---------- */

.projects { background: var(--c-bg-soft); }

.projects__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px;
}

.project {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	cursor: zoom-in;
	background: var(--c-dark);
}
.project--wide { grid-column: span 2; }

.project img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	transition: transform 0.5s ease, opacity 0.4s ease;
}
.project--wide img { height: 400px; }
.project:hover img { transform: scale(1.045); opacity: 0.85; }

.project__info {
	position: absolute;
	inset: auto 0 0 0;
	padding: 56px 28px 24px;
	background: linear-gradient(to top, rgba(10, 15, 22, 0.92) 0%, rgba(10, 15, 22, 0.55) 60%, transparent 100%);
	color: #fff;
}
.project__info h3 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.35;
}
.project__info p {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
}

.project__tag {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 12px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #14100a;
	background: var(--c-accent);
	border-radius: 999px;
}

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

.cta {
	background:
		linear-gradient(120deg, rgba(255, 196, 0, 0.14), transparent 55%),
		var(--c-dark);
	color: #fff;
	padding-block: clamp(64px, 8vw, 100px);
	text-align: center;
}
.cta h2 {
	margin: 0 0 14px;
	font-size: clamp(24px, 3.4vw, 38px);
	font-weight: 800;
}
.cta p {
	margin: 0 0 32px;
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- Contacts ---------- */

.contacts__grid {
	margin-top: 40px;
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: stretch;
}

.contacts__list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.contact__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-muted);
	margin-bottom: 6px;
}
.contact__value {
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	color: var(--c-text);
}
a.contact__value:hover { color: var(--c-accent-dark); }
.contact__value--plain { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--c-muted); }

.contacts__map {
	min-height: 380px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--c-bg-soft);
}

/* ---------- Footer ---------- */

.footer {
	background: var(--c-dark);
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	padding-block: 28px;
}
.footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}
.footer p { margin: 0; }
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: var(--c-accent); }

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 32px;
	background: rgba(8, 12, 18, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }

.lightbox__img {
	max-width: min(1400px, 100%);
	max-height: 82vh;
	border-radius: 8px;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__caption {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
	text-align: center;
	max-width: 800px;
}
.lightbox__close {
	position: absolute;
	top: 18px;
	right: 26px;
	width: 48px;
	height: 48px;
	font-size: 34px;
	line-height: 1;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
	opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }

/* ---------- Reveal on scroll ---------- */

/* Animation is opt-in: without JS (no .js on <html>) content stays visible */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero__bg img { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
	.services__grid { grid-template-columns: repeat(2, 1fr); }
	.about__grid { grid-template-columns: 1fr; }
	.hero__stats { grid-template-columns: repeat(2, 1fr); }
	.contacts__grid { grid-template-columns: 1fr; }
	.header__phone { display: none; }
}

@media (max-width: 760px) {
	.nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: rgba(16, 23, 32, 0.97);
		padding: 8px 24px 20px;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
	}
	.nav.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}
	.nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
	.nav a:last-child { border-bottom: 0; }

	.burger { display: flex; }

	.projects__grid { grid-template-columns: 1fr; }
	.project--wide { grid-column: auto; }
	.project img, .project--wide img { height: 260px; }

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

	.footer__inner { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
	.hero__stats { grid-template-columns: 1fr; gap: 18px; }
	.container { width: calc(100% - 36px); }
	.btn { width: 100%; text-align: center; }
}
