/* ==========================================================================
   1. СКИДАННЯ СТИЛІВ ТА БАЗОВІ НАЛАШТУВАННЯ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавний скрол по якорях навігації */
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    color: #4A4A4A;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #93C655; /* Ніжно-зелений колір з макету */
    color: #ffffff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

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

.text-center {
    text-align: center;
}

/* Заголовки секцій */
.section-title {
    font-size: 2.2rem;
    color: #6C9E31; /* Темніший зелений для тексту */
    margin-bottom: 40px;
    font-weight: 800;
}

/* ==========================================================================
   2. ШАПКА САЙТУ (HEADER)
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
}

.logo-title {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #6C9E31;
    line-height: 1.1;
}

.logo-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #9B9B9B;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.main-nav li {
    display: flex;
    align-items: center;
    position: relative;
}

/* Додаємо вертикальну лінію після кожного пункту, крім останнього */
.main-nav li:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 14px; /* Висота палички-роздільника */
    background-color: #E0E0E0; /* Світло-сірий пастельний колір, щоб не кидався в очі */
    margin-left: 10px; /* Відступ лінії від тексту зліва */
    display: inline-block;
}

.main-nav a {
    text-decoration: none;
    color: #555555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #93C655;
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   3. ПЕРШИЙ ЕКРАН (HERO)
   ========================================================================== */
.hero-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-title {
    font-size: 4rem;
    color: #93C655;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-title span {
    color: #FF9AA2; /* Рожеве сердечко */
}

.hero-tagline {
    font-size: 1.4rem;
    color: #4A4A4A;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-tagline strong {
    color: #FF8B94; /* Акцент на вік "від 1,5 років" */
}

.hero-description {
    font-size: 1.1rem;
    color: #777777;
    margin-bottom: 30px;
}

.hero-contacts {
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #555555;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px; /* Закруглені краї як на фото */
}

/* ==========================================================================
   4. ПРО НАС (ABOUT)
   ========================================================================== */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555555;
}

.about-list {
    list-style: none;
    margin-bottom: 25px;
}

