/*
Theme Name: Bryansk Snab Layout
Theme URI: http://sklad82.ru
Author: Local Dev
Description: Кастомная тема под структуру и стиль bryansk-snab.ru для проекта «Чистенькое».
Version: 1.0.0
Text Domain: bryansk-snab
*/

:root {
	--bg: #0f172a;
	--bg-soft: #111827;
	--text: #0b1220;
	--muted: #64748b;
	--brand: #f97316;
	--brand-dark: #ea580c;
	--light: #f8fafc;
	--border: #e2e8f0;
	--shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

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

body {
	margin: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text);
	background: #fff;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.container {
	width: min(1200px, 92vw);
	margin: 0 auto;
}

.topbar {
	background: var(--bg);
	color: #e2e8f0;
	font-size: 13px;
}

.topbar-inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	flex-wrap: wrap;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: #fff;
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	gap: 20px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo strong {
	font-size: 20px;
	letter-spacing: 0.4px;
}

.logo span {
	font-size: 12px;
	color: var(--muted);
}

.logo-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.logo-mark {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
}

.header-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	font-size: 14px;
	color: var(--muted);
}

.header-contacts a {
	color: inherit;
}

.header-phone {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--text);
}

.header-email {
	font-size: 13px;
}

.nav {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--muted);
}

.nav a:hover {
	color: var(--brand);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 8px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: 0.2s ease;
}

.btn-primary {
	background: var(--brand);
	color: #fff;
}

.btn-primary:hover {
	background: var(--brand-dark);
}

.btn-outline {
	border-color: var(--border);
	color: var(--text);
	background: #fff;
}

.hero {
	position: relative;
	overflow: hidden;
	color: #fff;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("http://sklad82.ru/wp-content/uploads/2026/02/2026-02-01_21-52-45.png")
		center/cover no-repeat;
	filter: blur(4px);
	transform: scale(1.02);
	z-index: 0;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.35));
	z-index: 1;
}

.hero-inner {
	position: relative;
	z-index: 2;
	padding: 90px 0 80px;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 28px;
	align-items: center;
}

.hero h1 {
	font-size: clamp(30px, 3.2vw, 48px);
	margin-bottom: 12px;
}

.hero p {
	color: #cbd5f5;
	margin-bottom: 20px;
}

.hero .stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.hero-stats {
	grid-column: 1 / -1;
	margin-top: 12px;
}


.crumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #cbd5f5;
	margin-bottom: 12px;
}

.crumbs span {
	opacity: 0.7;
}

.hero-card {
	background: rgba(15, 23, 42, 0.5);
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 16px;
	padding: 24px;
	display: grid;
	gap: 12px;
}

.hero-metric {
	font-size: 32px;
	font-weight: 700;
	margin: 0;
}

.stat {
	background: rgba(15, 23, 42, 0.5);
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 12px;
	padding: 14px;
}

.stat strong {
	display: block;
	font-size: 20px;
}

.section {
	padding: 56px 0;
}

.section:first-of-type {
	padding-top: 40px;
}

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

.section h2 {
	font-size: clamp(24px, 2.3vw, 36px);
	margin-bottom: 12px;
}

.section p.lead {
	color: var(--muted);
	max-width: 780px;
}

.grid {
	display: grid;
	gap: 18px;
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
	align-items: center;
}

.media-card {
	padding: 0;
	overflow: hidden;
}

.media-card img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 20px;
	box-shadow: var(--shadow);
}

.advantage-card {
	position: relative;
	color: var(--text);
	min-height: 170px;
	display: grid;
	gap: 14px;
	font-weight: 600;
	overflow: hidden;
	padding: 20px;
	background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(241, 245, 249, 0.95));
}

.advantage-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.15), transparent 60%);
	z-index: 0;
}

.advantage-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.06));
	z-index: 1;
}

.advantage-card {
	text-shadow: none;
}

.advantage-card > * {
	position: relative;
	z-index: 2;
}

.advantage-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(249, 115, 22, 0.12);
	color: var(--brand);
}

