* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfe 50%, #e0fbfd 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1d1d1f;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #76F9FD;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Features Section */
.features {
    padding: 2rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
}

/* About Section */
.about {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.about h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 0.75rem;
        flex-wrap: nowrap;
        min-width: 0;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .logo {
        font-size: 1rem;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 90px);
    }
    
    .nav-menu {
        gap: 0;
        flex-shrink: 0;
        margin-left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        white-space: nowrap;
        padding: 0.25rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}


/* Events Section */
.events-container {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.events-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3.5rem;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.telegram-banner {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.telegram-banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 12px;
    border: 1.5px solid #1d1d1f;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.telegram-emoji-left,
.telegram-emoji-right {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.telegram-text {
    flex: 1;
    text-align: center;
}

.telegram-banner-link:hover {
    border-color: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(29, 29, 31, 0.15);
}

.events-tabs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.event-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border-color: rgba(118, 249, 253, 0.3);
}

.event-card-clickable {
    cursor: pointer;
}

.event-card-clickable:hover {
    border-color: rgba(118, 249, 253, 0.5);
}

.event-image {
    width: 200px;
    min-width: 200px;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #76F9FD 0%, #5dd5d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 2rem 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-size: 1.375rem;
    color: #1d1d1f;
    margin-bottom: 0.625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.event-description {
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    font-size: 0.9375rem;
}

.event-link {
    margin-top: auto;
    padding-top: 1.125rem;
}

.event-link span {
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 2px;
}

.event-link span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #1d1d1f;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card-clickable:hover .event-link span {
    gap: 0.625rem;
}

.event-card-clickable:hover .event-link span::after {
    width: 100%;
}

.no-events {
    text-align: center;
    padding: 4rem 2rem;
    color: #6e6e73;
    font-size: 1.0625rem;
}

.events-footer {
    text-align: center;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.events-footer p {
    color: #a1a1a6;
    font-size: 0.8125rem;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .events-container {
        padding: 2.5rem 1.25rem;
    }
    
    .events-title {
        font-size: 2.125rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .telegram-banner {
        margin-top: -1.5rem;
    }
    
    .telegram-banner-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    
    .telegram-emoji-left,
    .telegram-emoji-right {
        font-size: 0.875rem;
    }
    
    .event-card {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .event-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    
    .event-content {
        padding: 1.75rem;
    }
    
    .event-title {
        font-size: 1.25rem;
    }
}
