/* =============================================================
   1. СКИДАННЯ ТА БАЗОВІ СТИЛІ (RESET & BASE STYLES)
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =============================================================
   2. КНОПКИ ТА КАРТКИ
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

/* =============================================================
   3. ШАПКА САЙТУ (HEADER)
   ============================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.logo-name {
    display: inline-flex;
    gap: 0.35rem;
}

.logo-name span:not(:first-child) {
    color: #2563eb;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #2563eb;
}

.btn-header {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #0f172a;
    border-radius: 2px;
    transition: 0.3s;
}

/* =============================================================
   4. HERO SECTION
   ============================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 75px;
    background: linear-gradient(rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.78)),
        url('https://images.unsplash.com/photo-1510915361894-db8b60106cb1?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    padding: 3rem 1rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2.25rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================
   5. СЕКЦІЇ ТА ЗАГОЛОВКИ
   ============================================================= */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================
   6. ПРО ВИКЛАДАЧА
   ============================================================= */
.teacher-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.teacher-image-wrapper {
    position: relative;
}

.teacher-image {
    border-radius: 24px;
    width: 100%;
    height: 480px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.teacher-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #ffffff;
    padding: 1.25rem 1.75rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.teacher-experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}

.teacher-experience-badge .text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.teacher-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.teacher-subtitle {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.teacher-desc {
    color: #475569;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.teacher-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-item {
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

/* =============================================================
   7. НАПРЯМКИ НАВЧАННЯ
   ============================================================= */
.instruments-bg {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.instrument-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instrument-icon-bg {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background-color: #eff6ff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 4px solid #dbeafe;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.instrument-icon-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instrument-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.instrument-card p {
    color: #64748b;
    font-size: 0.95rem;
}

.instrument-note {
    margin-top: 2.5rem;
    text-align: center;
    background-color: #eff6ff;
    border: 1px dashed #bfdbfe;
    padding: 1rem;
    border-radius: 12px;
    color: #1e40af;
    font-weight: 500;
}

/* =============================================================
   8. ПЕРЕВАГИ
   ============================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    background-color: #2563eb;
    color: #ffffff;
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.feature-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.feature-content p {
    color: #64748b;
    font-size: 0.95rem;
}

/* =============================================================
   9. ПРОБНИЙ УРОК
   ============================================================= */
.trial-bg {
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 28px;
    padding: 4rem 3rem;
    margin: 2rem 0;
}

.trial-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trial-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.trial-header p {
    color: #94a3b8;
}

.trial-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-card p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.trial-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-trial {
    background-color: #3b82f6;
}

/* =============================================================
   10. ВІДГУКИ
   ============================================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-text {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.avatar-1 {
    background-color: #fbcfe8;
    color: #be185d;
}

.avatar-2 {
    background-color: #e0e7ff;
    color: #3730a3;
}

.avatar-3 {
    background-color: #dcfce7;
    color: #15803d;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.author-info p {
    font-size: 0.8rem;
    color: #64748b;
}

.stars {
    color: #f59e0b;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* =============================================================
   11. FAQ
   ============================================================= */
.faq-bg {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: #475569;
    font-size: 0.95rem;
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.25rem;
}

/* =============================================================
   12. CTA & FOOTER
   ============================================================= */
.cta-section {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-align: center;
    padding: 5rem 0;
    border-radius: 32px;
    margin-bottom: 4rem;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #bfdbfe;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-white {
    background-color: #ffffff;
    color: #2563eb;
    font-size: 1.1rem;
    padding: 1rem 2.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: #2563eb;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

/* =============================================================
   13. АДАПТИВНІСТЬ (RESPONSIVE)
   ============================================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .teacher-grid {
        grid-template-columns: 1fr;
    }

    .teacher-image {
        height: 380px;
    }

    .teacher-experience-badge {
        bottom: 10px;
        right: 10px;
    }

    .instruments-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .feature-icon {
        min-width: 72px;
        width: 72px;
        height: 72px;
        border-radius: 16px;
        font-size: 2rem;
    }

    .feature-content {
        width: 100%;
    }

    .trial-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        height: 68px;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .logo {
        min-width: 0;
        flex-shrink: 1;
        white-space: nowrap;
        gap: 0.35rem;
        font-size: 1.05rem;
    }

    .logo-name {
        flex-direction: column;
        gap: 0;
        line-height: 1.05;
    }

    .logo svg {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
    }

    .btn-header {
        display: none;
    }

    .burger {
        flex-shrink: 0;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .hero h1 {
        font-size: 1.55rem;
        line-height: 1.2;
        font-weight: 600;
    }

    #advantages .section-title h2 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    #trial .trial-header h2 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .trial-steps {
        grid-template-columns: 1fr;
    }

    .trial-bg {
        padding: 2.5rem 1.5rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    .cta-content h2 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .teacher-highlights {
        grid-template-columns: 1fr;
    }
}