/* Стилі для оновленої секції "Ми вас здивуємо" */

/* Контейнер для однакової висоти блоків - Grid */
.surprise {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: stretch;
    justify-items: center;
}

/* Hover ефект зі збільшенням для всіх блоків */
.surprise-item {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 215px;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    transform: scale(1) translateY(0);
    width: 100%;
}

/* Перші 3 елементи - по 2 колонки кожен (3 в рядок) */
.surprise-item:nth-of-type(1) {
    grid-column: 1 / 3;
}

.surprise-item:nth-of-type(2) {
    grid-column: 3 / 5;
}

.surprise-item:nth-of-type(3) {
    grid-column: 5 / 7;
}

/* 4-й елемент - розширений, займає 3 колонки */
.surprise-item:nth-of-type(4) {
    grid-column: 1 / 4;
    max-width: 100%;
}

/* 5-й елемент - розширений, займає 3 колонки */
.surprise-item:nth-of-type(5) {
    grid-column: 4 / 7;
    max-width: 100%;
}

.surprise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 160, 198, 0.15) 0%, rgba(0, 204, 255, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.surprise-item:hover::before {
    opacity: 1;
}

.surprise-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    transition: transform 0.6s ease;
}

.surprise-item div h3 {
    font-size: 28px !important;
    line-height: 1.2;
    transition: transform 0.6s ease, text-shadow 0.6s ease;
    transform: scale(1);
    text-shadow: none;
    margin: 0 12px 8px 12px;
}

/* Стилі для описів послуг */
.surprise-item div .surprise-description {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    font-family: Lato-Regular;
    margin: 0 12px;
    padding: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0.95;
    flex: 1;
}

