:root {
	--primary: #7F5AF0;
	--primary-dark: #6C4BD2;
	--secondary: #2CB67D;
	--dark: #16161A;
	--light: #FFFFFE;
	--gray: #94A1B2;
	--purple-light: #C4B2F0;
	--green-light: #B2F0D1;
	--section-padding: clamp(3rem, 5vw, 6rem);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Manrope', sans-serif;
	background-color: var(--light);
	color: var(--dark);
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	line-height: 1.2;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 5vw, 3rem);
}

/* Header */
header {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.header-content {
	position: relative;
	z-index: 2;
	max-width: 540px;
}

.header-bg {
	position: absolute;
	top: 0;
	right: 0;
	width: 60%;
	height: 100%;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.header-bg::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(../img/irina.jpg) 50% 30% / cover;
	opacity: 0.15;
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4rem);
	margin-bottom: 1.5rem;
	color: var(--dark);
}

.header-subtitle {
	font-size: 1.25rem;
	color: var(--primary);
	margin-bottom: 1rem;
	font-weight: 500;
}

.header-text {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	color: var(--dark);
}

/* Navigation */
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.5rem 0;
	z-index: 100;
	transition: all 0.3s ease;
}

nav.scrolled {
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
	padding: 1rem 0;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--light);
	line-height: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

nav.scrolled .logo {
	color: var(--primary);
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-links a {
	font-weight: 500;
	position: relative;
	color: var(--light);
}

nav.scrolled .nav-links a {
	color: var(--dark);
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--light);
	transition: width 0.3s ease;
}

nav.scrolled .nav-links a::after {
	background-color: var(--primary);
}

.nav-links a:hover::after {
	width: 100%;
}

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: var(--light);
	font-size: 1.5rem;
	cursor: pointer;
}

