/* ============================================
   БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    --primary: #0c9ad3;
    --primary-dark: #0a7db0;
    --primary-light: #75e6f8;
    --secondary: #54f5e9;
    --accent: #315c5d;
    --light: #f0f0f0;
    --lighter: #f9f9f9;
    --white: #ffffff;
    --gray: #889593;
    --dark: #1a1a2e;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 50px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-light);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(117, 230, 248, 0.35);
}

.btn-primary:hover {
    background: #5fd9ec;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(117, 230, 248, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: #2a2a4a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 12px 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.98);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo a {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.nav-logo a:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li a {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    color: var(--dark);
}

.nav-menu li a:hover {
    background: rgba(12, 154, 211, 0.08);
    color: var(--primary);
}

.nav-menu li a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(12, 154, 211, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   ГЛАВНАЯ - ОБЛОЖКА
   ============================================ */
.cover-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(60,77,178,0.85), rgba(12,154,211,0.85)),
                url('https://static.tildacdn.pub/tild3065-3338-4336-a138-313236663865/_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
    padding: 60px 0;
}

.cover-content {
    max-width: 900px;
    margin: 0 auto;
}

.cover-content h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 900;
    font-style: italic;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -2px;
}

.cover-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.95;
}

.cover-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 750px;
    margin: 0 auto 35px;
    opacity: 0.9;
    line-height: 1.8;
}

.cover-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ============================================
   ГЛАВНАЯ - ПРЕИМУЩЕСТВА
   ============================================ */
.home-features {
    padding: 80px 0;
    background: var(--lighter);
}

.home-features h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* ============================================
   БЛОКИ "ПОЧЕМУ #БЕЗАКЦЕНТА?" С АНИМАЦИЕЙ
   ============================================ */
.feature-card {
    background: var(--white);
    padding: 35px 28px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(12, 154, 211, 0.15);
    border-color: var(--primary);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   АНИМАЦИЯ ДЛЯ ВСЕХ БЛОКОВ
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   СТРАНИЦЫ - ОБЩИЙ ШАБЛОН
   ============================================ */
.page-header {
    text-align: center;
    padding: 50px 0 40px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.page-header .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--gray);
    margin-top: 8px;
}

/* ============================================
   СТРАНИЦА "О ПРОЕКТЕ"
   ============================================ */
.page-about {
    padding-bottom: 80px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--accent);
}

.about-feature {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--lighter);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--light);
}

.about-feature h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.about-feature ul li {
    padding: 3px 0 3px 24px;
    position: relative;
}

.about-feature ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-cta {
    margin-top: 30px;
    padding: 30px;
    background: var(--primary);
    border-radius: var(--radius);
    text-align: center;
    color: var(--white);
}

.about-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-cta .btn {
    background: var(--white);
    color: var(--primary);
}

