/* ==========================================
       1. ЦВЕТОВАЯ ПАЛИТРА И ПЕРЕМЕННЫЕ
       ========================================== */
:root {
	/* Шоколадная гамма */
	--choc-dark: #1f140e; /* Глубокий эспрессо */
	--choc-main: #3d271d; /* Насыщенный шоколад */
	--choc-light: #5c4033; /* Мягкий какао */

	/* Оливковая гамма */
	--olive-dark: #3a472e; /* Темная оливка */
	--olive-main: #5c6b43; /* Классическая оливка */
	--olive-light: #8a9a65; /* Светло-оливковый акцент */
	--olive-tint: #ebefe3; /* Пастельный оливковый фон */

	/* Нейтральные и фоновые */
	--bg-cream: #faf7f2; /* Кремовый шелк */
	--bg-white: #ffffff;
	--text-main: #2b2523;
	--text-muted: #7a706a;
	--border-color: #e6e0d8;

	/* Размеры */
	--sidebar-width: 280px;
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--shadow: 0 10px 30px rgba(31, 20, 14, 0.06);
}

/* ==========================================
       2. БАЗОВЫЕ СТИЛИ
       ========================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	/* Базовый адаптивный размер шрифта */
	font-size: clamp(14px, 1.2vw, 16px);
}

body {
	font-family: 'Montserrat', sans-serif;
	background-color: var(--bg-cream);
	color: var(--text-main);
	line-height: 1.6;
	display: flex;
	min-height: 100vh;
}

main {
	max-width: 1250px;
	margin: 0 auto;
}

h1,
h2,
h3,
.brand-font {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 700;
}

/* ==========================================
       3. БОКОВОЕ МЕНЮ (SIDEBAR) - DESKTOP
       ========================================== */
.sidebar {
	width: var(--sidebar-width);
	background-color: var(--choc-dark);
	color: var(--bg-cream);
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px 30px;
	z-index: 1000;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	/* Резиновый размер логотипа */
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: #fff;
	text-decoration: none;
	letter-spacing: 2px;
}

.logo span {
	color: var(--olive-light);
	font-style: italic;
}

.close-btn {
	display: none;
	background: none;
	border: none;
	color: var(--bg-cream);
	font-size: 1.5rem;
	cursor: pointer;
}

.nav-menu {
	list-style: none;
	margin: 40px 0;
}

.nav-item {
	margin-bottom: 18px;
}

.nav-link {
	color: rgba(250, 247, 242, 0.75);
	text-decoration: none;
	font-size: clamp(0.85rem, 1vw, 0.95rem);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	transition: all 0.3s ease;
}

.nav-link i {
	width: 20px;
	color: var(--olive-light);
	font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.08);
	transform: translateX(4px);
}

.sidebar-widget {
	background-color: var(--choc-main);
	padding: 20px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(138, 154, 101, 0.2);
	text-align: center;
}

.sidebar-widget h4 {
	font-size: clamp(0.95rem, 1.2vw, 1.1rem);
	color: var(--olive-light);
	margin-bottom: 6px;
}

.sidebar-widget p {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 12px;
}

/* ==========================================
       4. МОБИЛЬНАЯ ШАПКА И ОВЕРЛЕЙ
       ========================================== */
.mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 70px;
	background-color: var(--choc-dark);
	color: #fff;
	padding: 0 20px;
	align-items: center;
	justify-content: space-between;
	z-index: 900;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-toggle {
	background: none;
	border: none;
	color: var(--olive-light);
	font-size: 1.6rem;
	cursor: pointer;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(31, 20, 14, 0.6);
	backdrop-filter: blur(4px);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}

/* ==========================================
       5. ОСНОВНОЙ КОНТЕНТ (MAIN CONTENT)
       ========================================== */
.main-wrapper {
	margin-left: var(--sidebar-width);
	flex: 1;
	width: calc(100% - var(--sidebar-width));
	justify-content: center;
}

.container {
	max-width: 1250px;
	margin: 0;
	padding: 0 40px;
	justify-content: center;
	align-items: center;
}

/* HERO SECTION */
.hero {
	padding: 20px 0 60px;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 50px;
	align-items: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--olive-tint);
	color: var(--olive-dark);
	padding: 6px 16px;
	border-radius: 30px;
	font-size: clamp(0.75rem, 1vw, 0.85rem);
	font-weight: 600;
	margin-bottom: 20px;
}

.hero h1 {
	/* Плавно от 2.2rem на смартфонах до 3.8rem на десктопах */
	font-size: clamp(2.2rem, 4.5vw + 1rem, 3.8rem);
	line-height: 1.1;
	color: var(--choc-dark);
	margin-bottom: 24px;
}

.hero p {
	/* Плавно от 0.95rem до 1.1rem */
	font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.1rem);
	color: var(--text-muted);
	margin-bottom: 35px;
	max-width: 540px;
}

.btn-group {
	display: flex;
	gap: 16px;
	align-items: center;
}

/* КНОПКИ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	border-radius: 40px;
	font-size: clamp(0.85rem, 1vw, 0.95rem);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: var(--olive-main);
	color: #fff;
	box-shadow: 0 6px 20px rgba(92, 107, 67, 0.25);
}

.btn-primary:hover {
	background-color: var(--olive-dark);
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: transparent;
	color: var(--choc-main);
	border: 1.5px solid var(--choc-main);
}

.btn-secondary:hover {
	background-color: var(--choc-main);
	color: #fff;
}

.hero-image-card {
	background: white;
	border-radius: var(--radius-lg);
	height: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow);
	padding: 1rem;
}

.hero-image-card .hero-img {
	width: 200px;
}

.hero-image-card i {
	font-size: 5rem;
	color: var(--olive-main);
	margin-bottom: 15px;
}

/* БЛОК ПРЕИМУЩЕСТВ */
.features {
	padding: 60px 0;
}

