/*
Theme Name: Barella
Theme URI: https://barella.ru/
Author: Barella
Description: Корпоративная тема barella.ru — инженерная компания: вентиляция, кондиционирование, отопление. Staging-инкремент (профиль wordpress-staging).
Version: 0.1.0
License: Proprietary
Text Domain: barella
*/

:root {
	--barella-blue: #0b5fa5;
	--barella-blue-dark: #084a82;
	--barella-ink: #1c2733;
	--barella-muted: #5a6b7b;
	--barella-bg: #f4f7fa;
	--barella-line: #dce5ee;
	--barella-white: #ffffff;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

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

a {
	color: var(--barella-blue);
}

.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	background: var(--barella-white);
	border-bottom: 1px solid var(--barella-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	padding-bottom: 12px;
	flex-wrap: wrap;
}

.site-logo {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--barella-blue-dark);
	text-decoration: none;
}

.site-logo span {
	color: var(--barella-blue);
}

.site-header__phone {
	font-weight: 600;
	text-decoration: none;
	color: var(--barella-ink);
	white-space: nowrap;
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.main-nav a {
	text-decoration: none;
	color: var(--barella-ink);
	font-weight: 500;
}

.main-nav a:hover {
	color: var(--barella-blue);
}

/* Hero */
.hero {
	background: linear-gradient(135deg, var(--barella-blue-dark), var(--barella-blue));
	color: var(--barella-white);
	padding: 72px 0;
}

.hero h1 {
	margin: 0 0 16px;
	font-size: 40px;
	line-height: 1.2;
}

.hero p {
	margin: 0 0 24px;
	font-size: 19px;
	max-width: 720px;
	opacity: 0.95;
}

/* Buttons */
.btn {
	display: inline-block;
	background: var(--barella-blue);
	color: var(--barella-white);
	border: none;
	border-radius: 6px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn:hover {
	background: var(--barella-blue-dark);
	color: var(--barella-white);
}

.btn--light {
	background: var(--barella-white);
	color: var(--barella-blue-dark);
}

.btn--light:hover {
	background: var(--barella-bg);
	color: var(--barella-blue-dark);
}

/* Sections */
.section {
	padding: 56px 0;
}

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

.section h2 {
	font-size: 30px;
	margin: 0 0 24px;
}

.section h3 {
	font-size: 20px;
	margin: 0 0 8px;
}

.lead {
	font-size: 18px;
	color: var(--barella-muted);
	max-width: 760px;
}

/* Grids */
.grid {
	display: grid;
	gap: 20px;
}

.grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

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

.card {
	background: var(--barella-white);
	border: 1px solid var(--barella-line);
	border-radius: 8px;
	padding: 24px;
}

.section--alt .card {
	background: var(--barella-white);
}

.card--direction {
	border-top: 4px solid var(--barella-blue);
}

.card--direction h3 {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--barella-blue-dark);
}

/* Numbers */
.figure__value {
	font-size: 38px;
	font-weight: 700;
	color: var(--barella-blue);
	line-height: 1.1;
}

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

/* Photo placeholders */
.photo-placeholder {
	background: repeating-linear-gradient(45deg, #e8eef4, #e8eef4 12px, #dfe8f0 12px, #dfe8f0 24px);
	border: 1px dashed #b6c6d6;
	border-radius: 8px;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--barella-muted);
	font-size: 14px;
	padding: 16px;
}

/* Cases */
.case {
	background: var(--barella-white);
	border: 1px solid var(--barella-line);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.case__body {
	padding: 20px 24px 24px;
}

.case__title {
	margin: 0 0 8px;
	font-size: 19px;
}

.case__meta {
	color: var(--barella-muted);
	font-size: 14px;
	margin: 0 0 10px;
}

.case__text {
	margin: 0;
}

/* Team */
.team-member {
	text-align: center;
}

.team-member h3 {
	margin: 12px 0 4px;
}

.team-member p {
	margin: 0;
	color: var(--barella-muted);
	font-size: 14px;
}

/* Principles */
.principles {
	list-style: none;
	counter-reset: principle;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.principles li {
	counter-increment: principle;
	background: var(--barella-white);
	border: 1px solid var(--barella-line);
	border-radius: 8px;
	padding: 20px 20px 20px 64px;
	position: relative;
}

.principles li::before {
	content: counter(principle);
	position: absolute;
	left: 20px;
	top: 20px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--barella-blue);
	color: var(--barella-white);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Contacts */
.contacts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contacts-list li {
	margin-bottom: 16px;
	font-size: 18px;
}

.contacts-list strong {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--barella-muted);
	margin-bottom: 2px;
}

.map-placeholder {
	min-height: 260px;
}

/* Feedback form */
.feedback-form {
	max-width: 520px;
}

.feedback-form label {
	display: block;
	margin-bottom: 14px;
}

.feedback-form span {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.feedback-form input,
.feedback-form textarea {
	width: 100%;
	border: 1px solid var(--barella-line);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 16px;
	font-family: inherit;
}

.feedback-notice {
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 0 14px;
	font-size: 14px;
}

.feedback-notice--ok {
	background: #e4f4e8;
	border: 1px solid #b8e2c4;
	color: #226b36;
}

.feedback-notice--error {
	background: #fbe7e7;
	border: 1px solid #f0c0c0;
	color: #8c2b2b;
}

/* CTA */
.cta {
	background: linear-gradient(135deg, var(--barella-blue-dark), var(--barella-blue));
	color: var(--barella-white);
	text-align: center;
}

.cta h2 {
	color: var(--barella-white);
}

/* Footer */
.site-footer {
	background: var(--barella-ink);
	color: #c7d2dc;
	padding: 32px 0;
	font-size: 14px;
}

.site-footer .container {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.site-footer a {
	color: var(--barella-white);
	text-decoration: none;
}

/* Content fallback */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
	line-height: 1.3;
}

/* Mobile */
@media (max-width: 900px) {
	.grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero h1 {
		font-size: 32px;
	}
}

@media (max-width: 600px) {
	.grid--4,
	.grid--3,
	.grid--2,
	.principles {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 48px 0;
	}

	.hero h1 {
		font-size: 26px;
	}

	.hero p {
		font-size: 16px;
	}

	.section {
		padding: 40px 0;
	}

	.section h2 {
		font-size: 24px;
	}

	.site-header .container {
		flex-direction: column;
		align-items: flex-start;
	}

	.main-nav ul {
		gap: 12px;
	}
}
