/*
=========================================================
БЛОК «ДОСТИЖЕНИЯ»

1. Базовые стили
2. Desktop 1400-1920
3. Большой desktop 1921+
4. Tablet 1024-1278
5. Tablet 768-1023
6. Mobile
7. Small mobile
=========================================================
*/

.achievements-section__title {
    margin: 0 0 30px;
    color: #fff;
    font-family: 'Rubik', Arial, Helvetica, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.achievements-panel {
    position: relative;
    isolation: isolate;

    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
    overflow: hidden;
    padding: 30px 10px 27px;

    /* Corner radius из Figma */
    border: none;
    border-radius: 24px;

    /* Fill: #FFFFFF, 10% */
    background: rgba(255, 255, 255, 0.10);

    /* Frost: 4 */
    -webkit-backdrop-filter: blur(4px) saturate(115%);
    backdrop-filter: blur(4px) saturate(115%);

    /*
     * Лёгкая стеклянная кромка.
     * Это не Stroke, а имитация преломления по краям.
     */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        0 14px 34px rgba(0, 0, 0, 0.12);
}
.achievements-panel::before {
    content: "";

    position: absolute;
    z-index: 0;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.045) 32%,
        rgba(255, 255, 255, 0) 68%
    );

    pointer-events: none;
}
.achievements-item {
    position: relative;
    z-index: 1;

    box-sizing: border-box;
    min-width: 0;
    padding: 0 24px;
}
.achievements-item:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 12px;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}
.achievements-item__value {
    margin-bottom: 24px;
    font-size: 60px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -2px;
    white-space: nowrap;
}
.achievements-item__value--lime {
    color: #C4DC62;
}

.achievements-item__value--blue {
    color: #668ABD;
}

.achievements-item__value--pink {
    color: #FFA5C7;
}

.achievements-item__value--mint {
    color: #81EEC0;
}
.achievements-item__text {
    max-width: 250px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.18;
}

