/* =========================================================
   TEYA
   Главная страница
   Файл: css/pages/home.css
   ========================================================= */


/* =========================================================
   1. ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================= */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 42px;
}

.section-heading--compact {
    margin-bottom: 36px;
}

.section-heading > div {
    max-width: 680px;
}

.section-eyebrow {
    margin-bottom: 10px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.section-title {
    margin-bottom: 0;

    color: var(--color-heading);

    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;

    letter-spacing: -1px;
}

.section-description {
    max-width: 460px;

    margin-bottom: 3px;

    color: var(--color-text);

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   2. HERO / ПЕРВЫЙ ЭКРАН
   ========================================================= */

.home-hero {
    position: relative;

    padding: 95px 0 105px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 100%
        );

    border-bottom: 1px solid #edf0f5;
}

.home-hero::after {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: -230px;
    top: -210px;

    background:
        rgba(23, 105, 224, 0.05);

    border-radius: 50%;

    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero__inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, 0.65fr);

    align-items: center;

    gap: 75px;
}


/* =========================================================
   3. HERO — ЛЕВАЯ ЧАСТЬ
   ========================================================= */

.home-hero__content {
    max-width: 820px;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;

    margin: 0 0 24px;

    padding: 8px 13px;

    color: var(--color-primary);

    background:
        rgba(23, 105, 224, 0.08);

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.2px;
}

.home-hero__title {
    margin: 0;

    color: var(--color-heading);

    font-size:
        clamp(48px, 5.3vw, 72px);

    line-height: 0.99;

    letter-spacing: -2.6px;
}

.home-hero__title span {
    display: block;

    margin-top: 22px;

    color: var(--color-primary);
}

.home-hero__description {
    max-width: 720px;

    margin: 30px 0 0;

    color: var(--color-text);

    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   4. HERO — КНОПКИ
   ========================================================= */

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}

.home-hero__actions .button {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;
}

.home-hero__actions .button--primary {
    color: #ffffff;

    background:
        var(--color-primary);

    border:
        1px solid var(--color-primary);

    box-shadow:
        0 10px 24px
        rgba(23, 105, 224, 0.18);
}

.home-hero__actions .button--primary:hover {
    background:
        var(--color-primary-dark);

    border-color:
        var(--color-primary-dark);
}

.home-hero__actions .button--secondary {
    color:
        var(--color-heading);

    background: #ffffff;

    border:
        1px solid var(--color-border);
}

.home-hero__actions .button--secondary:hover {
    color:
        var(--color-primary);

    border-color:
        rgba(23, 105, 224, 0.35);
}


/* =========================================================
   5. HERO — ПРАВАЯ КАРТОЧКА
   ========================================================= */

.home-hero__aside {
    display: flex;
    justify-content: flex-end;
}

.home-hero__aside-card {
    position: relative;

    width: 100%;
    max-width: 380px;
    min-height: 300px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 38px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #17263d 0%,
            #102039 100%
        );

    border-radius: 24px;

    box-shadow:
        0 24px 55px
        rgba(16, 32, 57, 0.18);
}

.home-hero__aside-card::before {
    content: "";

    position: absolute;

    width: 210px;
    height: 210px;

    top: -115px;
    right: -95px;

    background:
        rgba(255, 255, 255, 0.055);

    border-radius: 50%;
}

.home-hero__aside-label {
    position: relative;
    z-index: 1;

    display: block;

    margin-bottom: 12px;

    color: #7fb4ff;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.home-hero__aside-card strong {
    position: relative;
    z-index: 1;

    display: block;

    max-width: 280px;

    color: #ffffff;

    font-size: 30px;
    line-height: 1.15;

    letter-spacing: -0.7px;
}

.home-hero__aside-card p {
    position: relative;
    z-index: 1;

    margin: 18px 0 0;

    color: #c3cddb;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   6. ПРЕИМУЩЕСТВА
   ========================================================= */

.advantages {
    position: relative;

    padding: 90px 0 100px;

    overflow: hidden;

    background: #ffffff;
}

.advantages::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    top: -230px;
    left: -190px;

    background:
        rgba(23, 105, 224, 0.045);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   7. СЕТКА ПРЕИМУЩЕСТВ
   ========================================================= */

.advantages__grid {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   8. КАРТОЧКА ПРЕИМУЩЕСТВА
   ========================================================= */

.advantage-card {
    position: relative;

    min-height: 170px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 28px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcff 100%
        );

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        0 8px 26px
        rgba(24, 39, 75, 0.045);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.advantage-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            #68a9ff
        );

    transform: scaleX(0);
    transform-origin: left;

    transition:
        transform 0.3s ease;
}

