/* Сброс стилей */

/* Шрифты */
@font-face {
    font-family: 'Noto Serif';
    src: url('/fonts/NotoSerif-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif';
    src: url('/fonts/NotoSerif-Regular.woff2') format('woff2');
    font-weight: 400 600;
    font-display: swap;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили */
body {
    font-family: 'Noto Serif', serif;
    background: linear-gradient(135deg, #f5efe6 0%, #f8f4e9 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок */
.main-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 80px;
    color: #3a2c1c;
    letter-spacing: -0.5px;
    line-height: 1.2;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Карточки категорий */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    height: 400px;
    display: block;
}

/* Эффект блюра и затемнения */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: background 0.4s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.7);
    z-index: 0;
    opacity: 0.5;
}

.category-card > * {
    position: relative;
    z-index: 2;
}

.category-card:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.category-card:hover::after {
    filter: blur(4px) brightness(0.8);
    opacity: 0.7;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}


/* Стили для фоновых изображений карточек */
.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Контент карточек - ЗАГОЛОВКИ ВВЕРХУ И ВЫРОВНЕНЫ */
.card-content {
    position: relative;
    z-index: 3;
    padding: 35px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ЗАГОЛОВКИ - ФИКСИРОВАННАЯ ВЫСОТА ДЛЯ ВЫРАВНИВАНИЯ */
.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    height: 70px; /* Фиксированная высота для всех */
    display: flex;
    align-items: center; /* Вертикальное выравнивание */
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ОПИСАНИЕ - ЗАНИМАЕТ ОСТАВШЕЕСЯ ПРОСТРАНСТВО */
.category-desc {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 300;
    flex-grow: 1; /* Растягивается на всё доступное пространство */
    display: flex;
    align-items: flex-end; /* Текст внизу */
    padding-bottom: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 15px;
}

@media (max-width: 768px) {
    .category-card {
        height: 350px;
    }
    
    .card-content {
        padding: 25px 20px 20px;
    }
    
    .category-title {
        font-size: 1.6rem;
        height: 60px; /* Меньше высота на мобильных */
        margin-bottom: 15px;
    }
    
    .category-desc {
        font-size: 1rem;
    }
    
    .category-card::after {
        filter: blur(4px) brightness(0.7);
    }
}

/* Блок "Работа в оркестрах" */
.jobs-block {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}



.jobs-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 244, 233, 0.95) 100%);
    z-index: 2;
}

.jobs-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.jobs-block:hover::before {
    filter: blur(1px) brightness(0.95);
    opacity: 0.7;
}

.jobs-link {
    text-decoration: none;
    color: #3a2c1c;
    display: block;
    position: relative;
    z-index: 3;
}

.jobs-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.jobs-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #3a2c1c;
    transition: color 0.3s ease;
}

.jobs-desc {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: #5a4632;
}

.jobs-link:hover .jobs-title {
    color: #8b7355;
}

@media (max-width: 768px) {
    .jobs-block {
        padding: 30px 20px;
    }
    
    .jobs-title {
        font-size: 1.8rem;
    }
    
    .jobs-desc {
        font-size: 1.1rem;
    }
}

/* Футер */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 25px 20px;
    font-size: 0.95rem;
    opacity: 0.7;
    color: #5a4632;
    border-top: 1px solid rgba(90, 70, 50, 0.1);
}






/* ===========================================
   СТИЛИ ДЛЯ СТРАНИЦ КАТАЛОГА
   =========================================== */

/* Кнопка назад */
.back-button {
    display: inline-block;
    margin-bottom: 30px;
    color: #8b7355;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.25s ease;
    border: 1px solid rgba(139, 115, 85, 0.25);
    background: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.back-button:hover {
    background: rgba(139, 115, 85, 0.08);
    color: #5a4632;
    padding-left: 24px;
    padding-right: 16px;
    border-color: rgba(139, 115, 85, 0.4);
}

/* Заголовок страницы каталога */
.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #3a2c1c;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 1.15rem;
    color: #5a4632;
    opacity: 0.85;
    margin-bottom: 50px;
    max-width: 700px;
    line-height: 1.5;
    font-weight: 300;
}

/* Список оркестров */
.catalog-list {
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Элемент оркестра */
.orchestra-item {
    position: relative;
    padding: 32px 0;
    display: block;
}

/* Тонкая черточка-разделитель */
.orchestra-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 5%, 
        rgba(90, 70, 50, 0.07) 20%, 
        rgba(90, 70, 50, 0.07) 80%, 
        transparent 95%);
}

.orchestra-item:last-child::after {
    display: none;
}

/* Основное содержимое оркестра */
.orchestra-content {
    position: relative;
}

/* Название оркестра */
.orchestra-name {
    font-size: 1.55rem;
    font-weight: 600;
    color: #3a2c1c;
    margin-bottom: 18px;
    line-height: 1.35;
    letter-spacing: -0.1px;
}

/* Блок с ссылками */
.orchestra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Ссылки на сайт и афишу (БЕЗ ИКОНОК) */
.orchestra-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b7355;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 9px 22px;
    border-radius: 20px;
    transition: all 0.25s ease;
    border: 1px solid rgba(139, 115, 85, 0.25);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.2px;
    text-align: center;
}

