:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #111827; /* Darker for better contrast */
    --text-secondary: #4b5563; /* Darker gray for better contrast */
    --text-light: #9ca3af;
    --background: #ffffff;
    --accent: #f59e0b;
    --background-light: #f9fafb;
    --background-dark: #f3f4f6;
    --primary: #6366f1;
    --border-color: #d1d5db; /* Darker border for visibility */
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Dark mode support - keeping it simple for now to ensure base contrast is good */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #1f2937;
        --text-secondary: #4b5563;
        --border-color: #d1d5db;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 16px;
}

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

/* --- Navbar Core --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 2rem; max-width: 1200px; margin: 0 auto;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.4rem; font-weight: 800; color: var(--primary);
    text-decoration: none;
}

/* Wrapper for Links & Buttons */
.nav-menu-wrapper {
    display: flex; align-items: center; gap: 2rem;
}

/* Links */
.nav-links {
    display: flex; list-style: none; gap: 2rem; align-items: center; margin: 0;
}

.nav-link {
    text-decoration: none; color: var(--text-primary);
    font-weight: 500; font-size: 1rem;
    transition: color 0.3s ease; position: relative;
}

.nav-link:hover { color: var(--primary-color); }

/* --- BUTTONS (Login & Trial) --- */
.nav-actions {
    display: flex; align-items: center; gap: 1rem;
}

/* Кнопка Входу (прозора) */
.btn-login {
    text-decoration: none; color: var(--text-primary);
    font-weight: 600; font-size: 0.95rem;
    padding: 0.5rem 1rem; border-radius: 6px;
    transition: 0.2s;
}
.btn-login:hover { color: var(--primary-color); background: #eff6ff; }

/* Кнопка Пробного уроку (акцентна) */
.btn-trial {
    text-decoration: none; background: var(--primary);
    color: white; font-weight: 600; font-size: 0.95rem;
    padding: 0.6rem 1.2rem; border-radius: 100px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}
.btn-trial:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* --- Dropdown --- */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.dropdown-toggle i { font-size: 0.75rem; transition: 0.3s; }
.dropdown:hover .dropdown-toggle i { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: white; border-radius: 10px;
    list-style: none;
    box-shadow: var(--shadow-xl); border: 1px solid var(--border-color);
    padding: 0.5rem; min-width: 200px;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    padding-top: 10px; /* Відступ, щоб курсор не губився */
}
.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-link {
    display: block; padding: 10px 15px; border-radius: 6px;
    color: var(--text-primary); text-decoration: none; font-weight: 500;
}
.dropdown-link:hover { background: #f3f4f6; color: var(--primary-color); }
/* Стиль для аватарки в меню */
.profile-img {
    width: 35px;        /* Зменшений розмір (можна змінити на 30px або 40px) */
    height: 35px;       /* Висота має дорівнювати ширині */
    border-radius: 50%; /* Робить зображення ідеально круглим */
    object-fit: cover;  /* Обрізає зображення, щоб воно не сплющувалось */
    border: 2px solid #e0e7ff; /* (Опціонально) Тонка рамка для краси */
}

/* Вирівнювання контейнера, щоб текст і стрілка були по центру з картинкою */
.profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
}
/* --- HAMBURGER (Mobile Icon) --- */
.hamburger {
    display: none; cursor: pointer; background: none; border: none; padding: 5px;
}
.hamburger span {
    display: block; width: 25px; height: 3px; margin: 5px 0;
    background: var(--text-primary); border-radius: 3px; transition: 0.3s;
}
/* Анімація хрестика */
.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 968px) {
    .hamburger { display: block; }

    .nav-menu-wrapper {
        position: fixed; top: 70px; left: -100%;
        width: 100%; height: calc(100vh - 70px);
        background: white;
        flex-direction: column; align-items: center; justify-content: start;
        padding-top: 40px; gap: 30px;
        transition: 0.4s ease;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu-wrapper.active { left: 0; }
    
    .nav-links { flex-direction: column; gap: 20px; font-size: 1.2rem; }
    .nav-actions { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn-login, .btn-trial { width: 100%; text-align: center; padding: 12px; }
    
    /* Dropdown на мобільному */
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none; border: none;
        background: #f9fafb; display: none; margin-top: 10px;
    }
    .dropdown.active .dropdown-menu { display: block; }
}
/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Better text readability on gradient */
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tetris-like Animated Icons */
.tetris-icons {
    position: relative;
    width: 300px;
    height: 300px;
}

.tetris-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: tetrisFloat 8s ease-in-out infinite;
}

