/* Основные стили для всего сайта */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a896;
    --secondary-color: #028090;
    --accent-color: #05668d;
    --light-teal: #02c39a;
    --dark-teal: #014f5e;
    --background: linear-gradient(135deg, #667eea 0%, #02a896 100%);
    --card-background: rgba(255, 255, 255, 0.95);
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

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

header {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 30px;
}

.class-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-teal), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.class-card:hover::before {
    opacity: 0.9;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.class-card:hover .class-number,
.class-card:hover .class-label {
    color: white;
    position: relative;
    z-index: 1;
}

.class-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.class-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 50px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    .classes-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; padding: 10px; }
    .class-card { padding: 25px 15px; }
    .class-number { font-size: 2.5rem; }
}

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