/* ==========================================================================
   GF Features - Rounded widget ("Why Choose Us")
   ========================================================================== */

.gf-why {
    --gf-why-active-from: #2b2668;
    --gf-why-active-to: #554bce;
}

/* Header */
.gf-why__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.gf-why__title {
    margin: 0;
    font-family: var(--gf-font-alt);
    font-size: var(--gf-h2);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.02em;
    color: var(--gf-navy);
}

.gf-why__subtitle {
    max-width: 1472px;
    margin: 0;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: var(--gf-black);
}

/* Body (Figma 527:13854): ring (701) + side (1022) of 1776, space between */
.gf-why__body {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* ---------- Features ring ---------- */
.gf-why__circle {
    position: relative;
    flex: 0 0 40%;
    aspect-ratio: 701 / 617.09;
    container-type: inline-size;
}

.gf-why__ring {
    position: absolute;
    top: 2.69%;
    left: 8.35%;
    width: 85.66%;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    animation: gf-spin 120s linear infinite;
    transform-origin: center;

    background: repeating-conic-gradient(var(--gf-navy) 12deg 16deg, transparent 12deg 18deg);

    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}

.gf-why__panel-text > :last-child,
.gf-why__panel-text p:last-child {
    margin-bottom: 0;
}

@keyframes gf-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gf-why__panels {
    position: absolute;
    top: 51.35%;
    left: 51.19%;
    display: grid;
    width: 55.24%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gf-why__panel {
    grid-area: 1 / 1;
    align-self: center;
    opacity: 1;
    transition: opacity .35s ease, transform .35s ease;
}

.gf-why__panel[hidden] {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
}

.gf-why__panel-title {
    margin: 0 0 15px;
    padding-bottom: 0;
    font-family: var(--gf-font-alt);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--gf-black);
}

.gf-why__panel-text {
    max-width: 305px;
    margin-inline: auto;
    font-family: var(--gf-font-body);
}

.gf-why__icon {
    position: absolute;
    top: var(--y);
    left: var(--x);
    display: grid;
    place-items: center;
    width: 15.84%;
    aspect-ratio: 1;
    padding: 0;
    background: var(--gf-white);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3.761px 15.889px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gf-why__icon:hover,
.gf-why__icon:focus {
    background: var(--gf-white);
    transform: scale(1.05);
}

.gf-why__icon:focus-visible {
    outline: 2px solid var(--gf-red);
    outline-offset: 3px;
}

.gf-why__icon.is-active {
    background: linear-gradient(180deg, var(--gf-why-active-from) 0%, var(--gf-why-active-to) 100%);
    box-shadow: none;
}

.gf-why__icon-img {
    grid-area: 1 / 1;
    display: block;
    width: 45.67%;
    height: auto;
    pointer-events: none;
}

.gf-why__icon-img--active,
.gf-why__icon.is-active .gf-why__icon-img:not(.gf-why__icon-img--active) {
    display: none;
}

.gf-why__icon.is-active .gf-why__icon-img--active {
    display: block;
}

/* ---------- Side: stats + promo ---------- */
.gf-why__side {
    flex: 0 0 57.55%;
    min-width: 0;
    margin-left: auto;
}

.gf-why__info {
    margin-top: 30px;
    text-align: right;
}

.gf-why__stats {
    display: grid;
    grid-template-columns: minmax(0, 192fr) minmax(0, 205fr);
    gap: 45px 70px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gf-why__stat {
    display: flex;
    flex-direction: column;
}

.gf-why__stat-number {
    font-family: var(--gf-font-alt);
    font-size: var(--gf-h4);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -.02em;
    color: var(--gf-navy);
    white-space: nowrap;
}

.gf-why__stat-label {
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    font-weight: 400;
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: var(--gf-black);
}

.gf-why__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
    gap: 20px;
    margin-top: 30px;
}

.gf-why__buttons .gf-btn-arrow {
    min-width: 200px;
}

.gf-why__buttons .gf-btn-arrow:not(.gf-btn-arrow--plain) {
    min-width: 209px;
    padding-left: 15px;
}

/* Promo card (shape 1022 × 207, vehicle overflows below) */
.gf-why__promo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1022 / 207;
    margin-top: 30px;
    container-type: inline-size;
    color: var(--gf-white);
    text-decoration: none;
}

.gf-why__promo-shape.gf-why__promo-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
}