.icon-1 { top: 0; left: 0; animation-delay: 0s; }
.icon-2 { top: 0; right: 0; animation-delay: 1s; }
.icon-3 { bottom: 0; left: 0; animation-delay: 2s; }
.icon-4 { bottom: 0; right: 0; animation-delay: 3s; }
.icon-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 4s; }
.icon-6 { top: 25%; left: 25%; animation-delay: 5s; }

@keyframes tetrisFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.8; }
    25% { transform: translateY(-15px) rotate(5deg) scale(1.1); opacity: 1; }
    50% { transform: translateY(-10px) rotate(-3deg) scale(0.95); opacity: 0.9; }
    75% { transform: translateY(-20px) rotate(8deg) scale(1.05); opacity: 1; }
}

/* Flying Elements Animation */
.flying-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.flying-element {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    animation: flyUp 12s linear infinite;
}

.element-1 { bottom: -50px; left: 10%; animation-delay: 0s; }
.element-2 { bottom: -50px; left: 30%; animation-delay: 2s; }
.element-3 { bottom: -50px; left: 50%; animation-delay: 4s; }
.element-4 { bottom: -50px; left: 70%; animation-delay: 6s; }
.element-5 { bottom: -50px; left: 90%; animation-delay: 8s; }

@keyframes flyUp {
    0% { bottom: -50px; opacity: 0; transform: scale(0.5) rotate(0deg); }
    10% { opacity: 1; transform: scale(1) rotate(5deg); }
    90% { opacity: 1; transform: scale(1) rotate(-5deg); }
    100% { bottom: 100vh; opacity: 0; transform: scale(0.5) rotate(0deg); }
}

.square {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    animation: float 6s ease-in-out infinite;
}

