* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}
: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;
    --transition: all 0.3s ease;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-elements);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 158, 68, 0.15) 0%, transparent 60%);
    animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}
.floating-photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.floating-photo {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: float 20s infinite ease-in-out;
}
.floating-photo:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}
.floating-photo:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 18s;
}
.floating-photo:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 20s;
}
.floating-photo:nth-child(4) {
    bottom: 5%;
    right: 10%;
    animation-delay: 6s;
    animation-duration: 17s;
}
.floating-photo:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
    animation-duration: 19s;
}
.floating-photo:nth-child(6) {
    top: 50%;
    right: 8%;
    animation-delay: 5s;
    animation-duration: 16s;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
    }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.logo-text {
    font-family: "Ysabeau SC", sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #EFE9E3 0%, #F9F8F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}
.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: var(--bg-elements);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.stat-card {
    background: linear-gradient(135deg, var(--bg-elements-light) 0%, var(--bg-elements) 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 158, 68, 0.1);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ffae5d 100%);
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 158, 68, 0.2);
}
.stat-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-prev {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    opacity: 0.8;
}
/* Section */
.section {
    padding: 4rem 2rem;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ffae5d 100%);
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.photo-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-elements-light);
    cursor: pointer;
    transition: var(--transition);
}
.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 158, 68, 0.3);
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.photo-card:hover img {
    transform: scale(1.1);
}
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}
.photo-card:hover .photo-overlay {
    transform: translateY(0);
}
.photo-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(255, 158, 68, 0.5);
}
.photo-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.photo-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.photo-stat i {
    color: var(--primary);
}
/* Monthly Grid */
.monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.month-card {
    background: linear-gradient(135deg, var(--bg-elements) 0%, var(--bg-elements-light) 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 158, 68, 0.1);
    cursor: pointer;
}
.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 158, 68, 0.2);
}
.month-header {
    padding: 1.5rem;
    background: var(--bg-elements-light);
    border-bottom: 2px solid var(--primary);
}
.month-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.month-stats {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.month-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
/* Thank You Section */
.thank-you-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 50%, var(--bg-dark) 100%);
    text-align: center;
}
.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}
.thank-you-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ED985F 0%, #F7B980 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.thank-you-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 158, 68, 0.3);
}
.cta-button:hover {
    background: #ffae5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 158, 68, 0.5);
}
/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 1.5rem;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .floating-photo {
        width: 60px;
        height: 60px;
    }
    .stats-section {
        padding: 3rem 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .stat-card {
        padding: 2rem 1.5rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .monthly-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .thank-you-section {
        padding: 4rem 1.5rem;
    }
    .thank-you-text {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .photo-grid {
        gap: 0.8rem;
    }
    .photo-rank {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .photo-overlay {
        padding: 1rem;
    }
    .photo-stats {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

/* === Топ авторы и комментаторы === */
.top-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.user-rank-card {
    background: var(--bg-elements-light);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 158, 68, 0.1);
    position: relative;
    overflow: hidden;
}
.user-rank-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 158, 68, 0.25);
}
.user-rank-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ffae5d);
}
.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.user-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--bg-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255,158,68,0.5);
}
.user-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.user-stat {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin: 0.5rem 0;
}
.user-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === Блок Активности года === */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.event-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    background: var(--bg-elements-light);
    transition: var(--transition);
    cursor: default;
}
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 158, 68, 0.3);
}
.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.event-card:hover .event-image {
    transform: scale(1.08);
}
.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18,18,18,0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}
.event-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.event-period {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}
.event-desc {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Бейджики на карточках */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.current {
    background: var(--primary);
}

.badge.reboot {
    background: var(--primary);
}