/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Ysabeau+SC:wght@1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

/* Глобальные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

/* Кастомизация полосы прокрутки */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elements);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffae5d;
}

/* Переменные */
:root {
    --bg-dark: #121212;
    --bg-elements: #1e1e1e;
    --bg-elements-light: #2a2a2a;
    --primary: #ff9e44;
    --primary-glow: rgba(255, 158, 68, 0.15);
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --error: #e0245e;
    --transition: all 0.3s ease;
}

/* Базовые стили для body */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.animate {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Основной контент */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    color: var(--text-primary);
    font-family: 'Ysabeau SC', Georgia, serif;
}

.section-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.section-button i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.section-button:hover {
    color: #ffae5d;
    text-decoration: underline;
}

.section-button:hover i {
    transform: translateX(4px);
}

.tasktan-home-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: -1.5rem 0 3rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(255, 158, 68, 0.25);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.96), rgba(21, 21, 21, 0.96));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    color: var(--text-primary);
}

.tasktan-home-promo-content {
    flex: 1 1 auto;
    min-width: 0;
}

.tasktan-home-promo-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 158, 68, 0.26);
    border-radius: 13px;
    background: rgba(255, 158, 68, 0.12);
    color: var(--primary);
    font-size: 18px;
}

.tasktan-home-promo-kicker {
    margin-bottom: 0.2rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tasktan-home-promo-title {
    margin: 0 0 0.2rem;
    color: var(--text-primary);
    font-family: 'Ysabeau SC', Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.15;
}

.tasktan-home-promo-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.tasktan-home-promo-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(255, 158, 68, 0.5);
    border-radius: 999px;
    background: rgba(255, 158, 68, 0.12);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tasktan-home-promo-button:hover {
    background: var(--primary);
    color: #151515;
    box-shadow: 0 10px 22px rgba(255, 158, 68, 0.24);
    transform: translateY(-1px);
}

/* Карусель */
.carousel {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-caption {
    background: rgba(30, 30, 30, 0.85);
    padding: 0.8rem;
    border-radius: 8px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    position: relative;
    bottom: 1rem;
    left: 1rem;
    text-align: left;
}

.carousel-caption h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.carousel-caption a {
    color: var(--primary);
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.carousel-caption a:hover {
    color: #ffae5d;
    text-decoration: underline;
}

.carousel-caption .subscribers-only {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #FFD700;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.15rem;
    border-radius: 50%;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Сетка фотографий */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-elements-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: block;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 158, 68, 0.2);
}

.post-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.photo-item:hover .post-image {
    transform: scale(1.05);
}

.post-author {
    position: absolute;
    bottom: 3px;
    right: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    object-fit: cover;
}

/* Блог посты */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.blog-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-elements-light);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.blog-card.no-image {
    background-image: none;
}

.blog-card.no-image:nth-child(4n+1) { background-color: var(--primary); }
.blog-card.no-image:nth-child(4n+2) { background-color: #ffae5d; }
.blog-card.no-image:nth-child(4n+3) { background-color: var(--error); }
.blog-card.no-image:nth-child(4n+4) { background-color: #ffae5d; }

.blog-card:hover {
    transform: scale(0.98);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.blog-content {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: var(--text-primary);
    text-align: center;
}

.blog-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-family: 'Ysabeau SC', Georgia, serif;
    color: var(--text-primary);
    text-decoration: none;
}

.blog-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--text-primary);
    text-decoration: none;
}

.blog-content a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-content a:hover {
    color: #ffae5d;
    text-decoration: none;
}

.blog-content ul {
    list-style: none;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-content ul li {
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding-left: 1.2rem;
    text-decoration: none;
}

.blog-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.blog-meta {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.blog-meta span {
    color: var(--text-secondary);
    text-decoration: none;
}

.no-news {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Баннер ивента - новогодняя версия */
.minimal-event-banner {
    position: relative;
    background: url('/group_christmas_tree/timergif_v1.gif') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem auto 3rem;
    max-width: 1200px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(220, 53, 69, 0.2); /* Красный вместо фиолетового */
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(220, 53, 69, 0.3); /* Красная рамка */
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minimal-event-banner:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(220, 53, 69, 0.3);
    border-color: rgba(255, 193, 7, 0.5); /* Золотая при наведении */
}

.minimal-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 30, 10, 0.8) 0%, /* Зеленый тон */
        rgba(26, 46, 26, 0.7) 50%, /* Зеленый тон */
        rgba(22, 30, 10, 0.8) 100%
    );
    z-index: 1;
    transition: all 0.4s ease;
}

.minimal-event-banner:hover .minimal-event-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 30, 10, 0.75) 0%,
        rgba(26, 46, 26, 0.65) 50%,
        rgba(22, 30, 10, 0.75) 100%
    );
}