.orchestra-link:hover {
    background: rgba(139, 115, 85, 0.1);
    color: #5a4632;
    border-color: rgba(139, 115, 85, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.link-text {
    display: block;
}

/* Информационный блок внизу */
.catalog-info {
    max-width: 700px;
    margin: 0 auto;
    padding: 28px 35px;
    background: rgba(245, 239, 230, 0.6);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(139, 115, 85, 0.12);
    color: #5a4632;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 300;
    backdrop-filter: blur(5px);
}

/* Адаптивность для страниц каталога */
@media (max-width: 900px) {
    .page-title {
        font-size: 2.1rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .orchestra-item {
        padding: 28px 0;
    }
    
    .orchestra-name {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    .orchestra-link {
        padding: 10px 20px;
        font-size: 0.92rem;
    }
    
    .catalog-info {
        padding: 24px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    .back-button {
        margin-bottom: 25px;
        padding: 7px 18px;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.9rem;
    }
    
    .page-subtitle {
        font-size: 1.05rem;
        margin-bottom: 35px;
    }
    
    .orchestra-name {
        font-size: 1.35rem;
    }
    
    .orchestra-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .orchestra-link {
        width: 100%;
        max-width: 280px;
        padding: 11px 20px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.7rem;
    }
    
    .orchestra-name {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .orchestra-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .catalog-info {
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* Для тёмной темы (опционально) */
@media (prefers-color-scheme: dark) {
    .catalog-info {
        background: rgba(50, 45, 40, 0.6);
        color: #d4c9b8;
        border-color: rgba(139, 115, 85, 0.2);
    }
    
    .orchestra-link {
        background: rgba(60, 55, 50, 0.9);
        color: #c8b8a5;
        border-color: rgba(139, 115, 85, 0.3);
    }
    
    .orchestra-link:hover {
        background: rgba(139, 115, 85, 0.2);
        color: #e6d9c8;
    }
    
    .back-button {
        background: rgba(60, 55, 50, 0.9);
        color: #c8b8a5;
        border-color: rgba(139, 115, 85, 0.3);
    }
    
    .back-button:hover {
        background: rgba(139, 115, 85, 0.2);
        color: #e6d9c8;
    }
}










/* ===========================================
   УЛУЧШЕННЫЕ ФОНЫ ДЛЯ СТРАНИЦ КАТАЛОГА
   =========================================== */

/* Фон для страниц каталога - красивый градиент */
body.catalog-page {
    background: linear-gradient(
        135deg,
        #f8f4e9 0%,
        #f5efe6 25%,
        #f2eae1 50%,
        #efe6dd 75%,
        #ece2d9 100%
    );
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

/* Альтернативный вариант градиента (более теплый) */
body.catalog-page.alternative-bg {
    background: linear-gradient(
        135deg,
        #f9f5eb 0%,
        #f6f0e5 25%,
        #f3ebe0 50%,
        #f0e6db 75%,
        #ede1d6 100%
    );
    background-attachment: fixed;
    background-size: 300% 300%;
    animation: subtleGradient 25s ease infinite;
}

/* Еще один вариант - с акцентными цветами */
body.catalog-page.accent-bg {
    background: linear-gradient(
        135deg,
        #f8f4e9 0%,
        #f7f2e7 15%,
        #f5efe6 30%,
        #f3ece5 45%,
        #f2eae4 60%,
        #f0e8e3 75%,
        #eee6e1 90%,
        #ece4df 100%
    );
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gentleFlow 30s ease infinite;
}

/* Анимация для градиента */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes subtleGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gentleFlow {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Улучшенные карточки для каталога */
.orchestra-item {
    position: relative;
    padding: 32px 0;
    display: block;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    margin: 0 0 20px 0;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Убираем старый разделитель и добавляем новый эффект */
.orchestra-item::after {
    display: none; /* Убираем старую черточку */
}

.orchestra-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 115, 85, 0.15);
}

/* Улучшенные названия оркестров */
.orchestra-name {
    font-size: 1.55rem;
    font-weight: 600;
    color: #3a2c1c;
    margin-bottom: 18px;
    line-height: 1.35;
    letter-spacing: -0.1px;
    position: relative;
    padding-bottom: 12px;
}

/* Тонкая линия под названием */
.orchestra-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #8b7355, rgba(139, 115, 85, 0.3));
    border-radius: 1px;
}

/* Улучшенные ссылки */
.orchestra-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b7355;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 115, 85, 0.2);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 244, 233, 0.95) 100%
    );
    font-weight: 400;
    letter-spacing: 0.2px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.orchestra-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 115, 85, 0.08),
        transparent
    );
    transition: left 0.6s ease;
    z-index: -1;
}

.orchestra-link:hover {
    color: #5a4632;
    border-color: rgba(139, 115, 85, 0.35);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(252, 248, 237, 1) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(139, 115, 85, 0.12),
        0 2px 5px rgba(139, 115, 85, 0.08);
}

.orchestra-link:hover::before {
    left: 100%;
}

/* Информационный блок с градиентом */
.catalog-info {
    max-width: 700px;
    margin: 60px auto 0;
    padding: 32px 40px;
    background: linear-gradient(
        135deg,
        rgba(248, 244, 233, 0.9) 0%,
        rgba(245, 239, 230, 0.9) 50%,
        rgba(242, 235, 227, 0.9) 100%
    );
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #5a4632;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 300;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.catalog-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 115, 85, 0.2),
        transparent
    );
}

/* Кнопка назад с градиентом */
.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
    color: #8b7355;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 10px 22px 10px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 115, 85, 0.2);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 244, 233, 0.95) 100%
    );
    font-weight: 400;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.back-button:hover {
    color: #5a4632;
    padding-left: 22px;
    padding-right: 14px;
    border-color: rgba(139, 115, 85, 0.35);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(252, 248, 237, 1) 100%
    );
    transform: translateY(-1px) translateX(-3px);
    box-shadow: 
        0 4px 15px rgba(139, 115, 85, 0.1),
        0 2px 5px rgba(139, 115, 85, 0.05);
}