.square-1 { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.square-2 { width: 120px; height: 120px; top: 60%; left: 80%; animation-delay: 1s; }
.square-3 { width: 60px; height: 60px; top: 40%; left: 70%; animation-delay: 2s; }
.square-4 { width: 100px; height: 100px; top: 80%; left: 20%; animation-delay: 3s; }
.square-5 { width: 70px; height: 70px; top: 30%; left: 85%; animation-delay: 4s; }
.square-6 { width: 90px; height: 90px; top: 70%; left: 60%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95; /* More visible */
    line-height: 1.7;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8); /* Better border contrast */
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.btn-full {
    width: 100%;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800; /* Bolder */
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* ... (Всі попередні змінні :root та базові стилі залишаємо, вони добрі) ... */

/* --- ВСТАВ ЦЕ В КІНЕЦЬ style.css АБО ЗАМІНИ ІСНУЮЧІ СЕКЦІЇ --- */

/* FAQ Section Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 300px; /* Достатньо для тексту */
}

/* Teachers Section Styles */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-img-wrapper {
    height: 350px;
    overflow: hidden;
    background: var(--background-dark);
}

.teacher-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.teacher-info {
    padding: 1.5rem;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.teacher-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.teacher-flag {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

/* Money Back Guarantee Badge Styles */
.guarantee-box {
    background: #f0fdf4;
    border: 2px dashed #16a34a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem auto 0;
    max-width: 600px;
}

.guarantee-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

/* --- MOBILE RESPONSIVENESS IMPROVEMENTS (Senior Fixes) --- */


/* ... (Всі попередні змінні :root та базові стилі залишаємо, вони добрі) ... */

/* --- ВСТАВ ЦЕ В КІНЕЦЬ style.css АБО ЗАМІНИ ІСНУЮЧІ СЕКЦІЇ --- */

/* FAQ Section Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 300px; /* Достатньо для тексту */
}

/* Teachers Section Styles */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-img-wrapper {
    height: 250px;
    overflow: hidden;
    background: var(--background-dark);
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    padding: 1.5rem;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.teacher-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.teacher-flag {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

/* Money Back Guarantee Badge Styles */
.guarantee-box {
    background: #f0fdf4;
    border: 2px dashed #16a34a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem auto 0;
    max-width: 600px;
}

.guarantee-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

/* --- MOBILE RESPONSIVENESS IMPROVEMENTS (Senior Fixes) --- */


@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    .footer-content {
        text-align: center;
    }
    
    .discount-sidebar {
        /* На самих маленьких екранах робимо його знизу як банер */
        width: 100%;
        border-radius: 0;
        bottom: 0;
        top: auto;
        transform: none;
        right: 0;
        border-left: none;
        border-top: 4px solid var(--secondary-color);
        padding: 10px;
    }
    
    .discount-title { font-size: 0.9rem; }
    .discount-offer { font-size: 1.2rem; margin: 0; }
    .btn-discount { padding: 5px 10px; font-size: 0.8rem; }
}

.about {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden; /* Щоб плаваючі елементи не створювали скрол */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* 🔥 Збільшено відступ між текстом і картинкою */
    align-items: center;
}

/* --- ТЕКСТОВА ЧАСТИНА --- */
.about-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-main-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8; /* 🔥 Більший міжрядковий інтервал для легшого читання */
    margin-bottom: 40px; /* Відступ до списку переваг */
}

/* --- СПИСОК ПЕРЕВАГ --- */
.features {
    display: flex;
    flex-direction: column;
    gap: 30px; /* 🔥 Відстань між пунктами */
}

.feature {
    display: flex;
    align-items: flex-start; /* Вирівнювання по верхньому краю */
    gap: 20px; /* Відстань від іконки до тексту */
}

/* 🔥 Стилізація іконки (Забороняє їй стискатися) */
.feature-icon {
    width: 50px;
    height: 50px;
    background: #eef2ff; /* Світло-синій фон */
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0; /* КРИТИЧНО ВАЖЛИВО: іконка не буде звужуватись через довгий текст */
}

.feature-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.about-image {
    display: flex;
    justify-content: center;
}

.slideshow-wrapper {
    /* Трохи збільшимо висоту, щоб вона відповідала довгому тексту зліва */
    height: 480px; 
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
@media (max-width: 992px) {
    
}
/* Courses Section */
.courses {
    background: var(--background-light); /* Slight background difference */
}

.lesson-type-selector {
    text-align: center;
    margin-bottom: 4rem;
}

.lesson-type-selector h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.lesson-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lesson-option {
    position: relative;
}

.lesson-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
    box-shadow: var(--shadow-sm);
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lesson-option input[type="radio"]:checked + .option-card {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.option-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.lesson-option input[type="radio"]:checked + .option-card i {
    color: white;
}

.option-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.option-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.lesson-option input[type="radio"]:checked + .option-card p {
    color: rgba(255, 255, 255, 0.9);
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.lesson-option input[type="radio"]:checked + .option-card .price {
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md); /* Stronger shadow */
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.course-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--secondary-color);
}

.course-rating i {
    font-size: 0.9rem;
}

.course-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.course-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    margin-bottom: 2rem;
}

.course-features .feature {
    margin-bottom: 0.75rem;
}

.course-features .feature i {
    font-size: 1rem;
    color: var(--accent-color);
}

.course-features .feature span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.course-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-price .period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.course-btn {
    width: 100%;
}

/* Reviews Section */
.reviews {
    background: #ffffff;
    padding: 5rem 0;
    overflow: hidden;
}

.reviews-track {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.reviews-container {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite; /* Slower smooth scroll */
    width: fit-content;
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    min-width: 350px;
    box-shadow: var(--shadow-lg); /* Distinct shadow to separate from background */
    border: 1px solid var(--border-color); /* Stronger border */
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.review-info h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.review-info .course-name {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.review-rating i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Ensure this matches data duplication */
}

/* Contact Section */
.contact {
    background: var(--background-light); /* Contrast with white forms */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* FIXING CONTRAST FOR INPUTS */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color); /* Stronger border */
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff; /* Explicit white background */
    color: var(--text-primary); /* Dark text */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group.error .error-message {
    display: block;
}

.learning-path-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.path-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb; /* Default gray */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step-content h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.path-benefits h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.path-benefits ul {
    list-style: none;
}

.path-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.path-benefits i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #111827; /* Darker footer */
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section a::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section a:hover::before {
    opacity: 1;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.footer-contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* --- DISCOUNT SIDEBAR (Black Friday) --- */
.discount-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #000000;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 2000;
    width: 160px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.discount-sidebar:hover {
    transform: translateY(-50%) translateX(-5px);
}

.close-discount {
    position: absolute;
    top: 5px;
    left: 5px;
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.close-discount:hover {
    color: white;
}

.discount-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.discount-offer {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin: 10px 0;
    color: #ffffff;
}

.discount-timer {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 15px;
}

.btn-discount {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-discount:hover {
    background: #ffffff;
    color: #000000;
}

/* FAQ Section Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item[open] .faq-answer {
    background: white;
    color: var(--text-color);;
    max-height:800px;
}
/* Teachers Section Styles */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-img-wrapper {
    height: 250px;
    overflow: hidden;
    background: var(--background-dark);
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    padding: 1.5rem;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.teacher-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.teacher-flag {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

/* Money Back Guarantee Badge Styles */
.guarantee-box {
    background: #f0fdf4;
    border: 2px dashed #16a34a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem auto 0;
    max-width: 600px;
}

.guarantee-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

/* --- MOBILE RESPONSIVENESS IMPROVEMENTS (Senior Fixes) --- */

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-grid, .about-grid, .contact-grid {
        gap: 2rem;
    }
    .contact-grid {
        gap: 40px; /* Менший відступ між колонками */
    }
    
    .registration-form {
        padding: 30px;
    }
    .about-grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 50px;
    }
    
    .about-image {
        order: -1; /* Картинка буде ЗВЕРХУ на телефоні */
    }
    
    .slideshow-wrapper {
        height: 350px;
    }
    
    .float-card {
        transform: scale(0.9); /* Трохи зменшуємо плаваючі картки на телефоні */
    }
}

/* style.css */

.reviews-track {
    overflow: hidden; /* Ховає все, що вилазить за межі екрану */
    position: relative;
    padding: 2rem 0;
    width: 100%;
}

.reviews-container {
    display: flex;
    gap: 2rem;
    /* ОБОВ'ЯЗКОВО: дозволяє контейнеру бути ширшим за екран */
    width: fit-content; 
    /* Анімація */
    animation: scroll 40s linear infinite; 
}

/* Зупиняємо анімацію при наведенні мишкою */
.reviews-track:hover .reviews-container {
    animation-play-state: paused;
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    /* ОБОВ'ЯЗКОВО: фіксує ширину картки, щоб вона не стискалась */
    min-width: 350px; 
    max-width: 350px;
    /* ОБОВ'ЯЗКОВО: забороняє flex-box стискати картки */
    flex-shrink: 0; 
    
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Анімація руху */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Рухаємось на половину (бо ми дублюємо контент) */
}
/* =========================================
   RESPONSIVE STYLES (Mobile & Tablet)
   ========================================= */

/* 1. TABLET & SMALL LAPTOPS (Max width 1024px) */


/* 3. SMALL MOBILE (Max width 380px) */
@media (max-width: 380px) {
    .stat-info p {
        font-size: 1.2rem;
    }
    .nav-btn {
        font-size: 0.8rem;
        padding: 0 8px;
    }
}
/* --- FOOTER --- */
.main-footer {
    background-color: #0f172a; /* Темний фон */
    color: #94a3b8;
    padding-top: 60px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.footer-logo i { color: var(--primary-color); }

.footer-desc { font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.2s;
}
.footer-col a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-col p { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }

.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a { font-size: 1.2rem; color: white; margin: 0; }
.social-links a:hover { color: var(--primary-color); padding: 0; transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* Mobile Footer */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none; /* Сховано */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.trial-modal-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .trial-modal-card {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.btn-close-modal:hover { color: #1f2937; }

.modal-icon {
    width: 60px; height: 60px;
    background: #e0e7ff;
    color: #6366f1;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px auto;
}

.trial-modal-card h2 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 5px;
}

.trial-modal-card p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.trial-form .form-group { margin-bottom: 15px; }
.trial-form .form-input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
}

/* --- UNAVAILABLE / COMING SOON FIX --- */

/* 1. Блокуємо кліки та задаємо позицію для бейджа */

.lesson-option.unavailable {
    pointer-events: none; /* Забороняє клікати */
    cursor: default;
    position: relative; /* Щоб бейдж позиціонувався відносно картки */
}

/* 2. Робимо картку сірою та прозорою */
.lesson-option.unavailable .option-card {
    opacity: 0.6;              /* Напівпрозорість */
    filter: grayscale(100%);   /* Прибирає синій колір */
    background-color: #f3f4f6; /* Сірий фон */
    border: 2px solid #e5e7eb; /* Сірий бордер */
    box-shadow: none !important; /* Прибираємо тінь */
    transform: none !important;  /* Прибираємо анімацію наведення */
}

/* 3. Ховаємо ціну (щоб не було напису "Not Found") */
.lesson-option.unavailable .price {
    display: none;
}

/* 4. Додаємо бейдж "Coming Soon" */
.lesson-option.unavailable::after {
    content: "Coming Soon";
    position: absolute;
    top: -12px;                /* Піднімаємо над карткою */
    left: 50%;                 /* Центруємо */
    transform: translateX(-50%);
    
    background-color: #64748b; /* Темно-сірий фон */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    white-space: nowrap;
}
.course-card.unavailable {
    pointer-events: none; /* Забороняє клікати */
    cursor: default;
    position: relative; /* Щоб бейдж позиціонувався відносно картки */
    opacity: 0.6;              /* Напівпрозорість */
    filter: grayscale(100%);   /* Прибирає синій колір */
    background-color: #f3f4f6; /* Сірий фон */
    border: 2px solid #e5e7eb; /* Сірий бордер */
    box-shadow: none !important; /* Прибираємо тінь */
    transform: none !important;  /* Прибираємо анімацію наведення */
}
.course-card.unavailable .price {
    display: none;
}
.course-card.unavailable::after {
    content: "Розробляється";
    position: absolute;
    top: -12px;                /* Піднімаємо над карткою */
    left: 50%;                 /* Центруємо */
    transform: translateX(-50%);
    background-color: #64748b; /* Темно-сірий фон */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    white-space: nowrap;
}
/* =========================================
   CONTACT SECTION STYLES
   ========================================= */

.contact {
    background-color: var(--background-light); /* Світлий фон для контрасту з білою формою */
    padding: 80px 0;
}

/* 1. Сітка (Desktop за замовчуванням) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Дві рівні колонки */
    gap: 60px; /* Великий відступ між формою і шляхом */
    align-items: start;
}

/* --- LEFT COLUMN: FORM --- */
.contact-form-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--text-primary);
}

.contact-form-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.registration-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Стилі полів */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input { border-color: #ef4444; }
.form-group.error .error-message { display: block; }


/* --- RIGHT COLUMN: LEARNING PATH --- */
.learning-path-section {
    padding-top: 20px; /* Вирівнювання з заголовком форми */
}

.learning-path-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.path-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Вертикальна лінія для таймлайну */
.path-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px; /* Центр кружечка */
    width: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1; /* Поверх лінії */
}

.step-number {
    width: 42px;
    height: 42px;
    background: white;
    border: 2px solid #e5e7eb;
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0; /* Не стискати кружечок */
    transition: all 0.3s ease;
}

/* Активний або пройдений крок */
.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Блок переваг знизу */
.path-benefits {
    margin-top: 40px;
    background: #e0e7ff; /* Світло-синій фон */
    padding: 25px;
    border-radius: 12px;
}

.path-benefits h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.path-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Дві колонки для бенефітів */
    gap: 10px;
}

.path-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
}

.path-benefits li i {
    color: var(--primary-color);
}

/* =========================================
   📱 RESPONSIVE (MEDIA QUERIES)
   ========================================= */



.messenger-widget {
    position: fixed;
    bottom: 90px; /* Трохи вище sticky bar */
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    
    gap: 10px;
}
.msg-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.msg-icon:hover { transform: scale(1.1); }
.telegram { background: #0088cc; }
.viber { background: #665cac; }

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-composition {
    position: relative;
    width: 100%;
    max-width: 500px; /* Обмеження ширини картинки */
}

/* Головне фото */
.main-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border: 4px solid white; /* Біла рамка */
}

/* Декоративний квадрат позаду */
.blob-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-color); /* Використовуємо твій колір */
    border-radius: 24px;
    z-index: 1;
    opacity: 0.1;
}

/* Плаваючі картки */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3; /* Поверх фото */
    border: 1px solid #f3f4f6;
    min-width: 180px;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.bg-blue { background: #6366f1; }
.bg-yellow { background: #f59e0b; }

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text strong {
    font-size: 1.1rem;
    color: #1f2937;
    line-height: 1.2;
}

.card-text span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Позиціонування карток */
.card-students {
    bottom: 30px;
    left: -40px;
}

.card-rating {
    top: 40px;
    right: -40px;
}

/* Анімація плавання */
.floating-animate {
    animation: float 6s ease-in-out infinite;
}

.floating-animate-delay {
    animation: float 6s ease-in-out infinite 3s; /* Затримка для асинхронності */
}
.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 480px; /* Фіксуємо висоту, щоб верстка не стрибала */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 4px solid white;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заповнює блок, не спотворюючись */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Плавна зміна за 1 сек */
    z-index: 1;
}

/* Клас, який робить картинку видимою */
.slide-img.active {
    opacity: 1;
    z-index: 2;
}

/* --- ОНОВЛЕНІ КАРТКИ --- */
/* Кольори */
.bg-green { background: #10b981; }
.bg-indigo { background: #6366f1; }

/* Позиціонування */
.card-top {
    top: 40px;
    right: -30px;
}

.card-bottom {
    bottom: 40px;
    left: -30px;
}
.trial-steps-section {
    background-color: #f8fafc; /* Легкий контраст */
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
    position: relative;
}

.step-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Іконка з номером */
.step-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #e0e7ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: var(--secondary-color); /* Помаранчевий */
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Кнопка внизу */
.trial-cta-container {
    text-align: center;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); /* Тінь під колір бренду */
}

.trial-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Адаптивність */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@media (max-width: 340px) {
    .investment-card {
        padding: 10px; /* Зменшуємо внутрішні відступи */
    }
    .card-title {
        font-size: 1.1rem; /* Трохи зменшуємо шрифт заголовків */
    }
    .result-badge {
        font-size: 0.8rem; /* Щоб плашка з результатом не вилазила за межі */
    }
    section {
        padding: 1rem 0; /* Менші відступи на мобілці */
    }
    .dashboard-container {
        padding: 0 15px;
    }
    
}
/* Адаптивність */
@media (max-width: 1024px) {
    section {
        padding: 3rem 0; /* Менші відступи на мобілці */
    }
    .dashboard-container {
        padding: 0 15px;
    }
    
    .calendar-grid {
        /* Дозволяємо сітці бути ширшою за екран для скролу */
        min-width: 800px; 
    }
    .section-title {
        font-size: 1.8rem; /* Трохи менший заголовок */
        word-wrap: break-word; /* Перенос довгих слів */
    }

    /* 2. Картка кроку (Step Card) */
    .step-card {
        flex-direction: column; /* Іконка зверху, текст знизу */
        text-align: center;     /* Центруємо текст */
        align-items: center;    /* Центруємо елементи */
        padding: 20px 15px;     /* Менші відступи збоку */
        gap: 15px;              /* Менший відступ між іконкою і текстом */
    }

    /* 3. Іконка */
    .step-icon-wrapper {
        margin: 0 auto;         /* Центрування */
        width: 50px;            /* Зменшуємо розмір кола */
        height: 50px;
        font-size: 1.2rem;      /* Зменшуємо іконку */
    }

    /* Бейдж з номером кроку */
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        top: -2px;
        right: -2px;
    }

    /* Тексти */
    .step-card h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .step-card p {
        font-size: 0.85rem;
    }

    /* 4. Кнопка CTA */
    .trial-cta-container .btn-lg {
        width: 100%;        /* На всю ширину */
        padding: 12px 15px; /* Менші паддінги */
        font-size: 0.95rem; /* Текст в один рядок */
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Менший відступ зверху */
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding: 20px;
    }

    .step-icon-wrapper {
        margin: 0;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        font-size: 1.5rem;
    }
    .discount-sidebar {
        bottom: 0;
        top: auto;
        right: 0 auto;
        left: 0;
        width: 100%;
        transform: translateY(0);
        border-radius: 10px 10px 0 0;
        border-left: none;
        border-top: 4px solid var(--secondary-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    .discount-sidebar:hover {
        transform: none;
    }
    .discount-offer {
        font-size: 1.5rem;
        margin: 0;
    }
    .discount-timer {
        display: none;
    }
    .close-discount {
        top: 50%;
        left: auto;
        right: 10px;
        transform: translateY(-50%);
    }
    section {
        padding: 3rem 0; /* Менші відступи на мобілці */
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Hero Fixes */
    .hero-grid {
        grid-template-columns: 1fr; /* Одна колонка */
        text-align: center;
        padding-top: 80px; /* Місце під навбар */
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        order: -1; /* Картинка зверху, текст знизу (опціонально) або навпаки */
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.2rem; /* Менший шрифт */
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    /* Grids to Single Column */
    .about-grid, 
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1; /* Картинка зверху */
        margin-bottom: 2rem;
    }

    /* Reviews Scroll Fix */
    .reviews-container {
        animation: scroll 20s linear infinite; /* Швидше на мобільному */
    }

    /* Navigation Mobile Fixes */
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        padding-top: 80px; /* Більше місця зверху для меню */
    }
    /* --- Navigation (Hamburger) --- */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px; /* Висота навбару */
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex; /* Показуємо бургер */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        transition: 0.3s;
    }

    /* Анімація хрестика */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* --- Stats Bar (Scrollable horizontally or Stacked) --- */
    .stats-bar {
        /* Варіант 1: Стек (один під одним) */
        grid-template-columns: 1fr;
        gap: 10px;
        
        /* Варіант 2: Горизонтальний скрол (розкоментуй, якщо хочеш компактніше) */
        /* 
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        */
    }

    .stat-card {
        padding: 12px; /* Трохи менші відступи */
    }

    /* --- Dashboard Controls --- */
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch; /* Розтягнути на всю ширину */
        text-align: center;
    }

    .date-nav {
        justify-content: space-between;
        width: 100%;
    }
    
    .current-week-label {
        order: -1; /* Переносимо дату на самий верх */
        margin-bottom: 5px;
    }

    .nav-btn {
        flex: 1; /* Кнопки навігації займають весь простір */
    }

    /* Кнопки дій (Settings, Book) */
    .dashboard-header > div:last-child {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    
    .dashboard-header > div:last-child button {
        flex: 1; /* Кнопки на всю ширину */
        justify-content: center;
    }

    /* --- Calendar (The most important part) --- */
    .central-card {
        margin: 0 -15px; /* Розтягуємо календар від краю до краю екрану */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .calendar-wrapper {
        /* Додаємо плавність скролу на iOS */
        -webkit-overflow-scrolling: touch; 
        max-height: 65vh; /* Більше місця для календаря */
    }

    /* Фіксуємо колонку часу, щоб вона завжди була зверху при скролі */
    .time-slot {
        background: #f9fafb;
        z-index: 30; /* Вищий пріоритет */
        box-shadow: 2px 0 5px rgba(0,0,0,0.05); /* Тінь справа */
    }
    
    /* Верхній лівий кут (GMT+2) має перекривати все */
    .cal-header.time-col {
        z-index: 40;
        background: #f8fafc;
    }

    /* --- Modals --- */
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }
    
    .btn-group {
        grid-template-columns: 1fr; /* Кнопки в модалках одна під одною */
    }
    
    /* Settings Modal Mobile Fix */
    .settings-row {
        grid-template-columns: 1fr 1fr; /* Перебудовуємо сітку налаштувань */
        gap: 5px;
        padding: 15px 0;
        border-bottom: 2px solid #f3f4f6;
    }
    
    .day-label {
        grid-column: 1 / -1; /* День тижня на всю ширину */
        margin-bottom: 5px;
    }
    
    .toggle-switch {
        grid-column: 2;
        grid-row: 1; /* Чекбокс навпроти дня тижня */
        justify-self: end;
    }
    .contact {
        padding: 50px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 50px;
    }

    /* Форма зверху, шлях знизу (стандартний порядок HTML) */
    
    .contact-form-section h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .contact-form-section p {
        text-align: center;
        font-size: 1rem;
    }

    .registration-form {
        padding: 25px; /* Менші відступи всередині форми */
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    /* Збільшуємо шрифт інпутів для зручності на тачскрінах */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px; /* Запобігає авто-зуму на iPhone */
        padding: 14px;
    }

    /* Бенефіти в одну колонку на мобільному */
    .path-benefits ul {
        grid-template-columns: 1fr;
    }
    
    /* Таймлайн */
    .path-steps {
        gap: 20px;
    }
    
    /* Заголовок шляху */
    .learning-path-section h3 {
        text-align: center;
        margin-top: 10px;
    }
    .slideshow-wrapper {
        height: 300px; /* Менша висота на телефоні */
    }
    .card-top {
        right: 0;
        top: 20px;
    }
    .card-bottom {
        left: 0;
        bottom: 20px;
    }
    .about-image {
        margin-top: 40px;
    }
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .audience-card {
        padding: 25px 20px;
    }
    .image-composition {
        max-width: 100%;
        padding: 0 20px; /* Щоб картки не вилазили за екран */
    }
    .courses-grid{
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    /* Ховаємо вильоти на мобільному, щоб не було горизонтального скролу */
    .card-students {
        left: 0;
        bottom: 20px;
    }
    
    .card-rating {
        right: 0;
        top: 20px;
    }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .modal-overlay {
        /* Замість центрування по вертикалі, притискаємо до верху */
        align-items: flex-start !important; 
        padding: 20px 15px !important; 
    }

    .modal-content, .trial-modal-card {
        width: 100% !important;
        /* Обмежуємо висоту, щоб з'явився скрол, коли вилізе клавіатура */
        max-height: 85vh !important; 
        overflow-y: auto !important; /* Дозволяємо скролити всередині вікна */
        margin-top: 10px !important;
        padding: 25px 20px !important; /* Трохи менші відступи по боках */
    }

    /* Зменшуємо іконку ракети, щоб зекономити місце */
    .modal-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }

    .trial-modal-card h2 {
        font-size: 1.5rem !important;
    }
}
/* Кольори іконок */
.bg-yellow { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.bg-blue   { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); }
.bg-red    { background: linear-gradient(135deg, #f87171 0%, #dc2626 100%); }
.bg-green  { background: linear-gradient(135deg, #34d399 0%, #059669 100%); }
.audience-section {
    background-color: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.audience-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 25px 30px; /* Збільшили верхній відступ для бейджа */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Однаковий розмір */
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.15);
    border-color: transparent;
}
.card-top-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.aud-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Розтягує блок, притискаючи кнопку до низу */
}
.aud-result {
    background: #f8fafc;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #334155;
}
.btn-card-action {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-card-action:hover {
    background: var(--primary-color);
    color: white;
}



.btn-highlight:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.aud-result i {
    color: var(--accent-color); /* Зелений */
    margin-right: 5px;
}
/* Іконки в колі */
.aud-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}



.audience-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.audience-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Розтягує текст, щоб низ карток був рівним */
}

/* Список переваг (галочки) */
.aud-tags {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.aud-tags li {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aud-tags li i {
    color: var(--accent-color); /* Зелена галочка */
    font-size: 0.8rem;
}

/* Адаптивність */
.faq-section {
    padding: 80px 0;
    background-color: #f8fafc; /* Легкий сірий фон, щоб білі картки виділялися */
}

/* Стилізація карток запитань */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Легка тінь */
}

/* Ефект при наведенні (Hover) */
.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px); /* Трішки піднімається */
}

/* Відкритий стан (Active) */
.faq-item[open] {
    border-color: var(--primary-color);
    border-left: 5px solid var(--primary-color); /* Акцентна смужка зліва */
}

/* Заголовок питання */
.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* Розносить текст і іконку по краях */
    align-items: flex-start; 
    gap: 15px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem; /* Трохи менший шрифт на мобільному */
    list-style: none; /* Прибираємо стандартний трикутник */
    position: relative; /* Для правильного позиціонування, якщо треба */
}

/* Кастомний "Плюсик" */
.faq-question::after {
    content: '\f067'; /* FontAwesome Plus */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    
    background: #e0e7ff; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Хрестик при відкритті */
.faq-item[open] .faq-question::after {
    content: '\f00d'; /* FontAwesome Times (Cross) */
    transform: rotate(90deg);
    background: var(--primary-color);
    color: white;
}
.faq-question::-webkit-details-marker {
    display: none;
}
/* Текст відповіді */
.faq-answer {
    padding: 0 25px 25px 25px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    animation: fadeInDown 0.3s ease; /* Плавна поява тексту */
}

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

/* --- КАРТКА ПІДТРИМКИ (Support Card) --- */
.faq-support-card {
    max-width: 600px;
    margin: 50px auto 0;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .faq-question::after {
        width: 30px; height: 30px; font-size: 1rem;
    }
    .faq-answer {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
    }
    .faq-answer p{
        max-height: max-content;
    }
}