/* Анимированная дымка для баннера (оставляем как есть) */
.minimal-event-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 70%
    );
    animation: bannerFogFloat 15s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes bannerFogFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-2%, 1%) scale(1.02);
    }
    50% {
        transform: translate(-4%, -0.5%) scale(1.01);
    }
    75% {
        transform: translate(-2%, -1.5%) scale(1.02);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.minimal-event-link {
    position: relative;
    z-index: 3;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.minimal-event-content {
    text-align: center;
    width: 100%;
}

/* Заголовок - новогодние цвета */
.minimal-event-content h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #d62828, #ffd166, #06d6a0); /* Красный, золотой, зеленый */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 40px rgba(214, 40, 40, 0.6), /* Красная тень */
        0 2px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
}

.minimal-event-banner:hover .minimal-event-content h2 {
    background: linear-gradient(135deg, #e63946, #ffe66d, #52b788); /* Ярче при наведении */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 50px rgba(230, 57, 70, 0.8),
        0 2px 20px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.minimal-event-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd166, transparent); /* Золотая линия */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.minimal-event-banner:hover .minimal-event-content h2::after {
    width: 180px;
    background: linear-gradient(90deg, transparent, #ffe66d, transparent); /* Ярче при наведении */
    box-shadow: 0 0 20px rgba(255, 230, 109, 0.5);
}

/* Таймер */
.minimal-timer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.minimal-timer-item {
    background: rgba(26, 46, 26, 0.8); /* Зеленый фон */
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 12px 25px;
    border: 1px solid rgba(220, 53, 69, 0.3); /* Красная рамка */
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(220, 53, 69, 0.15); /* Красное свечение */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.minimal-event-banner:hover .minimal-timer-item {
    border-color: rgba(255, 193, 7, 0.5); /* Золотая при наведении */
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 193, 7, 0.2); /* Золотое свечение */
    transform: scale(1.05);
}

.minimal-timer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 193, 7, 0.2), /* Золотой градиент */
        transparent
    );
    animation: timerShine 3s ease-in-out infinite;
}

@keyframes timerShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.minimal-timer-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd166; /* Золотой цвет */
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.5);
    position: relative;
    z-index: 1;
    line-height: 1;
    transition: all 0.3s ease;
}

.minimal-event-banner:hover .minimal-timer-value {
    color: #ffe66d; /* Ярче при наведении */
    text-shadow: 0 0 15px rgba(255, 230, 109, 0.6);
}