/* Адаптивность для градиентных страниц */
@media (max-width: 768px) {
    .orchestra-item {
        padding: 24px 20px;
        margin-bottom: 16px;
        border-radius: 14px;
    }
    
    .orchestra-name {
        font-size: 1.35rem;
        padding-bottom: 10px;
    }
    
    .orchestra-link {
        padding: 11px 20px;
        font-size: 0.92rem;
        border-radius: 10px;
    }
    
    .catalog-info {
        padding: 24px 20px;
        margin-top: 40px;
        border-radius: 14px;
    }
    
    /* Отключаем анимацию на мобильных для производительности */
    body.catalog-page,
    body.catalog-page.alternative-bg,
    body.catalog-page.accent-bg {
        animation: none;
        background-size: 100% 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .orchestra-item {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .orchestra-name {
        font-size: 1.25rem;
    }
    
    .orchestra-name::after {
        width: 40px;
    }
    
    .orchestra-link {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .catalog-info {
        padding: 20px 16px;
        font-size: 0.95rem;
    }
}

/* Эффект для темной темы */
@media (prefers-color-scheme: dark) {
    body.catalog-page {
        background: linear-gradient(
            135deg,
            #2a2520 0%,
            #26221e 25%,
            #231f1b 50%,
            #201c19 75%,
            #1d1a16 100%
        );
    }
    
    .orchestra-item {
        background: rgba(40, 36, 32, 0.85);
        border-color: rgba(80, 70, 60, 0.3);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .orchestra-item:hover {
        background: rgba(45, 40, 36, 0.95);
        border-color: rgba(139, 115, 85, 0.25);
    }
    
    .orchestra-name {
        color: #e6d9c8;
    }
    
    .orchestra-name::after {
        background: linear-gradient(90deg, #a38b6d, rgba(163, 139, 109, 0.3));
    }
    
    .orchestra-link {
        background: linear-gradient(
            135deg,
            rgba(50, 45, 40, 0.95) 0%,
            rgba(45, 40, 36, 0.95) 100%
        );
        color: #c8b8a5;
        border-color: rgba(139, 115, 85, 0.25);
    }
    
    .orchestra-link:hover {
        background: linear-gradient(
            135deg,
            rgba(55, 50, 45, 1) 0%,
            rgba(50, 45, 40, 1) 100%
        );
        color: #e6d9c8;
        border-color: rgba(163, 139, 109, 0.4);
    }
    
    .catalog-info {
        background: linear-gradient(
            135deg,
            rgba(40, 36, 32, 0.9) 0%,
            rgba(38, 34, 30, 0.9) 50%,
            rgba(35, 31, 27, 0.9) 100%
        );
        color: #d4c9b8;
        border-color: rgba(80, 70, 60, 0.3);
    }
    
    .back-button {
        background: linear-gradient(
            135deg,
            rgba(50, 45, 40, 0.95) 0%,
            rgba(45, 40, 36, 0.95) 100%
        );
        color: #c8b8a5;
        border-color: rgba(139, 115, 85, 0.25);
    }
    
    .back-button:hover {
        background: linear-gradient(
            135deg,
            rgba(55, 50, 45, 1) 0%,
            rgba(50, 45, 40, 1) 100%
        );
        color: #e6d9c8;
        border-color: rgba(163, 139, 109, 0.4);
    }
}







/* ===========================================
   НОЧНОЕ НЕБО ДЛЯ СТРАНИЦ КАТАЛОГА
   =========================================== */

/* ОСНОВНОЙ ФОН - НОЧНОЕ НЕБО */
body.catalog-page.accent-bg {
    background: 
        /* Темное небо с градиентом */
        linear-gradient(
            135deg,
            #0a0a2a 0%,     /* Темно-синий (почти черный) */
            #0c1b33 25%,    /* Глубокий синий */
            #1a2b4a 50%,    /* Средний синий */
            #2c3e50 75%,    /* Сланцево-синий */
            #34495e 100%    /* Темный серо-синий */
        ),
        /* Звездная текстура (мелкие точки) */
        radial-gradient(
            circle at 20% 30%,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 2%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255, 255, 255, 0.02) 0%,
            transparent 3%
        ),
        radial-gradient(
            circle at 40% 90%,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 1.5%
        );
    
    background-blend-mode: normal, overlay, overlay;
    background-attachment: fixed;
    background-size: 
        100% 100%,   /* Для основного градиента */
        200% 200%,   /* Для звезд */
        300% 300%,   /* Для звезд */
        400% 400%;   /* Для звезд */
    
    /* Медленное движение градиента */
    animation: nightSkyMove 120s ease-in-out infinite;
    color: #e0f2fe; /* Светло-голубой текст для контраста */
}

/* Анимация движения ночного неба */
@keyframes nightSkyMove {
    0%, 100% {
        background-position: 
            0% 0%,
            0% 0%,
            100% 100%,
            50% 50%;
    }
    25% {
        background-position: 
            100% 0%,
            25% 25%,
            75% 75%,
            0% 100%;
    }
    50% {
        background-position: 
            100% 100%,
            50% 50%,
            50% 50%,
            100% 0%;
    }
    75% {
        background-position: 
            0% 100%,
            75% 75%,
            25% 25%,
            0% 0%;
    }
}

/* ===========================================
   ОБНОВЛЕНИЕ СТИЛЕЙ ДЛЯ ТЕМНОГО ФОНА
   =========================================== */

/* Заголовок страницы */
.page-title {
    color: #e0f7ff !important; /* Светло-голубой */
    text-shadow: 
        0 2px 10px rgba(0, 150, 255, 0.3),
        0 0 30px rgba(100, 200, 255, 0.2);
}

.page-subtitle {
    color: #a0d2ff !important; /* Голубой */
    opacity: 0.9;
}

/* Карточки оркестров */
.orchestra-item {
    background: rgba(20, 30, 48, 0.85) !important; /* Полупрозрачный темно-синий */
    border: 1px solid rgba(100, 150, 255, 0.15) !important;
    box-shadow: 
        0 8px 32px rgba(0, 20, 40, 0.3),
        0 2px 8px rgba(0, 40, 80, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    color: #cce7ff;
}

.orchestra-item:hover {
    background: rgba(25, 40, 60, 0.9) !important;
    border-color: rgba(120, 180, 255, 0.25) !important;
    box-shadow: 
        0 12px 40px rgba(0, 40, 80, 0.4),
        0 4px 15px rgba(0, 60, 120, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Название оркестра */
.orchestra-name {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.orchestra-name::after {
    background: linear-gradient(90deg, 
        rgba(100, 200, 255, 0.8), 
        rgba(100, 150, 255, 0.3)) !important;
}

/* Ссылки */
.orchestra-link {
    background: linear-gradient(
        135deg,
        rgba(30, 60, 114, 0.9) 0%,
        rgba(40, 80, 140, 0.9) 100%
    ) !important;
    color: #bbddff !important;
    border: 1px solid rgba(100, 180, 255, 0.25) !important;
}

.orchestra-link:hover {
    background: linear-gradient(
        135deg,
        rgba(40, 80, 140, 1) 0%,
        rgba(60, 100, 180, 1) 100%
    ) !important;
    color: #ffffff !important;
    border-color: rgba(120, 200, 255, 0.4) !important;
    box-shadow: 
        0 4px 20px rgba(0, 100, 200, 0.3),
        0 0 10px rgba(100, 200, 255, 0.2) !important;
}

/* Кнопка "Назад" */
.back-button {
    background: linear-gradient(
        135deg,
        rgba(30, 60, 114, 0.9) 0%,
        rgba(40, 80, 140, 0.9) 100%
    ) !important;
    color: #bbddff !important;
    border: 1px solid rgba(100, 180, 255, 0.25) !important;
}

.back-button:hover {
    background: linear-gradient(
        135deg,
        rgba(40, 80, 140, 1) 0%,
        rgba(60, 100, 180, 1) 100%
    ) !important;
    color: #ffffff !important;
    border-color: rgba(120, 200, 255, 0.4) !important;
}

/* Информационный блок */
.catalog-info {
    background: linear-gradient(
        135deg,
        rgba(20, 40, 80, 0.8) 0%,
        rgba(30, 60, 120, 0.8) 100%
    ) !important;
    color: #cce7ff !important;
    border: 1px solid rgba(100, 180, 255, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(0, 40, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Футер */
footer {
    color: #7d7d7d !important;
    border-top: 1px solid rgba(100, 150, 255, 0.1) !important;
}

/* ===========================================
   ОБНОВЛЕНИЕ АНИМАЦИЙ ДЛЯ НОЧНОЙ ТЕМЫ
   =========================================== */

/* Шарики - меняем цвета для ночной темы */
.magic-particle {
    box-shadow: 
        0 0 25px rgba(100, 200, 255, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.4) !important;
}

/* Звезды - делаем ярче для ночного неба */
.magic-star {
    background: radial-gradient(
        circle at center, 
        #ffffff 0%, 
        #aaddff 50%, 
        #66aaff 100%
    ) !important;
    filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.8)) !important;
    opacity: 0.9 !important;
}

/* Блестки - синие */
.sparkle {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(100, 200, 255, 0.9) 50%, 
        transparent 100%) !important;
}

/* Анимация звезд для ночной темы */
@keyframes starTwinkleNight {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.6));
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
        filter: drop-shadow(0 0 20px rgba(150, 220, 255, 1));
    }
}

.magic-star {
    animation: 
        starTwinkleNight 3s ease-in-out infinite,
        starFloat 20s linear infinite !important;
}










/* ===========================================
   ОБНОВЛЕННЫЕ РЕКЛАМНЫЕ БЛОКИ
   =========================================== */

/* Основной стиль с закругленными краями */
.ad-block.rounded {
    border-radius: 20px !important; /* Больше закругление */
    overflow: hidden;
    margin: 25px 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9; /* Чуть ярче */
    transform: translateY(3px);
    position: relative;
}

/* Светлый фон для ночной темы */
body.catalog-page.accent-bg .article-ad.rounded {
    background: linear-gradient(
        135deg,
        rgba(70, 90, 150, 0.3) 0%,    /* Светлее синий */
        rgba(90, 110, 170, 0.25) 100% /* Ещё светлее */
    );
    border: 1.5px solid rgba(130, 200, 255, 0.25); /* Ярче граница */
    box-shadow: 
        0 6px 25px rgba(30, 100, 200, 0.2), /* Более заметная тень */
        0 2px 10px rgba(100, 180, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Эффект свечения при наведении */
.ad-block.rounded:hover {
    opacity: 1;
    transform: translateY(0);
    margin: 30px 0;
    box-shadow: 
        0 10px 35px rgba(30, 100, 200, 0.3),
        0 4px 15px rgba(100, 180, 255, 0.2),
        0 0 0 1px rgba(150, 210, 255, 0.3), /* Светлая обводка */
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(150, 210, 255, 0.4);
}

/* Закругленный уголок (опционально) */
.ad-block.rounded::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 40px;
    height: 40px;
    background: linear-gradient(
        135deg,
        transparent 50%,
        rgba(100, 200, 255, 0.3) 50%
    );
    border-radius: 0 20px 0 20px;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.ad-block.rounded:hover::before {
    opacity: 0.8;
}

/* Контент блока */
.ad-content {
    display: flex;
    align-items: center;
    padding: 22px 28px; /* Чуть больше отступов */
    gap: 22px;
    position: relative;
    z-index: 2;
}

/* Иконка в кружке */
.ad-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Круглая иконка! */
    border: 1px solid rgba(150, 210, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ad-block:hover .ad-icon {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(150, 210, 255, 0.5);
    transform: scale(1.05) rotate(5deg);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: scale(1.05) rotate(5deg) translateY(0); 
    }
    50% { 
        transform: scale(1.05) rotate(5deg) translateY(-5px); 
    }
}

/* Текстовая часть */
.ad-text {
    flex: 1;
}

/* Заголовок - светлее и жирнее */
.ad-title {
    font-size: 1.35rem;
    font-weight: 600; /* Жирнее */
    color: #d4ebff !important; /* Светлее голубой */
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Описание - ярче */
.ad-description {
    font-size: 0.98rem;
    color: #b0d5ff !important; /* Ярче */
    margin-bottom: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

/* Ссылка с закругленной кнопкой */
.ad-link {
    display: inline-block;
    color: #99ddff !important; /* Светлее */
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(40, 100, 180, 0.25); /* Фон у ссылки */
    border-radius: 50px; /* Закругленная кнопка! */
    border: 1px solid rgba(100, 200, 255, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.ad-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.ad-link:hover {
    color: #ffffff !important;
    background: rgba(60, 140, 220, 0.4);
    border-color: rgba(120, 220, 255, 0.5);
    padding: 8px 25px 8px 15px;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 100, 200, 0.3),
        0 2px 5px rgba(100, 200, 255, 0.2);
}

.ad-link:hover::before {
    left: 100%;
}

/* Для утренней темы - тоже светлее */
body.morning-theme .article-ad.rounded {
    background: linear-gradient(
        135deg,
        rgba(255, 250, 240, 0.35) 0%,   /* Светлее кремовый */
        rgba(255, 240, 230, 0.3) 100%
    );
    border: 1.5px solid rgba(255, 182, 193, 0.35);
    box-shadow: 
        0 6px 25px rgba(255, 182, 193, 0.25),
        0 2px 10px rgba(252, 182, 159, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.morning-theme .ad-title {
    color: #6d4c41 !important; /* Светлее коричневый */
}

body.morning-theme .ad-description {
    color: #8d6e63 !important; /* Ярче */
}

body.morning-theme .ad-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 182, 193, 0.4);
}

body.morning-theme .ad-link {
    color: #f06292 !important;
    background: rgba(255, 182, 193, 0.2);
    border: 1px solid rgba(255, 182, 193, 0.4);
}

body.morning-theme .ad-link:hover {
    color: #ffffff !important;
    background: rgba(236, 64, 122, 0.3);
    border-color: rgba(236, 64, 122, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .ad-block.rounded {
        border-radius: 18px !important;
        margin: 20px 0;
    }
    
    .ad-content {
        padding: 18px 22px;
        gap: 18px;
        flex-direction: column;
        text-align: center;
    }
    
    .ad-icon {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }
    
    .ad-title {
        font-size: 1.25rem;
    }
    
    .ad-description {
        font-size: 0.95rem;
    }
    
    .ad-link {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .ad-block.rounded::before {
        width: 35px;
        height: 35px;
    }
}

/* Анимация появления с поворотом */
@keyframes adAppearRounded {
    from {
        opacity: 0;
        transform: translateY(10px) rotate(-0.5deg);
    }
    to {
        opacity: 0.9;
        transform: translateY(0) rotate(0deg);
    }
}

.ad-block.rounded {
    animation: adAppearRounded 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}


.main-title .first {
    color: #8b7355;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.main-title .first::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b7355, transparent);
}




/* Простой вариант - только текст */
.orchestra-type-simple {
    font-size: 1rem;
    color: #666; /* Серый цвет */
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
}

/* Для темной темы */
body.catalog-page.accent-bg .orchestra-type-simple {
    color: #88aacc !important;
}

/* Для утренней темы */
body.catalog-page.morning-theme .orchestra-type-simple {
    color: #ff6b9d !important;
}




/* ===========================================
   ПРОСТАЯ TELEGRAM КНОПКА
   =========================================== */

/* Telegram кнопка - простая и стильная */
.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0088cc;
    color: white !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.telegram-link:hover {
    background: #0077b5;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.2);
}

.telegram-link .tg-icon {
    font-size: 1.1rem;
}


/* Стили для ссылки "свяжитесь" */
.contact-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px dotted currentColor;
    padding: 0 2px 1px;
}

/* Для ночной темы */
body.catalog-page.accent-bg .contact-link {
    color: #66b3ff;
    border-bottom-color: rgba(102, 179, 255, 0.5);
}

body.catalog-page.accent-bg .contact-link:hover {
    color: #99d6ff;
    border-bottom-color: #99d6ff;
    text-shadow: 0 0 10px rgba(102, 179, 255, 0.5);
}

/* Для утренней темы */
body.morning-theme .contact-link {
    color: #e91e63;
    border-bottom-color: rgba(233, 30, 99, 0.5);
}

body.morning-theme .contact-link:hover {
    color: #ff4081;
    border-bottom-color: #ff4081;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

/* Эффект при наведении */
.contact-link:hover {
    transform: translateY(-1px);
}

/* Индикатор кликабельности (по желанию) */
.contact-link::after {
    content: ' ↗';
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-link:hover::after {
    opacity: 1;
}

/* Для мобильных */
@media (max-width: 768px) {
    .contact-link {
        border-bottom-width: 1px;
        padding: 0 1px;
    }
}





/* ===========================================
   ОТКЛЮЧАЕМ ТОЛЬКО ШАРИКИ НА МОБИЛЬНЫХ
   =========================================== */
@media (max-width: 768px) {
    /* Скрываем только шарики на мобильных */
    .magic-particle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        animation: none !important;
    }
}



/* ========== СТИЛИ ДЛЯ УТРЕННЕЙ ТЕМЫ ========== */

/* Солнышко */
.morning-sun {
    position: fixed;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at center, #FFEB3B 0%, #FFC107 50%, #FF9800 100%);
    border-radius: 50%;
    top: 20px;
    right: 20px;
    z-index: 9998;
    box-shadow: 0 0 50px #FF9800, 0 0 80px rgba(255, 152, 0, 0.6);
    animation: sunGlow 4s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ОБЯЗАТЕЛЬНО: Исправляем цвета для всей страницы утренней темы */
body.morning-theme {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
    background-attachment: fixed !important;
    background-size: 200% 200% !important;
    animation: sunriseBg 120s ease-in-out infinite alternate !important;
    color: #4a2c2a !important; /* Темно-коричневый */
}

/* ЗАГОЛОВКИ */
body.morning-theme h1.page-title,
body.morning-theme h1,
body.morning-theme h2,
body.morning-theme h3,
body.morning-theme .page-title,
body.morning-theme .orchestra-name {
    color: #5D4037 !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5) !important;
}

body.morning-theme .page-subtitle {
    color: #795548 !important;
    opacity: 0.9;
}

/* Особо для карточек оркестров */
body.morning-theme .orchestra-item {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #4a2c2a !important;
}

body.morning-theme .orchestra-type {
    color: #795548 !important;
    opacity: 0.9;
}

/* КНОПКИ */
body.morning-theme .orchestra-link {
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.9) 0%,
        rgba(255, 204, 188, 0.9) 100%) !important;
    color: #b71c1c !important;
    border: 1px solid rgba(255, 154, 158, 0.4) !important;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3) !important;
}

body.morning-theme .orchestra-link:hover {
    background: linear-gradient(135deg, 
        rgba(255, 204, 188, 1) 0%, 
        rgba(255, 182, 193, 1) 100%) !important;
    color: #8e0000 !important;
    border-color: rgba(255, 154, 158, 0.6) !important;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4) !important;
}

/* Кнопка "Назад" */
body.morning-theme .back-button {
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.9) 0%, 
        rgba(255, 204, 188, 0.9) 100%) !important;
    color: #b71c1c !important;
    border: 1px solid rgba(255, 154, 158, 0.4) !important;
}

body.morning-theme .back-button:hover {
    background: linear-gradient(135deg, 
        rgba(255, 204, 188, 1) 0%, 
        rgba(255, 182, 193, 1) 100%) !important;
    color: #8e0000 !important;
    border-color: rgba(255, 154, 158, 0.6) !important;
}

/* Telegram кнопка */
body.morning-theme .telegram-link {
    background: linear-gradient(135deg, 
        #FF9A9E 0%,
        #FAD0C4 100%) !important;
    color: #b71c1c !important;
    border: 1px solid rgba(255, 154, 158, 0.5) !important;
}

body.morning-theme .telegram-link:hover {
    background: linear-gradient(135deg, 
        #FAD0C4 0%, 
        #FF9A9E 100%) !important;
    color: #8e0000 !important;
}

/* КАТАЛОГ ИНФО */
body.morning-theme .catalog-info {
    background: linear-gradient(135deg, 
        rgba(255, 245, 245, 0.9) 0%,
        rgba(255, 235, 235, 0.9) 50%,
        rgba(255, 225, 225, 0.9) 100%) !important;
    color: #5D4037 !important;
    border: 1px solid rgba(255, 182, 193, 0.4) !important;
    box-shadow: 
        0 8px 32px rgba(255, 182, 193, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.morning-theme .catalog-info .contact-link {
    color: #e91e63 !important;
    border-bottom-color: rgba(233, 30, 99, 0.5) !important;
}

body.morning-theme .catalog-info .contact-link:hover {
    color: #ff4081 !important;
    border-bottom-color: #ff4081 !important;
}

/* НОВЫЕ КРАСИВЫЕ ПТИЧКИ */
.morning-bird {
    position: fixed;
    width: 30px;
    height: 20px;
    background: transparent;
    z-index: 9999;
    animation: birdFly linear infinite;
}

/* Тело птички */
.morning-bird::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 12px;
    background: #5D4037;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-30deg);
    left: 0;
    top: 4px;
}

/* Голова птички */
.morning-bird::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #5D4037;
    border-radius: 50%;
    top: 2px;
    left: 15px;
}

/* Крыло птички */
.morning-bird .bird-wing {
    position: absolute;
    width: 12px;
    height: 6px;
    background: #3E2723;
    border-radius: 50% 50% 0 0;
    top: 8px;
    left: 5px;
    animation: wingFlap 0.5s ease-in-out infinite alternate;
}

@keyframes wingFlap {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-2px) rotate(10deg); }
}

/* Облака */
.morning-cloud {
    position: fixed;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    z-index: 9997;
    filter: blur(1px);
    animation: cloudFloat linear infinite;
}

/* Пушистые края облаков */
.morning-cloud::before,
.morning-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.morning-cloud::before {
    width: 60%;
    height: 70%;
    top: -30%;
    left: 10%;
}

.morning-cloud::after {
    width: 50%;
    height: 60%;
    top: -20%;
    right: 10%;
}

/* Анимации */
@keyframes cloudFloat {
    0% { transform: translateX(-150px) translateY(var(--cloud-y, 0px)); }
    100% { transform: translateX(calc(100vw + 150px)) translateY(var(--cloud-y, 0px)); }
}

@keyframes birdFly {
    0% { transform: translateX(-50px) translateY(var(--bird-y, 0px)) scale(var(--bird-scale, 1)); }
    100% { transform: translateX(calc(100vw + 50px)) translateY(var(--bird-y, 0px)) scale(var(--bird-scale, 1)); }
}

@keyframes sunriseBg {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Частички утра */
.morning-particle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9996;
    animation: pollenFloat linear infinite;
}

@keyframes pollenFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(100vh) translateX(50px) rotate(180deg); opacity: 0; }
}

/* Лепестки */
.morning-petal {
    position: fixed;
    background: #FFCDD2;
    border-radius: 50%;
    z-index: 9995;
    animation: petalFall linear forwards;
    filter: blur(0.5px);
}

@keyframes petalFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ========== СТИЛИ ДЛЯ НОЧНЫХ АНИМАЦИЙ ========== */

/* БОЛЬШИЕ КРАСИВЫЕ ПЫЛИНКИ */
.magic-particle {
    position: absolute;
    border-radius: 50%;
    animation: magicFloat 15s ease-in-out infinite;
    filter: blur(1px);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}

/* ЗВЕЗДЫ */
.magic-star {
    position: absolute;
    background: radial-gradient(circle at center, gold 0%, orange 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starTwinkle 3s ease-in-out infinite, starFloat 20s linear infinite;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
}

/* ХАОТИЧНОЕ ПЛАВАНИЕ */
@keyframes magicFloat {
    0%, 100% {
        transform: 
            translateX(0) 
            translateY(0) 
            rotate(0deg) 
            scale(1);
        opacity: 0.3;
    }
    25% {
        transform: 
            translateX(calc(var(--move-x) * 1)) 
            translateY(calc(var(--move-y) * 0.5)) 
            rotate(90deg) 
            scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: 
            translateX(calc(var(--move-x) * 0.5)) 
            translateY(calc(var(--move-y) * 1)) 
            rotate(180deg) 
            scale(1.2);
        opacity: 0.9;
    }
    75% {
        transform: 
            translateX(calc(var(--move-x) * 0.8)) 
            translateY(calc(var(--move-y) * 0.8)) 
            rotate(270deg) 
            scale(1);
        opacity: 0.6;
    }
}

/* МЕРЦАНИЕ ЗВЕЗД */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.8));
    }
}

/* МЕДЛЕННОЕ ПЛАВАНИЕ ЗВЕЗД */
@keyframes starFloat {
    0% {
        transform: 
            translateX(0) 
            translateY(0) 
            rotate(0deg);
    }
    25% {
        transform: 
            translateX(calc(var(--star-move-x) * 0.3)) 
            translateY(calc(var(--star-move-y) * 0.5)) 
            rotate(90deg);
    }
    50% {
        transform: 
            translateX(calc(var(--star-move-x) * 0.5)) 
            translateY(calc(var(--star-move-y) * 0.3)) 
            rotate(180deg);
    }
    75% {
        transform: 
            translateX(calc(var(--star-move-x) * 0.2)) 
            translateY(calc(var(--star-move-y) * 0.7)) 
            rotate(270deg);
    }
    100% {
        transform: 
            translateX(0) 
            translateY(0) 
            rotate(360deg);
    }
}

/* ПАДАЮЩИЕ БЛЕСТКИ */
.sparkle {
    position: absolute;
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        transparent 100%);
    animation: sparkleFall 5s linear infinite;
    opacity: 0.7;
}

@keyframes sparkleFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 768px) {
    .morning-sun {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
        box-shadow: 0 0 30px #FF9800, 0 0 50px rgba(255, 152, 0, 0.5);
    }
    
    body.morning-theme {
        background-size: 300% 300% !important;
        animation: sunriseBg 180s ease-in-out infinite alternate !important;
    }
    
    .morning-bird {
        width: 25px;
        height: 16px;
    }
    
    .morning-bird::before {
        width: 16px;
        height: 10px;
    }
    
    .morning-bird::after {
        width: 6px;
        height: 6px;
        left: 12px;
    }
    
    .morning-cloud {
        width: 60px !important;
        height: 35px !important;
    }
    
    .morning-particle {
        width: 3px !important;
        height: 3px !important;
    }
    
    .morning-petal {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Отключаем шарики на мобильных */
    .magic-particle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        animation: none !important;
    }
}

