/* Reset e base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html,
body {
	overflow-x: hidden;
	width: 100%;
	position: relative;
	scroll-padding-top: 70px; /* Добавляем отступ для прокрутки к якорям */
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #1c1c1c;
	background-color: #faf8f1;
	padding-top: 60px; /* Добавляем отступ для компенсации высоты fixed header */
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

/* Типография */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 1rem;
	line-height: 1.3;
	word-wrap: break-word;
}

h1 {
	font-size: clamp(1.8rem, 5vw, 2.5rem);
}

h2 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	text-align: center;
	margin-bottom: 2rem;
	position: relative;
	padding-bottom: 1rem;
}

h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, #f72585, #7209b7);
}

p {
	margin-bottom: 1rem;
}

/* Пульсанти */
.btn {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	white-space: normal;
}

.btn-primary {
	background-color: #e8630a;
	color: white;
}

.btn-primary:hover {
	background-color: #d45a09;
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(232, 99, 10, 0.3);
}

.btn-secondary {
	background-color: #5a189a;
	color: white;
}

.btn-secondary:hover {
	background-color: #4c1582;
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(90, 24, 154, 0.3);
}

/* Header */
header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
	height: 60px;
	background: linear-gradient(90deg, #f72585, #7209b7);
	color: white;
	padding: 0.6rem 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
}

body {
	padding-top: 60px;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	text-decoration: none;
	color: white;
	padding: 0.5rem 0;
}

.logo span {
	color: #e8630a;
}

/* Навигация */
.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none;
	cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	display: block;
	background: white;
	height: 2px;
	width: 2rem;
	position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: "";
	position: absolute;
}

.nav-toggle-label span::before {
	bottom: 7px;
}

.nav-toggle-label span::after {
	top: 7px;
}

nav {
	display: flex;
}

nav ul {
	list-style: none;
	display: flex;
}

nav li {
	margin-left: 1.5rem;
}

nav a {
	color: white;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s;
}

nav a:hover {
	color: #e8630a;
}

/* Cookie consent */
.cookie-consent {
	display: block; /* PHP будет менять это значение */
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(28, 28, 28, 0.95);
	color: white;
	padding: 1rem 0;
	z-index: 1000;
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.cookie-text {
	flex: 1;
	min-width: 200px;
}

.cookie-buttons {
	display: flex;
	gap: 1rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.nav-toggle-label {
		display: block;
		z-index: 1000;
	}

	nav {
		position: fixed;
		top: 60px;
		background: linear-gradient(90deg, #f72585, #7209b7);
		width: 100%;
		left: 0;
		transform: scaleY(0);
		transform-origin: top;
		transition: transform 0.3s ease;
		opacity: 0;
		z-index: 998;
		max-height: calc(100vh - 60px);
		overflow-y: auto;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
	}

	.nav-toggle:checked ~ nav {
		transform: scaleY(1);
		opacity: 1;
	}

	nav ul {
		flex-direction: column;
		padding: 1rem;
		width: 100%;
	}

	nav li {
		margin: 0.5rem 0;
		width: 100%;
		text-align: center;
	}

	nav a {
		display: block;
		padding: 0.8rem 0;
		font-size: 1.1rem;
	}

	.cookie-content {
		flex-direction: column;
		text-align: center;
	}
}

/* Hero Banner */
.hero-banner {
	background:
		linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
		url("img/nYZGXz.jpg") no-repeat center/cover;
	color: white;
	text-align: center;
	padding: 8rem 1rem;
	margin-bottom: 4rem;
	width: 100%;
}

.hero-banner h1 {
	font-size: clamp(2rem, 6vw, 3rem);
	margin-bottom: 1.5rem;
}

.hero-banner p {
	font-size: clamp(1rem, 3vw, 1.2rem);
	margin-bottom: 2rem;
}

/* About Section */
.about {
	padding: 4rem 0;
	width: 100%;
}

.about-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
}

.about-text {
	flex: 1;
	min-width: 280px;
}

.about-image {
	flex: 1;
	min-width: 280px;
}

/* Classes Section */
.classes {
	padding: 4rem 0;
	background-color: #f2eee2;
	width: 100%;
}

.classes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.class-card {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition:
		transform 0.3s,
		box-shadow 0.3s;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.class-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.class-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
}

.class-card h3,
.class-card p {
	padding: 0 1.5rem;
}

.class-card h3 {
	margin-top: 1.5rem;
	color: #5a189a;
}

.price {
	font-weight: bold;
	color: #e8630a;
	font-size: 1.2rem;
}

.class-card .btn {
	margin: 1.5rem;
	display: block;
}

/* Testimonials Section */
.testimonials {
	padding: 4rem 0;
	width: 100%;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.testimonial-card {
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	position: relative;
}

.quote {
	font-style: italic;
	margin-bottom: 1.5rem;
}

.quote::before {
	content: '"';
	font-size: 4rem;
	color: #5a189a;
	opacity: 0.2;
	position: absolute;
	top: 0.5rem;
	left: 1rem;
}

.author {
	font-weight: bold;
	color: #5a189a;
}

/* Benefits Section */
.benefits {
	padding: 4rem 0;
	background-color: #f2eee2;
	width: 100%;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.benefit-card {
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s;
}

.benefit-card:hover {
	transform: translateY(-10px);
}

.benefit-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

/* Booking Form */
.booking {
	padding: 4rem 0;
	width: 100%;
}

.booking-form {
	max-width: 600px;
	margin: 0 auto;
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.form-group {
	margin-bottom: 1.5rem;
	width: 100%;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

input[type="text"],
input[type="tel"],
select {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
}

.checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.checkbox-label.required::after {
	content: "*";
	color: #e8630a;
	margin-left: 0.3rem;
}

.booking-form .btn {
	width: 100%;
	margin-top: 1rem;
}

/* Additional responsive fixes */
@media screen and (max-width: 480px) {
	.container {
		padding: 0 10px;
	}

	body {
		padding-top: 50px; /* Меньший отступ для мобильных устройств */
	}

	.hero-banner {
		padding: 5rem 1rem;
	}

	.about,
	.classes,
	.testimonials,
	.benefits,
	.booking {
		padding: 2rem 0;
	}

	.class-card img {
		height: 180px;
	}

	.benefit-card {
		padding: 1.5rem;
	}

	.booking-form {
		padding: 1.5rem;
	}

	/* Дополнительная поддержка для мобильных устройств */
	header {
		padding: 0.4rem 0;
		height: 50px;
		background: linear-gradient(90deg, #f72585, #7209b7);
		display: flex;
		align-items: center;
	}

	/* Настройка навигации для маленьких экранов */
	nav {
		top: 50px !important;
		max-height: calc(100vh - 50px) !important;
	}
}

/* Стили для контента с учетом fixed header */
main {
	width: 100%;
	position: relative;
}

/* Стили для якорных ссылок с учетом fixed header */
:target {
	scroll-margin-top: 70px;
	padding-top: 70px;
	margin-top: -70px;
}