.minimal-timer-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e63946; /* Красный цвет */
    text-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.minimal-event-banner:hover .minimal-timer-text {
    color: #ff6b6b; /* Ярче при наведении */
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

/* Адаптивность для баннера (оставляем без изменений) */
@media (max-width: 1024px) {
    .minimal-event-banner {
        padding: 2.5rem 1.5rem;
        min-height: 250px;
    }
    
    .minimal-event-content h2 {
        font-size: 2.8rem;
    }
    
    .minimal-timer-item {
        padding: 10px 22px;
        min-width: 180px;
    }
    
    .minimal-timer-value {
        font-size: 1.6rem;
    }
    
    .minimal-timer-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .minimal-event-banner {
        padding: 2rem 1rem;
        min-height: 220px;
        margin: 1.5rem auto 2.5rem;
        border-radius: 16px;
    }
    
    .minimal-event-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .minimal-timer-item {
        padding: 8px 20px;
        min-width: 160px;
        border-radius: 10px;
    }
    
    .minimal-timer-value {
        font-size: 1.4rem;
    }
    
    .minimal-timer-text {
        font-size: 0.9rem;
    }
    
    .minimal-event-content h2::after {
        width: 120px;
        bottom: -12px;
    }
}

@media (max-width: 480px) {
    .minimal-event-banner {
        padding: 1.5rem 1rem;
        min-height: 200px;
        margin: 1rem auto 2rem;
        border-radius: 14px;
    }
    
    .minimal-event-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .minimal-timer-item {
        padding: 6px 16px;
        min-width: 140px;
        gap: 8px;
    }
    
    .minimal-timer-value {
        font-size: 1.2rem;
    }
    
    .minimal-timer-text {
        font-size: 0.8rem;
    }
    
    .minimal-event-content h2::after {
        width: 100px;
        bottom: -10px;
    }
}

@media (max-width: 360px) {
    .minimal-event-banner {
        padding: 1.2rem 0.8rem;
        min-height: 180px;
    }
    
    .minimal-event-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .minimal-timer-item {
        padding: 5px 14px;
        min-width: 120px;
        gap: 6px;
    }
    
    .minimal-timer-value {
        font-size: 1.1rem;
    }
    
    .minimal-timer-text {
        font-size: 0.75rem;
    }
    
    .minimal-event-content h2::after {
        width: 80px;
        bottom: -8px;
    }
}

/* Баннер Past Won't Leave My Bed — минималистичный, без фона-картинки, только текст */
.past-video-banner {
    background: linear-gradient(135deg, #0f1620, #1a2332, #0d141f); /* Тёмно-синяя/чёрная атмосфера */
    background-color: #121822; /* fallback */
    min-height: 200px; /* Компактный */
    padding: 2rem;
    margin: 2rem auto 3rem;
    max-width: 1200px;
    border-radius: 20px;
    border: 2px solid rgba(100, 149, 237, 0.2); /* Лёгкая синяя рамка */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(70, 130, 180, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.past-video-banner:hover {
    transform: translateY(-6px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(100, 149, 237, 0.3);
    border-color: rgba(135, 206, 250, 0.4);
}

.past-video-banner .minimal-event-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 15, 30, 0.75),
        rgba(15, 20, 40, 0.65) 50%,
        rgba(10, 15, 35, 0.75)
    );
}

.past-video-banner:hover .minimal-event-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 15, 30, 0.7),
        rgba(15, 20, 40, 0.6) 50%,
        rgba(10, 15, 35, 0.7)
    );
}

/* Текст заголовка */
.past-video-banner .minimal-event-content h2 {
    font-family: "Exo 2", sans-serif;
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-align: center;
    background: linear-gradient(135deg, #87CEEB, #E0FFFF, #B0E0E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(135, 206, 235, 0.4);
    margin: 0;
    transition: all 0.4s ease;
}

/* Эффект при наведении на текст */
.past-video-banner:hover .minimal-event-content h2 {
    background: linear-gradient(135deg, #B0E0E6, #F0F8FF, #87CEFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(135, 206, 250, 0.7);
    transform: scale(1.05);
    letter-spacing: 7px;
}

/* Полностью убираем линию под заголовком (на всякий случай) */
.past-video-banner .minimal-event-content h2::after {
    content: none !important;
}

/* Баннер Итоги года 2025 — в стиле текущего новогоднего баннера */
.year-summary-banner {
    background: url('/year_review_2025/yearreviewbanerv1.jpg') no-repeat center center; /* Замени на свою картинку */
    background-size: cover;
    min-height: 220px; /* Можно изменить по вкусу */
    padding: 2rem;
    margin: 2rem auto 3rem;
    max-width: 1200px;
    border: 2px solid rgba(70, 130, 180, 0.3); /* SteelBlue — тёмно-синяя рамка */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(70, 130, 180, 0.2); /* Синее свечение */
    position: relative;
}

.year-summary-banner:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(100, 149, 237, 0.3); /* CornflowerBlue — ярче при наведении */
    border-color: rgba(135, 206, 235, 0.5); /* SkyBlue при наведении */
}

.year-summary-banner .minimal-event-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 15, 30, 0.85),
        rgba(15, 25, 40, 0.75) 50%,
        rgba(10, 20, 35, 0.85)
    );
}

.year-summary-banner:hover .minimal-event-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 15, 30, 0.8),
        rgba(15, 25, 40, 0.7) 50%,
        rgba(10, 20, 35, 0.8)
    );
}

.year-summary-banner .minimal-event-content h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #87CEEB, #E0FFFF, #4682B4); /* Светло-голубой → светло-циановый → стальной синий */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(70, 130, 180, 0.6);
    letter-spacing: 3px;
}

