/* Reset CSS */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

html {
	scroll-padding-top: 70px; /* Высота шапки для корректного скролла */
}

:root {
	--bg-dark-green: #0e2f2f;
	--bg-mint: #a2e3c4;
	--accent-terracotta: #e36a4e;
	--accent-gold: #e8c39e;
	--text-dark: #2c2c2c;
	--text-medium: #6a6a6a;
	--btn-emerald: #2f856e;
	--white: #ffffff;
	--light-gray: #f5f5f5;
	--header-height: 70px; /* Переменная для высоты шапки */
}

body {
	font-family: "Rubik", sans-serif;
	color: var(--text-dark);
	line-height: 1.6;
	background: linear-gradient(135deg, var(--bg-dark-green) 0%, var(--bg-mint) 100%);
	background-attachment: fixed;
	min-height: 100vh;
}

h1,
h2,
h3,
h4 {
	font-family: "Playfair Display", serif;
	margin-bottom: 1rem;
}

h1 {
	font-size: 3rem;
}

h2 {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 2rem;
	color: var(--bg-dark-green);
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1rem;
	color: var(--text-medium);
}

a {
	color: var(--btn-emerald);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--accent-terracotta);
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 0;
}

section {
	background-color: var(--white);
	margin: 1rem 0;
	padding: 3rem 0;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	scroll-margin-top: var(--header-height); /* Отступ для якорных ссылок */
}

/* Header Styles */
header {
	background-color: var(--white);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	height: var(--header-height);
	min-height: fit-content;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.8rem 0;
	flex-wrap: wrap;
}

.logo {
	display: flex;
	align-items: center;
}

.logo svg {
	width: 40px;
	height: 40px;
	margin-right: 10px;
}

.logo h1 {
	font-size: 1.5rem;
	margin: 0;
	color: var(--btn-emerald);
}

.nav-menu {
	display: flex;
	list-style: none;
}

.nav-menu li {
	margin-left: 2rem;
}

