.spec-first-block-wrapper {
    position: relative;
    z-index: 1;
}

.spec-first-block-wrapper::before {
    content: '';
    position: absolute; /* Абсолютное позиционирование */
    background-image: url('../../img/cabinet/backgrond-top.png');
    background-size: 100% 100%;
    position: absolute;
    top: -100px; /* Выход за пределы верхнего отступа */
    left: 0;
    right: 0;
    bottom: -50px;
    z-index: -1;
}

.spec-first-block {
    font-family: 'Montserrat Alternates';
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 100px;
}

.spec-photo-container {
    width: 20%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spec-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 1px solid #eee;
    margin-left: 30px;
    box-shadow: 0px 7px 8.4px rgba(0, 0, 0, 0.39);
    object-position: 0px -1px;
}

.spec-text-column {
    width: 40%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 30px;
    padding: 20px;
    box-sizing: border-box;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 34px;
    color: rgba(91, 40, 18, 0.5);
}

.inf-text-item {
    padding: 15px 20px;
    margin: 8px 0;
}

.inf-text-item  h1 {
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 34px;
    color: rgba(91, 40, 18, 0.5);
}

.spec-icons-column {
    width: 30%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.inf-icon-item {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    font-size: 18px;
    color: #555;
}

/* Адаптив для планшетов */
@media (max-width: 900px) {
    .spec-photo-container {
        width: 100%;
        order: 1;
    }
    .spec-text-column {
        width: 100%;
        order: 2;
        text-align: center;
    }

    .spec-icons-column {
        width: 100%;
        justify-content: center;
        min-height: auto;
        order: 3;
        padding: 15px 0;
    }

    .inf-icon-item {
        margin: 15px 15px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .spec-photo-container,
    .spec-text-column,
    .spec-icons-column {
        width: 100%;
    }

    .spec-photo-container {
        min-height: 200px;
        order: 1;
    }

    .spec-text-column {
        order: 3;
        padding: 20px 15px;
        margin-left: 0;
    }

    .spec-icons-column {
        order: 2;
        justify-content: space-evenly;
        padding: 20px 0;
    }

    .spec-photo {
        width: 200px;
        height: 200px;
        margin-left: 0;
    }
}

/* Второй блок с текстом */
.spec-second-block {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    touch-action: pan-y;
}

/* Внешний контейнер для градиента */
.spec-second-container {
    max-width: 1200px;
    width: 100%;
    height: 350px;
    position: relative;
    background: linear-gradient(180deg, #FFB800 0%, #FFE8AC 100%);
    border-radius: 25px;
    padding: 5px; /* Толщина градиентной "рамки" */
    box-sizing: border-box;
}

/* Внутренний контейнер для контента */
.spec-second-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 25px; /* 26.9792 - 4.63 */
    padding: 10px 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Контейнер для текста с прокруткой */
.spec-second-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media (max-width: 450px) {
    .spec-second-content {
        width: 90%;
        padding-left: 10px;
    }
}
.spec-second-text {
    width: 100%;
    height: auto;
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 26px;
    text-align: justify;
    color: rgba(91, 40, 18, 0.5);
    position: absolute;
    top: 0;
    left: 0;
}

/* Кастомный скроллбар */
.custom-scrollbar {
    position: absolute;
    top: 30px;
    bottom: 30px;
    right: 15px; /* 10px (из требования) + 5px (доп. сдвиг) */
    width: 11.56px;
    z-index: 10;
}

/* Дорожка скроллбара */
.scroll-track {
    width: 12px; /* Толщина полосы */
    background: #D9D9D9;
    box-shadow: 0px 1.51px 1.51px 0px #0000005E inset;
    border-radius: 7.15889px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

/* Бегунок */
.scroll-thumb {
    width: 15px; /* Чуть шире полосы (11.56px -> 15px) */
    height: 60px; /* Достаточная высота для удобного захвата */
    background: #FFFFFF;
    box-shadow: 0px 3px 3px 0px #00000040;
    border-radius: 7px;
    position: absolute;
    left: -2px; /* (15 - 11.56)/2 ≈ 1.72px -> округлили до 2px */
    cursor: pointer;
    z-index: 20;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .spec-second-container {
        height: 300px;
    }

  .spec-second-inner {
        padding: 20px;
  }

  .scroll-thumb {
        min-height: 40px; /* Меньший минимум для мобильных */
  }

  .custom-scrollbar {
        right: 10px; /* Уменьшаем отступ */
  }
}


/* Третий блок с календарем */
.spec-third-block {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: 20px 0;
}

  .spec-third-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
  }

  .spec-third-container {
    display: flex;
    width: 100%;
    gap: 20px;
  }

/* Общие стили для всех блоков */

/* Общие стили для всех блоков */
.spec-third-specialists-wrapper,
.spec-third-schedule-wrapper,
.spec-third-calendar-wrapper {
    display: flex;
    flex-direction: column;
}

.spec-third-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.spec-specialists-block {
    flex: 1 1 50%; /* Базовый размер 50% */
    min-width: 0; /* Позволяет сжиматься */
}

.spec-specialists-title {
    font-family: Montserrat Alternates;
    font-weight: 400;
    font-size: 24px;
    padding: 12px 16px;
    text-align: center;
    color: #5B2812;
}

.spec-specialists-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, #FFB800 0%, #FFE8AC 100%);
    border-radius: 25px;
    padding: 5px;
    box-sizing: border-box;
}

.spec-specialists-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 10px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.spec-specialists-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.spec-specialists-text {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    font-family: Montserrat Alternates;
    font-weight: 400;
    font-size: 24px;
}

.spec-specialist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    transition: all 0.2s;
}

.spec-specialist-dot {
    width: 25px;
    height: 25px;
    background: linear-gradient(180deg, #FFE294 0%, #C0AA6F 100%);
    box-shadow: 0px 3.59722px 7.19444px rgba(46, 40, 26, 0.25),
                inset 0px -1.19907px 1.19907px #B7A26A,
                inset 0px 1.19907px 1.19907px #FFEA99;
    border-radius: 50%;
    flex-shrink: 0;
}

.spec-specialist-name {
    font-size: 16px;
    color: #444;
}

/* Кастомный скроллбар */
.custom-scrollbar {
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 10px;
    width: 11.56px;
    z-index: 10;
}

.scroll-track {
    width: 12px;
    background: #D9D9D9;
    box-shadow: 0px 1.51px 1.51px 0px #0000005E inset;
    border-radius: 7px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

.scroll-thumb {
    width: 15px;
    height: 60px;
    background: #FFFFFF;
    box-shadow: 0px 3px 3px 0px #00000040;
    border-radius: 7px;
    position: absolute;
    left: -2px;
    cursor: pointer;
    z-index: 20;
}

  /* Стили для блока расписания */
.spec-third-schedule-wrapper {
    flex: 1 1 22%; /* Базовый размер 20% */
    width: 100%;
    max-width: 400px; /* или нужная вам ширина */
    min-width: 300px; /* Минимальная ширина */
    margin: 0 auto;
    overflow: hidden;
}

.spec-third-title {
    padding: 12px 16px;
    text-align: center;
    font-family: Montserrat Alternates;
    font-weight: 400;
    font-size: 24px;
    color: #5B2812;
}

.spec-third-schedule {
    padding: 0;
}

.spec-third-schedule-container {
    max-height: 350px; /* Фиксированная высота для появления прокрутки */
    overflow-y: auto; /* Вертикальная прокрутка */
    padding: 8px;
    text-align: center;
}

.spec-schedule-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 30px; /* Отступ для кружков */
}

.spec-schedule-time {
    font-family: 'Montserrat Alternates';
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    position: relative;
}

.spec-schedule-type {
    display: inline-block;
    font-family: 'Montserrat Alternates';
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #333;
    position: relative;
    padding-left: 20px; /* Отступ для кружка формата */
}

/* Общие стили для кружков */
.spec-schedule-time:before,
.spec-schedule-type:before {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 13.88px;
    height: 13.88px;
    border-radius: 50%;
    box-shadow: 1.1328e-16px 1.85px 3.7px rgba(51, 51, 51, 0.57),
              inset -4.50602e-17px -0.735889px 0.735889px #B3B3B3,
              inset 4.50602e-17px 0.735889px 0.735889px #FFFFFF;
}

/* Кружок для времени (дублирует формат) */
.spec-schedule-time:before {
    left: -22px;
}

/* Очный формат */
.spec-schedule-item .offline ~ .spec-schedule-time:before,
.spec-schedule-type.offline:before {
    background: linear-gradient(180deg, #E2C884 0%, #D5B563 100%);
}

/* Онлайн формат */
.spec-schedule-item .online ~ .spec-schedule-time:before,
.spec-schedule-type.online:before {
    background: linear-gradient(180deg, #FFFFFF 0%, #C2C2C2 100%);
}

/* Гибридный формат */
.spec-schedule-item .hybrid ~ .spec-schedule-time:before,
.spec-schedule-type.hybrid:before {
    background: linear-gradient(90deg, #E2C885 0%, #D5B563 50%, #FFFFFF 50%, #C2C2C2 100%);
}

.spec-schedule-notes {
    font-family: 'Montserrat Alternates';
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    color: #5B2812;
    padding-top: 6px;
    border-top: 1px dashed #e0e0e0;
    margin-top: 6px;
    margin-left: -30px;
    padding-left: 30px;
}

.spec-schedule-empty {
    font-family: 'Montserrat Alternates';
    text-align: center;
    padding: 20px;
    color: #5B2812;
    font-style: italic;
}

/* Стили для скроллбара */
.spec-third-schedule-container::-webkit-scrollbar {
    width: 6px;
}

.spec-third-schedule-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.spec-third-schedule-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.spec-third-schedule-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

  /* Стили для календаря */
.spec-third-calendar-wrapper {
    flex: 1 1 30%; /* Базовый размер 30% */
    min-width: 280px; /* Минимальная ширина */
}

.spec-third-calendar {
    height: 400px;
    padding: 20px;
    box-sizing: border-box;
}

/* Кастомный скроллбар для списка специалистов */
.custom-scrollbar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    width: 11.56px;
    z-index: 10;
}

  /* Дорожка скроллбара */
.scroll-track {
    width: 12px;
    background: #D9D9D9;
    box-shadow: 0px 1.51px 1.51px 0px #0000005E inset;
    border-radius: 7.15889px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

  /* Бегунок */
.scroll-thumb {
    width: 15px;
    height: 60px;
    background: #FFFFFF;
    box-shadow: 0px 3px 3px 0px #00000040;
    border-radius: 7px;
    position: absolute;
    left: -2px;
    cursor: pointer;
    z-index: 20;
 }

  /* Стили календаря (как в оригинале) */
.cab-calendar-container-block-back {
    position: relative;
    padding-bottom: 20px;
    z-index: 1;
}

.cab-calendar-container-block-full {
    position: relative;
    width: fit-content;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
}

.cab-calendar-container-block {
    position: relative;
    width: fit-content;
    box-sizing: border-box;
    z-index: 1;
    border-radius: 12px;
    padding: 10px 10px 10px 0;
}

.cab-calendar-container-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../img/cabinet/union.png') center/contain no-repeat;
    background-size: 100% 100%;
    opacity: 0.8;
    z-index: -1;
    border-radius: 12px;
}

.cab-calendar-container {
    display: flex;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cab-calendar-container::-webkit-scrollbar {
    display: none;
}

.cab-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    padding-bottom: 15px;
}

.cab-calendar-title {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #DFC070 0%, #D5B460 100%);
    box-shadow: 0px 6.12px 9.18px 0px rgba(0, 0, 0, 0.25),
              0px 5.1px 11.93px 0px rgba(255, 255, 255, 0.25) inset;
    position: relative;
    width: 30%;
    text-align:center;
    z-index: 1;
}

.cab-month-navigation {
    display: flex;
    align-items: center;
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    z-index: 2;
}

.cab-month-title {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    margin: 0 5px;
    white-space: nowrap;
}

.cab-nav-arrow {
    width: 10px;
    height: 10px;
}

.cab-calendar-grid {
    display: flex;
    min-width: 100%;
    position: relative;
}

.cab-weekdays-column {
    width: 65px;
    position: absolute;
    left: 0;
    top: 0;
    height: calc(100% - 45px);
    margin-top: 45px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #E4CA87 0%, #D5B562 100%);
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.cab-weeks-container {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    min-width: calc(100% - 50px);
    margin-left: 60px;
}

.cab-week-column {
    width: 50px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.cab-week-header {
    padding: 7px 7px 1px 7px;
    text-align: center;
    font-weight: bold;
    color: #5c4a1a;
    font-size: 0.7em;
}

.cab-week-header-block {
    text-align: center;
    font-size: 0.7em;
    padding: 2px;
}

.cab-day-cell {
    padding: 10px 5px;
    text-align: center;
    position: relative;
    border-radius: 4px;
    height: 30px;
    box-sizing: border-box;
    cursor: pointer;
    flex-shrink: 0;
}


/* Выходные (суббота и воскресенье) - красные */
.cab-day-cell.cab-weekend .cab-day-number {
    color: rgba(221, 0, 0, 1) !important;
}

/* Праздничные дни - красные */
.cab-day-cell.cab-holiday .cab-day-number {
    color: rgba(221, 0, 0, 1) !important;
    font-weight: bold;
}

/* Дни предыдущего и следующего месяцев (серые) */
.cab-day-cell.cab-other-month .cab-day-number {
    color: #aaa !important;
    opacity: 0.7;
}

/* Текущий день (акцентное оформление) */
.cab-day-cell.cab-current-day .cab-day-number {
    color: #000 !important;
    background: linear-gradient(180deg, #E4CA87 0%, #D5B562 100%);
    border-radius:50px;
}



.cab-day-cell.cab-has-event .cab-day-number {
    font-size: 18px;
    font-weight: 400;
    text-shadow: 0px 0px 69.7521px #FFFFFF, 0px 0px 39.8583px #FFFFFF, 0px 0px 23.2507px #FFFFFF, 0px 0px 11.6253px #FFFFFF, 0px 0px 3.32153px #FFFFFF, 0px 0px 1.66076px #FFFFFF;
}


.cab-weekdays-column .cab-day-cell {
    color: #5c4a1a;
    font-weight: bold;
}

.cab-day-number {
    font-weight: 500;
    color: #FFFFFF;
    text-shadow: 0px 4.0795px 4.0795px rgba(0, 0, 0, 0.25);
}

.cab-day-number.cab-end {
    color:rgba(221, 0, 0, 1);
}


.cab-other-month {
    color: #aaa;
}

.cab-has-event {
    position: relative;
}

.cab-weekday {
    color: rgba(255, 255, 255, 1);
}

.cab-weekend, .cab-holiday {
    color: rgba(221, 0, 0, 1);
}

/* Стили для скроллбаров */
.spec-third-list-container::-webkit-scrollbar,
.spec-third-schedule-container::-webkit-scrollbar {
    width: 8px;
}

.spec-third-list-container::-webkit-scrollbar-track,
.spec-third-schedule-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.spec-third-list-container::-webkit-scrollbar-thumb,
.spec-third-schedule-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFB800 0%, #FFE8AC 100%);
    border-radius: 4px;
}

  /* Медиа-запрос для экранов 1200px-760px */
@media (min-width: 760px) and (max-width: 1200px) {
    .spec-third-container {
        flex-wrap: wrap;
    }

    .spec-specialists-block {
        flex: 1 1 100%; /* На всю ширину */
        order: 1; /* Первый в потоке */
    }

    .spec-third-schedule-wrapper {
        flex: 1 1 calc(30% - 10px); /* Половина ширины */
        order: 2;
        margin-left:50px;
    }

    .spec-third-calendar-wrapper {
        flex: 1 1 calc(30% - 10px); /* Половина ширины */
        order: 3;
    }
    .cab-calendar-title {
        top: -7px;
    }
    .cab-weekdays-column {
        height: calc(100% - 38px);
        margin-top: 38px;
    }
    .cab-week-header {
        margin-top: 7px;
        /*display: none;*/
    }
}

/* Медиа-запрос для экранов <760px */
@media (max-width: 759px) {
    .spec-third-container {
        flex-direction: column;
    }

    .spec-specialists-block,
    .spec-third-schedule-wrapper,
    .spec-third-calendar-wrapper {
        flex: 1 1 100%; /* На всю ширину */
        min-width: 100%;
    }

    .spec-third-schedule-wrapper {
    }

    .spec-schedule-item {
        text-align: center;
    }

    .spec-schedule-item, .spec-schedule-time {

    }

  /* Корректировка высоты блоков для мобильных */
    .spec-specialists-container {
        height: 300px;
    }

    .spec-third-schedule-container {
        max-height: 250px;
    }

    .spec-third-calendar {
        height: 350px;
        margin:1px;
        padding:1px;
    }
    .cab-calendar-title {
        top: -7px;
    }
    .cab-weekdays-column {
        height: calc(100% - 38px);
        margin-top: 38px;
    }

    .cab-week-header{
        margin-top: 7px;
        /*display: none;*/
    }
}

/* Дополнительные улучшения для мобильной версии */
@media (max-width: 480px) {
    .spec-specialists-title,
    .spec-third-title {
        font-size: 20px;
        padding: 10px;
    }

    .spec-third-schedule-wrapper {
        margin-left: 10px;
    }

    .spec-third-calendar-wrapper {
        margin:1px;
        padding:1px;
    }

    .spec-third-calendar-wrapper {
        margin:1px;
        padding:1px;
    }

    .spec-third-calendar {
        margin:1px;
    }


    .spec-specialist-name {
        font-size: 14px;
    }

    .cab-month-title {
        font-size: 16px;
    }

    .cab-week-header{
        margin-top: 5px;
        /*display: none;*/
    }

    .cab-calendar-container-block {
        padding: 5px 5px 5px 0;
    }
    .cab-calendar-title {
        top: -5px;
    }
    .cab-weekdays-column {
        height: calc(100% - 36px);
        margin-top: 36px;
    }
}

@media (max-width: 400px) {
    .cab-calendar-container-block-back {
        left: -10px;
    }
}

@media (max-width: 375px) {
    .cab-calendar-container-block-back {
        left: -20px;
    }
}

/* Разделитель */
.section-divider {
    width: 100%;
    height: 50.88px;
    background: linear-gradient(90deg, #BA9535 0%, rgba(255, 255, 255, 0) 100%);
    margin: 30px 0;
    position: relative;
}

/* Стили для блока 4 */
/* Основной контейнер */

.spec-four-block-back {
    position: relative;
}

.spec-four-block-back::before {
    content: '';
    position: absolute; /* Абсолютное позиционирование */
    background-image: url('../../img/cabinet/backgrond-body.png');
    background-size: 100% 100%;
    position: absolute;
    top: -100px; /* Выход за пределы верхнего отступа */
    left: 0;
    right: 0;
    bottom: -150px;
    z-index: -1;
}

.spec-four-block {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 30px;
}

.spec-four-header {
    display: flex;
    justify-content: center;
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 400;
    font-size: 64px;
    color: #C2A14C;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.26);
}

@media (max-width: 480px) {
    .spec-four-header  {
        font-size: 40px;
    }
}

/* Стили для списка с точками */
.spec-four-description-list {
    margin-top: 30px;
    margin-bottom: 30px;
}

.spec-four-description-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    color: rgba(91, 40, 18, 0.5);
}

.spec-four-description-list li {
    padding: 20px 30px 20px 50px;
    margin-bottom: 15px;
    position: relative;
    font-size: 24px;
    line-height: 1.5;
    border-radius: 8px;
}

.dot {
    position: absolute;
    left: 15px;
    top: 25px;
    width: 25px;
    height: 25px;
    background: linear-gradient(180deg, #FFE294 0%, #C0AA6F 100%);
    box-shadow: 0px 4.66667px 9.33333px rgba(46, 40, 26, 0.25), inset 0px -1.55556px 1.55556px #B7A26A, inset 0px 1.55556px 1.55556px #FFEA99;
    border-radius: 50%;
}

/* Контейнер галереи */
.spec-four-gallery-wrapper {
    position: relative;
    width: 100%;
}

/* Горизонтальная галерея */
.spec-four-horizontal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 150px;
    padding-bottom: 25px;
    scrollbar-width: none;
}

.spec-four-horizontal-gallery::-webkit-scrollbar {
    display: none;
}

/* Элементы галереи */
.spec-four-gallery-item {
    flex: 0 0 auto;
    position: relative;
    padding: 20px;
    filter: drop-shadow(0px 6px 13.9px rgba(0, 0, 0, 0.25));
}

.spec-four-horizontal-gallery img {
    height: 200px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Кастомный скроллбар (точный стиль как на aprequ.com) */
.spec-four-custom-scrollbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 11.56px;
    visibility: hidden;
}

.spec-four-scroll-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #D9D9D9;
    box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.12);
    border-radius: 19px;
}

.spec-four-scroll-thumb {
    position: absolute;
    width: 15px;
    height: 25px;
    background: #FFFFFF;
    box-shadow: 0px 3px 3px 0px #00000040;
    border-radius: 19px;
    top: -1.72px;
    cursor: pointer;
}

/* Иконка лупы */
.spec-four-zoom-icon {
    position: absolute;
    bottom: 70px;
    width: 40px;
    height: 40px;
    background: url('../../img/page_spec/lins-icon.png') center/100% no-repeat;
    cursor: pointer;
    z-index: 2;
}

/* Модальное окно */
.spec-four-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.spec-four-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.spec-four-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.spec-four-close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* 5 блок соц иконок */
.spec-five-block {
    margin-top: 50px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 50px 0;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon-btn:hover {
    transform: translateY(-5px);
}

.social-icon-btn::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    text-transform: capitalize;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon-btn:hover::after {
    opacity: 0;
}

@media (max-width: 768px) {
    .social-icons-row {
        gap: 15px;
        flex-wrap: wrap;
    }

    .social-icon-btn {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .social-icons-row {
        flex-wrap: wrap;
    }

    .social-icon-btn {
        font-size: 26px;
    }
}

.clubs-container {
    position: relative;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.clubs-container:hover {
    margin-bottom: 135px; /* Высота подменю + отступы */
}

/* Отменяем сдвиг текста для кнопки "КЛУБЫ" */
.clubs-container > span {
    transform: none !important;
}

.clubs-container:hover > span {
    transform: none !important;
}

/* Стили для выпадающего меню */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.clubs-container:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стили для пунктов подменю */
.submenu-item {
    padding: 10px 25px;
    font-size: 16px;
    color: #868686;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: #f2faff;
    color: #333;
    padding-left: 30px;
}

.submenu-item:last-child {
    border-bottom: none;
}

/* ИЗМЕНЕНИЕ: Градиентный фон для кнопки "КЛУБЫ" при наведении */
.clubs-container::before {
    height: 222px; /* Высота кнопки + подменю */
    background: linear-gradient(-90deg, #F2FAFF 0%, rgba(255, 255, 255, 0) 100%);
    transform: none; /* Убираем поворот, так как градиент уже имеет правильное направление */
}

.clubs-container:hover::before {
    opacity: 1;
}

/* Дополнительно: делаем фон подменю прозрачным, чтобы был виден градиент */
.submenu {
    background: transparent;
}

.submenu-item {
    background: transparent;
}

.submenu-item:hover {
    background: rgba(242, 250, 255, 0.7); /* Полупрозрачный фон при наведении на пункты */
}
@media (max-width: 1800px) {
    .clubs-container::before {
    height: 187px;}
}