.about-list li {
    position: relative;
    padding-left: 25px;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.about-list li::before {
    content: "•";
    color: #93C655;
    font-size: 1.8rem;
    position: absolute;
    left: 5px;
    top: -5px;
}

.about-footer {
    font-weight: 700;
    color: #6C9E31 !important;
}

/* ==========================================================================
   5. ЩО МИ ПРОПОНУЄМО (SERVICES)
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.services-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    flex: 1;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Кольори карток з макету */
.card-light-green {
    background-color: #F4F9EE; /* Світло-зелена */
}

.card-light-yellow {
    background-color: #FFFDF0; /* Світло-жовта */
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.6rem;
    color: #4A4A4A;
    margin-bottom: 15px;
    font-weight: 700;
}

.time-badge {
    display: inline-block;
    background-color: #ffffff;
    padding: 6px 16px;
    border-radius: 15px;
    font-weight: 700;
    color: #6C9E31;
    border: 1px solid #E2EFD5;
    margin-bottom: 25px;
}

.card-list {
    list-style: none;
}

.card-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-list li::before {
    content: "✓";
    color: #93C655;
    font-weight: 900;
    position: absolute;
    left: 0;
}

/* Сітка для занять у другій картці */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.lesson-item {
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

/* ==========================================================================
   7. НАШ ДЕНЬ ТА ЧОМУ ОБИРАЮТЬ НАС (SCHEDULE & WHY US)
   ========================================================================== */
.schedule-why-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.schedule-why-grid {
    display: flex;
    gap: 40px;
}

/* Спільні стилі для обох великих блоків */
.schedule-block, .why-block {
    flex: 1;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

/* Кастомізація блоку "Наш день" (Блакитні відтінки) */
.schedule-block {
    background-color: #F5FAFF; /* Дуже ніжний синій фон */
}

.schedule-block .block-title {
    color: #4A90E2; /* Блакитний заголовок */
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.schedule-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.schedule-list {
    list-style: none;
    flex: 1;
    z-index: 2; /* Щоб текст був поверх ведмедика, якщо вони перетнуться */
}

.schedule-list li {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #4A4A4A;
    display: flex;
    gap: 15px;
}

.schedule-list li strong {
    color: #4A90E2; /* Виділення часу блакитним */
    font-weight: 700;
    white-space: nowrap;
}

/* Декоративний ведмедик зліва внизу */
.schedule-decor {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

/* Кастомізація блоку "Чому батьки обирають нас" (Рожеві відтінки) */
.why-block {
    background-color: #FFF5F6; /* Дуже ніжний рожевий фон */
}

.why-block .block-title {
    color: #FF7081; /* Рожевий заголовок */
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.why-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.why-list {
    list-style: none;
    flex: 1;
}

.why-list li {
    position: relative;
    padding-left: 25px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #4A4A4A;
}

/* Рожеві сердечка замість маркерів списку */
.why-list li::before {
    content: "❤️";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.85rem;
}

/* Картинка мами з дитиною справа */
.why-image {
    max-width: 160px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    object-fit: cover;
}

.review-card:hover {
    transform: translateY(-5px); /* Легкий ефект при наведенні курсору */
}

/* Стиль самого тексту відгуку */
.review-text {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
}

/* Стилізація лапок на початку відгуку (якщо хочеться виділити кольором) */
.review-text::before {
    content: "«";
    color: #FFB3BA; /* Пастельний рожево-помаранчевий для лапок */
    font-size: 1.5rem;
    font-weight: bold;
}
.review-text::after {
    content: "»";
    color: #FFB3BA;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Блок автора (аватарка + ім'я) */
.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px dashed #e9e9e9; /* Акуратна лінія розмежування */
    padding-top: 15px;
}

/* Круглі аватарки матусь */
.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee; /* Тимчасовий фон, поки немає картинок */
}

.review-author h4 {
    font-size: 1.05rem;
    color: #4A4A4A;
    font-weight: 700;
    margin-bottom: 2px;
}

.review-author p {
    font-size: 0.85rem;
    color: #9B9B9B;
    margin: 0;
}


/* ==========================================================================
   9. ГАЛЕРЕЯ (GALLERY SECTION)
   ========================================================================== */
.gallery-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 картинок в один ряд за макетом */
    gap: 15px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Зберігає пропорції, обрізаючи зайве */
    border-radius: 16px; /* Закруглені краї як на макеті */
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   10. ПІДВАЛ (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: #F9F9F9; /* Світлий пастельний фон підвалу */
    padding: 30px 0;
    border-top: 1px solid #EDEDED;
    margin-top: 60px; /* Збільшений відступ від попередньої секції */
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 35px;
}

.footer-text {
    font-size: 0.95rem;
    color: #777777;
    font-style: italic;
    text-align: center;
    flex: 1;
    max-width: 500px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

/* Круглі іконки соцмереж */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    color: #4A4A4A;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #93C655;
    color: #ffffff;
    border-color: #93C655;
}

/* --- Стилі для десктопа (за замовчуванням) --- */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
}

.burger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #6C9E31; /* Гарний зелений колір під стиль сайту */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.phone-link {
    text-decoration: none; /* Прибираємо підкреслення */
    color: inherit;        /* Телефон візьме той самий колір, який був у блоку раніше */
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.phone-link:hover {
    color: #93C655;        /* При наведенні мишкою колір стане приємним зеленим */
}

/* ==========================================================================
   СТИЛІ ДЛЯ СЛАЙДЕРА ГАЛЕРЕЇ
   ========================================================================== */
.slider-container {
    position: relative;
    max-width: 800px; /* Оптимальна ширина для красивого відображення */
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.slider {
    position: relative;
    width: 100%;
    height: 450px; /* Висота слайдера на десктопі */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* Активний слайд, який ми бачимо */
.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заповнює слайд красиво без деформацій */
    border-radius: 20px;
}

/* Кнопки стрілок (Вліво / Вправо) */
.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #6C9E31; /* Наш зелений колір */
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.prev-slide:hover, .next-slide:hover {
    background-color: #93C655;
    color: #ffffff;
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

/* Контейнер для крапок */
.dots-container {
    text-align: center;
    padding: 15px 0;
    background: #ffffff;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #E0E0E0;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #93C655; /* Активна зелена крапка */
    transform: scale(1.2);
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .slider {
        height: 280px; /* Зменшуємо висоту слайдера на смартфонах */
    }
    .prev-slide, .next-slide {
        padding: 8px 12px;
        font-size: 18px;
    }
}

/* ==========================================================================
   11. АДАПТИВНІСТЬ (МЕДІА-ЗАПИТИ)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .about-container, .services-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image, .about-image {
        justify-content: center;
        order: -1;
    }

    /* Дозволяємо навігації відображатися на мобільних */
    .main-nav {
        display: block; 
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .btn-header {
        display: none; /* Ховаємо велику кнопку реєстрації у шапці на мобільних */
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-contacts {
        display: inline-block;
        text-align: left;
    }

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

    .schedule-why-grid {
        flex-direction: column;
        gap: 30px;
    }

    .schedule-container, .why-container {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .schedule-decor, .why-image {
        order: 2;
        max-width: 140px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-text {
        order: 1;
    }

    /* АКТИВАЦІЯ БУРГЕР КНОПКИ НА СМАРТФОНАХ */
    .burger-menu {
        display: flex;
        z-index: 1001;
    }

    /* ПЕРЕТВОРЕННЯ СПИСКУ НА ВИПАДАЮЧУ ШТОРКУ */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* За межами екрану */
        width: 250px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        transition: right 0.3s ease-in-out;
        padding: 80px 25px 30px 25px;
        z-index: 1000;
    }

    .nav-links li {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #F5F5F5;
    }

    /* Прибираємо десктопні палички-роздільники */
    .nav-links li::not(:last-child)::after,
    .nav-links li:not(:last-child)::after {
        display: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }

    /* Клас активного стану (коли шторка відкрита) */
    .nav-links.active {
        right: 0;
    }

    /* Анімація перетворення смужок на хрестик */
    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
