/* =========================================
   ivEng — ГЛАВНАЯ СТРАНИЦА
========================================= */

/* =========================================
   1. HERO — ФОН И ОСНОВНОЙ БЛОК
========================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 85px 0;

    background:
        radial-gradient(
            ellipse at 85% 15%,
            rgba(112, 231, 162, 0.32),
            transparent 48%
        ),
        radial-gradient(
            ellipse at 20% 100%,
            rgba(134, 239, 172, 0.26),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #f5fff8 0%,
            #e6faee 55%,
            #c9f5da 100%
        );
}

/* Декоративная фигура */
.home-hero::before {
    content: "";
    position: absolute;

    width: 850px;
    height: 400px;

    right: -250px;
    top: -280px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);

    transform: rotate(-18deg);
    pointer-events: none;
}

/* Контент поверх фона */
.home-hero .container {
    position: relative;
    z-index: 1;
}

/* =========================================
   2. ТЕКСТОВАЯ ЧАСТЬ
========================================= */

.home-hero-text {
    position: relative;
    z-index: 2;
}

/* Маленькая метка над заголовком */
.home-hero-label {
    display: inline-flex;
    align-items: center;

    padding: 9px 16px;
    margin-bottom: 25px;

    background: #d8f8e4;
    border-radius: 30px;

    color: #166534;
    font-size: 14px;
    font-weight: 600;
}

/* Главный заголовок */
.home-hero-title {
    font-size: clamp(36px, 3.5vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;

    color: #064e3b;
    margin-bottom: 25px;
}

.home-hero-title span {
    color: #16a34a;
}

/* Описание */
.home-hero-description {
    font-size: 18px;
    line-height: 1.8;

    color: #426457;

    max-width: 540px;
    margin-bottom: 30px;
}

/* Кнопки */
.home-hero-text .btn {
    font-weight: 600;
    white-space: nowrap;
}

/* =========================================
   3. РЕАЛИСТИЧНЫЙ НОУТБУК
========================================= */

.home-hero-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-width: 0;
}

/* Изображение ноутбука */
.home-laptop-img {
    display: block;

    width: 155%;
    max-width: none;
    height: auto;

    object-fit: contain;

    /* Приближаем ноутбук к тексту */
    transform: translateX(-8%);

    filter: drop-shadow(
        0 16px 24px rgba(6, 78, 59, 0.10)
    );
}

/* =========================================
   ivEng — КАРТОЧКИ РАЗДЕЛОВ
========================================= */

.home-section-card {
    position: relative;
    height: 100%;
    padding: 28px;

    background: #ffffff;
    border: 1px solid #e2eee6;
    border-radius: 18px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.025);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

/* Наведение на карточку */
.home-section-card:hover {
    transform: translateY(-6px);

    border-color: #86efac;

    background-color: #fcfffd;

    box-shadow:
        0 12px 30px rgba(22, 163, 74, 0.12),
        0 4px 12px rgba(22, 163, 74, 0.06);
}

/* Иконки */
.home-section-card > i {
    display: inline-block;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

/* Анимация иконки */
.home-section-card:hover > i {
    transform: translateY(-3px) scale(1.1);
    color: #15803d !important;
}

/* Заголовки */
.home-section-card h2 {
    transition: color 0.3s ease;
}

.home-section-card:hover h2 {
    color: #15803d;
}

/* Описание */
.home-section-card p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Для пользователей с отключённой анимацией */
@media (prefers-reduced-motion: reduce) {
    .home-section-card,
    .home-section-card > i,
    .home-section-card h2 {
        transition: none;
    }

    .home-section-card:hover {
        transform: none;
    }

    .home-section-card:hover > i {
        transform: none;
    }
}

/* =========================================
   5. БОЛЬШИЕ МОНИТОРЫ
========================================= */

@media (min-width: 1200px) {

    .home-hero-visual {
        overflow: visible;
    }

    .home-laptop-img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        /* transform: translateX(10%) scale(1.35) !important; */
        transform: translate(10%, 18px) scale(1.35) !important;
        transform-origin: center center;
    }

}