.surprise-item div .surprise-description strong {
    font-family: Lato-Bold;
    color: #fff;
    text-shadow: 0 2px 8px rgba(1, 160, 198, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.surprise-item:hover div .surprise-description {
    opacity: 1;
    transform: translateY(-2px);
}

.surprise-item:hover div .surprise-description strong {
    text-shadow: 0 2px 10px rgba(1, 160, 198, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.surprise-item div h3:before {
    transition: transform 0.6s ease, filter 0.6s ease;
    transform: scale(1) rotate(0deg);
    filter: none;
}

.surprise-item:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 20px 50px rgba(1, 160, 198, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    position: relative;
    border: 2px solid rgba(1, 160, 198, 0.4);
}

.surprise-item:hover div h3 {
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.surprise-item:hover div h3:before {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(1, 160, 198, 0.6));
}

/* Перевизначення hover ефекту - без синього прямокутника */
.surprise-item:hover div {
    background: transparent !important;
}

/* Стилізація блоку "та інші послуги" */
.surprise-item.item_other-program {
    background: #fff !important;
    transform: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    border-radius: 15px;
    padding: 30px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: box-shadow 0.3s ease !important;
    position: relative;
    overflow: visible !important;
    height: auto !important;
    min-height: 215px;
}

.surprise-item.item_other-program::before {
    display: none !important;
}

.surprise-item.item_other-program:hover {
    transform: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.surprise-item.item_other-program:hover div h3 {
    transform: none !important;
    text-shadow: none !important;
}

.surprise-item.item_other-program:hover div h3:before {
    transform: none !important;
    filter: none !important;
}

.surprise-item.item_other-program img {
    width: auto !important;
    height: 120px !important;
    margin-bottom: 20px !important;
    max-width: 100%;
}

.surprise-item.item_other-program .surprise-title {
    font-size: 20px !important;
    font-family: Lato-Bold !important;
    line-height: 1.4 !important;
    color: #3c3c3c !important;
    text-transform: uppercase;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px;
}

.surprise-item.item_other-program .surprise-description {
    font-size: 17px !important;
    font-family: Lato-Regular !important;
    line-height: 1.5 !important;
    color: #555 !important;
    text-transform: none !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.3px;
    text-shadow: none !important;
}

.surprise-item.item_other-program .surprise-description strong {
    font-family: Lato-Bold !important;
    color: #01a0c6 !important;
    font-weight: bold;
}

.surprise-item.item_other-program .surprise-cta-btn {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 14px 30px;
    font-size: 16px;
    font-family: Lato-Bold, sans-serif;
    border-radius: 50px;
    background: linear-gradient(45deg, #01a0c6 0%, #00ceff 100%);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 160, 198, 0.4);
    border: none;
    text-align: center;
    gap: 0;
}

.surprise-item.item_other-program .surprise-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 160, 198, 0.5);
    background: linear-gradient(45deg, #00ceff 0%, #01a0c6 100%);
    color: #fff;
    text-decoration: none;
}

/* Декоративні елементи */
.surprise-item.item_other-program::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(1, 160, 198, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Стилі для елемента "Школа барменів" */
.item_bartender-school {
    background: url(../images/service/item_cocktail-bar.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.item_bartender-school div h3:before {
    content: " ";
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 10px;
    background: url(../images/service/icon_cocktail-bar.png) no-repeat bottom;
    background-size: contain;
}

.item_bartender-school div {
    position: relative;
}

.item_bartender-school:hover div {
    background: transparent !important;
}

.item_bartender-school .surprise-description {
    margin-bottom: 10px;
}

/* Опис тарифних пакетів у блоці цін */
.price-desc {
    margin: 10px 0 5px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-family: Lato-Regular, sans-serif;
}

.price-desc strong {
    color: #01a0c6;
    font-weight: 700;
    font-family: Lato-Bold, sans-serif;
}

@media (max-width: 575px) {
    .price-desc {
        font-size: 13px;
    }
}

/* Тексти в блоці калькулятора (3 блок) */
/* Стилі для блоку калькулятора - горизонтальний макет:
   картинка зліва, справа заголовок (вгорі) і текст (під ним) */
#calculator .item_calc {
    margin: 8px 0;
}

.calc-item-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    padding: 25px;
}

.calc-icon-wrapper {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calc-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.calc-content-wrapper {
    flex: 1;
}

.item_calc h3 {
    font-size: 22px;
    font-family: Intro, sans-serif;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-align: left;
}

.item_calc .calc-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    font-family: Lato-Regular, sans-serif;
    margin-bottom: 10px;
    text-align: left;
    padding: 0;
}

.item_calc .calc-text strong {
    color: #01a0c6;
    font-weight: 700;
    font-family: Lato-Bold, sans-serif;
}

.item_calc .calc-text:last-of-type {
    margin-bottom: 0;
}

.calc-cta-row {
    margin-top: 25px;
    text-align: center;
}

.calc-cta-btn {
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 30px;
}

.calc-cta-note {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-family: Lato-Regular, sans-serif;
}

/* CTA кнопки для всіх блоків */
.surprise-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 15px 8px 12px 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 16px;
    font-family: Lato-Bold, sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    z-index: 2;
    gap: 8px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    line-height: 1.4;
    word-wrap: break-word;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 50px;
}

.surprise-cta-btn {
    text-align: left;
    justify-content: space-between;
    padding-right: 40px;
}

.surprise-cta-btn::after {
    content: '→';
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
    order: 2;
}

.surprise-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
}

.surprise-cta-btn:hover::after {
    transform: translateX(4px);
}

.item_bartender-school .surprise-cta-btn {
    margin-top: 15px;
}


/* Адаптивність для оновленої секції */
@media (max-width: 991px) {
    .surprise {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* На мобільних перші 4 елементи по 1 колонці (2 в рядок) */
    .surprise-item:nth-of-type(1),
    .surprise-item:nth-of-type(2),
    .surprise-item:nth-of-type(3),
    .surprise-item:nth-of-type(4) {
        grid-column: span 1;
    }
    
    /* Останній елемент розтягується на 2 стовпці */
    .surprise-item:nth-of-type(5) {
        grid-column: span 2;
    }
    
    .surprise-cta-btn {
        font-size: 14px;
        padding: 8px 18px;
        margin-top: 12px;
    }
    
    .surprise-item.item_other-program {
        padding: 25px 15px !important;
    }
    
    .surprise-item div h3 {
        font-size: 26px !important;
    }
    
    .surprise-item.item_other-program img {
        height: 110px !important;
        margin-bottom: 15px !important;
    }
    
    .surprise-item div h3 {
        font-size: 24px !important;
    }
    
    .surprise-item div .surprise-description {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .surprise-item.item_other-program img {
        height: 100px !important;
    }
    
    .surprise-item.item_other-program .surprise-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .surprise-item.item_other-program .surprise-description {
        font-size: 16px !important;
        margin-bottom: 18px !important;
    }
    
    .surprise-item.item_other-program .surprise-cta-btn {
        font-size: 15px;
        padding: 10px 20px;
        max-width: 100%;
    }
}

/* Адаптивність для калькулятора */
@media (max-width: 991px) {
    .calc-item-wrapper {
        padding: 20px;
        gap: 20px;
    }
    
    .calc-icon-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .item_calc h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .surprise {
        grid-template-columns: 1fr;
    }
    
    .surprise-item {
        grid-column: span 1;
        width: 100%;
        justify-self: stretch;
    }
    
    /* Всі елементи в 1 стовпець */
    .surprise-item:nth-of-type(1),
    .surprise-item:nth-of-type(2),
    .surprise-item:nth-of-type(3),
    .surprise-item:nth-of-type(4),
    .surprise-item:nth-of-type(5) {
        grid-column: span 1;
    }
    
    .calc-item-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .calc-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .calc-content-wrapper {
        text-align: center;
    }
    
    .item_calc h3 {
        font-size: 18px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .item_calc .calc-text {
        font-size: 14px;
        text-align: center;
    }
    
    .surprise-cta-btn {
        font-size: 13px;
        padding: 8px 15px;
        margin-top: 10px;
    }
    
    .surprise-item.item_other-program {
        padding: 20px 15px !important;
    }
    
    .surprise-item div h3 {
        font-size: 22px !important;
    }
    
    .surprise-item.item_other-program img {
        height: 90px !important;
        margin-bottom: 15px !important;
    }
    
    .surprise-item div .surprise-description {
        font-size: 15px;
        padding: 0 8px;
    }
    
    .surprise-item.item_other-program .surprise-title {
        font-size: 17px !important;
        margin-bottom: 8px !important;
    }
    
    .surprise-item.item_other-program .surprise-description {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .surprise-item.item_other-program .surprise-cta-btn {
        font-size: 14px;
        padding: 10px 18px;
        max-width: 100%;
    }
}

/* Стилі для оновлених тарифних пакетів */
.item_prices .package-title {
    font-size: 28px;
    font-family: Lato-Black;
    color: #3c3c3c;
    text-transform: uppercase;
    margin: 15px 0 10px;
    text-align: center;
    letter-spacing: 1px;
}

.item_prices ul {
    height: auto !important;
    min-height: 100px;
}

.item_prices .price {
    margin-top: 20px !important;
}

/* Стилі для старої ціни та знижки */
#prices .item_prices .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.item_prices .price-old {
    display: block !important;
    padding: 0 !important;
    text-align: center !important;
    flex: 0 0 auto;
    width: auto !important;
}

.item_prices .price-difference {
    display: block !important;
    padding: 0 !important;
    text-align: center !important;
    flex: 0 0 auto;
    width: auto !important;
}

/* Плавна анімація появи кнопки при hover */
.item_prices_in a.package-btn {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    display: block !important;
    visibility: hidden;
}

.item_prices_in:hover a.package-btn,
.item_prices:hover a.package-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    max-height: 100px;
    padding: 14px 27px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Адаптивність для тарифів */

/* Прибираємо min-height і зменшуємо відступи внизу для .prices */
#prices .prices {
    min-height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 30px !important;
}

/* Зменшуємо margin-bottom для prices__btn */
#prices .prices__btn {
    margin-bottom: 20px !important;
    margin-top: 20px !important;
}

/* Десктопи: робимо картки трохи компактнішими по вертикалі */
@media (min-width: 992px) {
    #prices .item_prices {
        padding: 8px 0 18px;
    }

    #prices .item_prices_in {
        margin: 0 -10px;
    }

    #prices .item_prices_img {
        margin-top: -55px;
    }

    #prices .item_prices_img img {
        max-width: 140px;
    }

    .item_prices .package-title {
        margin: 10px 0 6px;
    }

    #prices .item_prices ul {
        padding: 6px 18px 10px;
        height: auto;
        min-height: 80px;
    }

    #prices .item_prices ul li {
        line-height: 24px;
    }

    #prices .price-desc {
        font-size: 14px;
        line-height: 1.45;
        margin: 6px 18px 8px;
    }

    #prices .item_prices .row {
        margin-left: 0;
        margin-right: 0;
        margin-top: 4px;
        margin-bottom: 0;
    }

    #prices .item_prices .price {
        font-size: 30px;
        margin: 6px 18px 8px !important;
    }

    #prices .item_prices a.package-btn {
        margin-top: 4px;
        margin-bottom: 10px;
    }
}

