/* ===== БАЗОВЫЙ СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8faff;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.header {
    background: #0f0f1f;
    padding: 14px 0;
    border-bottom: 2px solid rgba(74, 108, 247, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 32px;
    width: auto;
    max-height: 32px;
    object-fit: contain;
}

.logo i {
    color: #4a6cf7;
    font-size: 22px;
}

.logo span {
    color: #FFF8DC;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li > a,
.dropdown-trigger {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu > li > a:hover,
.dropdown-trigger:hover {
    color: #fff;
    background: rgba(74, 108, 247, 0.15);
}

.nav-menu > li > a.active {
    color: #fff;
    background: rgba(74, 108, 247, 0.2);
}

.dropdown-trigger i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    border-radius: 12px;
    min-width: 200px;
    padding: 8px;
    list-style: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: -2px;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    color: #fff;
    background: rgba(74, 108, 247, 0.15);
}

.dropdown-menu a i {
    color: #4a6cf7;
    font-size: 12px;
}

/* ===== ДЕЙСТВИЯ В ШАПКЕ ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #4a6cf7;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: #4a6cf7;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-profile:hover {
    background: #3a5bd9;
}

/* ===== ГЕРОЙ ===== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #0f0f1f 0%, #1a1a3e 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 108, 247, 0.15);
    color: #4a6cf7;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4a6cf7;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #3a5bd9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-image {
    font-size: 120px;
    color: #FFF8DC;
    opacity: 0.3;
}

/* ===== ПРОГРАММЫ ===== */
.programs-section {
    padding: 60px 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(74, 108, 247, 0.08);
    color: #4a6cf7;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #4a6cf7;
    margin: 10px 0 8px;
}

.section-desc {
    color: #666;
    font-size: 16px;
}

.program-block {
    background: #fff;
    border-radius: 16px;
    padding: 30px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f2f8;
    transition: all 0.3s;
}

.program-block:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.program-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.program-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.program-icon.python {
    background: rgba(55, 118, 171, 0.12);
    color: #3776AB;
}

.program-icon.godot {
    background: rgba(74, 108, 247, 0.12);
    color: #4a6cf7;
}

.program-header h3 {
    font-size: 20px;
    color: #1a1a2e;
}

.program-subtitle {
    color: #888;
    font-size: 14px;
}

.program-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-program {
    flex: 1;
    min-width: 200px;
    padding: 20px 24px;
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    background: #fafbfc;
    transition: all 0.3s;
}

.btn-program:hover {
    border-color: #4a6cf7;
    background: #f5f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 108, 247, 0.08);
}

.btn-program.advanced {
    border-color: #4a6cf7;
    background: #f5f8ff;
}

.btn-program.advanced:hover {
    border-color: #3a5bd9;
    background: #eef4ff;
}

.btn-level {
    font-weight: 700;
    font-size: 18px;
    color: #4a6cf7;
}

.btn-program.advanced .btn-level {
    color: #3a5bd9;
}

.btn-desc {
    font-size: 14px;
    color: #666;
    display: block;
    margin: 4px 0 10px;
}

.btn-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #999;
}

.btn-meta i {
    font-size: 12px;
}

.btn-age {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef2f7;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #777;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features {
    padding: 50px 0 60px;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: #f8faff;
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: rgba(74, 108, 247, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4a6cf7;
}

.feature-card h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 14px;
    color: #888;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #0f0f1f;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #4a6cf7;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links li i {
    width: 20px;
    color: #4a6cf7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-links-bottom {
    display: flex;
    gap: 24px;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-bottom a:hover {
    color: #fff;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
        width: 100%;
    }

    .nav-menu > li > a,
    .dropdown-trigger {
        padding: 6px 12px;
        font-size: 13px;
    }



    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        font-size: 60px;
    }

    .program-buttons {
        flex-direction: column;
    }

    .btn-program {
        min-width: unset;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-links-bottom {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 26px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
    }

    .dropdown-menu a {
        padding-left: 30px;
    }
}
.materials-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #0f0f1f 0%, #1a1a3e 100%);
    border-bottom: 1px solid rgba(74, 108, 247, 0.1);
}

.materials-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.materials-hero-text {
    flex: 1;
}


.materials-hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.materials-hero-text h1 span {
    color: #4a6cf7;
}

.materials-hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
}

.materials-hero-icon {
    font-size: 80px;
    color: rgba(74, 108, 247, 0.2);
}

.materials-hero-icon i {
    color: #4a6cf7;
    opacity: 0.3;
}

/* ===== ЛОГОТИП В ГЕРОЕ ===== */
.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

/* Для мобильных */
@media (max-width: 768px) {
    .hero-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 500px) {
    .hero-logo {
        width: 60px;
        height: 60px;
    }
}


/* Архивные бе  */
.dropdown-menu a.deprecated {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.dropdown-menu a.deprecated:hover {
    background: rgba(255, 0, 0, 0.08);
    color: rgba(255, 255, 255, 0.3);
}

.dropdown-menu a.deprecated i {
    color: rgba(255, 255, 255, 0.2);
}

.deprecated-badge {
    margin-left: auto;
    font-size: 9px;
    background: rgba(255, 0, 0, 0.8);
    color: #ff6b6b;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider-text {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: default;
    list-style: none;
}

.dropdown-divider-text::before,
.dropdown-divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
}

.dropdown-divider-text i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.15);
    margin-right: 4px;
}

/* ===== БЛОК КОНКУРСА ===== */
.program-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.program-block:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Заголовок конкурса */
.program-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.program-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
}

/* Золотая иконка для конкурса */
.program-icon.python {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.program-header h3 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #1e293b;
    font-weight: 700;
}

.program-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

/* Текст внутри блока */
.program-block p {
    color: #334155;
    font-size: 16px;
    line-height: 1.6;
    margin: 16px 0;
}

.program-block ul,
.program-block ol {
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
    padding-left: 24px;
    margin: 12px 0;
}

.program-block li {
    margin-bottom: 8px;
}

.program-block li b {
    color: #1e293b;
}

/* Ссылки внутри списка — нейтральные */
.program-block a {
    color: #475569;
    text-decoration: none;
    border-bottom: 1px dashed #94a3b8;
    transition: color 0.2s ease, border-color 0.2s ease;
    word-break: break-all;
}

.program-block a:hover {
    color: #1e293b;
    border-bottom-color: #1e293b;
}

/* Кнопка участия — тёмная */
.program-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-program {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-width: 260px;
}

.btn-program:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.btn-level {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.btn-desc {
    font-size: 16px;
    font-weight: 600;
}

.btn-meta {
    font-size: 13px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* Заголовок секции */
.section-header {
    margin: 40px 0 24px;
}

.section-title {
    font-size: 28px;
    color: #4a6cf7;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: #f59e0b;
    border-radius: 2px;
}