.yd-reviews-page {
    margin: 30px 0;
}

.yd-review-message {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f1f1f1;
}

.yd-review-message-success {
    background: #e7f8ea;
}

.yd-review-message-error,
.yd-review-message-bad_name,
.yd-review-message-bad_rating,
.yd-review-message-bad_text,
.yd-review-message-bad_agree {
    background: #fdeaea;
}

.yd-review-images-wrap {
    position: relative;
    margin-bottom: 30px;
}

.yd-review-images-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.yd-review-images-track::-webkit-scrollbar {
    display: none;
}

.yd-review-image-link {
    flex: 0 0 calc(33.333% - 14px);
    display: block;
}

.yd-review-image-link img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.yd-review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    font-size: 32px;
    line-height: 1;
}

.yd-review-arrow-left {
    left: -20px;
}

.yd-review-arrow-right {
    right: -20px;
}

.yd-review-open-form {
    margin-bottom: 25px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.yd-review-form-wrap {
    margin-bottom: 35px;
}

.yd-review-form {
    max-width: 600px;
    padding: 25px;
    border-radius: 12px;
    background: #f7f7f7;
}

.yd-review-form label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
}

.yd-review-form input[type="text"],
.yd-review-form select,
.yd-review-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.yd-review-form textarea {
    min-height: 130px;
}

.yd-review-agree {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
        flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.yd-review-agree input {
    margin-top: 4px;
}

.yd-review-form button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.yd-reviews-list {
    display: grid;
    gap: 20px;
}

.yd-review-item {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.yd-review-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.yd-review-stars {
    margin-bottom: 12px;
    font-size: 20px;
    color: #f5a400;
}

.yd-review-text {
    line-height: 1.6;
}

.yd-reviews-pagination {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.yd-reviews-pagination a {
    padding: 8px 13px;
    border-radius: 6px;
    background: #eee;
    text-decoration: none;
}

.yd-reviews-pagination a.active {
    background: #222;
    color: #fff;
}

@media (max-width: 768px) {
    .yd-review-image-link {
        flex: 0 0 80%;
    }

    .yd-review-image-link img {
        height: 220px;
    }

    .yd-review-arrow-left {
        left: 5px;
    }

    .yd-review-arrow-right {
        right: 5px;
    }

    .yd-review-head {
        flex-direction: column;
    }
}
.yd-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.yd-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.yd-lightbox-overlay button {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}
.yd-stars {
    display: flex;
    gap: 6px;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    margin-top: 8px;
}

.yd-stars span {
    color: #ccc;
    transition: 0.2s;
}

.yd-stars span.active,
.yd-stars span.hover {
    color: #f5a400;
}
.yd-service-reviews-block {
    margin: 40px 0;
}

.yd-service-reviews-title {
    margin-bottom: 24px;
    font-size: 3em;
    line-height: 1.2;
    font-weight: 400;
    color: black;
}

.yd-service-reviews-scroll {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.yd-service-reviews-has-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.yd-service-reviews-has-scroll::-webkit-scrollbar {
    height: 8px;
}

.yd-service-reviews-has-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.yd-service-review-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 260px;
    padding: 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    scroll-snap-align: start;
}

.yd-service-review-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.yd-service-review-head strong {
    font-weight: 700;
}

.yd-service-review-head span {
    color: #777;
    font-size: 14px;
}

.yd-service-review-stars {
    margin-bottom: 12px;
    font-size: 20px;
    color: #f5a400;
}

.yd-service-review-text {
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .yd-service-review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .yd-service-reviews-title {
        font-size: 26px;
    }

    .yd-service-review-card {
        flex: 0 0 85%;
    }

    .yd-service-reviews-scroll {
        overflow-x: auto;
        padding-bottom: 12px;
    }
}

.yd-home-reviews-block {
    margin: 40px 0;
}

.yd-home-reviews-title {
    margin-bottom: 24px;
    font-size: 32px;
    line-height: 1.2;
}

.yd-home-reviews-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.yd-home-reviews-scroll::-webkit-scrollbar {
    height: 8px;
}

.yd-home-reviews-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.yd-home-review-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 260px;
    padding: 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    scroll-snap-align: start;
}

.yd-home-review-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.yd-home-review-head span {
    color: #777;
    font-size: 14px;
}

.yd-home-review-stars {
    margin-bottom: 12px;
    font-size: 20px;
    color: #f5a400;
}

.yd-home-review-text {
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .yd-home-review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .yd-home-reviews-title {
        font-size: 26px;
    }

    .yd-home-review-card {
        flex: 0 0 85%;
    }
}