/* Основные стили и сброс */
:root {
    --primary-color: #2c3e50; /* Темно-синий/графитовый для основных элементов */
    --secondary-color: #b44335; /* Темно-красный для акцентов */
    --dark-color: #1a2530;
    --light-color: #ffffff;
    --bg-color: #ecf0f1; /* Светло-серый фон */
    --text-color: #333;
    --card-pink: #e8d6d3; /* Более приглушенный розовый для карточек */
    --card-green: #d5dbdb; /* Серо-голубой для карточек */
    --card-blue: #bdc3c7; /* Более серый оттенок для карточек */
    --section-spacing: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Добавляем инерционный скролл для iOS */
    touch-action: manipulation; /* Улучшаем отзывчивость касаний */
    will-change: auto; /* Используем автоматическую оптимизацию производительности */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Заголовки */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* Разделы */
section {
    padding: var(--section-spacing) 0;
}

section:nth-child(even) {
    background-color: white;
}

/* Навигация */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-left: 15px;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--primary-color);
}

.contact-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Шапка */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    background: var(--bg-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.4" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,261.3C672,256,768,224,864,229.3C960,235,1056,277,1152,277.3C1248,277,1344,235,1392,213.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 0;
    opacity: 0.7;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #000;
}

.hero h1 span {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #555;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 3rem;
}

.feature {
    background-color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.primary-btn, .secondary-btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background-color: var(--dark-color);
}

.secondary-btn:hover {
    opacity: 0.9;
}