.about-cta .btn:hover {
    background: var(--light);
    transform: translateY(-3px);
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   СТРАНИЦА "ТЬЮТОРАМ"
   ============================================ */
.page-tutors {
    padding-bottom: 80px;
    background: var(--lighter);
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tutor-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.tutor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tutor-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.tutor-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.tutor-card p {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.tutor-card ul li {
    padding: 4px 0 4px 24px;
    position: relative;
    font-size: 0.92rem;
}

.tutor-card ul li::before {
    content: "✓";
    color: var(--primary-light);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tutors-conditions {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.tutors-conditions h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.conditions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    margin-bottom: 30px;
}

.conditions-list li {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 20px;
    background: var(--lighter);
    border-radius: 50px;
    border: 1px solid rgba(12, 154, 211, 0.15);
}

/* ============================================
   СТРАНИЦА "УЧЕНИКАМ"
   ============================================ */
.page-students {
    padding-bottom: 80px;
}

.students-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.students-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 25px 0 12px;
}

.students-info h2:first-of-type {
    margin-top: 0;
}

.students-info ul li {
    padding: 4px 0 4px 24px;
    position: relative;
}

.students-info ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.highlight {
    background: var(--light);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    margin: 20px 0;
    font-weight: 500;
}

.students-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================================
   СТРАНИЦА "РОДИТЕЛЯМ"
   ============================================ */
.page-parents {
    padding-bottom: 80px;
    background: var(--lighter);
}

.parents-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.parent-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.parent-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
}

.parent-item.full-width {
    grid-column: 1 / -1;
}

.parent-number {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    flex-shrink: 0;
}

.parent-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}

.parent-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

.parents-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   СТРАНИЦА "КОНТАКТЫ"
   ============================================ */
.page-contacts {
    padding-bottom: 80px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--gray);
    margin: 4px 0;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-link {
    padding: 8px 18px;
    background: var(--lighter);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   СТРАНИЦА "ПОДАТЬ ЗАЯВКУ"
   ============================================ */
.page-apply {
    padding-bottom: 80px;
    background: var(--lighter);
}

.apply-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
}

.apply-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.apply-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.apply-tab {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: var(--lighter);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.apply-tab:hover {
    background: var(--light);
}

.apply-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.apply-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.info-card ul li,
.info-card ol li {
    padding: 6px 0 6px 28px;
    position: relative;
}

.info-card ul li::before {
    content: "✓";
    color: var(--primary-light);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-card ol {
    counter-reset: item;
}

.info-card ol li {
    counter-increment: item;
    padding-left: 32px;
}

.info-card ol li::before {
    content: counter(item);
    color: var(--white);
    background: var(--primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 8px;
}

/* ============================================
   СТИЛИ ДЛЯ ФОРМ
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(12, 154, 211, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 12px;
}

/* ============================================
   ФУТЕР
   ============================================ */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-col .social-links {
    justify-content: flex-start;
}

.footer-col .social-link {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.footer-col .social-link:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    .students-content {
        grid-template-columns: 1fr;
    }
    .students-image {
        order: -1;
    }
    .apply-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 68px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li a {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        margin-top: 8px;
    }

    .cover-section {
        min-height: auto;
        padding: 100px 0 80px;
        background-attachment: scroll;
    }

    .tutors-grid {
        grid-template-columns: 1fr;
    }

    .parents-grid {
        gap: 12px;
    }

    .parent-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col .social-links {
        justify-content: center;
    }

    .about-cta {
        padding: 20px;
    }

    .tutors-conditions {
        padding: 30px 20px;
    }

    .conditions-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cover-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .about-feature {
        padding: 16px;
    }

    .tutor-card {
        padding: 24px 16px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .page-header {
        padding: 30px 0 25px;
    }

    .home-features {
        padding: 50px 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   АНИМАЦИЯ ПРИ ПОЯВЛЕНИИ (ОБЩАЯ)
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для разных элементов */
.animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }
/* ============================================
   АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ============================================ */
@media (max-width: 768px) {
    
    /* ABOUT: 2 колонки → 1 колонка, фото сверху */
    .about-grid {
        grid-template-columns: 1fr !important;
    }
    .about-grid > div:last-child {
        order: -1 !important;
    }
    .about-bottom-grid {
        grid-template-columns: 1fr !important;
    }
    .page-about .btn {
        width: 100%;
        max-width: 100%;
    }

    /* STUDENTS: 2 колонки → 1 колонка, фото сверху */
    .students-content {
        grid-template-columns: 1fr !important;
    }
    .students-image {
        order: -1 !important;
    }

    /* HOME: кнопки и текст под экран */
    .cover-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    .cover-content h1 {
        font-size: 2.8rem !important;
    }
    .cover-description {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
    .cover-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    /* КАРТОЧКИ ПРЕИМУЩЕСТВ */
    .features-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    .feature-card {
        padding: 20px 16px !important;
    }

    /* ОСТАЛЬНЫЕ БЛОКИ */
    .tutors-grid {
        grid-template-columns: 1fr !important;
    }
    .contacts-grid {
        grid-template-columns: 1fr !important;
    }
    .apply-grid {
        grid-template-columns: 1fr !important;
    }
    .apply-form-wrapper {
        padding: 20px !important;
    }
    .apply-tabs {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .apply-tab {
        width: 100% !important;
        text-align: center !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    .footer-col .social-links {
        justify-content: center !important;
    }
    .parent-item {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .feature-card {
        padding: 16px 12px !important;
    }
    .feature-icon {
        font-size: 2.2rem !important;
    }
    .feature-card h3 {
        font-size: 1rem !important;
    }
    .feature-card p {
        font-size: 0.85rem !important;
    }
    .cover-content h1 {
        font-size: 2.2rem !important;
    }
}
/* ============================================
   АККОРДЕОН ДЛЯ РОДИТЕЛЕЙ (телефон)
   ============================================ */
.accordion-block {
    transition: all 0.3s ease;
}

.accordion-header {
    user-select: none;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .parent-extra-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .accordion-block {
        padding: 16px 20px !important;
    }
    
    .accordion-header h4 {
        font-size: 1rem !important;
    }
    
    .accordion-body ul li {
        font-size: 0.92rem !important;
        padding: 4px 0 !important;
    }
}

@media (min-width: 769px) {
    /* На ПК аккордеон всегда раскрыт */
    .accordion-body {
        display: block !important;
    }
    .accordion-icon {
        display: none !important;
    }
    .accordion-header {
        cursor: default !important;
    }
}
/* ============================================
   АККОРДЕОН ДЛЯ РОДИТЕЛЕЙ (телефон)
   ============================================ */
.accordion-block {
    transition: all 0.3s ease;
}

.accordion-header {
    user-select: none;
    cursor: pointer;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--gray);
}

/* НА ПК — скрываем иконки и делаем блоки всегда раскрытыми */
@media (min-width: 769px) {
    .accordion-icon {
        display: none !important;  /* ← убираем треугольнички на ПК */
    }
    .accordion-body {
        display: block !important;
    }
    .accordion-header {
        cursor: default !important;
    }
}

/* НА ТЕЛЕФОНЕ — нормальные отступы и стили */
@media (max-width: 768px) {
    .parent-extra-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .accordion-block {
        padding: 16px 20px !important;
    }
    
    .accordion-header h4 {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .accordion-body {
        margin-top: 12px !important;
    }
    
    .accordion-body ul li {
        font-size: 0.92rem !important;
        padding: 4px 0 !important;
    }
}
/* ============================================
   СКРЫВАЕМ ТРЕУГОЛЬНИКИ НА ПК
   ============================================ */
@media (min-width: 769px) {
    .accordion-icon {
        display: none !important;
    }
}

/* ============================================
   АККОРДЕОН ДЛЯ ТЕЛЕФОНА
   ============================================ */
@media (max-width: 768px) {
    .parent-extra-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .accordion-block {
        padding: 16px 20px !important;
    }
    .accordion-header h4 {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    .accordion-body ul li {
        font-size: 0.92rem !important;
        padding: 4px 0 !important;
    }
    .accordion-icon {
        font-size: 1rem !important;
        color: var(--gray) !important;
    }
}
/* ============================================
   УВЕЛИЧИВАЕМ ЗАГОЛОВОК НА ТЕЛЕФОНЕ
   ============================================ */
@media (max-width: 768px) {
    .cover-content h1 {
        font-size: 3.5rem !important;  /* было 2.8rem, стало 3.5rem */
    }
}
/* ============================================
   О ПРОЕКТЕ: адаптив для телефона
   ============================================ */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column !important;
    }
    .about-grid > div:first-child {
        order: 2 !important;
    }
    .about-image-wrapper {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .about-image-wrapper img {
        max-width: 100% !important;
    }
    .about-bottom-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ============================================
   ФОН ДЛЯ ТЕЛЕФОНА (исправление)
   ============================================ */
@media (max-width: 768px) {
    .cover-section {
        background: linear-gradient(135deg, rgba(60,77,178,0.85), rgba(12,154,211,0.85)), url('image/home.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;  /* ← fixed → scroll */
        min-height: auto !important;
        padding: 80px 0 60px !important;
    }
}
/* ============================================
   ФИКСЫ ТОЛЬКО ДЛЯ ВСТРОЕННОГО БРАУЗЕРА ВК (iPhone)
   НЕ ВЛИЯЮТ НА ПК И ДРУГИЕ БРАУЗЕРЫ
   ============================================ */

/* 1. Чиним фон на обложке */
.cover-section {
    background: linear-gradient(135deg, rgba(60,77,178,0.85), rgba(12,154,211,0.85)), url('image/home.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
}

/* 2. Чиним картинку в "О проекте" — чтобы не растягивалась */
.page-about img {
    max-width: 100% !important;
    height: auto !important;
}

/* 3. Чиним блоки в "Ученикам" — чтобы не разъезжались */
.page-students .students-content {
    display: block !important;
}

.page-students .students-content > div {
    width: 100% !important;
    margin-bottom: 20px !important;
}

.page-students .students-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* 4. Чиним нижние блоки в "О проекте" — чтобы не расползались */
.about-bottom-grid {
    display: block !important;
}
.about-bottom-grid .about-feature {
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* 5. Чиним сетку преимуществ */
.features-grid {
    display: block !important;
}
.feature-card {
    width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}
/* ============================================
   ФИКСЫ ТОЛЬКО ДЛЯ ВК (iPhone) — НЕ ВЛИЯЮТ НА ПК И ДРУГИЕ БРАУЗЕРЫ
   ============================================ */

/* 1. Чиним фон на обложке */
.cover-section {
    background: linear-gradient(135deg, rgba(60,77,178,0.85), rgba(12,154,211,0.85)), url('image/home.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
}

/* 2. Чиним картинки */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* 3. Чиним блок "Ученикам" — чтобы не разъезжался */
.students-content {
    display: block !important;
}
.students-content > div {
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* 4. Чиним нижние блоки в "О проекте" */
.about-bottom-grid {
    display: block !important;
}
.about-bottom-grid .about-feature {
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* 5. Чиним преимущества */
.features-grid {
    display: block !important;
}
.feature-card {
    width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}
/* ============================================
   ФИКСЫ ТОЛЬКО ДЛЯ ВК (iPhone) — НЕ ВЛИЯЮТ НА ПК
   ============================================ */

/* 1. Фон на обложке */
.cover-section {
    background: linear-gradient(135deg, rgba(60,77,178,0.85), rgba(12,154,211,0.85)), url('image/home.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
}

/* 2. Все картинки — чтобы не вылезали */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* 3. Картинка в "О проекте" — шире */
.about-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* 4. Блок "Ученикам" — чтобы не разъезжался */
.students-content {
    display: block !important;
    width: 100% !important;
}
.students-content > div {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

/* 5. Блоки в "О проекте" — чтобы не выходили за экран */
.about-bottom-grid {
    display: block !important;
    width: 100% !important;
}
.about-bottom-grid .about-feature {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* 6. Преимущества */
.features-grid {
    display: block !important;
    width: 100% !important;
}
.feature-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

/* 7. Все контейнеры — чтобы не вылезали */
.container {
    max-width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

/* 8. Все секции — чтобы не вылезали */
.page-about,
.page-students,
.page-tutors,
.page-parents,
.page-contacts,
.page-apply {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
* {
    box-sizing: border-box !important;
}
/* ============================================
   ТОЛЬКО ДЛЯ ВК (iPhone) — картинка и 3 блока
   ============================================ */

/* 1. Картинка в "О проекте" — на всю ширину */
.about-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}
.about-image-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* 2. Три нижних блока — друг под другом, на всю ширину */
.about-bottom-grid {
    display: block !important;
    width: 100% !important;
}
.about-bottom-grid .about-feature {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}
/* УНИВЕРСАЛЬНЫЙ ФИКС ДЛЯ ВК */
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.container {
    padding: 0 15px !important;
}
img {
    max-width: 100% !important;
    height: auto !important;
}
/* ============================================
   ТОЛЬКО ДЛЯ WebView ВК (через класс .vk-webview)
   ============================================ */

/* Картинка в "О проекте" — на всю ширину */
.vk-webview .about-image-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
.vk-webview .about-image-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Три нижних блока — друг под другом, на всю ширину */
.vk-webview .about-bottom-grid {
    display: block !important;
    width: 100% !important;
}
.vk-webview .about-bottom-grid .about-feature {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Дополнительно: все контейнеры — не выходят за экран */
.vk-webview .container {
    padding: 0 16px !important;
}
.vk-webview .page-about,
.vk-webview .page-students {
    overflow-x: hidden !important;
}
/* ============================================
   ТОЛЬКО ДЛЯ ЛЮБОГО WebView (через класс .webview-fix)
   ============================================ */

/* Картинка в "О проекте" — на всю ширину */
.webview-fix .about-image-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
.webview-fix .about-image-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Три нижних блока — друг под другом, на всю ширину */
.webview-fix .about-bottom-grid {
    display: block !important;
    width: 100% !important;
}
.webview-fix .about-bottom-grid .about-feature {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Блок "Ученикам" — чтобы не разъезжался */
.webview-fix .students-content {
    display: block !important;
    width: 100% !important;
}
.webview-fix .students-content > div {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

/* Все контейнеры — не выходят за экран */
.webview-fix .container {
    padding: 0 16px !important;
}
.webview-fix .page-about,
.webview-fix .page-students {
    overflow-x: hidden !important;
}
/* ============================================
   ПОКАЗЫВАЕМ WebView-версию ТОЛЬКО на телефонах
   ============================================ */
@media (max-width: 768px) {
    .about-webview-version {
        display: block !important;
    }
    .about-normal-version {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .about-webview-version {
        display: none !important;
    }
    .about-normal-version {
        display: block !important;
    }
}