.hpd-frontend,
.hpd-frontend * {
    box-sizing: border-box;
}

.hpd-carousel-arrow.hpd-carousel-prev.swiper-button-prev {
  display: none;
}

.hpd-carousel-arrow.hpd-carousel-next.swiper-button-next {
  display: none;
}

.hpd-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 50px;
    column-gap: 0;
    width: 100%;
    margin: 0 auto;
}

.hpd-top-item-1 {
    grid-column: 1 / -1;
}

.hpd-top a,
.hpd-middle-carousel a,
.hpd-bottom a {
    display: block;
    text-decoration: none;
}

.hpd-top picture,
.hpd-top img {
    display: block;
    width: 100%;
}

.hpd-top img {
    height: auto;
    object-fit: cover;
}

.hpd-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.hpd-bottom img {
    display: block;
    width: 100%;
    height: auto;
}

/* Homepage Middle: professional Swiper carousel. */
.hpd-middle-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 0 42px;
    overflow: hidden;
}

.hpd-middle-carousel .swiper-wrapper {
    align-items: stretch;
}

.hpd-middle-carousel .swiper-slide {
    height: auto;
    padding: 0;
    margin: 0;
}

.hpd-middle-image-wrap {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hpd-middle-carousel img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.hpd-middle-carousel h3 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    margin: 0;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.82);
    color: #009fe3;
    text-align: center;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.hpd-middle-carousel .hpd-carousel-arrow {
    position: absolute;
    top: calc(50% - 21px);
    z-index: 10;
    width: 38px;
    height: 38px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hpd-middle-carousel .hpd-carousel-arrow:hover {
    background: #fff;
    transform: scale(1.06);
}

.hpd-middle-carousel .hpd-carousel-arrow::after {
    font-size: 17px;
    font-weight: 700;
}

.hpd-middle-carousel .hpd-carousel-prev {
    left: 8px;
}

.hpd-middle-carousel .hpd-carousel-next {
    right: 8px;
}

.hpd-middle-carousel .swiper-button-lock,
.hpd-middle-carousel .swiper-pagination-lock {
    display: none;
}

.hpd-middle-carousel .hpd-carousel-dots {
    bottom: 5px;
    line-height: 1;
}

.hpd-middle-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 5px !important;
    border: 1px solid #bbb;
    background: #fff;
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hpd-middle-carousel .swiper-pagination-bullet-active {
    background: #cfcfcf;
    transform: scale(1.1);
}

.hpd-middle-carousel.swiper-horizontal {
    touch-action: pan-y;
}

@media (max-width: 767px) {
    .hpd-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
        column-gap: 0;
    }

    .hpd-top-item-1 {
        grid-column: 1 / -1;
    }

    .hpd-middle-carousel h3 {
        bottom: 16px;
        font-size: 14px;
    }

    .hpd-middle-carousel .hpd-carousel-arrow {
        width: 34px;
        height: 34px;
    }
}