/* Ноутбуки та великі планшети ~1200px, але не менше 769px */
@media (max-width: 1200px) and (min-width: 769px) {
    /* Зменшуємо відступи між карточками */
    #prices .prices .col-md-4 {
        padding: 0 12px !important;
    }

    /* ще підрізаємо падінги/марджини на 1200px і менше */
    #prices .item_prices {
        padding: 4px 0 12px;
    }

    #prices .item_prices_in {
        margin: 0 -6px;
    }

    #prices .item_prices_img {
        margin-top: -45px;
    }

    #prices .item_prices_img img {
        max-width: 120px;
    }

    #prices .price-desc {
        font-size: 13px;
        line-height: 1.45;
        margin: 6px 14px 6px;
    }

    #prices .item_prices ul {
        padding: 6px 10px 8px;
        min-height: 70px;
    }

    #prices .item_prices ul li {
        font-size: 14px;
        line-height: 22px;
    }

    #prices .item_prices .row {
        margin-left: 0;
        margin-right: 0;
        margin-top: 2px;
        margin-bottom: 0;
    }

    /* Зменшуємо розміри шрифтів для цін, акцій та різниці (але не надто дрібні) */
    #prices .item_prices .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    #prices .item_prices .price-old,
    #prices .item_prices .price-difference {
        font-size: 20px !important;
        padding: 0 !important;
        text-align: center !important;
        flex: 0 0 auto;
        width: auto !important;
    }

    #prices .item_prices .price-old {
        color: #a7a7a7;
        text-decoration: line-through;
    }

    #prices .item_prices .price-difference {
        color: #01a0c6;
        font-size: 20px !important;
    }

    #prices .item_prices .price {
        font-size: 24px !important;
        margin: 2px 14px 4px !important; /* ще менші відступи зверху/знизу */
    }

    #prices .item_prices .price span {
        font-size: 24px !important;
    }

    #prices .item_prices a.package-btn {
        margin-top: 2px;
        margin-bottom: 8px;
        padding: 9px 16px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .item_prices .package-title {
        font-size: 24px;
        margin: 12px 0 8px;
    }
    
    .item_prices ul {
        min-height: 80px;
    }
}

