:root {
    --mb-base: 90px;
    --fs-title: 36px;
    
    /*для слайдера*/
    --mw-slider: 1040px;
    --h-slider: 326px;
}

/*переменные для нумератора*/
:root {
    --nl-circle-size: 75px;
    --nl-gap: 20px;
    --nl-bg: var(--NoElectricBlue);
    --nl-color: var(--SuperWhite);
    --nl-glow: rgba(0, 123, 255, 0.5);
    --nl-glow-size: 10px;
    --nl-glow-spread: 2px;
    --nl-transition: 0.35s ease;
    --nl-border-size: 4px;
    --nl-border-color: var(--NoElectricBlue);
    --main-family: 'Montserrat', sans-serif;
}

section {
    margin-bottom: var(--mb-base);
}

.title {
    font-size: var(--fs-title);
    line-height: 38px;
    font-weight: 600;
}

.about__nav-link {
    width: 199px;
    height: 60px;
    background-color: var(--SaintGrey);
    color: var(--MissPale);
    font-size: 16px;
    line-height: 18px;
}

.nav-pills .about__nav-link:hover {
    color: var(--SuperWhite);
    background-color: var(--NoElectricBlue);
}

.nav-pills .about__nav-link.active {
    background-color: var(--NoElectricBlue);
}

/*настройки слайдера*/
.about .tab-content .tab-pane:first-child .wrapper {
    margin-bottom: var(--mb-base);
}

.about__slider-item {
    width: 245px;
    height: 326px;
    padding: var(--padding-base);
    border-radius: var(--radius-base);
    color: var(--SuperWhite);
    font-weight: 600;
    line-height: 18px;
}

/* Сброс стандартной нумерации */
.nl-list {
    list-style: none;
    counter-reset: nl-item;
    padding-left: 0;
    margin: 30px;
    font-size: 18px;
    line-height: 20px;
    font-family: var(--main-family);
}

/* Каждый пункт — flex, чтобы кружок выравнивался с текстом */
.nl-list li {
    max-width: 327px;
    counter-increment: nl-item;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nl-gap);
    position: relative;
}

/*последний элемент списка*/
.nl-list li:last-child {
    max-width: 100%;
}

/* Кнопка-цифра (кружок) */
.nl-list li::before {
    content: counters(nl-item, ".", decimal-leading-zero);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: var(--nl-circle-size);
    height: var(--nl-circle-size);
    max-width: 100%;
    border-radius: 50%;
    background: var(--nl-bg);
    color: var(--nl-color);
    font-size: 24px;
    font-weight: 500;
    transition: all var(--nl-transition);
}

/* Ховер: лёгкое масштабирование кружка и свечения */
.nl-list li:hover::before {
    background: transparent;
    box-shadow: 0 0 var(--nl-glow-size) var(--nl-glow-spread) var(--nl-glow);
    color: var(--nl-bg);
}

@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }
    
    .nav.nav-pills {
        width: 100%;
        justify-content: space-between;
        margin-right: 0 !important;
        margin-bottom: 30px;
    }
    
    .tab-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    :root {
        --mb-base: 40px;
        --padding-base: 20px;
        --fs-title: 30px;
    }
    
    .nav.nav-pills {
        flex-direction: column !important;
    }
    
    .about__nav-link {
        width: 100%;
    }
    
    .about .slider {
        margin-right: -20px;
    }
    
    .nl-list li {
        max-width: 100%;
    }
}