/* =========================================================
   DESKTOP 1400-1920
========================================================= */
@media (min-width: 1400px) /*and (max-width: 1920px)*/ {
    .achievements-section { margin: clamp(80px, calc(17.008px + 4.374vw), 100.997px) 0; }
    .achievements-section > .inner-width { max-width: clamp(1143px, calc(243px + 62.5vw), 1443px); }
    .achievements-section .achievements-panel { padding: clamp(30px, calc(6.378px + 1.64vw), 37.874px) clamp(10px, calc(2.126px + 0.547vw), 12.625px) clamp(27px, calc(5.74px + 1.476vw), 34.087px); border-radius: clamp(24px, calc(5.102px + 1.312vw), 30.299px); backdrop-filter: blur(clamp(4px, calc(0.85px + 0.219vw), 5.05px)); box-shadow: inset 0 clamp(1px, calc(0.213px + 0.055vw), 1.262px) 0 rgba(255,255,255,.18), inset 0 0 0 clamp(1px, calc(0.213px + 0.055vw), 1.262px) rgba(255,255,255,.07), 0 clamp(14px, calc(2.976px + 0.766vw), 17.675px) clamp(34px, calc(7.228px + 1.859vw), 42.924px) rgba(0,0,0,.12); }
    .achievements-section .achievements-item { padding: 0 clamp(24px, calc(5.102px + 1.312vw), 30.299px); }
    .achievements-section .achievements-item:not(:first-child)::before { top: clamp(1px, calc(0.213px + 0.055vw), 1.262px); bottom: clamp(12px, calc(2.551px + 0.656vw), 15.15px); width: clamp(1px, calc(0.213px + 0.055vw), 1.262px); }
    .achievements-section .achievements-item__value { margin-bottom: clamp(24px, calc(5.102px + 1.312vw), 30.299px); font-size: clamp(60px, calc(12.756px + 3.281vw), 75.748px); letter-spacing: clamp(-2.525px, calc(-0.425px + -0.109vw), -2px); }
    .achievements-section .achievements-item__text { max-width: clamp(250px, calc(53.15px + 13.67vw), 315.617px); font-size: clamp(16px, calc(3.402px + 0.875vw), 20.199px); }
}
/* =========================================================
   LARGE DESKTOP 1921+
========================================================= */
@media (min-width: 1921px) and (min-device-width: 2200px) {
    .achievements-section {
        margin:
            clamp(
                100.997px,
                calc(-19.997192px + 6.301781vw),
                147px
            )
            0;
    }

    .achievements-section > .inner-width {
        width: 100%;

        max-width:
            clamp(
                1443px,
                calc(-292.890411px + 90.410959vw),
                2103px
            );

        margin-right: auto;
        margin-left: auto;
    }


    /* ---------- Стеклянная панель ---------- */

    .achievements-section .achievements-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        padding:
            clamp(
                37.874px,
                calc(-7.169726px + 2.346027vw),
                55px
            )
            clamp(
                12.625px,
                calc(-1.511986px + 0.736301vw),
                18px
            )
            clamp(
                34.087px,
                calc(-7.781795px + 2.180110vw),
                50px
            );

        border-radius:
            clamp(
                30.299px,
                calc(-5.738096px + 1.876984vw),
                44px
            );

        -webkit-backdrop-filter:
            blur(
                clamp(
                    5.05px,
                    calc(-0.081507px + 0.267260vw),
                    7px
                )
            )
            saturate(115%);

        backdrop-filter:
            blur(
                clamp(
                    5.05px,
                    calc(-0.081507px + 0.267260vw),
                    7px
                )
            )
            saturate(115%);

        box-shadow:
            inset 0
            clamp(
                1.262px,
                calc(-0.679370px + 0.101096vw),
                2px
            )
            0 rgba(255, 255, 255, 0.18),

            inset 0 0 0
            clamp(
                1.262px,
                calc(-0.679370px + 0.101096vw),
                2px
            )
            rgba(255, 255, 255, 0.07),

            0
            clamp(
                17.675px,
                calc(-4.220890px + 1.140411vw),
                26px
            )
            clamp(
                42.924px,
                calc(-9.900000px + 2.751250vw),
                63px
            )
            rgba(0, 0, 0, 0.12);
    }


    /* ---------- Элементы ---------- */

    .achievements-section .achievements-item {
        padding:
            0
            clamp(
                30.299px,
                calc(-21.518918px + 2.698904vw),
                50px
            );
    }

    .achievements-section .achievements-item:not(:first-child)::before {
        top:
            clamp(
                1.262px,
                calc(-0.679370px + 0.101096vw),
                2px
            );

        bottom:
            clamp(
                15.15px,
                calc(-2.868356px + 0.938356vw),
                22px
            );

        width:
            clamp(
                1.262px,
                calc(-0.679370px + 0.101096vw),
                2px
            );
    }


    /* ---------- Цифры ---------- */

    .achievements-section .achievements-item__value {
        margin-bottom:
            clamp(
                30.299px,
                calc(-5.738096px + 1.876984vw),
                44px
            );

        font-size:
            clamp(
                75.748px,
                calc(-14.339123px + 4.692055vw),
                110px
            );

        /*
         * Значение отрицательное и по мере роста экрана
         * становится более отрицательным: -2.525px -> -4px.
         */
        letter-spacing:
            clamp(
                -4px,
                calc(1.354452px - 0.202055vw),
                -2.525px
            );
    }


    /* ---------- Описание ---------- */

    .achievements-section .achievements-item__text {
        max-width:
            clamp(
                315.617px,
                calc(-64.205192px + 19.782397vw),
                460px
            );

        font-size:
            clamp(
                20.199px,
                calc(-2.948836px + 1.205616vw),
                29px
            );
    }
}