.nav-menu a {
	color: var(--text-dark);
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-menu a:hover {
	color: var(--accent-terracotta);
}

.hamburger {
	display: none;
	cursor: pointer;
}

.hamburger .menu-toggle {
	display: block;
	background: none;
	border: none;
	padding: 0;
}

.hamburger span {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	background-color: var(--text-dark);
}

/* Cookie Banner */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--white);
	padding: 1rem;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.cookie-buttons {
	display: flex;
	gap: 1rem;
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	border-radius: 30px;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.btn-primary {
	background-color: var(--btn-emerald);
	color: var(--white);
}

.btn-primary:hover {
	background-color: var(--bg-dark-green);
	color: var(--white);
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: var(--white);
	color: var(--btn-emerald);
	border: 2px solid var(--btn-emerald);
}

.btn-secondary:hover {
	background-color: var(--btn-emerald);
	color: var(--white);
	transform: translateY(-2px);
}

/* Hero Section */
#hero {
	background-color: transparent;
	background-image: url("img/yEzBoV.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: none;
	padding: 6rem 0;
	text-align: center;
	color: var(--white);
	margin-top: 0;
	position: relative;
	scroll-margin-top: var(--header-height); /* Добавляем отступ для якорных ссылок */
}

#hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Затемнение для лучшей читаемости текста */
	z-index: -1;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.hero-content h1 {
	font-size: 4rem;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.slogan {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: var(--white);
}

/* Info Product Section */
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.info-card {
	text-align: center;
	padding: 2rem;
	background-color: var(--light-gray);
	border-radius: 10px;
	transition: transform 0.3s ease;
}

.info-card:hover {
	transform: translateY(-10px);
}

.info-icon {
	margin-bottom: 1rem;
}

/* Products Section */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.product-card {
	background-color: var(--light-gray);
	border-radius: 10px;
	overflow: hidden;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.product-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
	height: 250px;
	overflow: hidden;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
	transform: scale(1.05);
}

.product-card h3,
.product-card p {
	padding: 0 1.5rem;
}

.product-card h3 {
	margin-top: 1.5rem;
	color: var(--btn-emerald);
}

.price {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--accent-terracotta) !important;
}

.product-card .btn {
	margin: 1.5rem;
}

/* Ingredients Section */
.ingredients-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.ingredient-card {
	text-align: center;
	padding: 1.5rem;
	background-color: var(--light-gray);
	border-radius: 10px;
	transition: transform 0.3s ease;
}

.ingredient-card:hover {
	transform: translateY(-5px);
}

.ingredient-icon,
.ingredient-image {
	margin-bottom: 1rem;
}

.ingredient-image img {
	width: 100%;
	height: auto;
	border-radius: 5px;
}

/* Testimonials Section */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.testimonial-card {
	background-color: var(--light-gray);
	padding: 2rem;
	border-radius: 10px;
	position: relative;
}

.testimonial-card::before {
	content: '"';
	font-size: 5rem;
	font-family: "Playfair Display", serif;
	position: absolute;
	top: -20px;
	left: 20px;
	color: var(--accent-gold);
	opacity: 0.3;
}

.rating {
	color: var(--accent-gold);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.author {
	font-style: italic;
	text-align: right;
}

/* Delivery and Payment Section */
.delivery-payment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.delivery-payment-card {
	text-align: center;
	padding: 2rem;
	background-color: var(--light-gray);
	border-radius: 10px;
	transition: transform 0.3s ease;
}

.delivery-payment-card:hover {
	transform: translateY(-5px);
}

.delivery-payment-icon {
	margin-bottom: 1rem;
}

/* FAQ Section */
.faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
	gap: 2rem;
}

.faq-item {
	background-color: var(--light-gray);
	padding: 1.5rem;
	border-radius: 10px;
}

.faq-item h3 {
	color: var(--btn-emerald);
	margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.contact-info {
	background-color: var(--light-gray);
	padding: 2rem;
	border-radius: 10px;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.contact-item svg {
	margin-right: 1rem;
	min-width: 24px;
}

/* Order Form Section */
#order-form {
	max-width: 800px;
	margin: 0 auto;
	background-color: var(--light-gray);
	padding: 2rem;
	border-radius: 10px;
}

.form-group {
	margin-bottom: 1.5rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: "Rubik", sans-serif;
}

.tea-selection {
	margin-top: 2rem;
}

.tea-option {
	margin-bottom: 1rem;
}

.checkbox {
	display: flex;
	align-items: flex-start;
}

.checkbox input {
	margin-top: 5px;
	margin-right: 10px;
}

/* Footer */
footer {
	background-color: var(--bg-dark-green);
	color: var(--white);
	padding: 3rem 0;
	margin-top: 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.footer-logo {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.footer-logo svg {
	width: 40px;
	height: 40px;
	margin-right: 10px;
}

.footer-logo h3 {
	font-size: 1.5rem;
	margin: 0;
	color: var(--white);
}

.footer-links h3 {
	color: var(--white);
	margin-bottom: 1.5rem;
}

.footer-links ul {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: var(--white);
}

.footer-links a:hover {
	color: var(--accent-gold);
}

.footer-company {
	color: var(--white);
}

.footer-bottom {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	color: var(--white);
	font-size: 0.9rem;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	.hero-content h1 {
		font-size: 3rem;
	}

	.slogan {
		font-size: 1.2rem;
	}

	.nav-menu {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background-color: var(--white);
		width: 100%;
		text-align: center;
		transition: 0.3s;
		box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
		padding: 2rem 0;
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-menu li {
		margin: 1.5rem 0;
	}

	.hamburger {
		display: block;
	}

	/* Стили для PHP-версии гамбургер меню */
	.hamburger .menu-toggle {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
	}

	.faq-grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 480px) {
	.cookie-content {
		flex-direction: column;
		text-align: center;
	}

	.cookie-buttons {
		margin-top: 1rem;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}
