/* 
===============
Base Styles
===============
*/
:root {
	--color-background: #fff9ec;
	--color-text: #3a3a3a;
	--color-primary: #57a773;
	--color-secondary: #d75c37;
	--color-light: #f8f9fa;
	--font-primary: "Poppins", sans-serif;
	--font-secondary: "Roboto", sans-serif;
	--transition: all 0.3s ease;
	--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--radius: 8px;
	--header-height: 80px; /* Высота шапки для использования в отступах */
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height); /* Добавляем отступ при скроллинге */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-primary);
	color: var(--color-text);
	background-color: var(--color-background);
	line-height: 1.6;
	overflow-x: hidden;
	font-size: 16px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--color-secondary);
}

ul {
	list-style: none;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

section {
	padding: 5rem 0;
	scroll-margin-top: var(--header-height); /* Добавляем отступ для секций при якорных ссылках */
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1.5rem;
}

.btn {
	display: inline-block;
	padding: 10px 25px;
	border-radius: var(--radius);
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	color: white;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: var(--transition);
	border: none;
	cursor: pointer;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 7px 10px rgba(0, 0, 0, 0.15);
	color: white;
}

.btn:active {
	transform: translateY(-1px);
}

.btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: 0.5s;
}

.btn:hover::before {
	left: 100%;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.section-title::after {
	content: "";
	position: absolute;
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 50px;
}

/* 
===============
Header
===============
*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(255, 249, 236, 0.9);
	backdrop-filter: blur(5px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
	height: var(--header-height); /* Задаем точную высоту шапки */
	display: flex;
	align-items: center;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	display: flex;
	flex-direction: column;
}

.logo a {
	display: block;
}

.tagline {
	font-size: 0.8rem;
	font-style: italic;
	margin: -5px 0 0;
	color: var(--color-text);
}

.main-nav ul {
	display: flex;
	align-items: center;
}

.main-nav li {
	margin: 0 1rem;
}

.main-nav a {
	font-weight: 500;
	position: relative;
}

.main-nav a::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-primary);
	transition: var(--transition);
}

.main-nav a:hover::after {
	width: 100%;
}

.btn-nav {
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	color: white !important;
	padding: 8px 20px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.btn-nav:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.btn-nav::after {
	display: none;
}

/* Mobile menu */
.menu-toggle {
	display: none;
}

.menu-button {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 20px;
	cursor: pointer;
	z-index: 200;
}

.menu-button span {
	display: block;
	height: 3px;
	width: 100%;
	background-color: var(--color-primary);
	border-radius: 3px;
	transition: var(--transition);
}

/* 
===============
Hero Section
===============
*/
.hero {
	margin-top: var(--header-height);
	min-height: calc(100vh - var(--header-height));
	background-image: url("./img/OUlsdY.jpg");
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	text-align: center;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
	position: relative;
	z-index: 10;
	color: white;
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	animation: fadeInDown 1s ease;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	animation: fadeInUp 1s ease;
}

.hero .btn {
	font-size: 1.1rem;
	padding: 12px 30px;
	animation: bounceIn 1.2s ease;
}

/* 
===============
About Section
===============
*/
.about {
	position: relative;
	overflow: hidden;
}

.about::before {
	content: "";
	position: absolute;
	top: -100px;
	right: -100px;
	width: 300px;
	height: 300px;
	background-color: rgba(87, 167, 115, 0.1);
	border-radius: 50%;
	z-index: -1;
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-text {
	animation: fadeInLeft 1s ease;
}

.about-image {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	position: relative;
	animation: fadeInRight 1s ease;
}

.about-image::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right bottom, rgba(87, 167, 115, 0.3), rgba(215, 92, 55, 0.3));
	z-index: 1;
}

.about-image img {
	transition: transform 0.5s ease;
}

.about-image:hover img {
	transform: scale(1.05);
}

