.altegio-tabs { max-width: 1200px; margin: 0 auto; }

/* Scroll wrapper */
.altegio-tabs-scroll-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Category buttons */
.altegio-tab-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.altegio-tab-buttons::-webkit-scrollbar { display: none; }

.altegio-tab-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 5px !important;
    background: #06aed6 !important ;
    border: 1px solid #ccc;
    cursor: pointer;
    white-space: nowrap;
    font-size: 15px;
    color: white !important;
    transition: 0.2s;
}

.altegio-tab-btn:hover {
    background: #3d3d3d !important;
}

.altegio-tab-btn.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000;
}

/* Fade gradients */
.scroll-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
}



/* Services — GRID layout */
.altegio-service-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 90px auto; /* title | duration | price | button */
    grid-template-areas: "title duration price button";
    column-gap: 16px;
    row-gap: 6px;
    align-items: center;

    /* Визуальный блок строки */
    padding: 10px 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.altegio-service-item .title {
    grid-area: title;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
    /* Разрешаем колонке сжиматься и переносим длинные слова,
       чтобы они не растягивали сетку и не двигали цену/кнопку */
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.altegio-service-item .duration-col {
    grid-area: duration;
    font-size: 12px;
    white-space: nowrap;
}

.altegio-service-item .price {
    grid-area: price;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-align: right;
    color: inherit; /* наследуем цвет темы */
}

/* Вертикальное выравнивание длительности, цены и кнопки по центру строки */
.altegio-service-item .duration-col,
.altegio-service-item .price,
.altegio-service-item .book-btn {
    align-self: center;
}

.book-btn {
    grid-area: button;
    justify-self: end;
    padding: 5px 12px;
    margin-left: 10px;
    background: #06aed6;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: .25s;
}

.book-btn:hover { opacity: 0.85; }

/* Мобильная версия: название сверху, под ним длительность+цена, затем кнопка на всю ширину */
@media (max-width: 768px) {
    .altegio-service-item {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "title title title"
            "duration price price"
            "button button button";
        row-gap: 8px;
    }

    .altegio-service-item .title {
        margin-bottom: 2px;
    }

    .altegio-service-item .duration-col {
        justify-self: flex-start;
    }

    .altegio-service-item .price {
        justify-self: flex-start;
        text-align: left;
        font-size: 14px;
    }

    .altegio-service-item .book-btn {
        justify-self: stretch;
        text-align: center;
        margin-top: 4px;
        margin-left: 0;
    }
}

/* Чередующиеся фоны строк прайса для удобства чтения */
.altegio-tab-content .altegio-service-item:nth-child(odd) {
    background-color: #ffffff;
}

.altegio-tab-content .altegio-service-item:nth-child(even) {
    background-color: #eaeaea;
}

/* Tooltip base */
.has-tooltip {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: #1e355d;
    font-weight: 600;
}

.has-tooltip:hover {
    color: #0a274e;
}

/* Tooltip bubble */
.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 0;
    background: #1e355d;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Arrow */
.has-tooltip::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 10px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e355d transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Hover visibility */
.has-tooltip:hover::after,
.has-tooltip:hover::before {
    opacity: 1;
    transform: translateY(0);
}