.advantage-icon svg {
	width: 24px;
	height: 24px;
}

.advantage-text {
	font-size: 15px;
	line-height: 1.4;
}

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

.list li {
	padding-left: 20px;
	position: relative;
}

.list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--brand);
}

.table {
	display: grid;
	gap: 12px;
}

.table-row {
	display: grid;
	grid-template-columns: minmax(180px, 260px) 1fr;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
}

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

.plan-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
	display: grid;
	grid-template-rows: auto auto 1fr auto;
}

.plan-card__head {
	padding: 16px 18px 10px;
}

.plan-card__label {
	font-size: 13px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 6px;
}

.plan-card h3 {
	margin: 0;
	font-size: 16px;
}

.plan-card__image {
	position: relative;
	padding-top: 58%;
	overflow: hidden;
}

.plan-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.plan-card__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 16px 18px 18px;
	border-top: 1px solid var(--border);
}

.plan-card__title {
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.plan-card__value {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px;
}

.plan-card__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 6px;
	color: var(--text);
	font-size: 14px;
}

.plan-card__note {
	margin: 10px 0 0;
	font-weight: 700;
	color: #b42318;
	font-size: 13px;
}

.plan-card__cta {
	display: block;
	text-align: center;
	padding: 12px 16px;
	background: #b42318;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.plan-card__cta:hover {
	filter: brightness(0.95);
}

@media (max-width: 768px) {
	.plan-card__body {
		grid-template-columns: 1fr;
	}
}

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

.summary-box {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 12px;
}

.summary-box.highlight {
	background: var(--bg);
	color: #e2e8f0;
}

.cta-box {
	background: var(--bg);
	color: #e2e8f0;
	padding: 28px;
	border-radius: 16px;
	display: grid;
	gap: 12px;
}

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

.gallery-large {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery .thumb {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	overflow: hidden;
	padding: 0;
	aspect-ratio: 4 / 3;
}

.gallery .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-item {
	background: transparent;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.8);
	z-index: 999;
	padding: 24px;
}

.lightbox.is-open {
	display: flex;
}

.lightbox-image {
	max-width: min(100%, 1100px);
	max-height: min(90vh, 720px);
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: #fff;
	border: none;
	border-radius: 999px;
	width: 40px;
	height: 40px;
	font-size: 24px;
	cursor: pointer;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border: none;
	border-radius: 999px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	cursor: pointer;
}

.lightbox-nav.prev {
	left: 20px;
}

.lightbox-nav.next {
	right: 20px;
}

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

.map-embed {
	margin-top: 24px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.map-embed iframe {
	width: 100%;
	height: 360px;
	border: 0;
	display: block;
}

.map-section {
	background: #f8fafc;
	padding-bottom: 0;
}

.map-section__embed {
	margin-top: 20px;
	height: 400px;
}

.map-section__embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.contacts-section {
	position: relative;
	overflow: hidden;
	background: url("https://staticmap.openstreetmap.de/staticmap.php?center=44.948,34.135&zoom=12&size=1200x600&maptype=mapnik&markers=44.948,34.135,red-pushpin")
		center/cover no-repeat;
}

.contacts-section::before {
	content: "";
	position: absolute;
	inset: 0;
	filter: saturate(0.95);
	z-index: 0;
}

.contacts-section::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.75), rgba(248, 250, 252, 0.65));
	z-index: 1;
}

.contacts-section > .container {
	position: relative;
	z-index: 2;
}

.contact form {
	display: grid;
	gap: 12px;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
}

.contact-icon {
	font-size: 18px;
	line-height: 1.4;
}

input,
textarea {
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid var(--border);
	font: inherit;
}

textarea {
	min-height: 120px;
	resize: vertical;
}

.site-footer {
	background: var(--bg);
	color: #e2e8f0;
	padding: 32px 0;
}

.muted {
	color: var(--muted);
}

@media (max-width: 768px) {
	.header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.nav {
		row-gap: 8px;
	}

	.hero-inner {
		grid-template-columns: 1fr;
	}

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

