/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF9F1C; /* Оранжевый */
    --primary-light: #FFBF69;
    --secondary: #2EC4B6; /* Бирюзовый */
    --secondary-light: #CBF3F0;
    --accent: #E71D36; /* Красный акцент */
    --light: #FDFFFC; /* Белый */
    --dark: #011627; /* Темно-синий */
    --gray: #8DA9C4;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --telegram: #0088cc;
    --whatsapp: #25D366;
    --pink: #FFB6C1;
    --light-green: #90EE90;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--gray);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-promo {
    background-color: white;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 15px 40px;
    margin-right: 20px;
}

.btn-promo:hover {
    background-color: var(--secondary);
    color: white;
    transform: scale(1.05);
}

.btn-schedule {
    background-color: var(--secondary);
    color: white;
    margin-right: 15px;
}

.btn-schedule:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

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

/* Логотип с изображением */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    position: relative;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    bottom: 5px;
    right: -10px;
}

/* Контакты в шапке */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0 30px;
}

.nav-list li {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
    border-radius: 3px;
}

/* Герой секция с новым градиентом и фоновыми картинками */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--pink) 0%, white 50%, var(--light-green) 100%);
    padding-top: 80px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    position: relative;
    z-index: 3;
}

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

.hero-title span {
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: var(--dark);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

/* Фоновая картинка совы */
.owl-background {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
}

.owl-background-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Фоновая картинка кубиков */
.cubes-background {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40%;
    height: 70%;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
}

.cubes-background-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* О клубе */
.about-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
    max-width: 300px;
    padding: 30px;
    border-radius: 20px;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Аккордеон услуг */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    width: 100%;
    padding: 20px 30px;
    background-color: var(--secondary);
    color: white;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--primary);
}

.accordion-header i:first-child {
    margin-right: 15px;
    font-size: 1.5rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: max-height 0.5s ease;
}

.accordion-content ul {
    list-style: none;
    padding: 30px;
}

.accordion-content li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.accordion-content li:last-child {
    border-bottom: none;
}

.accordion-content li i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-item.active .accordion-header .fa-chevron-down {
    transform: rotate(180deg);
}

/* Расписание */
.schedule {
    background-color: var(--secondary-light);
}

.schedule-container {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.schedule-tab {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.schedule-tab:hover {
    background-color: var(--primary-light);
}

.schedule-tab.active {
    background-color: var(--primary);
    color: white;
}

.schedule-content {
    min-height: 300px;
    position: relative;
}

#schedule-loading {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.schedule-day {
    display: none;
    animation: fadeIn 0.5s ease;
}

.schedule-day.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.schedule-day h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark);
    text-align: center;
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: var(--transition);
}

.schedule-item:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.time {
    font-weight: 700;
    color: var(--primary);
    min-width: 120px;
}

.activity {
    flex-grow: 1;
    margin: 0 20px;
    font-weight: 600;
}

.teacher {
    color: var(--gray);
    font-style: italic;
    min-width: 100px;
    text-align: right;
}

.schedule-note {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--primary-light);
    border-radius: 10px;
    text-align: center;
}

.schedule-note i {
    color: var(--accent);
    margin-right: 10px;
}

/* Диагностики */
.diagnostics {
    background-color: var(--secondary-light);
}

.diagnostics-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.card {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Акции */
.promo {
    background-color: var(--accent);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.promo-content {
    flex: 1;
    min-width: 300px;
}

.promo-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.promo-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.promo-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Кнопки в секции акций */
.promo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.promo-image {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.promo-image i {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Новинка */
.novelty {
    background-color: var(--primary-light);
}

.novelty-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.novelty-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.novelty-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.novelty-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--dark);
}

.novelty-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.novelty-icons i {
    font-size: 3.5rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.novelty-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.novelty-icons i:nth-child(3) {
    animation-delay: 1s;
}

.novelty-icons i:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Футер */
.footer {
    background-color: var(--dark);
    color: white;
}

.footer .section-title {
    color: white;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.phone {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 15px;
}

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

/* Иконки мессенджеров в футере (круглые) */
.messenger-icons-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.messenger-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

/*.messenger-link-footer:nth-child(1) {
    background-color: var(--telegram);
}

.messenger-link-footer:nth-child(2) {
    background-color: var(--whatsapp);
}
*/
.messenger-link-footer:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    opacity: 0.9;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* Яндекс Карта */
.map-container {
    margin: 50px 0 40px;
}

.map-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.yandex-map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-note {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--gray);
}

.map-note i {
    color: var(--primary);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 1rem;
    color: var(--gray);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalAppear 0.5s ease;
}

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

.modal-icon {
    font-size: 5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.modal h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.modal p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray);
}

/* Летающий совёнок */
.owl-flying {
    position: fixed;
    top: 50%;
    right: 20px;
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,25 C65,25 75,35 75,50 C75,65 65,75 50,75 C35,75 25,65 25,50 C25,35 35,25 50,25 Z' fill='%23FF9F1C'/%3E%3Ccircle cx='40' cy='45' r='5' fill='white'/%3E%3Ccircle cx='60' cy='45' r='5' fill='white'/%3E%3Ccircle cx='45' cy='48' r='2' fill='%23011627'/%3E%3Ccircle cx='55' cy='48' r='2' fill='%23011627'/%3E%3Cpath d='M50,65 L45,60 L55,60 Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1000;
    cursor: pointer;
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0.8;
    transform: translateY(-50%);
    animation: floatOwl 3s ease-in-out infinite;
}

.owl-flying:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    animation: floatOwlFast 1.5s ease-in-out infinite;
}

@keyframes floatOwl {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-60%) translateX(-5px);
    }
}