/* При 768px та менше - повертаємо до оригінальних стилів (не перевизначаємо) */

/* При 450px та менше - адаптивні стилі */
@media (max-width: 450px) {
    /* Робимо картки компактнішими на маленьких мобілках */
    #prices .item_prices {
        padding: 5px 0 15px;
    }

    #prices .item_prices_in {
        margin: 0 -8px;
    }

    #prices .item_prices_img {
        margin-top: -40px;
    }

    #prices .item_prices_img img {
        max-width: 110px;
    }

    #prices .price-desc {
        font-size: 13px;
        line-height: 1.45;
        margin: 8px 14px 10px;
    }

    #prices .item_prices ul {
        padding: 8px 10px 10px;
        min-height: 0;
    }

    #prices .item_prices ul li {
        font-size: 14px;
        line-height: 24px;
    }

    #prices .item_prices .price {
        font-size: 26px;
        margin: 5px 16px 6px !important;
    }

    #prices .item_prices .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    #prices .item_prices .price-old,
    #prices .item_prices .price-difference {
        font-size: 18px !important;
        margin-top: 6px;
        padding: 0 !important;
        text-align: center !important;
        flex: 0 0 auto;
        width: auto !important;
    }

    #prices .item_prices a.package-btn {
        margin-bottom: 8px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .item_prices .package-title {
        font-size: 22px;
        margin: 10px 0 6px;
    }
}

@media (max-width: 575px) {
    .item_prices .package-title {
        font-size: 22px;
        margin: 10px 0 6px;
    }
    
    .item_prices ul {
        min-height: 70px;
    }
}