nav.scrolled .mobile-menu-btn {
	color: var(--dark);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn-primary {
	background-color: var(--primary);
	color: var(--light);
}

.btn-primary:hover {
	background-color: var(--primary-dark);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(127, 90, 240, 0.3);
}

.btn-outline {
	background-color: transparent;
	color: var(--primary);
	border: 2px solid var(--light);
	margin-left: 1rem;
}

.btn-fullwidth {
	width: 100%;
}

nav.scrolled .btn-outline {
	color: var(--primary);
	border-color: var(--primary);
}

.btn-outline:hover {
	background-color: var(--light);
	color: var(--primary-dark);
}

nav.scrolled .btn-outline:hover {
	background-color: var(--primary);
	color: var(--light);
}

/* Sections */
section {
	padding: var(--section-padding) 0;
}

.section-header {
	text-align: center;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

h2 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 1rem;
	color: var(--dark);
}

.section-subtitle {
	color: var(--primary);
	font-weight: 600;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.9rem;
}

.section-description {
	max-width: 700px;
	margin: 0 auto;
	color: var(--gray);
}

/* About */
.about {
	background-color: #F7F5FF;
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-image {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	aspect-ratio: 1/1;
}

.about-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-text h3 {
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
	color: var(--dark);
}

.about-text p {
	margin-bottom: 1.5rem;
	color: var(--gray);
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
}

.stat-item {
	text-align: center;
	padding: 1.5rem;
	background-color: var(--light);
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 0.9rem;
	color: var(--gray);
}

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.service-card {
	background-color: var(--light);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-image {
	height: 200px;
	overflow: hidden;
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
	transform: scale(1.1);
}

.service-content {
	padding: 2rem;
}

.service-content h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.service-content p {
	color: var(--gray);
	margin-bottom: 1.5rem;
	min-height: 102px;
}

.service-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 1.5rem;
}

/* Diplomas */
.diplomas {
	background-color: #F7F5FF;
}
/* Стили для слайдера дипломов */
.diplomas-slider {
    padding: 20px 20px 60px 20px;
    position: relative;
}

.diploma-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.diploma-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.diploma-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.diploma-image:hover .zoom-btn {
    opacity: 1;
}

.diploma-image:hover img {
    transform: scale(1.05);
}

.diploma-content {
    padding: 20px;
}

.diploma-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.diploma-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Адаптация */
@media (max-width: 768px) {
    .diploma-image {
        height: 250px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
	.logo {
		opacity: 0;
	}
	nav.scrolled .logo {
		opacity: 1;
	}
	.header-bg::after {
		background: none;
	}
	.service-content p {
		min-height: unset;
	}
}

/* Testimonials */
.testimonials-slider {
    padding: 20px 0 50px;
    position: relative;
    margin-top: -2rem;
    margin-bottom: -2rem;
}

.testimonial {
    background-color: var(--light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    margin: 1rem auto;
    max-width: 800px;
}

.testimonial-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1.5rem;
	border: 3px solid var(--primary);
}

.testimonial-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonial-text {
	font-size: 1.1rem;
	font-style: italic;
	color: var(--gray);
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.testimonial-author {
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.testimonial-role {
	color: var(--gray);
	font-size: 0.9rem;
}

.swiper-pagination-bullet {
    background: var(--gray);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(127, 90, 240, 0.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.2rem;
}

.swiper-button-next, .swiper-button-prev {
    width: 3rem;
    height: 3rem;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.5rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .testimonial {
		padding: 1.5rem;
        margin: 1rem;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

/* Contact */
.contact {
    background-color: #f9f9ff;
}
.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.contact-icon {
	width: 50px;
	height: 50px;
	background-color: var(--purple-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 1.2rem;
	flex-shrink: 0;
}

.contact-text h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.contact-text p, .contact-text a {
	color: var(--gray);
}

.contact-form {
	background-color: var(--light);
	padding: 2.5rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-control {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.2);
}

textarea.form-control {
	min-height: 150px;
	resize: vertical;
}

/* Footer */
footer {
	background-color: var(--dark);
	color: var(--light);
	padding: 4rem 0 2rem;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-col h3 {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
	color: var(--light);
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.8rem;
}

.footer-links a {
	color: var(--gray);
	transition: all 0.3s ease;
}

.footer-links a:hover {
	color: var(--light);
	padding-left: 5px;
}

.footer-text {
    margin-bottom: 2rem;
}

.social-links {
	display: flex;
	gap: 1rem;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: rgba(255,255,255,0.1);
	border-radius: 50%;
	color: var(--light);
	transition: all 0.3s ease;
}

.social-links a:hover {
	background-color: var(--primary);
	transform: translateY(-3px);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	color: var(--gray);
	font-size: 0.9rem;
}

/* Mobile menu */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--light);
	z-index: 999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transform: translateY(-100%);
	opacity: 0;
	transition: all 0.3s ease;
}

.mobile-menu.active {
	transform: translateY(0);
	opacity: 1;
}

.mobile-menu .nav-links {
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.mobile-menu .nav-links a {
	font-size: 1.5rem;
	color: var(--dark);
}

.mobile-menu-close {
	position: absolute;
	top: 2rem;
	right: 2rem;
	font-size: 2rem;
	background: none;
	border: none;
	color: var(--dark);
	cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
	.about-content {
		grid-template-columns: 1fr;
	}
	
	.about-image {
		max-width: 500px;
		margin: 0 auto;
	}
	
	.contact-container {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.nav-links {
		display: none;
	}
	.mobile-menu.active .nav-links {
		display: flex;
	}
	
	.mobile-menu-btn {
		display: block;
	}
	
	.header-bg {
		width: 100%;
		clip-path: none;
		opacity: 0.2;
	}
	
	.header-content {
		max-width: 100%;
		text-align: center;
	}

	.header-btn {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.btn-outline {
        margin: 0;
        margin-top: 1rem;
    }
	
	.about-stats {
		grid-template-columns: 1fr;
	}
}

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.animate {
	animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.error-message {
	color: #ff3860;
	font-size: 0.8rem;
	margin-top: 0.25rem;
	display: none;
}

.error-message:not(:empty) {
	display: block;
}

.form-control.error {
	border-color: #ff3860;
}

.form-control.error:focus {
	box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.2);
}

/* Стили для блока курсов */
.courses {
	background-color: #f9f9ff;
	padding: var(--section-padding) 0;
}

.courses-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.course-card {
	background-color: var(--light);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.course-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.course-card:empty {
    background: rgba(0, 0, 0, 0.01);
    box-shadow: none;
}

.course-card:empty:hover {
    transform: none;
    box-shadow: none;
}

.course-image {
	height: 300px; 
	position: relative;
	overflow: hidden;
}

.course-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
	transform: scale(1.05);
}

.course-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background-color: var(--primary);
	color: white;
	padding: 0.3rem 0.8rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 600;
}

.course-content {
	padding: 1.5rem;
}

.course-category {
	color: var(--primary);
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.course-card h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
	color: var(--dark);
}

.course-description {
	color: var(--gray);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.course-meta {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--gray);
	font-size: 0.9rem;
}

.course-meta i {
	margin-right: 0.3rem;
	color: var(--primary);
}

.course-price {
	margin-bottom: 1.5rem;
}

.price-current {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary);
}

.price-old {
	text-decoration: line-through;
	color: var(--gray);
	margin-left: 0.8rem;
	font-size: 1rem;
}

.btn-course {
	margin-top: 0;
}

/* Модальное окно */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	overflow: auto;
}

.modal-content {
	background-color: var(--light);
	margin: 5% auto;
	padding: 2rem;
	border-radius: 10px;
	max-width: 500px;
	width: 90%;
	position: relative;
	animation: modalopen 0.3s;
}

@keyframes modalopen {
	from {opacity: 0; transform: translateY(-50px);}
	to {opacity: 1; transform: translateY(0);}
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	font-size: 1.8rem;
	color: var(--gray);
	cursor: pointer;
	transition: all 0.3s;
}

.modal-close:hover {
	color: var(--primary);
}

/* Адаптация */
@media (max-width: 768px) {
	.modal-content {
		margin: 10% auto;
	}
	
	.course-grid {
		grid-template-columns: 1fr;
	}
	.contact-form {
		padding: 1.5rem;
	}
	.courses-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
	.course-card:empty {
		display: none;
	}
}

/* Стили для Fancybox */
.fancybox__container {
	z-index: 10000;
}

.fancybox__content {
	padding: 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.fancybox-content h3 {
    margin-bottom: 2rem;
}

.fancybox__slide {
	padding: 20px;
}

.fancybox__content > .fancybox__toolbar, 
.fancybox__content > .fancybox__nav {
	--f-button-border-radius: 50%;
	--f-button-bg: rgba(255,255,255,0.8);
	--f-button-hover-bg: rgba(255,255,255,0.9);
	--f-button-active-bg: rgba(255,255,255,1);
	--f-button-color: #444;
	--f-button-hover-color: #222;
	--f-button-active-color: #000;
}

.fancybox__toolbar {
	--f-button-width: 36px;
	--f-button-height: 36px;
	--f-button-svg-width: 18px;
	--f-button-svg-height: 18px;
}

.fancybox__content .fancybox__toolbar {
	top: 10px;
	right: 10px;
}

.fancybox__content .fancybox__toolbar__items {
	right: 0;
}

.fancybox__content .fancybox__button--close {
	right: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
	.fancybox__content {
		width: 90% !important;
		max-width: 100% !important;
	}
	.fancybox-content h3 {
		margin-right: 1rem;
	}
}

/* Стили для иконок */
.fas, .far, .fab {

	color: var(--primary);
}

.contact-icon i {
	font-size: 1.2rem;
	margin-right: 0;
}

.social-links a i {
	font-size: 1.1rem;
	color: white;
	transition: all 0.3s ease;
}

.social-links a:hover i {
	transform: scale(1.1);
}

.course-meta i {
	color: var(--primary);
	margin-right: 5px;
}

/* Размеры для разных иконок */
.fa-lg {
	font-size: 1.33em;
	line-height: 0.75em;
	vertical-align: -0.0667em;
}

.fa-xl {
	font-size: 1.5em;
	line-height: 0.5em;
	vertical-align: -0.075em;
}

.fa-2x {
	font-size: 2em;
}

.fa-3x {
	font-size: 3em;
}

/* Скрываем неактивные слайды */
.swiper-slide {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Отключаем взаимодействие */
}

/* Показываем только активные слайды */
.swiper-slide-visible {
  opacity: 1 !important;
  pointer-events: auto;
}

#captcha-container {
    min-width: unset;
    margin-bottom: 40px !important;
}


/* Сообщение об ошибке */
.alert-error {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
    padding: 8px 12px;
    background: #fde8e8;
    border-radius: 4px;
}

/* Стили для радио-кнопок */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 40px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-dark);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + .payment-icon {
    border-color: var(--primary);
    background-color: var(--primary);
}


.payment-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.yoomoney-icon {
    background-image: url('https://yoomoney.ru/i/svg/logo.svg');
    background-size: cover;
}

.card-icon {
    background-image: url('https://yoomoney.ru/i/svg/cards.svg');
    background-size: cover;
}

.payment-label {
    font-size: 16px;
    font-weight: 500;
}

/* Кнопка оплаты */

.btn-pay:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-pay:disabled {
    opacity: 0.5;
    pointer-events: none;
}