/* Ізольовані стилі блоку "Наші досягнення" */
#stats.stats-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background-color: var(--section-bg-unified);
}

#stats .stats-header-main {
    text-align: center;
    margin-bottom: clamp(40px, 7vw, 60px);
}

#stats .stats-title-main {
    font-family: 'Nunito', Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f4f1ea;
    margin-bottom: 15px;
}

#stats .stats-title-main::after {
    content: '';
    display: block;
    width: 70px; height: 4px;
    background: var(--color-gold);
    margin: 15px auto 0;
}

#stats .stats-subtitle-main {
    font-family: 'Lato', Arial, sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(244, 241, 234, 0.75);
    margin-bottom: 0;
}

#stats .stats-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: clamp(20px, 4vw, 40px);
    border: 1px solid rgba(179, 135, 40, 0.15);
    padding: clamp(25px, 4vw, 50px) clamp(15px, 3vw, 30px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    width: 100%;
}

#stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(10px, 2vw, 25px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    align-items: start;
}

#stats .stat-item {
    position: relative;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
}

#stats .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(clamp(10px, 2vw, 25px) / -2);
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(179, 135, 40, 0.2), transparent);
}

#stats .stat-number {
    display: block;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem); 
    font-weight: 900;
    color: #f4f1ea;
    margin-bottom: 12px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(179, 135, 40, 0.2);
}

#stats .stat-number::after {
    content: '+';
    font-size: 0.6em;
    color: #b38728;
    margin-left: 2px;
    vertical-align: middle;
}

#stats .stat-label {
    font-family: 'Lato', Arial, sans-serif;
    font-size: clamp(0.72rem, 1.25vw, 0.9rem);
    font-weight: 700;
    color: rgba(244, 241, 234, 0.66);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    max-width: 160px;
    margin: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (min-width: 1024px) {
    #stats .stat-item {
        padding-inline: clamp(8px, 1vw, 16px);
        min-height: clamp(146px, 11vw, 178px);
        justify-content: flex-start;
    }

    #stats .stat-number {
        margin-bottom: 14px;
    }

    #stats .stat-label {
        max-width: min(100%, 22ch);
        min-height: 4.05em;
        margin-inline: auto;
        font-size: clamp(0.86rem, 0.85vw, 1rem);
        line-height: 1.35;
        letter-spacing: 0.03em;
        text-wrap: balance;
        display: block;
    }
}

@media (max-width: 1100px) {
    #stats .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
    #stats .stat-item:nth-child(3)::after { display: none; }
}

@media (max-width: 768px) {
    #stats .stats-dashboard {
        padding: 22px 16px;
    }

    #stats .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    #stats .stat-item {
        padding: 10px 10px 14px;
    }

    #stats .stat-label {
        max-width: min(100%, 28ch);
        margin: 0 auto;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
        text-wrap: pretty;
    }

    #stats .stat-item::after { display: none !important; }
}

@media (max-width: 480px) {
    #stats .stats-header-main {
        margin-bottom: 35px;
    }

    #stats .stats-title-main {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    #stats .stats-dashboard {
        border-radius: 18px;
        padding: 18px 12px;
    }

    #stats .stats-grid {
        grid-template-columns: 1fr; 
        gap: 16px;
    }

    #stats .stat-item { 
        border-bottom: 1px solid rgba(179, 135, 40, 0.1); 
        padding: 12px 8px 18px;
    }

    #stats .stat-item:last-child { 
        border-bottom: none; 
    }

    #stats .stat-number {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 10px;
    }

    #stats .stat-label { 
        max-width: min(100%, 30ch);
        margin: 0 auto;
        line-height: 1.45;
        font-size: clamp(0.82rem, 3.4vw, 0.95rem);
        letter-spacing: 0.02em;
        padding: 0 4px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
        text-wrap: pretty;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    #stats.stats-section {
        padding-top: 70px;
        padding-bottom: 54px;
    }
}

@media (min-width: 1440px) {
    #stats.stats-section {
        padding-top: 82px;
        padding-bottom: 62px;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) and (max-height: 820px) {
    #stats.stats-section {
        padding-top: 64px;
        padding-bottom: 46px;
    }

    #stats .stats-header-main {
        margin-bottom: 46px;
    }
}