/* ── Megamenu always-open on homepage ─── */
.uaks-homepage-megamenu {
    background: var(--white);
    border-top: 3px solid var(--gold);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    padding: 0;
}
.uaks-homepage-megamenu .container { padding: 0 24px; }
.uaks-homepage-megamenu .uaks-mm-wrap { margin-bottom: 0; }

@media (max-width: 768px) {
    .uaks-homepage-megamenu { display: none !important; }
}

/* ── Sections ─────────────────────────── */
.uaks-section { padding: 52px 0; background: #fff; }

.uaks-section-sep {
    height: 40px;
    background: var(--bg);
}

.uaks-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.uaks-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    position: relative;
    padding-bottom: 8px;
}
.uaks-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* ── Slider ───────────────────────────── */
.uaks-section-slider { background: var(--white); padding: 40px 0 52px; }

.uaks-products-swiper {
    padding-bottom: 44px !important;
    margin: 0 -4px;
    padding: 4px 4px 44px !important;
}
.uaks-products-swiper .swiper-slide { height: auto; }

.swiper-button-prev,
.swiper-button-next {
    color: var(--navy) !important;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    box-shadow: var(--shadow);
    transition: border-color .2s, color .2s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover { border-color: var(--navy); }
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 14px !important; font-weight: 800 !important; }

.swiper-pagination-bullet { background: var(--border) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--navy) !important; }

/* ── Callback promo block ─────────────── */
.uaks-section-callback { padding-top: 52px; padding-bottom: 52px; }
.uaks-callback-promo-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--navy) 0%, #2a4aa0 100%);
    border-radius: 16px;
    padding: 36px 48px;
    color: #fff;
}
.uaks-callback-promo-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.uaks-callback-promo-text p  { color: rgba(255,255,255,.72); font-size: 14px; }

/* Override callback button style inside promo block */
.uaks-callback-promo-block .uaks-callback-wrap { position: static; }
.uaks-callback-promo-block .uaks-callback-btn {
    position: static;
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 4px 16px rgba(245,196,0,.3);
    font-size: 15px;
    padding: 14px 28px;
}
.uaks-callback-promo-block .uaks-callback-btn:hover {
    background: #fff;
    color: var(--navy);
    transform: translateY(-2px);
}

/* ── Brands slider ──────────────────────── */
.uaks-brands-swiper {
    position: relative;
    padding: 0 48px;
}

.uaks-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 10px;
    aspect-ratio: 1 / 1;
    height: auto;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    overflow: hidden;
    width: 100%;
}
.uaks-brand-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(245,196,0,.2);
    transform: translateY(-2px);
    text-decoration: none;
}
.uaks-brand-item img {
    max-height: 65%;
    max-width: 80%;
    object-fit: contain;
    display: block;
}
.uaks-brand-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.uaks-brands-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--navy);
    transition: border-color .2s, opacity .2s;
    padding: 0;
}
.uaks-brands-prev { left: 0; }
.uaks-brands-next { right: 0; }
.uaks-brands-btn:hover { border-color: var(--navy); }
.uaks-brands-btn.swiper-button-disabled { opacity: .3; cursor: default; pointer-events: none; }

@media (max-width: 768px) {
    /* Мегаменю — на мобільному ховаємо (є drawer) */
    .uaks-homepage-megamenu { display: none; }

    /* Зменшуємо відступи секцій */
    .uaks-section { padding: 32px 0; }
    .uaks-section-slider { padding: 24px 0 36px; }
    .uaks-section-callback { padding: 32px 0; }
    .uaks-section-sep { height: 24px; }

    /* Callback promo — в колонку */
    .uaks-callback-promo-block { flex-direction: column; text-align: center; padding: 28px 24px; }

    /* Заголовок секції */
    .uaks-section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .uaks-section-title { font-size: 18px; }

    /* Бренди — 4 колонки, компактні картки */
    .uaks-brands-swiper { padding: 0 32px; }
    .uaks-brand-item { padding: 4px; height: 46px; }
    .uaks-brand-item img { max-height: 55%; max-width: 70%; }
    .uaks-brand-name { font-size: 9px; }
    .uaks-brands-btn { width: 28px; height: 28px; font-size: 18px; }
}
