/* Ula Group — Statistics bar (Figma node 78:613) */

.stats {
    position: relative;
    isolation: isolate;
    background: #5a0973;
    color: #ffffff;
    overflow: hidden;
}

.stats__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.21;
    pointer-events: none;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        repeating-linear-gradient(
            -32deg,
            rgba(255, 255, 255, 0.05) 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 18px
        );
}

.stats__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-height: 256px;
    max-width: 1802px;
    margin: 0 auto;
    padding: 0 24px;
}

.stats__intro {
    flex: 0 0 26.14%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 32px 29px 32px 0;
}

html[dir="rtl"] .stats__intro {
    padding: 32px 0 32px 29px;
}

.stats__intro-text {
    max-width: min(200px, 100%);
    font-family: "Granadia-Book", "Inter", Helvetica, Arial, sans-serif;
    font-size: clamp(17px, calc(100vw * 19 / 1802), 19px);
    font-weight: 400;
    line-height: 31px;
    letter-spacing: -0.38px;
    color: #ffffff;
    text-align: right;
    word-break: break-word;
}

html[dir="rtl"] .stats__intro-text {
    text-align: left;
}

.stats__divider {
    flex: 0 0 1px;
    align-self: stretch;
    margin: 28px 0;
    background: rgba(255, 255, 255, 0.35);
}

.stats__grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    padding: 32px 0 32px 40px;
}

html[dir="rtl"] .stats__grid {
    padding: 32px 40px 32px 0;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.stats__value {
    min-height: 80px;
}

.stats__counter {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    min-height: 80px;
    padding: 0 4px;
}

.stats__counter-window {
    display: none;
    height: 80px;
    overflow: hidden;
    position: relative;
}

.stats__counter.is-ready .stats__counter-window {
    display: block;
}

.stats__counter.is-ready .stats__counter-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stats__counter-track {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.stats__counter-item {
    display: block;
    flex: 0 0 auto;
    min-height: 80px;
    height: 80px;
    margin: 0;
    font-family: "Granadia-Bold", "Granadia-Book", "Jost", Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 3.55vw, 3.5rem);
    font-weight: 600;
    line-height: 1.25;
    color: #ebebeb;
    white-space: nowrap;
}

.stats__counter-item:not(:last-child) {
    margin-bottom: 8px;
}

.stats__counter-fallback {
    font-family: "Granadia-Bold", "Granadia-Book", "Jost", Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 3.55vw, 4rem);
    font-weight: 600;
    line-height: 1.25;
    color: #ebebeb;
    white-space: nowrap;
}

.stats__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stats__icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.stats__icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.stats__label {
    font-family: "Granadia-Book", "Inter", Helvetica, Arial, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.875rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
    color: #F9D369;
}

@media (max-width: 991.98px) {
    .stats__inner {
        flex-direction: column;
        min-height: auto;
        padding: 32px 20px;
    }

    .stats__intro {
        flex: none;
        justify-content: center;
        padding: 0 0 20px;
    }

    html[dir="rtl"] .stats__intro {
        justify-content: center;
        padding: 0 0 20px;
    }

    .stats__intro-text {
        max-width: min(200px, 100%);
        margin: 0 auto;
        text-align: center;
    }

    html[dir="rtl"] .stats__intro-text {
        text-align: center;
    }

    .stats__divider {
        width: 100%;
        height: 1px;
        margin: 0 0 24px;
    }

    .stats__grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 28px;
    }

    .stats__item,
    html[dir="rtl"] .stats__item {
        align-items: center;
        text-align: center;
    }

    .stats__counter,
    .stats__counter-track,
    .stats__counter-item,
    .stats__counter-fallback {
        white-space: normal;
    }

    .stats__counter-item,
    .stats__counter-fallback {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats__counter-track {
        transition: none !important;
        transform: none !important;
    }

    .stats__counter-window {
        display: none !important;
    }

    .stats__counter.is-ready .stats__counter-fallback,
    .stats__counter-fallback {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
    }
}