/* =========================================
   6. ПЛАНШЕТЫ
========================================= */

@media (max-width: 991.98px) {

    .home-hero {
        padding: 55px 0;
    }

    .home-hero-text {
        text-align: center;
    }

    .home-hero-title {
        font-size: clamp(36px, 5vw, 52px);
    }

    .home-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-text .d-flex {
        justify-content: center;
    }

    /* Ноутбук переносится под текст */
    .home-hero-visual {
        justify-content: center;

        width: 100%;
        max-width: 650px;

        margin: 25px auto 0;
    }

    .home-laptop-img {
        width: 100%;
        max-width: 100%;

        transform: none;
    }

}

/* =========================================
   7. МОБИЛЬНЫЕ УСТРОЙСТВА
========================================= */

@media (max-width: 575.98px) {

    .home-hero {
        padding: 40px 0;
    }

    .home-hero-label {
        font-size: 12px;
        padding: 8px 12px;
        margin-bottom: 20px;
    }

    .home-hero-title {
        font-size: clamp(32px, 8vw, 40px);
        letter-spacing: -0.5px;
        line-height: 1.15;

        margin-bottom: 20px;
    }

    .home-hero-description {
        font-size: 16px;
        line-height: 1.7;

        margin-bottom: 25px;
    }

    .home-hero-text .d-flex {
        gap: 12px !important;
    }

    .home-hero-text .btn {
        font-size: 15px;
        padding: 11px 20px !important;
    }

    /* Ноутбук на мобильных */
    .home-hero-visual {
        margin-top: 15px;
    }

    .home-laptop-img {
        width: 100%;
        max-width: 100%;
        height: auto;

        transform: none;
        filter: none;
    }

    /* Карточки */
    .home-section-card {
        padding: 22px;
    }

}

/* =========================================
   8. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
========================================= */

@media (max-width: 359.98px) {

    .home-hero-title {
        font-size: 30px;
    }

    .home-hero-text .btn {
        font-size: 14px;
    }

}


/* =========================================
   КАК ЗАНИМАТЬСЯ
========================================= */

.home-learning {
    background: #f8fcf9;
    border-top: 1px solid #edf4ef;
}

.home-section-heading {
    max-width: 650px;
    margin: 0 auto 38px;
    text-align: center;
}

.home-section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #168447;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-section-heading h2 {
    margin-bottom: 12px;
    color: #064e3b;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
}

.home-section-heading p {
    max-width: 520px;
    margin: 0 auto;
    color: #6b8074;
    font-size: 16px;
    line-height: 1.7;
}

.home-learning-card {
    position: relative;
    height: 100%;
    padding: 30px 28px;
    overflow: hidden;
    border: 1px solid #e1eee5;
    border-radius: 18px;
    background: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.home-learning-card:hover {
    border-color: #b8e7c7;
    box-shadow: 0 14px 32px rgba(22, 101, 52, .09);
    transform: translateY(-4px);
}

.home-learning-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #d9f2e0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.home-learning-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 14px;
    color: #fff;
    background: #168447;
    font-size: 22px;
}

.home-learning-card h3 {
    margin-bottom: 12px;
    color: #183d2c;
    font-size: 20px;
    font-weight: 700;
}

.home-learning-card p {
    margin: 0;
    color: #718278;
    font-size: 14px;
    line-height: 1.7;
}

.home-learning-action {
    margin-top: 34px;
    text-align: center;
}

@media (max-width: 575.98px) {
    .home-section-heading {
        margin-bottom: 28px;
    }

    .home-learning-card {
        padding: 25px 23px;
    }

    .home-learning-number {
        right: 18px;
        font-size: 28px;
    }
}

/* Вид ссылак в карточке на главной */
.home-section-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-section-card-link:hover {
    color: inherit;
}

.home-section-card-link:focus-visible {
    outline: 3px solid rgba(22, 163, 74, .35);
    outline-offset: 4px;
    border-radius: 18px;
}