.gf-why__promo-mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask: url("../../img/why/promo-mask.svg") no-repeat 0 0 / 100% 100%;
    mask: url("../../img/why/promo-mask.svg") no-repeat 0 0 / 100% 100%;
}

.gf-why__promo-watermark.gf-why__promo-watermark {
    position: absolute;
    top: -105.3%;
    left: 40.31%;
    width: 70.45%;
    max-width: none;
    height: auto;
    opacity: .1;
}

.gf-why__promo-content {
    position: absolute;
    top: 19.81%;
    left: 12.18%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 47.26%;
}

.gf-why__promo-title {
    font-family: var(--gf-font-alt);
    font-size: clamp(18px, 2.35cqw, 24px);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -.02em;
    color: var(--gf-white);
}

.gf-why__promo-text {
    max-width: 462px;
    font-family: var(--gf-font-body);
    font-size: clamp(13px, 1.57cqw, 16px);
    font-weight: 400;
    line-height: 1.94;
    letter-spacing: -.02em;
    color: var(--gf-white);
}

.gf-why__promo-car.gf-why__promo-car {
    position: absolute;
    top: 13.04%;
    left: 56.26%;
    z-index: 2;
    width: 49.41%;
    max-width: none;
    height: auto;
    clip-path: inset(-30% 11.49% -30% -30%);
    transition: transform .4s ease;
}

a.gf-why__promo:hover .gf-why__promo-car.gf-why__promo-car {
    transform: translateX(-6px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
    .gf-why__stats {
        gap: 36px 40px;
    }

    .gf-why__info {
        width: 380px;
        margin-right: 6%;
    }

    .gf-why__promo {
        margin-top: 120px;
    }
}

@media (max-width: 1199px) {
    .gf-why__body {
        flex-direction: column;
        align-items: center;
    }

    .gf-why__circle {
        flex: none;
        width: min(754px, 100%);
    }

    .gf-why__side {
        flex: none;
        width: 100%;
        margin: 50px 0 0;
    }

    .gf-why__info {
        width: auto;
        max-width: 520px;
        margin: 0 auto;
    }

    .gf-why__buttons {
        justify-content: center;
        margin-top: 40px;
    }

    .gf-why__stats {
        text-align: center;
    }

    .gf-why__promo {
        width: 100%;
        margin-top: 60px;
    }
}

@media (max-width: 767px) {
    .gf-why__head {
        margin-bottom: 36px;
    }

    /* Ring becomes an icon row + content card */
    .gf-why__circle {
        display: flex;
        flex-direction: column-reverse;
        gap: 24px;
        aspect-ratio: auto;
    }

    .gf-why__ring {
        display: none;
    }

    .gf-why__icons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }

    .gf-why__icon {
        position: static;
        flex: 0 1 auto;
        width: min(56px, calc((100% - 40px) / 6));
    }

    .gf-why__panels {
        position: static;
        width: 100%;
        padding: 28px 20px;
        border: .94px solid var(--gf-navy);
        border-radius: 20px;
        transform: none;
    }

    .gf-why__panel-title {
        margin-bottom: 12px;
        font-size: var(--gf-h4);
    }

    .gf-why__panel-text {
        font-size: var(--gf-body);
        line-height: var(--gf-body-lh);
        max-width: auto;
    }

    .gf-why__stats {
        gap: 24px 20px;
    }

    .gf-why__buttons > a {
        flex: 1 1 100%;
    }

    .gf-why__side {
        margin-top: 0;
    }
    /* Promo: simple rounded card, vehicle below the text */
    .gf-why__promo {
        aspect-ratio: auto;
        margin-bottom: 0;
        padding: 28px 20px 0;
        overflow: hidden;
        background-color: #e73838;
        border-radius: 20px;
    }

    .gf-why__promo-shape.gf-why__promo-shape {
        display: none;
    }

    .gf-why__promo-mask {
        -webkit-mask: none;
        mask: none;
    }

    .gf-why__promo-watermark.gf-why__promo-watermark {
        top: -40%;
        left: 30%;
        width: 110%;
    }

    .gf-why__promo-content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
    }

    .gf-why__promo-title {
        font-size: var(--gf-h4);
    }

    .gf-why__promo-text {
        font-size: var(--gf-body);
        line-height: var(--gf-body-lh);
    }

    .gf-why__promo-car.gf-why__promo-car {
        position: relative;
        top: auto;
        left: auto;
        display: block;
        width: 100%;
        margin-top: 16px;
        clip-path: none;
    }
}