@media (max-width: 375px) {
    body.morning-theme {
        background-size: 400% 400% !important;
    }
    
    .morning-sun {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}

/* ========== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ========== */

#call-confirmation-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#call-confirmation-modal button:active {
    transform: translateY(0);
}

#modal-cancel:hover {
    background: #e0e0e0 !important;
}

#modal-confirm:hover {
    background: #43A047 !important;
}

/* Анимация появления модального окна */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#call-confirmation-modal > div {
    animation: modalFadeIn 0.3s ease-out;
}

/* Стили для темной темы */
body.catalog-page.accent-bg #call-confirmation-modal > div {
    background: #1a2b4a;
    color: #e0f2fe;
}

body.catalog-page.accent-bg #call-confirmation-modal h3 {
    color: #ffffff;
}

body.catalog-page.accent-bg #call-confirmation-modal #modal-phone {
    background: rgba(255, 255, 255, 0.1);
    color: #66b3ff;
}

body.catalog-page.accent-bg #call-confirmation-modal button {
    color: #333;
}

/* Стили для утренней темы */
body.morning-theme #call-confirmation-modal > div {
    background: #fffaf0;
    color: #5d4037;
}

body.morning-theme #call-confirmation-modal h3 {
    color: #5d4037;
}

body.morning-theme #call-confirmation-modal #modal-phone {
    background: rgba(255, 182, 193, 0.1);
    color: #e91e63;
}


/* Информационный текст на главной */
.info-text-block {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 30px;
    color: #3a2c1c;
    font-size: 1.3rem; /* Было 1.15rem */
    line-height: 1.7;
    text-align: center;
}

.info-text-block p {
    margin-bottom: 24px; /* Немного больше отступ */
    font-weight: 400;
}

.info-text-block p:first-child {
    font-weight: 600;
}

.info-text-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .info-text-block {
        padding: 25px 20px;
        margin: 30px 15px 0;
        font-size: 1.2rem; /* Было 1.1rem */
    }
    
    .info-text-block p {
        margin-bottom: 20px;
    }
}
.info-text-block p:first-child {
    font-weight: 600; /* Жирный первый абзац */
}