/* 
===============
Benefits Section
===============
*/
.benefits {
	background-color: rgba(87, 167, 115, 0.05);
	position: relative;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.benefit-item {
	background-color: white;
	padding: 2rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.benefit-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-item::before {
	content: "";
	position: absolute;
	top: -10px;
	left: -10px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(87, 167, 115, 0.1);
	z-index: -1;
	transition: var(--transition);
}

.benefit-item:hover::before {
	transform: scale(10);
}

.benefit-icon {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: var(--color-primary);
}

.benefit-item h3 {
	margin-bottom: 1rem;
	position: relative;
}

.benefit-item p {
	margin-bottom: 0;
	position: relative;
	z-index: 2;
}

/* 
===============
Products Section
===============
*/
.products {
	position: relative;
	overflow: hidden;
}

.products::after {
	content: "";
	position: absolute;
	bottom: -100px;
	left: -100px;
	width: 300px;
	height: 300px;
	background-color: rgba(215, 92, 55, 0.1);
	border-radius: 50%;
	z-index: -1;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2.5rem;
}

.product-card {
	background-color: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: var(--transition);
}

.product-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
	height: 200px;
	position: relative;
	overflow: hidden;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.product-card:hover .product-image img {
	transform: scale(1.1);
}

.product-content {
	padding: 1.5rem;
}

.product-title {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: var(--color-primary);
}

.product-description {
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.product-price {
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-secondary);
	margin-bottom: 1.5rem;
	display: block;
}

.product-card .btn {
	width: 100%;
}

/* 
===============
Testimonials Section
===============
*/
.testimonials {
	background-color: rgba(215, 92, 55, 0.05);
}

.testimonials-content {
	max-width: 800px;
	margin: 0 auto;
}

.testimonial-item {
	background-color: white;
	padding: 2rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
	position: relative;
}

.testimonial-item:last-child {
	margin-bottom: 0;
}

.testimonial-item::before {
	content: '"';
	position: absolute;
	top: 10px;
	left: 20px;
	font-size: 5rem;
	color: rgba(87, 167, 115, 0.1);
	font-family: serif;
	line-height: 1;
}

.testimonial-text {
	font-style: italic;
	margin-bottom: 1.5rem;
}

.testimonial-author {
	font-weight: 600;
	display: flex;
	align-items: center;
}

.testimonial-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 15px;
	border: 3px solid var(--color-primary);
}

/* 
===============
FAQ Section
===============
*/
.faq {
	position: relative;
}

.faq-content {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 1.5rem;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.faq-question {
	padding: 1.2rem;
	background-color: white;
	font-weight: 600;
	position: relative;
	color: var(--color-primary);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question::after {
	display: none;
}

.faq-answer {
	background-color: white;
	padding: 1.2rem;
}

/* 
===============
Order Section
===============
*/
.order {
	background-color: rgba(87, 167, 115, 0.05);
	position: relative;
}

.order-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.order-steps {
	display: flex;
	justify-content: space-between;
	margin: 3rem 0;
	position: relative;
}

.order-steps::before {
	content: "";
	position: absolute;
	top: 25px;
	left: 50px;
	right: 50px;
	height: 2px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	z-index: 0;
}

.order-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
}

.step-number {
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	color: white;
	font-weight: 700;
	margin-bottom: 1rem;
}

.step-text {
	font-weight: 500;
}

/* 
===============
Form Section
===============
*/
.form-section {
	padding: 5rem 0;
}

.form-container {
	max-width: 700px;
	margin: 0 auto;
	background-color: white;
	padding: 3rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-input {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: var(--radius);
	font-family: var(--font-primary);
	font-size: 1rem;
	transition: var(--transition);
}

.form-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px rgba(87, 167, 115, 0.2);
	outline: none;
}

.radio-group {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.radio-container {
	position: relative;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: var(--radius);
	cursor: pointer;
	transition: var(--transition);
}

.radio-container:hover {
	border-color: var(--color-primary);
}

.radio-input {
	position: absolute;
	opacity: 0;
}

.radio-input:checked + .radio-label .radio-custom {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
}

.radio-input:checked + .radio-label .radio-custom::after {
	opacity: 1;
}

.radio-custom {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-radius: 50%;
	position: relative;
	top: 4px;
	margin-right: 10px;
	transition: var(--transition);
}

.radio-custom::after {
	content: "";
	width: 10px;
	height: 10px;
	background-color: white;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: var(--transition);
}

.radio-price {
	display: block;
	margin-top: 5px;
	color: var(--color-secondary);
	font-weight: 600;
}

.checkbox-group {
	margin-bottom: 1rem;
}

.checkbox-container {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.5rem;
}

.checkbox-input {
	margin-right: 10px;
	position: relative;
	top: 5px;
}

.btn-form {
	width: 100%;
	padding: 12px;
	font-size: 1.1rem;
	margin-top: 1rem;
}

/* 
===============
Footer
===============
*/
.footer {
	background-color: #3a3a3a;
	color: white;
	padding: 4rem 0 2rem;
}

.footer a {
	color: #ddd;
}

.footer a:hover {
	color: white;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.footer-info p {
	margin-top: 1.5rem;
	opacity: 0.8;
}

.footer-contact ul,
.footer-links ul {
	padding: 0;
}

.footer-contact li,
.footer-links li {
	margin-bottom: 0.8rem;
}

.footer h3 {
	position: relative;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.footer h3::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 2px;
	background-color: var(--color-primary);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 
===============
Cookie Banner
===============
*/
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #333;
	color: white;
	z-index: 9999;
	padding: 15px 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.cookie-content p {
	margin: 0;
	padding-right: 20px;
}

.btn-cookie {
	white-space: nowrap;
	padding: 8px 20px;
}

/* 
===============
Legal Pages
===============
*/
.legal-page {
	padding-top: 150px;
	padding-bottom: 50px;
}

.legal-content {
	max-width: 900px;
	margin: 0 auto;
	background-color: white;
	padding: 3rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.legal-content h2 {
	margin-top: 2.5rem;
}

.legal-content h2:first-child {
	margin-top: 0;
}

/* 
===============
Thank You Page
===============
*/
.thank-you-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	text-align: center;
	position: relative;
	z-index: 10000;
	padding-top: var(--header-height);
}

.thank-you-content {
	max-width: 700px;
	background-color: white;
	padding: 3rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin: 0 auto;
	width: 90%;
	position: relative;
}

.checkmark {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: block;
	stroke-width: 2;
	stroke: var(--color-primary);
	stroke-miterlimit: 10;
	margin: 0 auto 2rem;
	box-shadow: 0 0 0 var(--color-primary);
	animation:
		fill 0.4s ease-in-out 0.4s forwards,
		scale 0.3s ease-in-out 0.9s both;
}

.checkmark__circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke-width: 2;
	stroke-miterlimit: 10;
	stroke: var(--color-primary);
	fill: none;
	animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes scale {
	0%,
	100% {
		transform: none;
	}
	50% {
		transform: scale3d(1.1, 1.1, 1);
	}
}

@keyframes fill {
	100% {
		box-shadow: 0 0 0 100px rgba(87, 167, 115, 0);
	}
}

/* 
===============
Animations
===============
*/
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}
	50% {
		opacity: 1;
		transform: scale(1.05);
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		transform: scale(1);
	}
}

/* 
===============
Media Queries
===============
*/
@media screen and (max-width: 992px) {
	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.hero h1 {
		font-size: 3rem;
	}

	.about-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.about-text {
		order: 2;
	}

	.about-image {
		order: 1;
		margin-bottom: 2rem;
	}

	.order-steps {
		flex-direction: column;
		align-items: center;
	}

	.order-steps::before {
		display: none;
	}

	.order-step {
		margin-bottom: 2rem;
	}
}

@media screen and (max-width: 768px) {
	.menu-button {
		display: flex;
	}

	.main-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		max-width: 300px;
		height: 100vh;
		background-color: white;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transition: right 0.3s ease;
		z-index: 100;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: flex-start;
		padding: 2rem;
	}

	.main-nav li {
		margin: 1rem 0;
	}

	.menu-toggle:checked ~ .main-nav {
		right: 0;
	}

	.menu-toggle:checked ~ .menu-button span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.menu-toggle:checked ~ .menu-button span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle:checked ~ .menu-button span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero p {
		font-size: 1.1rem;
	}

	.cookie-content {
		flex-direction: column;
	}

	.cookie-content p {
		margin-bottom: 1rem;
		padding-right: 0;
		text-align: center;
	}

	.form-container,
	.legal-content {
		padding: 2rem 1.5rem;
	}

	.radio-group {
		grid-template-columns: 1fr;
	}

	:root {
		--header-height: 70px; /* Меньшая высота на мобильных */
	}
}

@media screen and (max-width: 576px) {
	.hero h1 {
		font-size: 2rem;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.footer-info,
	.footer-contact,
	.footer-links {
		text-align: center;
	}

	.footer h3::after {
		left: 50%;
		transform: translateX(-50%);
	}

	.testimonial-avatar {
		width: 40px;
		height: 40px;
	}
}
