/*
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 {
	--primary: #1e88e5;
	--secondary: #f59e0b;
	--bg: #ffffff;
	--bg-soft: #ffffff;
	--bg-dark: #2c3e50;
	--text: #333333;
	--text-light: #ffffff;
	--muted: #606c7b;
	--brand: #f59e0b;
	--brand-dark: #d97706;
	--light: #ffffff;
	--border: #e0e0e0;
	--overlay: rgba(0, 0, 0, 0.6);
	--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: var(--bg);
	line-height: 1.5;
	font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--bg-dark);
	font-weight: 700;
	letter-spacing: 0.02em;
}

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-dark);
	color: var(--text-light);
	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-phone {
	display: none;
	font-size: 13px;
	color: var(--bg-dark);
	gap: 6px;
	align-items: center;
}

.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;
	text-transform: uppercase;
	border-radius: 4px;
}

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

.btn-outline {
	border-color: var(--primary);
	color: var(--primary);
	background: #fff;
	text-transform: uppercase;
	border-radius: 4px;
}

.hero-tech {
	background: var(--bg);
	padding: 60px 0 40px;
}

.hero-tech h1 {
	font-size: clamp(30px, 3.2vw, 48px);
	line-height: 1.15;
	margin-bottom: 14px;
}

.hero-tech .wp-block-buttons .wp-block-button__link {
	background: var(--brand);
	color: #fff;
	border-radius: 999px;
	padding: 12px 22px;
}

.hero-tech .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--brand);
	border: 1px solid var(--brand);
}

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

.kpi-title {
	font-weight: 700;
	font-size: 20px;
	margin-bottom: 4px;
	color: var(--text);
}

.kpi-text {
	color: var(--muted);
	font-size: 13px;
	margin: 0;
}

.advantages-grid {
	padding: 20px 0 40px;
}

.adv-title {
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--text);
}

.adv-text {
	color: var(--muted);
	font-size: 14px;
	margin: 0;
}

.cta-strip {
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 28px 0;
}

.cta-strip h3 {
	margin: 0 0 6px;
}

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

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("/skladphoto.webp") center/cover no-repeat;
	z-index: 0;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--overlay);
	z-index: 1;
}

.hero-inner {
	position: relative;
	z-index: 2;
	padding: 72px 0;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 32px;
	align-items: start;
}

.hero h1 {
	font-size: clamp(28px, 3vw, 40px);
	margin-bottom: 12px;
	color: var(--text-light);
	text-transform: uppercase;
	line-height: 1.2;
}

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

.hero-subtitle {
	font-weight: 400;
	font-size: 18px;
	line-height: 1.7;
}

.hero-benefits {
	list-style: disc;
	padding-left: 18px;
	color: #f2f4f7;
	display: grid;
	gap: 16px;
	margin: 20px 0 0;
	font-size: 17px;
	line-height: 1.7;
}

.hero-b2b__form {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	padding: 20px;
	color: var(--text-light);
}

.hero-b2b__form h3 {
	color: var(--text-light);
	font-size: 18px;
	margin-top: 0;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.hero-form-note {
	font-size: 14px;
	color: #e2e2e2;
	margin-top: 12px;
}

.hero-location {
	margin-top: 22px;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hero .stats {
	display: none;
}

.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: 48px 0;
}

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

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

.section h2 {
	font-size: clamp(24px, 2.3vw, 34px);
	margin-bottom: 12px;
	color: var(--bg-dark);
}

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

	.logo-phone {
		display: inline-flex;
	}
	.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: var(--bg-dark);
	color: var(--text-light);
}

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

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

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

.summary-box.highlight h2,
.summary-box.highlight h3 {
	color: var(--text-light);
}

.summary-box.highlight .location-lead {
	color: var(--text-light);
	font-weight: 600;
}

.summary-box.highlight .section-subtitle {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 4px 0 8px;
}

.summary-box.highlight .list li {
	color: var(--text-light);
}

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

.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: 10px 15px;
	border-radius: 4px;
	border: 1px solid #cccccc;
	font: inherit;
	background: #fff;
}

input:focus,
textarea:focus {
	border-color: var(--primary);
	outline: none;
	box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

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

.site-footer {
	background: var(--bg-dark);
	color: var(--text-light);
	padding: 36px 0;
}

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

.site-footer a {
	color: var(--text-light);
}

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

