/* 
* Main CSS for noloce-lulili
* Author: Claude 3.7 Sonnet
*/

/* Color Palette */
:root {
	--color-bg: #fdf6e3; /* Песочный светлый */
	--color-text: #2c3e50; /* Глубокий синий */
	--color-accent: #ff851b; /* Мандарин */
	--color-button: #00c78c; /* Нефрит */
	--color-highlight: #ffdd57; /* Солнечный */
	--color-light: #ffffff;
	--color-grey: #f0f0f0;
	--color-dark-grey: #666666;
	--color-shadow: rgba(0, 0, 0, 0.1);
	--border-radius: 8px;
	--transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

section {
	padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 20px;
	font-weight: 700;
	line-height: 1.2;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 30px;
}

h2 {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 50px;
	position: relative;
}

h2:after {
	content: "";
	display: block;
	width: 80px;
	height: 4px;
	background-color: var(--color-accent);
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 2px;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 15px;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--color-button);
}

/* Buttons */
.btn-primary,
.btn-secondary {
	display: inline-block;
	padding: 12px 25px;
	border-radius: var(--border-radius);
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	border: none;
}

.btn-primary {
	background-color: var(--color-button);
	color: var(--color-light);
}

.btn-primary:hover {
	background-color: var(--color-accent);
	color: var(--color-light);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px var(--color-shadow);
}

.btn-secondary {
	background-color: var(--color-accent);
	color: var(--color-light);
}

.btn-secondary:hover {
	background-color: var(--color-button);
	color: var(--color-light);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px var(--color-shadow);
}

/* Header Styles */
header {
	background-color: var(--color-light);
	box-shadow: 0 2px 10px var(--color-shadow);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo a {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--color-accent);
}

.logo-text {
	background: linear-gradient(to right, var(--color-accent), var(--color-button));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.menu-toggle {
	display: none;
}

.menu-icon {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

.menu-icon span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--color-text);
	margin-bottom: 5px;
	border-radius: 3px;
	transition: var(--transition);
}

.main-nav ul {
	display: flex;
	list-style: none;
}

.main-nav li {
	margin-left: 25px;
}

.main-nav a {
	color: var(--color-text);
	font-weight: 600;
	position: relative;
}

.main-nav a:not(.btn-primary):after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -5px;
	left: 0;
	background-color: var(--color-accent);
	transition: var(--transition);
}

.main-nav a:not(.btn-primary):hover:after {
	width: 100%;
}

/* Hero Section */
.hero {
	background:
		linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
		url("../img/qb8Hh0.jpg") no-repeat center center/cover;
	min-height: 80vh;
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--color-light);
	padding: 100px 0;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	animation: fadeInDown 1s ease;
}

.hero p {
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto 30px;
	animation: fadeInUp 1s ease 0.3s forwards;
	opacity: 0;
}

.hero .btn-primary {
	animation: fadeInUp 1s ease 0.6s forwards;
	opacity: 0;
}

/* About Section */
.about-content {
	display: flex;
	align-items: center;
	gap: 50px;
}

.about-image {
	flex: 1;
	max-width: 500px;
}

.about-text {
	flex: 1;
}

/* Benefits Section */
.benefits {
	background-color: var(--color-grey);
}

.benefits-wrapper {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 30px;
}

.benefit-card {
	flex: 1;
	min-width: 300px;
	background-color: var(--color-light);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px var(--color-shadow);
	text-align: center;
	transition: var(--transition);
}

.benefit-card:hover {
	transform: translateY(-10px);
}

.benefit-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-accent);
	border-radius: 50%;
	overflow: hidden;
}

.benefit-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Courses Section */
.courses-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.course-card {
	flex: 1;
	min-width: 300px;
	background-color: var(--color-light);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 5px 15px var(--color-shadow);
	transition: var(--transition);
}

.course-card:hover {
	transform: translateY(-10px);
}

