/* =========================================================
   TEYA
   Главная → Опыт / цифры / показатели
   Файл: css/pages/home/stats.css
   ========================================================= */


/* =========================================================
   1. ОСНОВНАЯ СЕКЦИЯ
   ========================================================= */

.home-stats {
    position: relative;

    padding: 100px 0;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f7f9fc 0%,
            #f3f6fa 100%
        );

    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}


.home-stats::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -260px;
    left: -220px;

    background: rgba(23, 105, 224, 0.05);

    border-radius: 50%;

    pointer-events: none;
}


.home-stats .container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   2. ЗАГОЛОВОК
   ========================================================= */

.home-stats__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;

    margin-bottom: 46px;
}


.home-stats__heading {
    max-width: 680px;
}


.home-stats__intro {
    max-width: 450px;
}


.home-stats__intro p {
    margin: 0;

    color: var(--color-text);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   3. СЕТКА ПОКАЗАТЕЛЕЙ
   ========================================================= */

.home-stats__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    background: #ffffff;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-large);

    box-shadow:
        0 14px 38px rgba(24, 39, 75, 0.06);

    overflow: hidden;
}


/* =========================================================
   4. ОДИН ПОКАЗАТЕЛЬ
   ========================================================= */

.home-stat {
    position: relative;

    min-height: 245px;

    display: flex;
    flex-direction: column;

    padding: 32px;

    background: #ffffff;

    transition:
        background-color var(--transition);
}


.home-stat + .home-stat {
    border-left:
        1px solid var(--color-border);
}


.home-stat:hover {
    background: #fbfcff;
}


/* Синяя линия при наведении */

.home-stat::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;
}


.home-stat:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   5. БОЛЬШАЯ ЦИФРА
   ========================================================= */

.home-stat__value {
    margin-bottom: auto;

    padding-bottom: 35px;

    color: var(--color-primary);

    font-size: clamp(32px, 3vw, 46px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -1.5px;
}


/* =========================================================
   6. ТЕКСТ ПОКАЗАТЕЛЯ
   ========================================================= */

.home-stat__content h3 {
    margin-bottom: 9px;

    color: var(--color-heading);

    font-size: 17px;

    line-height: 1.35;

    letter-spacing: -0.2px;
}


.home-stat__content p {
    margin: 0;

    color: var(--color-text);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   7. НИЖНЯЯ ЧАСТЬ
   ========================================================= */

.home-stats__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    margin-top: 30px;

    padding: 30px 34px;

    background: #ffffff;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-medium);
}


.home-stats__footer-text {
    max-width: 700px;
}


.home-stats__footer-text strong {
    display: block;

    margin-bottom: 5px;

    color: var(--color-heading);

    font-size: 16px;
}


.home-stats__footer-text p {
    margin: 0;

    color: var(--color-text);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   8. ССЫЛКА
   ========================================================= */

.home-stats__link {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--color-primary);

    font-size: 14px;
    font-weight: 700;

    transition:
        gap var(--transition),
        color var(--transition);
}


.home-stats__link:hover {
    gap: 13px;

    color: var(--color-primary-dark);
}


/* =========================================================
   9. ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1050px) {

    .home-stats__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .home-stat:nth-child(3) {
        border-left: 0;

        border-top:
            1px solid var(--color-border);
    }


    .home-stat:nth-child(4) {
        border-top:
            1px solid var(--color-border);
    }

}


/* =========================================================
   10. НЕБОЛЬШИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 800px) {

    .home-stats {
        padding: 75px 0;
    }


    .home-stats__header {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;

        margin-bottom: 34px;
    }


    .home-stats__intro {
        max-width: 650px;
    }


    .home-stats__footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;
    }

}


/* =========================================================
   11. ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

    .home-stats {
        padding: 60px 0;
    }


    .home-stats__grid {
        grid-template-columns: 1fr;

        border-radius: 18px;
    }


    .home-stat {
        min-height: 210px;

        padding: 27px;
    }


    .home-stat + .home-stat {
        border-top:
            1px solid var(--color-border);

        border-left: 0;
    }


    .home-stat__value {
        padding-bottom: 28px;

        font-size: 38px;
    }


    .home-stats__footer {
        margin-top: 20px;

        padding: 26px 24px;
    }


    .home-stats__link {
        width: 100%;

        justify-content: space-between;
    }

}