.advantage-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    top: -55px;
    right: -55px;

    background:
        rgba(23, 105, 224, 0.035);

    border-radius: 50%;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(23, 105, 224, 0.28);

    box-shadow:
        0 18px 42px
        rgba(24, 39, 75, 0.10);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover::after {
    transform: scale(1.25);

    background:
        rgba(23, 105, 224, 0.065);
}


/* =========================================================
   9. СОДЕРЖИМОЕ ПРЕИМУЩЕСТВА
   ========================================================= */

.advantage-card__content {
    position: relative;
    z-index: 1;

    margin-top: 0;
}

.advantage-card__content h3 {
    margin-bottom: 10px;

    color:
        var(--color-heading);

    font-size: 19px;
    line-height: 1.3;

    letter-spacing: -0.25px;
}

.advantage-card__content p {
    margin-bottom: 0;

    color:
        var(--color-text);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   10. УСЛУГИ
   ========================================================= */

.home-services {
    position: relative;

    padding: 100px 0;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f7f9fc 0%,
            #f4f7fb 100%
        );

    border-top:
        1px solid #edf0f5;

    border-bottom:
        1px solid #edf0f5;
}

.home-services::after {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    right: -260px;
    bottom: -250px;

    background:
        rgba(23, 105, 224, 0.055);

    border-radius: 50%;

    pointer-events: none;
}

.home-services .container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   11. ПРАВАЯ ЧАСТЬ ЗАГОЛОВКА УСЛУГ
   ========================================================= */

.home-services__heading-side {
    max-width: 460px;
}

.home-services__all-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 12px;

    color:
        var(--color-primary);

    font-size: 14px;
    font-weight: 700;

    transition:
        gap var(--transition),
        color var(--transition);
}

.home-services__all-link:hover {
    gap: 13px;

    color:
        var(--color-primary-dark);
}


/* =========================================================
   12. СЕТКА УСЛУГ
   ========================================================= */

.home-services__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   13. КАРТОЧКА УСЛУГИ
   ========================================================= */

.service-card {
    position: relative;

    min-height: 260px;

    display: flex;
    flex-direction: column;

    padding: 27px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        0 8px 25px
        rgba(24, 39, 75, 0.04);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(23, 105, 224, 0.28);

    box-shadow:
        0 18px 40px
        rgba(24, 39, 75, 0.10);
}


/* =========================================================
   14. ВЕРХ КАРТОЧКИ УСЛУГИ
   ========================================================= */

.service-card__top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    margin-bottom: 18px;
}

.service-card__badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    color: #ffffff;

    background:
        var(--color-primary);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* =========================================================
   15. ТЕКСТ УСЛУГИ
   ========================================================= */

.service-card__content {
    position: relative;
    z-index: 1;

    margin-bottom: 28px;
}

.service-card__title {
    margin-bottom: 13px;

    color:
        var(--color-heading);

    font-size: 20px;
    line-height: 1.3;

    letter-spacing: -0.35px;
}

.service-card__title a {
    transition:
        color var(--transition);
}

.service-card__title a:hover {
    color:
        var(--color-primary);
}

.service-card__text {
    margin-bottom: 0;

    color:
        var(--color-text);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   16. ССЫЛКА "ПОДРОБНЕЕ"
   ========================================================= */

.service-card__link {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    color:
        var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    transition:
        gap var(--transition),
        color var(--transition);
}

.service-card__link:hover {
    gap: 13px;

    color:
        var(--color-primary-dark);
}


/* =========================================================
   17. ВЫДЕЛЕННАЯ УСЛУГА
   ========================================================= */

.service-card--featured {
    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #1769e0 0%,
            #0d4fae 100%
        );

    border-color: transparent;

    box-shadow:
        0 16px 36px
        rgba(23, 105, 224, 0.20);
}

.service-card--featured::after {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    top: -90px;
    right: -80px;

    background:
        rgba(255, 255, 255, 0.07);

    border-radius: 50%;

    pointer-events: none;
}

.service-card--featured:hover {
    border-color: transparent;

    box-shadow:
        0 22px 48px
        rgba(23, 105, 224, 0.28);
}

.service-card--featured
.service-card__badge {
    color: #1457bd;

    background: #ffffff;
}

.service-card--featured
.service-card__title {
    color: #ffffff;
}

