/* Демо-лендинг «СтройМонтаж» - песочница для агента поддержки.
   Типовой стек: чистый HTML/CSS, без сборщика и фреймворков. */

:root {
	--brand: #1f5c8b;
	--brand-dark: #16405f;
	--accent: #e8862a;
	--ink: #23282d;
	--muted: #6b7280;
	--line: #e3e6ea;
	--bg-soft: #f6f8fa;
	--radius: 6px;
	--maxw: 1120px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
}

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Шапка --- */
.site-header {
	border-bottom: 1px solid var(--line);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 10;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: 20px;
}
.logo {
	font-size: 20px;
	font-weight: 700;
	color: var(--brand);
	text-decoration: none;
	white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}
.nav a {
	color: var(--ink);
	text-decoration: none;
	font-size: 15px;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand); }
.nav a.active {
	color: var(--brand);
	border-bottom-color: var(--accent);
}

.header-phone {
	font-weight: 600;
	color: var(--brand-dark);
	text-decoration: none;
	white-space: nowrap;
}

/* --- Герой --- */
.hero {
	background: linear-gradient(180deg, var(--bg-soft), #fff);
	padding: 64px 0 56px;
	border-bottom: 1px solid var(--line);
}
.hero h1 {
	margin: 0 0 14px;
	font-size: 40px;
	line-height: 1.15;
	max-width: 720px;
}
.hero p.lead {
	font-size: 19px;
	color: var(--muted);
	max-width: 620px;
	margin: 0 0 28px;
}

.btn {
	display: inline-block;
	padding: 13px 26px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	border-radius: var(--radius);
	font-weight: 600;
	border: none;
	cursor: pointer;
}
.btn:hover { background: #d1741f; }
.btn-ghost {
	background: transparent;
	color: var(--brand);
	border: 1px solid var(--brand);
	margin-left: 10px;
}
.btn-ghost:hover { background: var(--bg-soft); }

/* --- Секции --- */
section { padding: 56px 0; }
section h2 {
	font-size: 30px;
	margin: 0 0 10px;
}
section > .wrap > p.section-lead {
	color: var(--muted);
	margin: 0 0 34px;
	max-width: 640px;
}
.section-soft { background: var(--bg-soft); }

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}
.card h3 {
	margin: 0 0 8px;
	font-size: 18px;
}
.card p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}
.card .price {
	display: block;
	margin-top: 14px;
	font-weight: 700;
	color: var(--brand-dark);
	font-size: 17px;
}

/* --- Галерея ---
   ВНИМАНИЕ: изображения здесь сознательно НЕ оптимизированы и БЕЗ alt.
   Это исходное состояние песочницы для сценария 3 ТЗ. */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}
.gallery figure {
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-soft);
}
.gallery img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.gallery figcaption {
	padding: 10px 14px;
	font-size: 14px;
	color: var(--muted);
}

/* --- FAQ --- */
.faq-list {
	max-width: 780px;
}
.faq-item {
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
	margin: 0 0 8px;
	font-size: 17px;
	color: var(--brand-dark);
}
.faq-item p {
	margin: 0;
	color: var(--muted);
}

/* --- Контакты --- */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}
.contact-block dt {
	font-weight: 600;
	margin-top: 16px;
}
.contact-block dd {
	margin: 4px 0 0;
	color: var(--muted);
}
.contact-block dt:first-child { margin-top: 0; }

/* --- Подвал ---
   Телефон и адрес продублированы на ВСЕХ страницах - это цель сценария 1. */
.site-footer {
	background: var(--ink);
	color: #cfd4d9;
	padding: 44px 0 28px;
	font-size: 15px;
}
.site-footer a { color: #fff; }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	margin-bottom: 28px;
}
.site-footer h4 {
	margin: 0 0 12px;
	font-size: 15px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-footer li { margin-bottom: 7px; }
.footer-phone {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 6px;
}
.footer-address {
	margin: 0;
	line-height: 1.5;
}
.footer-bottom {
	border-top: 1px solid #3a4046;
	padding-top: 18px;
	font-size: 13px;
	color: #8a9299;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

@media (max-width: 720px) {
	.site-header .wrap { flex-wrap: wrap; min-height: 0; padding: 12px 20px; }
	.hero h1 { font-size: 30px; }
	.btn-ghost { margin-left: 0; margin-top: 10px; }
}