/* Стилі для логотипів mokre та starlife - тільки opacity (вони вже чорно-білі) */
#client .client .col-md-2 img.client-logo-grayscale,
#client .client .col-6.col-sm-4.col-md-2 img.client-logo-grayscale,
.client .col-md-2 img.client-logo-grayscale,
.client .col-6.col-sm-4.col-md-2 img.client-logo-grayscale,
#client .client .col-md-2 img[src*="starlife"],
#client .client .col-md-2 img[src*="Starlife"],
#client .client .col-md-2 img[src*="Starlife_logo"],
.client .col-md-2 img[src*="starlife"],
.client .col-md-2 img[src*="Starlife"],
.client .col-md-2 img[src*="Starlife_logo"],
#client .client .col-md-2 img[src*="mokre"],
#client .client .col-md-2 img[src*="MOKRE"],
.client .col-md-2 img[src*="mokre"],
.client .col-md-2 img[src*="MOKRE"] {
    opacity: 0.8 !important;
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.85, 0.41, 0.34, 0.66) !important;
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.5s cubic-bezier(0.85, 0.41, 0.34, 0.66) !important;
}

#client .client .col-md-2 img.client-logo-grayscale:hover,
#client .client .col-6.col-sm-4.col-md-2 img.client-logo-grayscale:hover,
.client .col-md-2 img.client-logo-grayscale:hover,
.client .col-6.col-sm-4.col-md-2 img.client-logo-grayscale:hover,
#client .client .col-md-2 img[src*="starlife"]:hover,
#client .client .col-md-2 img[src*="Starlife"]:hover,
#client .client .col-md-2 img[src*="Starlife_logo"]:hover,
.client .col-md-2 img[src*="starlife"]:hover,
.client .col-md-2 img[src*="Starlife"]:hover,
.client .col-md-2 img[src*="Starlife_logo"]:hover,
#client .client .col-md-2 img[src*="mokre"]:hover,
#client .client .col-md-2 img[src*="MOKRE"]:hover,
.client .col-md-2 img[src*="mokre"]:hover,
.client .col-md-2 img[src*="MOKRE"]:hover {
    opacity: 1 !important;
    -webkit-transform: scale(1.1) !important;
    -ms-transform: scale(1.1) !important;
    transform: scale(1.1) !important;
}

/* Виправлення останнього логотипу на мобільних пристроях */
@media (max-width: 575px) {
    .client .col-md-2:last-child {
        max-width: 50% !important;
        flex: 0 0 50% !important;
        margin: 15px auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .client .col-md-2:last-child img {
        display: block;
        margin: 0 auto;
    }
    
    /* Центрування рядка з логотипами */
    .client.row {
        justify-content: center !important;
    }
    
    /* Встановлюємо правильний margin для .sub-title в секції #client на мобільних */
    #client .sub-title {
        margin: 60px 0 15px !important;
    }
}

/* Виправлення блокування скролу після вимкнення niceScroll */
@media (min-width: 1200px) {
    /* Дозволяємо скрол на html, який був заблокований для niceScroll */
    html {
        overflow: auto !important;
        overflow-x: hidden !important;
    }
    
    /* CSS кастомний скролбар замість niceScroll з градієнтом */
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 10px;
    }
    
    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track {
        background: transparent;
    }
    
    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #01a0c6 0%, #00ceff 50%, #01a0c6 100%);
        border-radius: 0;
        background-size: 100% 200%;
        transition: background-position 0.3s ease;
    }
    
    html::-webkit-scrollbar-thumb:hover,
    body::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #00ceff 0%, #01a0c6 50%, #00ceff 100%);
        background-size: 100% 200%;
    }
    
    /* Для Firefox - використовуємо основний колір */
    html,
    body {
        scrollbar-width: thin;
        scrollbar-color: #01a0c6 transparent;
    }
}

/* Виправлення помилки passive event listener для слайдерів */
.testimonials,
.certificates,
.video,
.video-mob,
.slider-for,
.slider-nav {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

.testimonials .slick-track,
.certificates .slick-track,
.video .slick-track,
.video-mob .slick-track,
.slider-for .slick-track,
.slider-nav .slick-track {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

