/* === GLOBAL STYLES === */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        overflow-x: hidden;
        /* background: #f8f9fa; */
        color: #1f3b53;
    }

    /* === HERO SECTION === */
    .hero-section {
        position: relative;
        min-height: 720px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 120px;
        overflow: hidden;
    }

    .hero-carousel {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        z-index: 0;
    }

    .hero-slide {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1.2s ease-in-out;
    }

    .hero-slide.active { opacity: 1; }

    .hero-slide::after {
        content: '';
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: linear-gradient(135deg, rgba(0, 105, 155, 0.5) 0%, rgba(0, 149, 213, 0.35) 100%);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        max-width: 900px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 16px;
        text-shadow: 0 3px 12px rgba(0,0,0,0.3);
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.35rem;
        font-weight: 400;
        margin-bottom: 32px;
        opacity: 0.95;
        line-height: 1.5;
    }

    .hero-btn {
        display: inline-block;
        padding: 16px 44px;
        background: rgba(255, 255, 255, 0.22);
        color: white;
        border: 2.5px solid rgba(255, 255, 255, 0.85);
        border-radius: 12px;
        font-size: 1.15rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.35s ease;
        backdrop-filter: blur(12px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

    .hero-btn:hover {
        background: rgba(255, 255, 255, 0.35);
        border-color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.22);
        text-decoration: none;
        color: white;
    }

    /* === TOPBAR (вместо header) === */
    .hero-topbar {
        position: absolute;
        top: 28px;
        left: 0;
        width: 100%;
        padding: 0 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 20;
    }

    .hero-logo {
        height: 46px;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    }

    .hero-auth a {
        text-decoration: none;
    }

    .hero-login-btn {
        padding: 11px 30px;
        border-radius: 10px;
        border: 2.5px solid rgba(255,255,255,0.9);
        background: rgba(255,255,255,0.22);
        color: #fff;
        font-weight: 600;
        font-size: 1rem;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }

    .hero-login-btn:hover {
        background: rgba(255,255,255,0.38);
        transform: translateY(-2px);
    }

    .hero-btn-right {
    position: absolute;
    bottom: 70px;
    right: 50px;
    z-index: 10;
    padding: 16px 44px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-btn-right:hover {
    background: rgba(255, 255, 255, 0.38);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    color: white;
}

    /* === АВАТАР И МЕНЮ === */
    .hero-profile-menu {
        position: relative;
        display: inline-block;
    }

    .hero-profile-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .hero-profile-btn img.userpicture {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 3px solid rgba(255,255,255,0.95) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
        transition: all 0.3s ease;
    }

    .hero-profile-btn:hover img.userpicture {
        transform: scale(1.1);
        border-color: #fff !important;
        box-shadow: 0 8px 28px rgba(0,0,0,0.35) !important;
    }

    .profile-dropdown {
        position: absolute;
        top: 68px;
        right: 0;
        background: white;
        border-radius: 14px;
        padding: 12px 0;
        min-width: 180px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        display: none;
        z-index: 30;
        border: 1px solid #e3f2fd;
    }

    .hero-profile-menu.open .profile-dropdown {
        display: block;
        animation: fadeIn 0.25s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .profile-dropdown a {
        display: block;
        padding: 11px 20px;
        color: #1f3b53;
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s ease;
    }

    .profile-dropdown a:hover {
        background: #e3f2fd;
        color: #006b7d;
    }

    /* === КАРУСЕЛЬ СТРЕЛКИ === */
    .carousel-nav {
        position: absolute;
        bottom: 70px;
        left: 50px;
        z-index: 10;
        display: flex;
        gap: 20px;
    }

    .carousel-arrow {
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.25);
        border: 2.5px solid rgba(255, 255, 255, 0.7);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.35s ease;
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

    .carousel-arrow:hover {
        background: rgba(255, 255, 255, 0.4);
        border-color: white;
        transform: scale(1.12);
        box-shadow: 0 6px 22px rgba(0,0,0,0.22);
    }

    /* === АДАПТИВНОСТЬ КНОПОК И СТРЕЛОК (ТОЛЬКО ОНИ) === */
@media (max-width: 768px) {
    .hero-login-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    .hero-btn-right {
        bottom: 60px;
        right: 15px;
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .carousel-nav {
        bottom: 65px;
        left: 15px;
        gap: 10px;
    }
    .carousel-arrow {
        width: 44px;
        height: 44px;
    }
    .carousel-arrow img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .hero-login-btn {
        padding: 7px 16px;
        font-size: 0.8rem;
    }
    .hero-btn-right {
        bottom: 50px;
        right: 12px;
        padding: 9px 20px;
        font-size: 0.85rem;
    }
    .carousel-nav {
        bottom: 55px;
        left: 12px;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .carousel-arrow img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .hero-login-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    .hero-btn-right {
        bottom: 55px;
        right: 10px;
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .carousel-arrow img {
        width: 16px;
        height: 16px;
    }
}



    /* === PURPOSE SECTION === */
    .purpose-section {
        position: relative;
        margin-top: -50px;
        background: linear-gradient(to top, #ffffff 0%, #f0f8ff 100%);
        border-radius: 48px 48px 0 0;
        padding: 90px 20px 70px;
        /* box-shadow: 0 -12px 50px rgba(0,0,0,0.1); */
        z-index: 5;
    }

    .purpose-title {
        text-align: start;
        font-size: 2.8rem;
        font-weight: 800;
        color: #1f3b53;
        margin-bottom: 20px;
        letter-spacing: -0.5px;
    }

    .purpose-text {
        text-align: start;
        /* max-width: 920px; */
        margin: 0 auto;
        font-size: 1.8rem;
        line-height: 1.7;
        color: #44525f;
        font-weight: 400;
    }

    /* === COURSES SECTION === */
    .courses-section {
        padding: 80px 20px;
        background: white;
    }

    .section-title {
        font-size: 2.3rem;
        font-weight: 800;
        color: #1f3b53;
        margin-bottom: 50px;
        letter-spacing: -0.5px;
    }

        .courses-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        gap: 28px;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* === КАРТОЧКИ КУРСОВ — С КАРТИНКОЙ И ТЕКСТОМ ВНУТРИ === */
.course-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 440px;
    width: 320px;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: calc(100% - 40px);
    line-height: 1.4;
    margin: 0;
    z-index: 2;
}

/* Убираем старый .course-content */
.course-content {
    display: none !important;
}

/* === BENEFITS SECTION — СУПЕР-АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ === */
.benefits-section {
    display: flex;
    justify-content: center;
    border-radius: 16px;
    margin: 130px auto;
    max-width: 1310px;
    height: 432px;
    margin-bottom: 72px;
    padding: 80px 20px;
    background-color: #CED2D64D;
    overflow: hidden;
}

.benefits-title {
    text-align: start;
    font-size: 2.4rem;
    font-weight: 800;
    color: #0d47a1;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.benefits-wrapper {
    display: flex;
    justify-content: center;
    gap: 100px;
    max-width: 1360px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.benefits-column {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    color: #1a237e;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.benefit-row:hover {
    color: #00695c;
    transform: translateX(4px);
}

.check-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0095d5, #00b0ff);
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 149, 213, 0.3);
    transition: all 0.3s ease;
}

.benefit-row:hover .check-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, #00b0ff, #40c4ff);
    box-shadow: 0 6px 16px rgba(0, 149, 213, 0.4);
}

/* === АДАПТИВНОСТЬ — ОЧЕНЬ ЧИСТАЯ И РОВНАЯ НА СМАРТФОНАХ === */
@media (max-width: 992px) {
    .benefits-wrapper {
        gap: 60px;
    }
    .benefits-title {
        font-size: 2.1rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 60px 15px;
    }
    .benefits-wrapper {
        flex-direction: column;
        align-items: start;
        gap: 36px;
    }
    .benefits-column {
        align-items: start;
        text-align: start;
        gap: 16px;
        width: 100%;
        max-width: 380px;
    }
    .benefit-row {
        justify-content: flex-start;
        font-size: 1.02rem;
        gap: 14px;
    }
    .check-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .benefits-title {
        font-size: 1.85rem;
        margin-bottom: 32px;
        line-height: 1.3;
    }
    .benefits-section {
        padding: 50px 15px;
    }
    .benefits-column {
        gap: 14px;
        max-width: 100%;
    }
    .benefit-row {
        font-size: 0.98rem;
        gap: 12px;
        line-height: 1.45;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
    .check-icon {
        width: 26px;
        height: 26px;
        font-size: 15px;
    }
    .benefit-text {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 400px) {
    .benefits-title {
        font-size: 1.7rem;
    }
    .benefit-row {
        font-size: 0.94rem;
        gap: 10px;
    }
    .check-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}


    /* === FOOTER === */
    .portal-footer {
        padding: 40px 60px;
        /* background: #1a2b3a; */
        color: rgba(255, 255, 255, 0.75);
        text-align: center;
        /* max-width: 1300px; */
    }

    .portal-footer p {
        margin-left: 100px;
        font-size: 1.02rem;
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 18px;
        font-weight: 500;
    }

    .footer-logo-img {
        height: 32px;
        /* opacity: 0.9; */
        /* filter: brightness(0) invert(1); */
    }

    /* === АДАПТИВНОСТЬ === */
    @media (max-width: 992px) {
        .hero-title { font-size: 2.5rem; }
        .hero-subtitle { font-size: 1.2rem; }
        .purpose-title, .section-title { font-size: 2rem; }
    }

    @media (max-width: 768px) {
        .hero-section { min-height: 600px; padding-top: 100px; }
        .hero-title { font-size: 2.1rem; }
        .hero-subtitle { font-size: 1.1rem; }
        .hero-btn { padding: 14px 36px; font-size: 1.05rem; }
        .carousel-nav { bottom: 50px; left: 30px; }
        .carousel-arrow { width: 48px; height: 48px; }
        .courses-grid, .benefits-grid { grid-template-columns: 1fr; }
        .hero-topbar { padding: 0 30px; top: 20px; }
        .hero-logo { height: 40px; }
    }

    @media (max-width: 576px) {
        .hero-section { min-height: 500px; padding: 80px 15px 60px; }
        .hero-title { font-size: 1.8rem; }
        .purpose-section { padding: 60px 15px; margin-top: -30px; border-radius: 32px 32px 0 0; }
        .section-title { font-size: 1.8rem; margin-bottom: 36px; }
        .portal-footer { padding: 30px 20px; }
    }