@keyframes floatOwlFast {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-65%) translateX(-8px);
    }
}

/* Анимации появления */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Мобильная версия */
@media (max-width: 768px) {
    /* Скрываем бургер-меню */
    .burger {
        display: none !important;
    }
    
    /* Скрываем навигацию в шапке */
    .nav-list {
        display: none !important;
    }
    
    /* Скрываем кнопку "Расписание" в шапке */
    .header-buttons .btn-schedule {
        display: none !important;
    }
    
    /* Уменьшаем отступы в шапке для мобильных */
    .header {
        padding: 10px 0 !important;
    }
    
    /* Увеличиваем кнопку "Записаться" для лучшей доступности */
    .header-buttons .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
        margin-left: 0;
    }
    
    /* Убираем отступ между кнопками */
    .header-buttons {
        gap: 0;
    }
    
    /* Логотип адаптируем */
    .logo span {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    /* Фоновая картинка совы для мобильной версии */
    .owl-background {
        width: 80%;
        height: 70%;
        opacity: 0.1;
        right: -40%;
    }
    
    .owl-background-img {
        object-position: right center;
    }
    
    /* Фоновая картинка кубиков для мобильной версии */
    .cubes-background {
        width: 80%;
        height: 60%;
        opacity: 0.1;
        left: -40%;
    }
    
    .cubes-background-img {
        object-position: left center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .promo .container {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-title {
        font-size: 2rem;
    }
    
    .promo-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-promo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .promo-image i {
        font-size: 10rem;
        margin-top: 30px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .time, .activity, .teacher {
        width: 100%;
    }
    
    .teacher {
        text-align: left;
    }
    
    .yandex-map {
        height: 300px;
    }
    
    .owl-flying {
        width: 40px;
        height: 40px;
        right: 10px;
        opacity: 0.7;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .card {
        min-width: 100%;
    }
    
    .feature {
        min-width: 100%;
    }
    
    .schedule-container {
        padding: 20px;
    }
    
    .schedule-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .schedule-tab {
        width: 100%;
        text-align: center;
    }
    
    .phone {
        font-size: 1.5rem;
    }
    
    .owl-flying {
        width: 35px;
        height: 35px;
        opacity: 0.6;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
}

/* Стили для расписания */
.error {
    color: var(--accent);
    text-align: center;
    padding: 20px;
    font-weight: 600;
}

.no-lessons {
    text-align: center;
    padding: 30px;
    color: var(--gray);
    font-style: italic;
}

/* Стили для загрузки */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимация появления элементов расписания */
.schedule-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Задержки для анимации */
.schedule-item:nth-child(1) { animation-delay: 0.1s; }
.schedule-item:nth-child(2) { animation-delay: 0.2s; }
.schedule-item:nth-child(3) { animation-delay: 0.3s; }
.schedule-item:nth-child(4) { animation-delay: 0.4s; }
.schedule-item:nth-child(5) { animation-delay: 0.5s; }
.schedule-item:nth-child(6) { animation-delay: 0.6s; }
.schedule-item:nth-child(7) { animation-delay: 0.7s; }
.schedule-item:nth-child(8) { animation-delay: 0.8s; }
.schedule-item:nth-child(9) { animation-delay: 0.9s; }
.schedule-item:nth-child(10) { animation-delay: 1s; }

/* Кнопки в секции акций */
.promo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Фоновая картинка совы */
.owl-background {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
}

.owl-background-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Фоновая картинка кубиков */
.cubes-background {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40%;
    height: 70%;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
}

.cubes-background-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Медиазапросы для мобильных устройств */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    /* Фоновая картинка совы для мобильной версии */
    .owl-background {
        width: 80%;
        height: 70%;
        opacity: 0.1;
        right: -40%;
    }
    
    .owl-background-img {
        object-position: right center;
    }
    
    /* Фоновая картинка кубиков для мобильной версии */
    .cubes-background {
        width: 80%;
        height: 60%;
        opacity: 0.1;
        left: -40%;
    }
    
    .cubes-background-img {
        object-position: left center;
    }
    
    .promo-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-promo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        max-width: 300px;
    }
}

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

/* Существующие стили для фонов - обновляем их расположение */

/* Контейнер для всех фоновых элементов */
.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Кубики - левый верхний угол */
.cubes-background {
    position: absolute;
    top: 10%;
    left: 0;
    width: 25%;
    height: 40%;
    z-index: 2;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.cubes-background-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

/* Игрушки - правый нижний угол */
.background-toys {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 20%;
    height: 30%;
    z-index: 2;
    opacity: 0.25;
    transform: rotate(10deg);
}

.background-toys-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

/* Книги - левый нижний угол */
.background-books {
    position: absolute;
    bottom: 5%;
    left: 5%;
    width: 20%;
    height: 30%;
    z-index: 2;
    opacity: 0.3;
    transform: rotate(-5deg);
}

.background-books-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

/* Обновляем существующие стили для героя */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--pink) 0%, white 50%, var(--light-green) 100%);
    padding-top: 80px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    position: relative;
    z-index: 3;
}

/* Сова - правый верхний угол (если нужно сохранить) */
.owl-background {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 25%;
    height: 40%;
    z-index: 2;
    opacity: 0.2;
    transform: rotate(5deg);
}

.owl-background-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

/* Анимация для фоновых элементов */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(var(--rotation, 0deg));
    }
}