/* =========================================================
   TABLET LANDSCAPE 1024-1278
========================================================= */
@media (min-width: 1024px) and (max-width: 1278px) {
    .achievements-section {
        box-sizing: border-box;
        margin: 0;
        
        background: transparent;
    }

    .achievements-section > .inner-width {
        width: auto;
        max-width: none;
        margin-right: clamp(42px, 6vw, 76px);
        margin-left: clamp(42px, 6vw, 76px);
    }


    /* ---------- Заголовок ---------- */

    .achievements-section .page-section__title.center {
        display: block;
        position: static;
        float: none;

        width: 100%;
        max-width: none;

        margin: 0 0 32px;
        padding: 0;

        transform: none;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: clamp(36px, 3.6vw, 46px);
        font-weight: 700;
        line-height: 1.15;

        text-align: center !important;

        color: #fff;
        background: none;
        -webkit-text-fill-color: #fff;
    }


    /* ---------- Панель ---------- */

    .achievements-section .achievements-panel {
        box-sizing: border-box;

        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));

        width: 100%;

        padding: 26px 8px 24px;

        border-radius: 22px;
    }


    /* ---------- Элементы ---------- */

    .achievements-section .achievements-item {
        box-sizing: border-box;
        min-width: 0;

        padding-right: clamp(16px, 2vw, 24px);
        padding-left: clamp(16px, 2vw, 24px);
    }


    /* ---------- Цифры ---------- */

    .achievements-section .achievements-item__value {
        margin-bottom: 22px;

        font-size: clamp(44px, 4.5vw, 54px);
        line-height: 1;
        letter-spacing: -1.5px;
    }


    /* ---------- Описание ---------- */

    .achievements-section .achievements-item__text {
        max-width: 230px;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: 14px;
        line-height: 1.25;
    }
}