.course-image {
	height: 200px;
	overflow: hidden;
}

.course-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.course-card:hover .course-image img {
	transform: scale(1.1);
}

.course-details {
	padding: 20px;
}

.course-meta {
	display: flex;
	justify-content: space-between;
	margin: 15px 0;
	font-weight: 600;
}

.course-price {
	color: var(--color-accent);
	font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials {
	background-color: var(--color-grey);
}

.testimonials-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.testimonial-card {
	flex: 1;
	min-width: 300px;
	background-color: var(--color-light);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px var(--color-shadow);
	position: relative;
}

.testimonial-card::before {
	content: '"';
	position: absolute;
	top: 20px;
	left: 20px;
	font-size: 4rem;
	color: var(--color-highlight);
	opacity: 0.3;
	line-height: 1;
}

.testimonial-author {
	margin-top: 20px;
	text-align: right;
}

/* FAQ Section */
.faq-wrapper {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	background-color: var(--color-light);
	border-radius: var(--border-radius);
	margin-bottom: 15px;
	box-shadow: 0 3px 10px var(--color-shadow);
	overflow: hidden;
}

.faq-item summary {
	padding: 20px;
	cursor: pointer;
	font-weight: 600;
	position: relative;
	outline: none;
}

.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	color: var(--color-accent);
	transition: var(--transition);
}

.faq-item[open] summary::after {
	content: "-";
}

.faq-content {
	padding: 0 20px 20px;
}

/* Order Form Section */
.order {
	background-color: var(--color-grey);
}

.order-form {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--color-light);
	padding: 40px;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px var(--color-shadow);
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: var(--border-radius);
	font-size: 1rem;
	transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 133, 27, 0.2);
}

.checkbox-group {
	display: flex;
	align-items: center;
}

.checkbox-group input {
	width: auto;
	margin-right: 10px;
}

.checkbox-group label {
	margin: 0;
}

/* Footer Section */
footer {
	background-color: var(--color-text);
	color: var(--color-light);
	padding: 60px 0 30px;
}

.footer-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 30px;
}

.footer-section {
	flex: 1;
	min-width: 250px;
}

.footer-section h3 {
	margin-bottom: 20px;
	color: var(--color-highlight);
}

.footer-section ul {
	list-style: none;
}

.footer-section li {
	margin-bottom: 10px;
}

.footer-section a {
	color: var(--color-light);
}

.footer-section a:hover {
	color: var(--color-highlight);
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--color-light);
	box-shadow: 0 -5px 15px var(--color-shadow);
	z-index: 999;
	padding: 20px 0;
}

.cookie-popup-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cookie-popup h3 {
	margin-bottom: 10px;
}

.cookie-popup p {
	margin-bottom: 20px;
	text-align: center;
}

.cookie-popup form {
	display: flex;
	gap: 10px;
}

/* 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);
	}
}

/* Responsive Design */
@media (max-width: 992px) {
	.about-content {
		flex-direction: column;
	}

	.about-image {
		max-width: 100%;
		margin-bottom: 30px;
	}

	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	section {
		padding: 60px 0;
	}
}

@media (max-width: 768px) {
	.menu-icon {
		display: flex;
	}

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--color-light);
		box-shadow: 0 5px 10px var(--color-shadow);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.menu-toggle:checked ~ .main-nav {
		max-height: 500px;
	}

	.main-nav ul {
		flex-direction: column;
		padding: 20px;
	}

	.main-nav li {
		margin: 0 0 15px 0;
	}

	.cookie-popup form {
		flex-direction: column;
		width: 100%;
	}

	.cookie-popup button,
	.cookie-popup a {
		width: 100%;
		margin-bottom: 10px;
		text-align: center;
	}
}

@media (max-width: 576px) {
	h1 {
		font-size: 1.8rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.benefit-card,
	.course-card,
	.testimonial-card {
		min-width: 100%;
	}

	.order-form {
		padding: 20px;
	}
}
