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

: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;
	position: relative;
}

.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);
}

.header-menu {
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav-toggle {
	display: none;
}

.nav-burger {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: #fff;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
	content: "";
	display: block;
	width: 18px;
	height: 2px;
	background: var(--bg-dark);
	border-radius: 2px;
	position: relative;
	transition: 0.2s ease;
}

.nav-burger span::before {
	position: absolute;
	top: -6px;
	left: 0;
}

.nav-burger span::after {
	position: absolute;
	top: 6px;
	left: 0;
}

.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));
}

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

.infra-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 6px;
}

.infra-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.infra-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
	color: var(--muted);
	margin-top: 0;
}

.infra-list li strong {
	color: var(--text);
	font-weight: 700;
}

.infra-list li em {
	font-style: italic;
	color: var(--text);
}

.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: 180px;
	display: grid;
	gap: 14px;
	font-weight: 600;
	overflow: hidden;
	padding: 22px;
	background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(241, 245, 249, 0.95));
	border-radius: 20px;
}

.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-inline {
	float: left;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 4px 12px 6px 0;
	background: rgba(249, 115, 22, 0.12);
	color: var(--brand);
}

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

.advantage-text {
	font-size: 17px;
	line-height: 1.65;
}

.advantage-text::after {
	content: "";
	display: block;
	clear: both;
}

.advantage-lead {
	display: block;
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 6px;
}

#advantages {
	padding-bottom: 32px;
}

.advantage-card:nth-child(1) {
	background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(254, 240, 215, 0.95));
}

.advantage-card:nth-child(2) {
	background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(224, 242, 254, 0.95));
}

.advantage-card:nth-child(3) {
	background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(224, 231, 255, 0.95));
}

.advantage-card:nth-child(4) {
	background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.95));
}

.advantage-card:nth-child(5) {
	background: linear-gradient(135deg, rgba(250, 245, 255, 0.95), rgba(243, 232, 255, 0.95));
}

.advantage-card:nth-child(6) {
	background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(254, 226, 226, 0.95));
}

.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: 1fr;
}

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

.plan-card--horizontal {
	grid-template-columns: minmax(240px, 1.2fr) minmax(320px, 1.6fr) minmax(240px, 1fr);
	align-items: stretch;
}

.plan-card__head {
	padding: 16px 18px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.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;
	overflow: hidden;
	min-height: 220px;
}

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

.plan-card__details {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.plan-card__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 0 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: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background: #b42318;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 8px;
}

.plan-card__map {
	border-left: 1px solid var(--border);
	background: #f8fafc;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.plan-card__map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

@media (max-width: 980px) {
	.plan-card--horizontal {
		grid-template-columns: 1fr;
	}

	.plan-card__map {
		border-left: none;
		border-top: 1px solid var(--border);
		max-height: 220px;
	}
}

@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;
	align-content: start;
}

.summary-box.highlight {
	background: #0f172a;
	color: #e2e8f0;
}

.summary-box h2,
.summary-box h3 {
	margin: 0;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.2;
}

.summary-subtitle {
	color: var(--muted);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 4px 0 8px;
}

.summary-box.highlight .summary-subtitle {
	color: rgba(255, 255, 255, 0.7);
}

.summary-box.highlight .location-lead {
	color: #fff;
	font-weight: 600;
}

.summary-box.highlight .list li {
	color: #e2e8f0;
}

.summary-box.highlight .list li::before {
	color: var(--brand);
}

.summary-box p,
.summary-box .list {
	margin: 0;
}

.summary-box .list {
	margin-top: 10px;
}

.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) {
	.topbar {
		display: none;
	}

	.header-inner {
		flex-direction: column;
		align-items: stretch;
		padding: 10px 0;
	}

	.nav {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 10px;
		padding: 0 16px;
	}

	.nav-burger {
		display: inline-flex;
		align-self: flex-end;
		margin-top: -44px;
	}

	.header-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		padding: 12px 0 16px;
		flex-direction: column;
		gap: 12px;
		z-index: 40;
	}

	.nav-toggle:checked ~ .header-menu {
		display: flex;
	}

	.header-contacts {
		align-items: flex-start;
		padding: 0 16px;
	}

	.header-menu .btn {
		width: calc(100% - 32px);
		margin: 0 16px;
	}

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

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