/* =========================================================
   TABLET 768-1023
========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
    .achievements-section {
        box-sizing: border-box;
        margin: 0;
        padding: 46px 0 52px;
        background: transparent;
    }

    .achievements-section > .inner-width {
        width: auto;
        max-width: none;

        margin-right: clamp(28px, 4.5vw, 44px);
        margin-left: clamp(28px, 4.5vw, 44px);
    }


    /* ---------- Заголовок ---------- */

    .achievements-section .page-section__title.center {
        display: block;
        position: static;
        float: none;

        width: 100%;
        max-width: none;

        margin: 0 auto 30px;
        padding: 0;

        transform: none;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: clamp(32px, 4.4vw, 40px);
        font-weight: 700;
        line-height: 1.15;

        text-align: center !important;

        color: #fff;
        background: none;
        -webkit-text-fill-color: #fff;
    }


    /* =====================================================
       Панель 2 × 2
       ===================================================== */

    .achievements-section .achievements-panel {
        box-sizing: border-box;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;

        margin: 0;
        padding: 10px 18px;

        overflow: hidden;

        border-radius: 20px;
    }


    /* =====================================================
       Сбрасываем desktop-разделители,
       дальше используем обычные border
       ===================================================== */

    .achievements-section .achievements-item::before,
    .achievements-section .achievements-item::after {
        display: none;
        content: none;
    }


    /* ---------- Один элемент ---------- */

    .achievements-section .achievements-item {
        box-sizing: border-box;
        min-width: 0;

        padding: 28px 24px;

        border: 0;
    }


    /*
     * Вертикальный разделитель:
     *
     * 400+     | 32 года
     * -----------------
     * 10 000   | 14 лет
     */
    .achievements-section .achievements-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, .20);
    }


    /* Горизонтальный разделитель между рядами */

    .achievements-section .achievements-item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, .20);
    }


    /* ---------- Цифры ---------- */

    .achievements-section .achievements-item__value {
        margin: 0 0 20px;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: clamp(46px, 6vw, 56px);
        font-weight: 400;
        line-height: 1;
        letter-spacing: -1.5px;

        white-space: nowrap;
    }


    /* ---------- Описание ---------- */

    .achievements-section .achievements-item__text {
        width: 100%;
        max-width: 290px;

        margin: 0;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.3;

        color: rgba(255, 255, 255, .94);
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 767px) {
    .achievements-section {
        box-sizing: border-box;
        margin: 0;
        padding: 0px 0;
        background: transparent;
    }

    .achievements-section > .inner-width {
        width: auto;
        max-width: none;
        margin-right: 12px;
        margin-left: 12px;
    }


    /* ---------- Заголовок ---------- */

    .achievements-section .page-section__title.center {
        display: block;
        position: static;
        float: none;
        clear: both;

        width: 100%;
        max-width: none;

        margin: 0 0 24px;
        padding: 0;

        transform: none;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -.3px;

        text-align: center !important;

        color: #fff;
        background: none;

        -webkit-background-clip: border-box;
        background-clip: border-box;
        -webkit-text-fill-color: #fff;
    }


    /* =====================================================
       Убираем desktop-стекло и превращаем панель
       в обычный вертикальный список
       ===================================================== */

    .achievements-section .achievements-panel {
        display: flex;
        flex-direction: column;

        width: 100%;
        margin: 0;
        padding: 15px 14px 15px 14px;

        overflow: visible;

        border: none !important;
        border-radius: 0 !important;

        background: none !important;
        background-color: transparent !important;
        background-image: none !important;

        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;

        box-shadow: none !important;
    }

    /*
     * У desktop-панели есть декоративный стеклянный слой.
     * На мобильном он не нужен.
     */
    .achievements-section .achievements-panel::before {
        content: none !important;
        display: none !important;
        background: none !important;
    }


    /* =====================================================
       Отдельное достижение
       ===================================================== */

    .achievements-section .achievements-item {
        position: relative;

        display: flex;

        width: 100%;

        margin: 0;
        padding: 0 20px 24px;

        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    /*
     * Сбрасываем вертикальные разделители desktop/tablet.
     */
    .achievements-section .achievements-item::before,
    .achievements-section .achievements-item:nth-child(even)::before {
        display: none;
        content: none;
    }


    /* ---------- Разделители ---------- */

    .achievements-section .achievements-item::after {
        content: "";

        position: static;

        display: block;

        width: 100%;
        height: 1px;

        margin: 24px 0 0;

        background: rgba(255, 255, 255, .24);
    }

    .achievements-section .achievements-item:last-child {
        padding-bottom: 0;
    }

    .achievements-section .achievements-item:last-child::after {
        display: none;
        content: none;
    }


    /* ---------- Большие цифры ---------- */

    .achievements-section .achievements-item__value {
        width: 100%;

        margin: 0 0 20px;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: 56px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: -1.5px;

        text-align: center;

        white-space: nowrap;
    }


    /* Цвета оставляем такими же, как на desktop */

    .achievements-section .achievements-item__value--lime {
        color: #c4e846;
    }

    .achievements-section .achievements-item__value--blue {
        color: #668abd;
    }

    .achievements-section .achievements-item__value--pink {
        color: #f49abb;
    }

    .achievements-section .achievements-item__value--mint {
        color: #70e8bc;
    }


    /* ---------- Описание ---------- */

    .achievements-section .achievements-item__text {
        width: 100%;
        max-width: 240px;

        margin: 0 auto;

        font-family: 'Manrope', 'Rubik', Arial, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.25;

        text-align: center;

        color: rgba(255, 255, 255, .94);
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 374px) {
    .achievements-section > .inner-width {
        margin-right: 10px;
        margin-left: 10px;
    }

    .achievements-section .page-section__title.center {
        margin-bottom: 28px;
        font-size: 28px;
    }

    .achievements-section .achievements-item {
        padding-right: 16px;
        padding-bottom: 28px;
        padding-left: 16px;
    }

    .achievements-section .achievements-item__value {
        margin-bottom: 20px;
        font-size: 50px;
    }

    .achievements-section .achievements-item__text {
        max-width: 255px;
        font-size: 14px;
        line-height: 1.3;
    }

    .achievements-section .achievements-item::after {
        margin-top: 26px;
    }
}