.year-summary-banner:hover .minimal-event-content h2 {
    background: linear-gradient(135deg, #B0E0E6, #F0F8FF, #6495ED); /* Ярче при наведении */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(100, 149, 237, 0.8);
    transform: scale(1.05);
}

.year-summary-banner .minimal-event-content h2::after {
    content: none !important;
    display: none !important;
}

.year-summary-subtitle {
    font-size: 1.3rem;
    color: #E0FFFF; /* Светло-циановый */
    text-shadow: 0 0 10px rgba(224, 255, 255, 0.5);
    margin: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.year-summary-banner:hover .year-summary-subtitle {
    color: #F0F8FF; /* AliceBlue — почти белый */
    text-shadow: 0 0 15px rgba(240, 248, 255, 0.7);
    transform: translateY(-3px);
}

/* Футер */
footer {
    background-color: var(--bg-elements);
    padding: 2rem 5%;
    margin-top: 4rem;
    text-align: center;
}

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

/* Адаптивность */
@media (max-width: 1250px) {
    .active-event {
        margin: 2rem 2%;
        width: auto;
    }
}

@media (max-width: 992px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

    .active-event {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .event-content {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tasktan-home-promo {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        margin-top: -1rem;
        padding: 1rem;
    }

    .tasktan-home-promo-button {
        width: 100%;
    }

    .carousel {
        height: 300px;
    }

    .carousel-caption {
        max-width: 450px;
        padding: 0.6rem;
        bottom: 0;
        left: 0;
    }

    .carousel-caption h3 {
        font-size: 1.1rem;
    }

    .carousel-caption a {
        font-size: 0.9rem;
    }

    .carousel-caption .subscribers-only {
        font-size: 0.7rem;
        top: 3px;
        right: 3px;
    }

    .event-banner {
        padding: 2rem 1rem;
    }

    .event-timer {
        justify-content: center;
    }

    .active-event {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }

    .blog-content h3 {
        font-size: 1rem;
    }

    .blog-content p {
        font-size: 0.8rem;
    }

    .blog-content ul {
        padding-left: 1.2rem;
    }

    .blog-content ul li {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

    .blog-content ul li::before {
        top: 0.4rem;
        width: 5px;
        height: 5px;
    }

    .blog-meta {
        font-size: 0.7rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-button {
        font-size: 14px;
    }

    .section-button i {
        font-size: 12px;
    }

    .minimal-event-banner {
        padding: 2rem 1rem;
        margin: 1rem auto 2rem;
        min-height: 180px;
    }

    .minimal-event-content h2 {
        font-size: 1.4rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .minimal-timer-item {
        padding: 0.6rem 0.8rem;
        min-width: 55px;
    }

    .minimal-timer-value {
        font-size: 1.6rem;
    }

    .minimal-timer-separator {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .carousel {
        height: 250px;
    }

    .carousel-caption {
        max-width: 350px;
        padding: 0.5rem;
        bottom: 0;
        left: 0;
    }

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption a {
        font-size: 0.8rem;
    }

    .carousel-caption .subscribers-only {
        font-size: 0.6rem;
        top: 2px;
        right: 2px;
    }

    .event-timer {
        gap: 0.5rem;
    }

    .timer-item {
        min-width: 60px;
        padding: 0.6rem;
    }

    .timer-value {
        font-size: 1.4rem;
    }

    .author-avatar {
        width: 26px;
        height: 26px;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-content p {
        font-size: 0.85rem;
    }

    .blog-content ul {
        padding-left: 1rem;
    }

    .blog-content ul li {
        font-size: 0.85rem;
        padding-left: 0.8rem;
    }

    .blog-content ul li::before {
        top: 0.35rem;
        width: 4px;
        height: 4px;
    }

    .blog-meta {
        font-size: 0.75rem;
    }

    .section-button {
        font-size: 12px;
    }

    .section-button i {
        font-size: 11px;
    }

    .minimal-event-content h2 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .minimal-timer {
        gap: 0.3rem;
    }

    .minimal-timer-item {
        padding: 0.5rem 0.6rem;
        min-width: 45px;
    }

    .minimal-timer-value {
        font-size: 1.3rem;
    }

    .minimal-timer-separator {
        font-size: 1.2rem;
    }
}