.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header h2 {
	/* Плавно от 2.0rem на смартфонах до 2.8rem на десктопах */
	font-size: clamp(2rem, 3.5vw + 0.5rem, 2.8rem);
	color: var(--choc-dark);
}

.section-subtitle {
	font-size: clamp(0.88rem, 1.1vw, 1rem);
	color: var(--text-muted);
	max-width: 600px;
	margin: 10px auto 0;
}

.grid-1 {
	display: flex;
	gap: 30px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.feature-card {
	background-color: var(--bg-white);
	padding: 35px 25px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
}

.feature-icon {
	width: 60px;
	height: 60px;
	background-color: var(--olive-tint);
	color: var(--olive-main);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 20px;
}

.feature-card h3 {
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	margin-bottom: 12px;
	color: var(--choc-main);
}

.feature-card p {
	font-size: clamp(0.85rem, 1vw, 0.9rem);
	color: var(--text-muted);
}

/* КАТАЛОГ ПРОДУКЦИИ */
.products {
	padding: 60px 0 100px;
}

.product-card {
	background: var(--bg-white);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.3s ease;
}

.product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 15px 35px rgba(31, 20, 14, 0.1);
}

.product-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background-color: var(--choc-main);
	color: var(--bg-cream);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 1px;
	z-index: 2;
}

.product-thumb {
	height: 220px;
	background-color: #f4f0ea;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--olive-light);
	font-size: 3.5rem;
}

.product-details {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.product-rating {
	color: #d4af37;
	font-size: 0.85rem;
	margin-bottom: 8px;
}

.product-title {
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	color: var(--choc-dark);
	margin-bottom: 8px;
}

.product-desc {
	font-size: clamp(0.82rem, 1vw, 0.88rem);
	color: var(--text-muted);
	margin-bottom: 20px;
	flex: 1;
}

.product-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--border-color);
	padding-top: 15px;
}

.product-price {
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	font-weight: 700;
	color: var(--choc-main);
}

.btn-cart {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: var(--olive-tint);
	color: var(--olive-dark);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-cart:hover {
	background-color: var(--olive-main);
	color: #fff;
}

/* ФУТЕР */
.footer {
	background-color: var(--choc-dark);
	color: rgba(250, 247, 242, 0.7);
	padding: 40px 0;
	text-align: center;
	font-size: clamp(0.78rem, 1vw, 0.85rem);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services {
	padding: 60px 0;
	background-color: rgba(235, 239, 227, 0.4);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.service-card {
	background-color: var(--bg-white);
	padding: 35px 25px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.3s ease;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(31, 20, 14, 0.08);
}

.service-card-featured {
	border: 2px solid var(--olive-main);
}

.service-badge {
	position: absolute;
	top: -12px;
	right: 20px;
	background-color: var(--olive-main);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.service-icon {
	width: 60px;
	height: 60px;
	background-color: var(--olive-tint);
	color: var(--olive-dark);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	margin-bottom: 20px;
}

.service-card h3 {
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	color: var(--choc-dark);
	margin-bottom: 12px;
}

.service-desc {
	font-size: clamp(0.85rem, 1vw, 0.9rem);
	color: var(--text-muted);
	margin-bottom: 20px;
}

.service-features {
	list-style: none;
	margin-bottom: 25px;
	flex: 1;
}

.service-features li {
	font-size: clamp(0.8rem, 0.9vw, 0.85rem);
	color: var(--text-main);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.service-features li i {
	color: var(--olive-main);
	font-size: 0.8rem;
}

.service-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--border-color);
	padding-top: 20px;
}

.service-price {
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	font-weight: 700;
	color: var(--choc-main);
	flex: 2;
}

.btn-sm {
	padding: 8px 18px;
	font-size: 0.85rem;
	flex: 1;
}

/* ==========================================
       6. MEDIA QUERIES (АДАПТИВНОСТЬ СТРУКТУРЫ)
       ========================================== */

/* Планшеты и Смартфоны (< 992px) */
@media (max-width: 992px) {
	.mobile-header {
		display: flex;
	}

	.hero-image-card {
		display: none;
	}

	.close-btn {
		display: block;
	}

	.sidebar {
		transform: translateX(-100%);
	}

	.sidebar.active {
		transform: translateX(0);
	}

	.main-wrapper {
		margin-left: 0;
		width: 100%;
		padding-top: 70px;
	}

	.container {
		padding: 0 20px;
	}

	.hero {
		grid-template-columns: 1fr;
		padding: 40px 0;
		text-align: center;
	}

	.hero p {
		margin: 0 auto 30px;
	}

	.btn-group {
		justify-content: center;
	}
}

/* Мобильные телефоны (< 600px) */
@media (max-width: 600px) {
	.grid-3 {
		grid-template-columns: 1fr;
	}

	.product-desc {
		display: none;
	}

	.btn-group {
		flex-direction: column;
		width: 100%;
	}

	.btn {
		width: 100%;
	}

	.hero-image-card {
		display: none;
	}
}