/* Карточки офферов в стиле devdad */
.stats-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.stats-card {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    text-align: left;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.stats-card.pink {
    background-color: rgba(232, 214, 211, 0.9);
    border: 1px solid rgba(180, 67, 53, 0.2);
}

.stats-card.green {
    background-color: rgba(213, 219, 219, 0.9);
    transform: rotate(5deg);
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.stats-card.blue {
    background-color: rgba(189, 195, 199, 0.9);
    transform: rotate(-3deg);
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.stats-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.stats-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-top: auto;
}

.stats-card-label {
    font-size: 1rem;
    color: #555;
}

/* Секция "Обо мне" */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 0.4;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 25%;
    margin-right: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1.6;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Секция "Формат и как проходит обучение" */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.format-item {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.format-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.format-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.format-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Секция "Программа обучения" */
.program {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.program::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23e8f0fb" fill-opacity="0.3" d="M0,96L48,117.3C96,139,192,181,288,186.7C384,192,480,160,576,170.7C672,181,768,235,864,245.3C960,256,1056,224,1152,186.7C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 0;
    opacity: 0.5;
}

.program-types {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.program-levels {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 2rem;
}

.level-item {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.level-item:nth-child(1) {
    border-top: 5px solid var(--card-pink);
}

.level-item:nth-child(2) {
    border-top: 5px solid var(--card-blue);
}

.level-item:nth-child(3) {
    border-top: 5px solid var(--card-green);
}

.level-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.level-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.level-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-content {
    position: relative;
    z-index: 1;
}

.program-content h3 {
    margin-bottom: 2rem;
}

.program-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.program-item {
    display: flex;
    gap: 20px;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.program-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.item-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.8;
}

.item-content {
    flex: 1;
}

.item-content h4 {
    margin-bottom: 0.5rem;
}

/* Секция "Дополнительные фишки" */
.extra-features {
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.extra-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Секция "Условия и стоимость" */
.pricing {
    background-color: white;
}

.pricing-cards {
    display: flex;
    gap: 30px;
    margin-bottom: 3rem;
}

.pricing-card {
    flex: 1;
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.pricing-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.price-features {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 2rem;
}

.price-features li {
    margin-bottom: 10px;
    position: relative;
}

.price-features li::before {
    content: '⚡️';
    position: absolute;
    left: -20px;
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-option {
    padding: 15px;
    border-radius: 10px;
    background-color: #f5f5f5;
}

.price-option .price {
    margin-bottom: 0.5rem;
}

.pricing-notes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.note-icon {
    font-size: 1.8rem;
}

/* Секция "Поддержка" */
.support {
    background-color: var(--bg-color);
}

.support-text {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

.support-cards {
    display: flex;
    gap: 30px;
}

.support-card {
    flex: 1;
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.support-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Секция "Отзывы" */
.reviews {
    background-color: var(--bg-color);
}

.reviews-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin-bottom: 5px;
}

.reviewer-info p {
    color: #666;
    font-size: 0.9rem;
}

.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.prev-review, .next-review {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-review:hover, .next-review:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Секция "FAQ" */
.faq {
    padding: 80px 0;
    background-color: var(--light-color);
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-answer p {
    margin-bottom: 1.5em;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Секция "Написать мне" */
.contact {
    background-color: white;
}

.contact-options {
    display: flex;
    gap: 30px;
}

.contact-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.option-icon {
    font-size: 2.5rem;
}

.contact-form {
    flex: 2;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.contact-form h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Подвал */
footer {
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    color: white;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Анимации */
.animate-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.3s;
}

.animate-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.6s;
}

.animate-features {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.9s;
}

.animate-btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилизация карточек в стиле devdad */
.wave-bg {
    position: absolute;
    width: 100%;
    height: 300px;
    bottom: 0;
    left: 0;
    z-index: -1;
}

/* Медиа запросы */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .stats-cards {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 70px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 35%;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .program-levels {
        flex-direction: column;
        width: 100%;
    }
    
    .level-item {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .pricing-cards {
        flex-direction: column;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .support-cards {
        flex-direction: column;
        width: 100%;
    }
    
    .support-card {
        width: 100%;
        margin-bottom: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .review-card {
        width: 100%;
    }
    
    .contact-options {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }
    
    nav {
        padding: 15px 0;
    }
    
    .menu {
        display: none;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
    
    .review-card {
        flex: 0 0 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .photo-item {
        max-width: 100%;
    }
    
    .photo-item img {
        height: 250px;
    }
    .photo-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        margin: 40px 0 60px;
        justify-content: center;
    }

    html {
        scroll-behavior: auto; /* Отключаем плавный скролл на мобильных для лучшей производительности */
    }
    
    .hero, .section, .parallax-bg {
        transform: translateZ(0); /* Включаем аппаратное ускорение */
        will-change: transform; /* Подсказка браузеру для оптимизации */
        backface-visibility: hidden; /* Предотвращаем артефакты рендеринга */
    }

    /* Оптимизации для фиксированного хедера */
    header {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        transition: transform 0.3s ease, padding 0.3s ease;
    }
    
    /* Оптимизация для скролла контента */
    main {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Временно отключаем параллакс на мобильных */
    .hero {
        background-attachment: scroll !important;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .highlight-text {
        font-size: 1.3rem;
    }
    
    .format-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные стили для фотографий */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0 60px;
}

.photo-item {
    flex: 1;
    min-width: 280px;
    max-width: calc(50% - 30px);
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid white;
    position: relative;
    margin-bottom: 50px;
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.photo-caption {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.team-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background-color: white;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ecf0f1" fill-opacity="0.4" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,154.7C672,160,768,224,864,218.7C960,213,1056,139,1152,122.7C1248,107,1344,149,1392,170.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 0;
    opacity: 0.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.team-member {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
}

.team-info h3 {
    margin-bottom: 5px;
    color: white;
}

.team-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Медиа-запросы для адаптивности */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .menu {
        display: none;
    }
    
    .contact-btn {
        font-size: 14px;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .hero {
        overflow-x: hidden;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-subtitle {
        width: 100%;
        box-sizing: border-box;
    }
    
    .stats-cards {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .stats-card {
        width: 100%;
        max-width: 100%;
        margin: 10px auto;
        box-sizing: border-box;
        transform: none !important;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 80%;
        margin: 0 auto 30px;
    }
    
    .about-text {
        width: 100%;
        margin-right: 0;
        text-align: left;
    }
    
    .format-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .format-item, .level-item, .program-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    .pricing-cards {
        flex-direction: column;
    }
    
    .pricing-card {
        width: 100%;
        margin-bottom: 30px;
        box-sizing: border-box;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .contact-option, .contact-form {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links, .footer-social {
        margin-top: 20px;
    }
    
    /* Дополнительные корректировки для карточек */
    .review-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Корректировка feature-блоков */
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .feature {
        margin: 5px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    header nav {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .contact-btn {
        font-size: 14px;
        padding: 8px 12px;
        width: 100%;
        max-width: 200px;
        margin-top: 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons button {
        width: 100%;
        max-width: 250px;
        margin: 10px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Корректировка карточек */
    .stats-card, .format-item, .level-item, .program-item {
        padding: 15px;
        margin: 8px 0;
    }
}

/* Бургер-меню */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 8px;
}

.burger-icon span:nth-child(3) {
    top: 16px;
}

.burger-menu.active .burger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.burger-menu.active .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.burger-menu.active .burger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.nav-container {
    display: flex;
}

.mobile-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    header {
        position: fixed;
        width: 100%;
        background-color: white;
        z-index: 100;
        top: 0;
    }
    
    header nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        width: 100%;
        flex-direction: row;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .burger-menu {
        position: relative;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        width: 100%;
        gap: 20px;
    }
    
    .menu li {
        margin: 10px 0;
        width: 80%;
        text-align: center;
    }
    
    .menu a {
        font-size: 18px;
        display: block;
        padding: 10px;
    }
    
    .desktop-btn {
        display: none;
    }
    
    .mobile-btn {
        display: block;
        margin-top: 20px;
    }
    
    .mobile-btn .contact-btn {
        width: 100%;
    }
    
    .body-no-scroll {
        overflow: hidden;
    }
    
    /* Дополнительные стили для контента с учетом фиксированного хедера */
    main {
        margin-top: 60px;
    }
}

/* Стили для модального окна */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form .form-group {
    margin-bottom: 0;
}

.modal-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.modal-form .submit-btn {
    margin-top: 10px;
}

.success-message {
    color: #27ae60;
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.error-message {
    color: #e74c3c;
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
} 