.service-card--featured
.service-card__title a:hover {
    color: #ffffff;
}

.service-card--featured
.service-card__text {
    color:
        rgba(255, 255, 255, 0.82);
}

.service-card--featured
.service-card__link {
    color: #ffffff;
}


/* =========================================================
   18. БЛОК "ЕСТЬ ПРОБЛЕМЫ С УЧЕТОМ?"
   ========================================================= */

.home-services__problem {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    margin-top: 28px;

    padding: 38px 42px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #15243a 0%,
            #102039 100%
        );

    border-radius:
        var(--radius-large);

    box-shadow:
        0 18px 44px
        rgba(16, 32, 57, 0.14);
}

.home-services__problem::after {
    content: "";

    position: absolute;

    width: 210px;
    height: 210px;

    top: -120px;
    right: 150px;

    background:
        rgba(255, 255, 255, 0.04);

    border-radius: 50%;

    pointer-events: none;
}

.home-services__problem-content {
    position: relative;
    z-index: 1;

    max-width: 760px;
}

.home-services__problem-label {
    display: block;

    margin-bottom: 8px;

    color: #80b5ff;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.home-services__problem h3 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size:
        clamp(23px, 2.4vw, 32px);

    line-height: 1.25;

    letter-spacing: -0.6px;
}

.home-services__problem p {
    max-width: 680px;

    margin-bottom: 0;

    color: #bec9d8;

    font-size: 14px;
    line-height: 1.7;
}

.home-services__problem .button {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    color:
        var(--color-primary);

    background: #ffffff;

    box-shadow: none;
}

.home-services__problem .button:hover {
    color:
        var(--color-primary-dark);

    background: #f3f7fd;
}


/* =========================================================
   19. ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1050px) {

    .home-hero {
        padding: 80px 0 90px;
    }

    .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);

        gap: 45px;
    }

    .home-hero__content {
        max-width: 850px;
    }

    .home-hero__aside {
        justify-content: flex-start;
    }

    .home-hero__aside-card {
        max-width: 620px;

        min-height: 230px;
    }

    .advantages__grid,
    .home-services__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .advantage-card {
        min-height: 155px;
    }

    .service-card {
        min-height: 245px;
    }

}


/* =========================================================
   20. НЕБОЛЬШИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 800px) {

    .advantages,
    .home-services {
        padding: 70px 0 80px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;

        margin-bottom: 32px;
    }

    .section-description,
    .home-services__heading-side {
        max-width: 620px;
    }

    .home-services__problem {
        align-items: flex-start;
        flex-direction: column;

        gap: 25px;

        padding: 32px;
    }

}


/* =========================================================
   21. ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

    .home-hero {
        padding: 60px 0 70px;
    }

    .home-hero__inner {
        gap: 35px;
    }

    .home-hero__eyebrow {
        margin-bottom: 20px;

        font-size: 11px;
    }

    .home-hero__title {
        font-size: clamp(26px, 7.2vw, 36px);
        overflow-wrap: anywhere;

        line-height: 1.03;

        letter-spacing: -1.6px;
    }

    .home-hero__title span {
        margin-top: 15px;
    }

    .home-hero__description {
        margin-top: 24px;

        font-size: 16px;
    }

    .home-hero__actions {
        flex-direction: column;

        margin-top: 28px;
    }

    .home-hero__actions .button {
        width: 100%;
    }

    .home-hero__aside-card {
        min-height: 220px;

        padding: 28px;

        border-radius: 19px;
    }

    .home-hero__aside-card strong {
        font-size: 26px;
    }

    .advantages,
    .home-services {
        padding: 55px 0 65px;
    }

    .section-eyebrow {
        font-size: 11px;
    }

    .section-title {
        font-size: 30px;
    }

    .section-description {
        font-size: 14px;
    }

    .advantages__grid,
    .home-services__grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .advantage-card {
        min-height: auto;

        padding: 24px;
    }

    .service-card {
        min-height: 230px;

        padding: 24px;
    }

    .service-card__top {
        margin-bottom: 16px;
    }

    .home-services__problem {
        margin-top: 20px;

        padding: 27px 24px;

        border-radius: 18px;
    }

    .home-services__problem h3 {
        font-size: 24px;
    }

    .home-services__problem .button {
        width: 100%;
    }

}
/* TEYA: mobile hero width fix */
@media (max-width: 600px) {
    .home-hero__inner,
    .home-hero__content,
    .home-hero__title {
        min-width: 0;
        max-width: 100%;
    }

    .home-hero__title {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}