/* Перемінні для кольорів - легка зміна палітри */
:root {
    --primary-color: #002D62; /* Глибокий синій */
    --secondary-color: #C8102E; /* Насичений червоний */
    --accent-color: #50b3a2; /* Яскравий акцент */
    --text-color: #2c3e50; /* Темний текст */
    --bg-light-color: #f4f7f9; /* Світлий фон */
    --bg-white-color: #ffffff; /* Білий фон */
}

/* Базові стилі */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light-color);
    overflow-x: hidden;
}

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

/* Анімація для входу елементів */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Анімація для карток - стікерів */
@keyframes stickerFadeIn {
    from { opacity: 0; transform: rotate(-5deg) translateY(30px); }
    to { opacity: 1; transform: rotate(0deg) translateY(0); }
}

section {
    animation: fadeIn 0.8s ease-out forwards;
}
section.hero-adults {
    background: linear-gradient(135deg, #ffe2a0, #ecffce);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
/* Нові анімації для хедера */
/*@keyframes headerSlideIn {
    /*from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}*/

/* Навігація */
header {
    background: linear-gradient(90deg, #6495ED, #4169E1); /* Градієнтний фон */
    color: var(--bg-white-color); /* Білий колір тексту для контрасту */
    padding: 10px 0;
    min-height: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    animation: headerSlideIn 0.8s ease-out forwards;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header nav {
    text-align: right;
}

header a {
    color: var(--bg-white-color);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

header a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700; /* Яскраво-жовтий */
    transition: width 0.3s ease;
}

header a:hover::after {
    width: 100%;
}

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

header .site-logo {
    width: 150px; /* Збільшимо розмір логотипу */
    height: auto;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff; /* Білий для напису */
    white-space: nowrap;
}

.site-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; /* Зменшуємо міжрядковий інтервал */
    margin-top: -17px;
    margin-left: -25px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
}

.site-title-line {
    font-size: 24px;
    font-weight: bold;
}

.yellow-letter {
    color: #FFD700; /* Жовтий колір */
}

header ul {
    list-style: none;
    padding: 0;
    margin: 0 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

header li {
    margin: 0 15px;
}

header .language-switcher {
    padding-right: 20px;
    white-space: nowrap;
}

/* Основний контент */
main {
    padding: 30px 0;
}

h1, h2 {
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
}

.hero {
    background: var(--bg-white-color);
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 20px auto 0;
}

.about-summary, .contact-section, .contact-info, .contact-form-container, .our-team-card, .adults-features, .course-levels {
    background: var(--bg-white-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Стилізація форми контактів */
.contact-form-container {
    background: #f4f7f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    margin-top: 40px; /* Додаємо відступ зверху */
    border: 3px solid #002D62; /* Темно-синя рамка */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info strong {
    color: var(--secondary-color);
}

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

.form-group label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #002D62; /* Темно-синя рамка при фокусі */
    outline: none;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 18px;
    background: #002D62; /* Темно-синій фон кнопки */
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background: #001f4c; /* Темніший відтінок синього при наведенні */
    transform: translateY(-2px);
}

.form-group small {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Стилізація для сторінок "Для дорослих" та "Про нас" */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1em;
}

.adults-features, .our-team, .zoom-learning-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-white-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1); /* Тінь для ефекту стікера */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: stickerFadeIn 0.8s ease-out forwards;
    position: relative;
    margin-bottom: 20px; /* Додаємо відступ знизу */
}

.feature-card:hover {
    transform: rotate(2deg) translateY(-5px) scale(1.02);
    box-shadow: 8px 8px 25px rgba(0,0,0,0.15); /* Більша тінь при наведенні */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 30px;
    height: 40px;
    background: #ccc;
    border-radius: 5px;
    transform: translateX(-50%) rotate(15deg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #888;
    border-radius: 50%;
    transform: translateX(-50%) rotate(15deg);
    z-index: 2;
}

.feature-card h3 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.5em;
}

.course-topics {
    background: #e9f5f4;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.topic-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.topic-list li {
    background: var(--bg-white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    font-weight: bold;
}

.topic-icon {
    font-size: 1.8em;
    margin-right: 15px;
    color: var(--secondary-color);
}

.call-to-action {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-color);
    color: var(--bg-white-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: #337a6a;
    transform: translateY(-2px);
}

/* Футер */
footer {
    background: var(--primary-color);
    color: var(--bg-white-color);
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Стилі для сторінки 'kids.html' */
body.kids-page {
    background: radial-gradient(circle, rgb(123, 0, 168) 0%, rgb(255, 0, 225) 100%);
    color: #fff; /* Білий текст для кращого контрасту */
}

.kids-page header {
background: linear-gradient(90deg, #580053, #b90000);
}



.kids-page .hero h1 {
    color: #002D62; /* Темно-синій для заголовка hero */
}

.kids-page h2,
.kids-page h3 {
    color: #50b3a2;
}

.kids-page p {
    color: var(--text-color); /* Темний текст */
}

/* Стилі для сторінки 'kids.html' - Стиль "книжки" для feature-card */
.kids-page .feature-card {
    background-color: #fffaf0; /* Колір паперу */
    border: 1px solid #d4a373; /* Колір обкладинки книжки */
    border-radius: 8px 30px 30px 8px; /* Округла форма як у книжки */
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1); /* Тінь для об'єму */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 30px 25px 30px 40px; /* Збільшений лівий відступ для "корінця" */
    text-align: left; /* Вирівнювання тексту по лівому краю */
    margin-bottom: 20px;
    transform: rotate(0deg); /* Прибираємо поворот, якщо був */
    overflow: hidden; /* Щоб краї були чіткими */
}

.kids-page .feature-card:hover {
    transform: translateY(-5px) scale(1.02); /* Ефект підняття при наведенні */
    box-shadow: 12px 12px 20px rgba(0, 0, 0, 0.15);
}

/* Створення "корінця" книжки */
.kids-page .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25px; /* Ширина "корінця" */
    height: 100%;
    background-color: #8b4513; /* Колір корінця (темно-коричневий) */
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    z-index: 1;
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.2); /* Тінь для об'єму корінця */
    display: block; /* Повертаємо display: block, якщо раніше був display: none */
    transform: none; /* Прибираємо трансформацію */
}

/* "Закладка" для книжки */
.kids-page .feature-card::after {
    content: '';
    position: absolute;
    top: -5px; /* Вище верхнього краю */
    left: 35px; /* Розташування праворуч від корінця */
    width: 20px;
    height: 40px;
    background-color: #ef476f; /* Яскраво-рожевий колір закладки */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Щоб була над корінцем */
    display: block; /* Повертаємо display: block */
    transform: rotate(-5deg); /* Невеликий поворот */
}

.kids-page .feature-card h3 {
    color: #4a2f0c; /* Темно-коричневий колір заголовка */
    font-size: 1.6em;
    margin-bottom: 10px;
}

.kids-page .feature-card p {
    color: #333; /* Темний текст */
    font-size: 1.1em;
}

/* Інші стилі для kids-page залишаються без змін, якщо це не стосується feature-card */
.kids-page .hero,
.kids-page .course-topics {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #ffd700;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.kids-page .hero h1 {
    color: #002D62;
}

.kids-page h2,
.kids-page h3 {
    color: #50b3a2;
}

.kids-page .topic-icon {
    font-size: 2.2em;
    color: #ff5722;
}

.kids-page .topic-list li {
    background-color: #fff59d;
    border: 1px dashed #ffb74d;
    transition: background-color 0.3s ease;
}

.kids-page .topic-list li:hover {
    background-color: #ffecb3;
}

.kids-page .cta-button {
    background: #ff7043;
    box-shadow: 0 4px #e64a19;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kids-page .cta-button:hover {
    background: #e64a19;
    transform: translateY(2px);
    box-shadow: 0 2px #e64a19;
}

.kids-page .topic-icon {
    font-size: 1.1em;
    color: #ff5722;
}

.kids-page .topic-list li {
    background-color: #fff59d;
    border: 1px dashed #ffb74d;
    transition: background-color 0.3s ease;
}

.kids-page .topic-list li:hover {
    background-color: #ffecb3;
}

.kids-page .cta-button {
    background: #ff7043;
    box-shadow: 0 4px #e64a19;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kids-page .cta-button:hover {
    background: #e64a19;
    transform: translateY(2px);
    box-shadow: 0 2px #e64a19;
}

/* Стилі для блоку месенджерів */
.cta-messenger-section {
    background-color: #002D62; /* Змінено на синій */
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: 15px;
    margin-top: 40px;
}

.cta-messenger-section h2 {
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.cta-messenger-section p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cta-messenger-section .cta-subtext {
    font-size: 1em;
    margin-bottom: 25px;
}

.messenger-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.messenger-links a {
    color: white;
    font-size: 3em;
    transition: transform 0.2s ease, color 0.2s ease;
}

.messenger-links a:hover {
    transform: translateY(-5px) scale(1.1);
    color: #FFD700; /* Змінено на жовтий при наведенні */
}

/* Стилі для слайдера */
.slider-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    position: relative;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-image {
    width: 100%;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
    height: auto;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
    font-size: 2em;
    user-select: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* Медіа-запити для адаптивності */
@media(min-width: 769px) {
    header .logo-and-title {
        flex-grow: 1;
        justify-content: flex-start;
    }
    header .language-switcher {
        text-align: right;
    }
    header nav {
        text-align: right;
    }
    .site-title-container {
        margin-top: -17px;
        margin-left: -25px;
    }
}

@media(max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .logo-and-title {
        flex-direction: column;
        align-items: center; /* Вирівнюємо логотип по центру */
        gap: 5px;
    }
    header .site-logo {
        width: 100px;
        margin-left: 15px;
        margin-top: -22px;
    }
    .site-title {
        font-size: 20px;
    }
    header nav {
        margin-top: 10px;
        text-align: center; /* Вирівнюємо навігацію по центру */
    }
    header ul {
        flex-direction: column; /* Змінюємо напрямок на колонку */
        align-items: center; /* Вирівнюємо елементи списку по центру */
        gap: 5px;
        margin-top: 15px;
    }
    header li {
        padding: 5px 10px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .site-title-container {
        margin-top: -17px;
        margin-left: 1px;
        font-size: 20px;
    }
    .language-switcher {
        text-align: center; /* Вирівнюємо перемикач мови по центру */
        margin-left: 15px;
    }
}
/* Стилі для сторінки 'teens.html' - Графіті-стиль */
body.teens-page {
background: linear-gradient(90deg, var(--brand), var(--brand-2));
    box-shadow: 0 8px 20px rgba(91, 123, 250, .25);
    color: #e0e0e0; /* Світлий текст */
}

.teens-page header {
background: linear-gradient(90deg, #ff9681, #fff08c);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3); /* Неонова тінь */
}

.teens-page header a {
color: #005280;
}

.teens-page header a::after {
    background: #ff00ff; /* Неоново-рожевий акцент */
}

.teens-page h1,
.teens-page h2,
.teens-page h3 {
color: #ffc12b;


}

.teens-page .hero,
.teens-page .teen-features,
.teens-page .call-to-action {
    background-color: rgba(25, 25, 46, 0.9); /* Напівпрозорий темний фон */
    /* border: 2px solid #ff00ff; */ /* Приховано на прохання користувача */
    /* box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); */ /* Приховано на прохання користувача */
}

.teens-page .intro-text {
    color: #b0e0e6; /* Більш світлий синій для вступного тексту */
}

.teens-page .feature-card {
    background-color: rgba(0, 255, 255, 0.1); /* Напівпрозорий неоново-блакитний фон картки */
    border: 1px dashed #ff00ff; /* Пунктирна неоново-рожева рамка */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3); /* Неонове світіння картки */
    transform: rotate(-2deg); /* Невеликий поворот, як стікер */
    margin-bottom: 30px;
}

.teens-page .feature-card:hover {
    transform: rotate(0deg) scale(1.05); /* Вирівнювання та збільшення при наведенні */
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
    border: 1px solid #00ffff; /* Суцільна рамка при наведенні */
}

/* Прибираємо псевдоелементи "скотчу" для підлітків, якщо вони не потрібні */
.teens-page .feature-card::before,
.teens-page .feature-card::after {
    display: none;
}

.teens-page .cta-button {
    background-color: #f493ff;
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4); /* Неонова тінь кнопки */
    color: #1a1a2e; /* Темний текст на кнопці */
    text-transform: uppercase; /* Великі літери */
    letter-spacing: 1.5px; /* Розрядка тексту */
    font-weight: bold;
}

.teens-page .cta-button:hover {
    background: linear-gradient(45deg, #ff00ff, #00ffff); /* Зміна градієнту при наведенні */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.6);
}

.teens-page footer {
background: linear-gradient(90deg, #ff9681, #fff08c);
    box-shadow: 0 -4px 15px rgba(0, 255, 255, 0.3); /* Неонова тінь */
}
/* Стилі для сторінки 'adults.html' - Бізнес-стиль */
body.adults-page {
    background-color: #f0f2f5; /* Світло-сірий фон */
    color: #333; /* Темний сіро-чорний текст */
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Професійний шрифт */
}

.adults-page header {
    background: #002d62; /* Глибокий синій, що відповідає логотипу */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Елегантна тінь */
}

.adults-page header a {
    color: #e0e0e0; /* Світло-сірий для посилань */
}

.adults-page header a::after {
    background: #ffc107; /* Золотистий акцент */
}

.adults-page h1,
.adults-page h2,
.adults-page h3 {
    color: #002d62; /* Глибокий синій для заголовків */
    font-family: 'Georgia', serif; /* Класичний шрифт із засічками */
    font-weight: bold;
}

.adults-page .intro-text {
    color: #555;
    font-size: 1.2em;
}

.adults-page .feature-card {
    background-color: #fff; /* Білий фон картки */
    border-left: 5px solid #ffc107; /* Вертикальна золотиста смуга */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: none; /* Прибираємо поворот, який був для дітей/підлітків */
}

.adults-page .feature-card:hover {
    transform: translateY(-5px); /* Ефект підняття */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.adults-page .feature-card h3 {
    color: #002d62;
}

.adults-page .feature-card p {
    color: #555;
}

.adults-page .cta-button {
    background: #002d62; /* Глибокий синій фон кнопки */
    color: #fff;
    border: 2px solid #002d62;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.adults-page .cta-button:hover {
    background: #fff;
    color: #002d62; /* Текст стає синім, а фон білим */
    border: 2px solid #002d62;
}

.adults-page footer {
    background: #002d62;
    color: #e0e0e0;
}
/* Стилі для секції "Персонажі" */
.characters {
    text-align: center;
    padding: 40px 0;
}

.characters h2 {
    color: #ff8a00;
    margin-bottom: 10px;
}

.characters p {
    color: #ffffff;
    font-style: italic;
    margin-bottom: 30px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.character-card {
    background-color: #8d48d9;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.character-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%; /* Робимо зображення круглими */
    border: 3px solid #ffd700;
    margin-bottom: 15px;
    background-color: #f7f9fc;
}

.character-name {
    color: #4a2f0c;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.character-description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.4;
}
/* Стилі для сторінки з відео */
.video-section {
    margin-bottom: 50px;
}

.video-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
}

.youtube-icon {
    color: #ff0000;
}

.tiktok-icon {
    color: #000;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--bg-white-color);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.video-card iframe {
    width: 100%;
    height: 200px; /* Можна налаштувати висоту */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.video-title {
    font-weight: bold;
    margin-top: 10px;
    color: var(--text-color);
}
/* --- Стили для адаптивного меню-бургера (оновлено) --- */

/* Нові змінні для зручності управління кольорами */
:root {
    --header-bg-color: #555c83; /* Темно-синій/фіолетовий фон для хедера */
    --menu-text-color: #fff; /* Білий текст для меню */
    --menu-hover-color: #ffd700; /* Жовтий колір при наведенні */
    --menu-bg-open-color: rgba(68, 75, 107, 0.98); /* Майже непрозорий темно-синій для відкритого меню */
    --burger-icon-color: #ffd700; /* Жовтий колір для іконки бургера */
    --primary-color: #50b3a2; /* Використовуємо ваш основний колір */
    --text-color: #333;
    --bg-white-color: #ffffff;
    --bg-light-color: #f7f9fc;
}

/* Загальні стилі для хедера */
header {
    background-color: var(--header-bg-color);
    color: var(--menu-text-color);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Додаємо, щоб можна було позиціонувати кнопки відносно нього */
}

/* Стилі для логотипу та заголовка */
.logo-and-title {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px;
    margin-right: 15px;
}

.site-title-container {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--menu-text-color);
    line-height: 1.1;
}

.yellow-letter {
    color: var(--menu-hover-color);
}

/* Навігація (десктоп) */
header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: var(--menu-text-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

header nav ul li a:hover,
header nav ul li a.active-link {
    color: var(--menu-hover-color);
}

/* Перемикач мов */
.language-switcher {
    color: var(--menu-text-color);
    font-size: 1em;
    display: flex;
    align-items: center;
}

.language-switcher a {
    color: var(--menu-text-color);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

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

/* Кнопка бургера */
.burger-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 2.5em;
    color: var(--burger-icon-color);
    cursor: pointer;
    z-index: 1001; 
    position: absolute; /* Позиціонуємо абсолютно відносно .header-content */
    top: 50%;
    right: 15px;
    transform: translateY(-50%); /* Центруємо вертикально */
    padding: 5px;
}

.burger-menu-button .close-icon {
    display: none;
}

/* Адаптивні стилі для мобільних пристроїв */
/* --- Стили для адаптивного меню-бургера (оновлено) --- */

.menu-toggle {
  display: none;
  font-size: 35px;
  cursor: pointer;
  color: #ffffff; /* колір іконки */
}

@media (max-width: 768px) {
  .header-content nav ul {
    display: none;
    flex-direction: column;
    background: #030054;
    padding: 10px;
  }
  .header-content.active-menu nav ul {
    display: flex;
  }
  .menu-toggle {
    display: block;
    margin-top: -20px;
  }
}
/* 11_09_2025 */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
    text-align: center;

    background: #fffbe7; /* пастельний жовтий як у нотаток */
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);

    position: relative;
    transform: rotate(-1.5deg); /* легкий нахил для ефекту приклеєного стікера */
}

/* імітація скотчу зверху */
.hero::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px;
    height: 30px;
background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* текст */
.hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #333;
}

.hero h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #444;
}

.hero p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    color: #555;
}

/* адаптив */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 1rem;
        margin: 1rem;
        transform: rotate(-0.5deg); /* менший нахил на мобільних */
    }
    .hero h1 {
        font-size: 1.4rem;
    }
    .hero h3 {
        font-size: 1rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}
.feature-card {
    background: #2e5339; /* темно-зелений фон як дошка */
    color: #fff;
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    text-align: center;
    border: 8px solid #c19a6b; /* колір дерев’яної рамки */
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

    font-family: "Caveat", cursive, sans-serif; /* рукописний шрифт */
    background-image: 
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* заголовок і текст як крейда */
.feature-card h3, 
.feature-card p {
    color: #f8f8f8;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.2),
                 -1px -1px 2px rgba(0,0,0,0.4);
}

/* ефект трохи потертої крейди */
.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, #ddd, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* адаптив */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
    .feature-card h3 {
        font-size: 1.4rem;
    }
    .feature-card p {
        font-size: 0.9rem;
    }
}
.cta-messenger-section {
    background: #fff;
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    text-align: center;
    border: 1px solid #ccc;

    /* фон у стилі зошита */
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 100% 28px; /* відстань між лініями */
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 6px;
}

/* червона вертикальна лінія, як у зошиті */
.cta-messenger-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50px;
    width: 1.5px;
    height: 100%;
    background: rgba(255, 0, 0, 0.4);
}

.cta-content h2 {

    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.5rem;
}

.cta-subtext {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

/* стилізація іконок як наклейки */
.messenger-links a {
    font-size: 2rem;
    margin: 0 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    position: relative;
}

/* кольори "стікерів" */
.messenger-links a[aria-label="Telegram"] {
    color: #0088cc;
    background: #d0f0ff;
}
.messenger-links a[aria-label="WhatsApp"] {
    color: #25d366;
    background: #d2ffe3;
}
.messenger-links a[aria-label="Viber"] {
    color: #7360f2;
    background: #e5e0ff;
}

/* ефект наліпки */
.messenger-links a:hover {
    transform: rotate(-5deg) scale(1.1);
}
.leono-text {
    display: flex; /* Розміщує літери в один ряд */
    justify-content: center; /* Центрує напис по горизонталі */
    align-items: center; /* Центрує по вертикалі */
    font-family: 'Montserrat', sans-serif; /* Використовує стильний шрифт */
    font-weight: 700; /* Робить шрифт жирнішим */
    font-size: 5em; /* Задає великий розмір шрифту */
}

.leono-text span {
    display: inline-block; /* Дозволяє застосовувати трансформації */
    padding: 0 5px; /* Додає трохи простору між буквами */
    transition: transform 0.3s ease; /* Додає плавний ефект при наведенні */
}

/* Стилі для букви L */
.l-letter {
    color: #FF5733; /* Яскраво-помаранчевий колір */
    transform: rotate(-10deg); /* Повертає букву на -10 градусів */
}

/* Стилі для букви E */
.e-letter {
    color: #33C7FF; /* Яскраво-синій колір */
    transform: rotate(5deg); /* Повертає букву на 5 градусів */
}

/* Стилі для букви O */
.o-letter {
    color: #33FF57; /* Яскраво-зелений колір */
    transform: rotate(15deg); /* Повертає букву на 15 градусів */
}

/* Ефект при наведенні на букви */
.leono-text span:hover {
    transform: scale(1.1) rotate(0deg); /* Збільшує букву та вирівнює її */
    cursor: pointer; /* Показує, що елемент інтерактивний */
}
/* Основні стилі форми */
.contact-form-container {
    background: #f4f7f9;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #002D62;
    background: #4B7FD2;
    position: relative;
    
    /* Зміни для адаптивності */
    max-width: 600px; /* Максимальна ширина для великих екранів */
    width: 90%; /* Ширина буде 90% від ширини вікна браузера */
    height: auto; /* Висота буде автоматично підлаштовуватися під вміст */
    min-height: 500px; /* Мінімальна висота, щоб форма не була занадто маленькою */
    
    padding: 100px 30px 30px 30px;
    overflow: hidden;
    margin: 40px auto; /* Центруємо форму та додаємо відступи зверху/знизу */
}

/* Стилі для кліпси */
.contact-form-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
    background: #BCC2C2;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2) inset;
}

/* Внутрішня тінь на планшетці для ефекту ПВХ */
.contact-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}
.program-section {
  background: linear-gradient(135deg, #fef9e7, #e8f8f5);
  padding: 40px 20px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 40px auto;
  font-family: "Comic Sans MS", "Poppins", sans-serif;
}

.program-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.program-section h2::after {
  position: absolute;
  right: 10px;
  top: -10px;
  /*animation: spin 6s linear infinite;*/
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  background: #fff;
  margin: 12px 0;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.icon {
  font-size: 0.9rem;
  background: #ffeaa7;
  padding: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .program-section h2 {
    font-size: 1.6rem;
  }
  .program-list li {
    font-size: 1rem;
    padding: 12px;
  }
  .icon {
    font-size: 1.3rem;
    padding: 6px;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cta-section {
  background: linear-gradient(135deg, #fceabb, #f8b500);
  padding: 60px 20px;
  border-radius: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-width: 950px;
  margin: 50px auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: "Comic Sans MS", "Poppins", sans-serif;
}

/* Декоративні кружечки */
.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  z-index: 0;
}
.cta-section::before {
  width: 150px;
  height: 150px;
  background: #ff7675;
  top: -50px;
  left: -50px;
}
.cta-section::after {
  width: 200px;
  height: 200px;
  background: #74b9ff;
  bottom: -80px;
  right: -60px;
}

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

.cta-content h2 {
  font-size: 2rem;
  color: #2d3436;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: #0984e3;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.cta-button:hover {
  background: #74b9ff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 1.6rem;
  }
  .cta-content p {
    font-size: 20px;
  }
  .cta-button {
    font-size: 1rem;
    padding: 12px 22px;
  }
}
.kids-section2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 50px 20px;
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Comic Sans MS", "Poppins", sans-serif;
}

.feature-card2 {
  background: #fff;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card2::before {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.15;
  top: 10px;
  right: 15px;
}

.feature-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.feature-card2 h3 {
  font-size: 1.4rem;
  color: #2d3436;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
}

.feature-card2 h3::after {
  margin-left: 8px;
  color: #fdcb6e;
  /*animation: spin 6s linear infinite;*/
  display: inline-block;
}

.feature-card2 p {
  margin: 8px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #2c3e50;
}

/* Анімація */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Адаптивність */
@media (max-width: 768px) {
  .kids-section2 {
    padding: 30px 15px;
    gap: 20px;
  }
  .feature-card2 {
    padding: 20px 16px;
  }
  .feature-card2 h3 {
    font-size: 1.2rem;
  }
  .feature-card2 p {
    font-size: 0.95rem;
  }
}
.course-topics2 {
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  padding: 50px 20px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  max-width: 950px;
  margin: 40px auto;
  font-family: "Comic Sans MS", "Poppins", sans-serif;
}

.course-topics2 h2 {
  text-align: center;
  font-size: 2rem;
  color: #2d3436;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
}

.course-topics2 h2::after {
  position: absolute;
  right: 10px;
  /*animation: spin 6s linear infinite;*/
}

.topic2-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic2-list li {
  background: #fff;
  margin: 12px 0;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 1.1rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.topic2-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.topic-icon {
  font-size: 1.5rem;
  background: #ffeaa7;
  padding: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
}

/* Адаптивність */
@media (max-width: 768px) {
  .course-topics2 h2 {
    font-size: 1.6rem;
  }
  .topic2-list li {
    font-size: 1rem;
    padding: 14px 16px;
  }
  .topic-icon {
    font-size: 1.2rem;
    padding: 6px;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Основна секція */
.kids-main {
  position: relative;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  border-radius: 30px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Контент */
.kids-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.kids-main h1 {
  font-size: 2.5rem;
  color: #ff5e78;
  font-family: 'Comic Sans MS', 'Poppins', sans-serif;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.kids-main .intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 15px;
  font-family: 'Nunito', sans-serif;
}

/* Декор */
.kids-decor img {
  position: absolute;
  width: 80px;
  opacity: 0.8;
}

.kids-decor .star {
  top: 15px;
  left: 20px;
  /*animation: float 4s ease-in-out infinite;*/
}

.kids-decor .cloud {
  bottom: 20px;
  right: 25px;
  width: 100px;
  animation: float 6s ease-in-out infinite;
}

.kids-decor .rainbow {
  top: 30px;
  right: 50%;
  transform: translateX(50%);
  width: 120px;
  /*animation: pulse 5s ease-in-out infinite;*/
}

/* Анімації */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Адаптивність */
@media (max-width: 768px) {
  .kids-main {
    padding: 40px 15px;
  }

  .kids-main h1 {
    font-size: 2rem;
  }

  .kids-main .intro-text {
    font-size: 1rem;
  }

  .kids-decor img {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .kids-main h1 {
    font-size: 1.6rem;
  }

  .kids-main .intro-text {
    font-size: 0.95rem;
  }
}
/* Основний футер */
.kids-footer {
  position: relative;
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  padding: 30px 20px;
  text-align: center;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-shadow: 0 -6px 15px rgba(0,0,0,0.1);
}

.kids-footer p {
  font-family: 'Comic Sans MS', 'Poppins', sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Соцмережі */
.kids-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.kids-socials .social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Дитячі кольори іконок */
.social.youtube { background: #ff4d4d; }
.social.facebook { background: #3b5998; }
.social.tiktok { background: #000000; }
.social.instagram { 
  background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social.telegram { background: #29a9eb; }
.social.viber { background: #7360f2; }
.social.whatsapp { background: #25d366; }

/* Ефект при наведенні */
.kids-socials .social:hover {
  transform: translateY(-6px) rotate(-5deg);
  box-shadow: 0 8px 14px rgba(0,0,0,0.25);
}

/* Адаптивність */
@media (max-width: 768px) {
  .kids-footer p { font-size: 0.9rem; }
  .kids-socials .social {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .kids-footer p { font-size: 0.8rem; }
  .kids-socials { gap: 10px; }
  .kids-socials .social {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
/* Секція соцмереж тільки для дитячої сторінки */
.kids-social-section {
  background: linear-gradient(135deg, #f9d1ff, #c2e9fb);
  padding: 40px 20px;
  text-align: center;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 40px auto;
}

.kids-social-section h2 {
  font-family: 'Comic Sans MS', 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #3b3b98;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

/* Контейнер для іконок */
.kids-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Іконки соцмереж */
.kids-socials .social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Кольорові стилі */
.social.youtube { background: #ff4d4d; }
.social.facebook { background: #3b5998; }
.social.tiktok { background: #000000; }
.social.instagram {
  background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social.telegram { background: #29a9eb; }
.social.viber { background: #7360f2; }
.social.whatsapp { background: #25d366; }

/* Анімація при наведенні */
.kids-socials .social:hover {
  transform: translateY(-8px) rotate(-5deg);
  box-shadow: 0 8px 15px rgba(0,0,0,0.25);
}

/* Адаптивність */
@media (max-width: 768px) {
  .kids-social-section h2 {
    font-size: 1.5rem;
  }

  .kids-socials .social {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .kids-social-section {
    padding: 25px 15px;
  }

  .kids-social-section h2 {
    font-size: 1.3rem;
  }

  .kids-socials {
    gap: 12px;
  }

  .kids-socials .social {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}
/* Сучасна, компактна форма */
.contact-form-section-modern {
  background: #d1e6fc;
  padding: 40px 20px;
  border-radius: 20px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-family: 'Poppins', sans-serif;
}

.contact-form-container-modern h2 {
  font-size: 1.8rem;
  color: #0277bd;
  text-align: center;
  margin-bottom: 25px;
}

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

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

.form-group-modern input {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #b0bec5;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group-modern input:focus {
  border-color: #0288d1;
  box-shadow: 0 4px 10px rgba(2, 136, 209, 0.2);
  outline: none;
}

.form-group-modern small {
  font-size: 0.75rem;
  color: #607d8b;
  margin-top: 2px;
  text-align: right;
}

.contact-form-modern button {
  padding: 12px 20px;
  background: #0288d1;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form-modern button:hover {
  background: #0277bd;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Адаптивність */
@media (max-width: 480px) {
  .contact-form-section-modern {
    padding: 30px 15px;
  }

  .contact-form-container-modern h2 {
    font-size: 1.5rem;
  }

  .form-group-modern input {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .contact-form-modern button {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
}
/* Футер для школи англійської мови */
.school-footer {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 30px 20px;
  text-align: center;
  border-top: 2px solid #0288d1;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
  font-family: 'Poppins', sans-serif;
}

.school-footer p {
  color: #01579b;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Контейнер соцмереж */
.school-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Іконки соцмереж */
.school-socials .social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: #fff;
  transition: all 0.3s;
}

/* Кольори соцмереж */
.social.youtube { background: #ff4d4d; }
.social.facebook { background: #3b5998; }
.social.tiktok { background: #000000; }
.social.instagram {
  background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social.telegram { background: #29a9eb; }
.social.viber { background: #7360f2; }
.social.whatsapp { background: #25d366; }

/* Ефект при наведенні */
.school-socials .social:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Адаптивність */
@media (max-width: 768px) {
  .school-footer p { font-size: 0.9rem; }
  .school-socials .social {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .school-footer p { font-size: 0.8rem; }
  .school-socials {
    gap: 10px;
  }
  .school-socials .social {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
}
/* Контактна секція для школи англійської мови */
.contact-grid-school {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 30px 20px;
  border-radius: 20px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: 'Poppins', sans-serif;
}

.contact-info-school p {
  font-size: 1rem;
  color: #01579b;
  margin-bottom: 20px;
  text-align: center;
}

.contact-info-school ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-info-school li {
  font-size: 1rem;
  color: #0277bd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info-school i {
  color: #0288d1;
  font-size: 1.2rem;
}

/* Адаптивність */
@media (max-width: 768px) {
  .contact-info-school p {
    font-size: 0.95rem;
  }
  .contact-info-school li {
    font-size: 0.95rem;
  }
  .contact-info-school i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-grid-school {
    padding: 20px 15px;
  }
  .contact-info-school p {
    font-size: 0.9rem;
  }
  .contact-info-school li {
    font-size: 0.9rem;
  }
  .contact-info-school i {
    font-size: 1rem;
  }
}
/* Базові стилі body */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #e3f2fd, #ffffff, #bbdefb, #e1f5fe);
  background-size: 400% 400%;
  animation: gradientAnimation 20s ease infinite;
  position: relative;
  overflow-x: hidden;
  color: #333;
  line-height: 1.6;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Контейнер для плаваючих іконок */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* іконки не заважають клікам */
  overflow: hidden;
  z-index: 0;
}

.floating-icons i {
  position: absolute;
  font-size: 30px;
  color: rgba(2,136,209,0.2);
  /*animation: floatIcons linear infinite;*/
}

/* Створюємо кілька різних анімацій */
.floating-icons i:nth-child(1) { top: 10%; left: 5%; animation-duration: 25s; }
.floating-icons i:nth-child(2) { top: 30%; left: 80%; animation-duration: 30s; font-size: 35px; }
.floating-icons i:nth-child(3) { top: 50%; left: 20%; animation-duration: 28s; font-size: 28px; }
.floating-icons i:nth-child(4) { top: 70%; left: 60%; animation-duration: 32s; font-size: 32px; }
.floating-icons i:nth-child(5) { top: 15%; left: 50%; animation-duration: 27s; font-size: 26px; }
.floating-icons i:nth-child(6) { top: 40%; left: 35%; animation-duration: 33s; font-size: 30px; }

@keyframes floatIcons {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.2; }
  50% { transform: translateY(-50px) translateX(20px) rotate(15deg); opacity: 0.4; }
  100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.2; }
}

/* Адаптивність шрифту та body */
@media (max-width: 768px) { body { font-size: 15px; } }
@media (max-width: 480px) { body { font-size: 14px; } }

/* Плавні переходи для посилань */
a {
  color: #0288d1;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}
a:hover {
  color: #01579b;
  transform: scale(1.05);
}
/* --------------------
   Базові змінні кольорів
-------------------- */
:root {
  --primary-color: #ff6f61; /* рожево-кораловий */
  --secondary-color: #ffd166; /* теплий жовтий */
  --accent-color: #06d6a0; /* м’ятний */
  --purple-color: #8d48d9; /* дитячий фіолет */
  --text-dark: #333;
  --bg-light: #fdfdfd;
  --white: #fff;
}

/* --------------------
   Body
-------------------- */
body.kids-page {
  margin: 0;
  line-height: 1.6;
  background: linear-gradient(135deg, #fdfbfb, #fceef5);
  color: var(--text-dark);
  overflow-x: hidden;
}

main.container {
  padding: 2rem 1rem;
}

h1, h2, h3 {
  font-weight: 700;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-family: 'Comic Sans MS', 'Poppins', sans-serif;
}

h2 {
  font-size: 2rem;
  color: var(--accent-color);
}

h3 {
  font-size: 1.4rem;
  color: #000000;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* --------------------
   Hero Section (kids-main)
-------------------- */
.kids-main {
  background: linear-gradient(135deg, #ffe29f, #ffa99f);
  padding: 3rem 2rem;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.kids-main h1 {
  color: var(--white);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.kids-main .intro-text {
  max-width: 800px;
  margin: 0 auto 1rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* --------------------
   Info Cards (feature-card2)
-------------------- */
.kids-section2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 2rem auto;
  max-width: 1100px;
}

.feature-card2 {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.feature-card2:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

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

/* --------------------
   Characters Section
-------------------- */
.characters {
  text-align: center;
  margin: 3rem auto;
  padding: 2rem 1rem;
}

.characters h2 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.characters p {
  font-style: italic;
  color: #666;
  margin-bottom: 2rem;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.character-card {
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: translateY(-8px) scale(1.05);
}

.character-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  margin-bottom: 10px;
  background: var(--white);
}

.character-name {
  color: var(--purple-color);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.character-description {
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* --------------------
   Lists (course-topics2, program-section)
-------------------- */
.course-topics2, .program-section {
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  padding: 2.5rem 1.5rem;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin: 2.5rem auto;
  max-width: 950px;
}

.topic2-list li, .program-list li {
  background: var(--white);
  margin: 12px 0;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic2-list li:hover, .program-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

/* --------------------
   Call To Action
-------------------- */
.call-to-action {
  text-align: center;
  padding: 3rem 1.5rem;
background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  border-radius: 26px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  margin: 3rem auto;
  max-width: 950px;
}

.call-to-action h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.call-to-action p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--white);
  background: var(--accent-color);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.cta-button:hover {
  background: #04b487;
  transform: scale(1.05);
}

/* --------------------
   Адаптивність
-------------------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .kids-main { padding: 2rem 1rem; }
  .feature-card2 { padding: 1rem; }
}
.call-to-action2 {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #fceabb, #a3ffc8);
    border-radius: 26px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin: 3rem auto;
    max-width: 950px;
}
.board-title {
    color: #002D62; /* Глибокий синій - один з ваших основних кольорів */
    position: relative;
    font-size: 2.2em;
    padding-bottom: 5px;
    display: inline-block;
    font-weight: 700;
}

.board-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #50b3a2; /* Яскравий акцентний колір */
    border-radius: 2px;
}

