/* ========== БАЗОВЫЕ СТИЛИ ========== */
.container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

/* ========== HEADER ========== */
.header {
    padding: 24px 0;
    background: linear-gradient(to left, #8CF965 0%, #065B98 100%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    width: 540px;
    height: 86px;
    object-fit: contain;
}

.burger-menu img {
    filter: brightness(0) invert(1);
}

.mobile-menu__close .close-icon {
    filter: none;
}

.header__link {
    color: #fff;
}

.header__link:hover {
    text-decoration: underline;
}

/* ========== HERO КУРС ========== */
.hero-course {
    background: linear-gradient(to left, #8CF965 0%, #065B98 100%);
    padding: 0 0 30px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-course .container {
    position: relative;
}

.hero-course__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

/* Левая часть - контент */
.hero-course__content {
    display: flex;
    flex-direction: column;
}

.hero-course__label {
    font-family: var(--font-main);
    font-size: 50px;
    font-weight: 500;
    color: #FDF400;
    margin-bottom: 40px;
}

.hero-course__label_2 {
    font-family: var(--font-main);
    font-weight: 700;
    font-style: Bold;
    font-size: 50px;
    line-height: 1.5;
    color: #FDF400;
}

.hero-course__label_3 {
    display: flex;
    gap: 30px;
}

.hero-course__label_3 li {
    color: #FDF400;
    font-family: var(--font-main);
    font-weight: 500;
    font-style: Medium;
    font-size: 30px;
    line-height: 1.2;
    list-style: disc;
}

.hero-course__title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 120px;
    color: #FFFFFF;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.hero-course__title-word {
    display: block;
    white-space: nowrap;
}

.hero-course__title-first {
    font-size: 200px;
}

.hero-course__title-rest {
    font-size: 150px;
}

.hero-course__text {
    font-family: var(--font-main);
    font-size: 30px;
    font-weight: 500;
    line-height: 50px;
    color: #FDF400;
    max-width: 800px;
    margin-bottom: 50px;
}

.hero-course__text-mobile {
    display: none;
}

.hero-course__text-desktop {
    display: inline;
}

.hero-course__btn {
    width: 50px;
    height: 50px;
    border-radius: 0 20px 0 20px;
    background-color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
    z-index: 10;
}

.hero-course__btn:hover {
    background-color: #8CF965;
}

.hero-course__btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

/* Правая часть - картинка */
.hero-course__image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-course__image img {
    width: 578px;
    height: 855px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ========== СЕКЦИЯ ЕГЭ ========== */
.ege-section {
    padding-top: 140px;
    padding-bottom: 40px;
    background-color: var(--color-white);
}

.ege-section__title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 100px;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.ege-section__title-first {
    font-size: 130px;
}

.ege-section__title-rest {
    font-size: 90px;
}

.ege-section__text {
    font-family: var(--font-main);
    font-size: 40px;
    font-weight: 400;
    line-height: 60px;
    color: var(--color-text);
    max-width: 1520px;
}

.ege-text-mobile {
    display: none;
}

.ege-text-desktop {
    display: inline;
}

/* ========== СЕКЦИЯ С ВИДЕО ========== */
.videos-section {
    background-color: var(--color-white);
}

.videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.video-card {
    width: 488px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========== АДАПТИВ ========== */

@media (max-width: 1150px) {
    .hero-course__title-rest {
        font-size: 120px;
    }

    .hero-course__label_3 {
        display: block;
    }

    .hero-course__label_3 li {
        padding: 10px 0;
    }
}

@media (max-width: 650px) {

    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    section {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        max-width: 440px;
        padding: 0 16px;
        overflow-x: hidden;
    }
    
    .header {
        padding: 16px 0;
    }
    
    .logo img {
        width: 319px;
        height: 52px;
    }
    
    .hero-course {
        padding: 50px 0;
        min-height: auto;
        overflow-x: hidden;
    }
    
    .hero-course .container {
        max-width: 100%;
    }
    
    .hero-course__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    
    .hero-course__content {
        order: 1;
        width: 100%;
    }
    
    .hero-course__image {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .hero-course__image {
        display: flex;
        justify-content: center;
    }
    
    .hero-course__image img {
        width: 319px;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }
    
    .hero-course__label {
        font-size: 30px;
        font-family: var(--font-main);
        text-align: left;
        margin-bottom: 5px;
    }
    
    .hero-course__title {
        line-height: 70px;
        margin-bottom: 32px;
        text-align: left;
        align-items: flex-start;
    }
    
    .hero-course__label_3 li {
        list-style: none;
        font-size: 24px;
    }

    .hero-course__title-first {
        font-size: 80px;
    }
    
    .hero-course__title-rest {
        font-size: 50px;
    }
    
    .hero-course__text {
        font-size: 20px;
        font-family: var(--font-main);
        font-weight: 500;
        line-height: 30px;
        text-align: left;
        margin-bottom: 12px;
    }
    
    .hero-course__text-desktop {
        display: none;
    }
    
    .hero-course__text-mobile {
        display: inline;
    }
    
    .hero-course__btn {
        display: none;
    }

    .ege-section {
        padding: 70px 0;
        padding-bottom: 50px;
        overflow-x: hidden;
    }
    
    .ege-section .container {
        max-width: 100%;
    }
    
    .ege-section__title {
        line-height: 70px;
        margin-bottom: 25px;
        text-align: left;
    }
    
    .ege-section__title-first {
        font-size: 90px;
    }
    
    .ege-section__title-rest {
        font-size: 60px;
    }
    
    .ege-section__text {
        font-size: 22px;
        line-height: 30px;
        text-align: left;
    }
    
    .ege-text-desktop {
        display: none;
    }
    
    .ege-text-mobile {
        display: inline;
    }
}


@media (max-width: 440px) {
    
    .ege-section__title-rest {
        font-size: 50px;
        line-height: 1.2;
    }

    .video-card {
        width: 100%;
        max-width: 408px;
        height: auto;
        aspect-ratio: 488 / 300;
        margin: 0 auto;
    }

}