.cubes-background {
    --rotation: -15deg;
    animation: float 6s ease-in-out infinite;
}

.background-toys {
    --rotation: 10deg;
    animation: float 7s ease-in-out infinite 0.5s;
}

.background-books {
    --rotation: -5deg;
    animation: float 8s ease-in-out infinite 1s;
}

.owl-background {
    --rotation: 5deg;
    animation: float 9s ease-in-out infinite 1.5s;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .cubes-background,
    .background-toys,
    .background-books,
    .owl-background {
        opacity: 0.15;
        width: 40%;
        height: 30%;
    }
    
    .cubes-background {
        top: 5%;
        left: -10%;
    }
    
    .background-toys {
        bottom: 5%;
        right: -15%;
    }
    
    .background-books {
        bottom: 5%;
        left: -10%;
        width: 35%;
    }
    
    .owl-background {
        top: 5%;
        right: -15%;
    }
}

@media (max-width: 480px) {
    .cubes-background,
    .background-toys,
    .background-books,
    .owl-background {
        opacity: 0.1;
    }
}

/* Существующие стили - оставляем как есть */

/* Мячик - центр левой части */
.background-ball {
    position: absolute;
    top: 40%;
    left: 20%;
    width: 15%;
    height: 20%;
    z-index: 2;
    opacity: 0.25;
    transform: rotate(-20deg);
}

.background-ball-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

/* Карандаши/кисточки - центр правой части */
.background-pencils {
    position: absolute;
    top: 40%;
    right: 30%;
    width: 15%;
    height: 25%;
    z-index: 2;
    opacity: 0.25;
    transform: rotate(15deg);
}

.background-pencils-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
}

/* Обновляем анимации для новых элементов */
.background-ball {
    --rotation: -20deg;
    animation: float 5s ease-in-out infinite 0.3s;
}

.background-pencils {
    --rotation: 15deg;
    animation: float 6s ease-in-out infinite 0.7s;
}

/* Обновляем анимацию для всех элементов */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(var(--rotation, 0deg));
    }
}

/* Обновляем прозрачность всех элементов для лучшей читаемости */
.cubes-background,
.background-toys,
.background-books,
.background-ball,
.background-pencils,
.owl-background {
    opacity: 0.2;
}

/* Для мобильных - уменьшаем количество элементов и их видимость */
@media (max-width: 1024px) {
    .cubes-background,
    .background-toys,
    .background-books,
    .background-ball,
    .background-pencils,
    .owl-background {
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    /* Скрываем часть элементов на мобильных */
    .background-ball,
    .background-pencils {
        display: none;
    }
    
    .cubes-background,
    .background-toys,
    .background-books,
    .owl-background {
        opacity: 0.1;
        width: 40%;
        height: 30%;
    }
    
    .cubes-background {
        top: 5%;
        left: -10%;
    }
    
    .background-toys {
        bottom: 5%;
        right: -15%;
    }
    
    .background-books {
        bottom: 5%;
        left: -10%;
        width: 35%;
    }
    
    .owl-background {
        top: 5%;
        right: -15%;
    }
}

@media (max-width: 480px) {
    .cubes-background,
    .background-toys,
    .background-books,
    .owl-background {
        opacity: 0.08;
    }
}

/* Для больших экранов - можно показать больше */
@media (min-width: 1600px) {
    .cubes-background,
    .background-toys,
    .background-books,
    .background-ball,
    .background-pencils,
    .owl-background {
        opacity: 0.25;
    }
}