* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --text: #0f172a;
    --text-light: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #141414 0%, #52465f 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.6s ease;
}

.header-title {
    font-size: 48px;
    font-weight: 700;
    color: #fdcf46;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 18px;
    color: rgb(127 127 127 / 90%);
    font-weight: 500;
}

.initial-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    transition: all 0.4s ease;
}

.welcome-card {
    background: linear-gradient(135deg, #000000 0%, #373737 100%);
    border-radius: 24px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.6s ease;
    max-width: 600px;
}

.welcome-icon {
    color: #e48524;
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: #ff9e43;
    margin-bottom: 16px;
}

.welcome-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.open-lessons-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #eb9325 0%, #af1e1e 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgb(16 17 18 / 40%);
    font-family: inherit;
}

.open-lessons-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgb(0 0 0 / 50%);
}

.open-lessons-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.open-lessons-btn svg {
    transition: transform 0.3s ease;
}

.open-lessons-btn:hover svg {
    transform: translateX(5px);
}

.loading-state {
    
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.error-icon {
    margin-bottom: 16px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 0;
    transition: margin-top 0.5s ease;
}

.activity-card {
    background: #000000fa;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    text-decoration: none;
    display: block;
}

.activity-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.activity-card:hover .card-overlay {
    opacity: 0;
}

.card-image {
    width: 100%;
    overflow: hidden;
    background: rgb(253 144 144 / 0%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 0px;
    text-align: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-lesson {
    font-size: 14px;
    color: #e3e9f1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 74%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-icon {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .header-title {
        font-size: 32px;
    }

    .header-subtitle {
        font-size: 16px;
    }

    .welcome-card {
        padding: 40px 30px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .welcome-text {
        font-size: 15px;
    }

    .open-lessons-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .header-title {
        font-size: 28px;
    }

    .welcome-title {
        font-size: 24px;
    }
}
.cla_r {
    margin: 0 auto;
    display: grid;
    justify-content: center;
    margin-bottom: 15px;
    width: 970px;
    height: 250px;
    margin-top: 15px;
    align-items: center;
    background: #262a411c;
}
.cla_rx {
    margin: 0 auto;
    display: grid;
    justify-content: center;
    margin-bottom: 15px;
    width: 300px;
    height: 250px;
    margin-top: 15px;
    align-items: center;
    background: #262a411c;
}