.gm-service-shortcode-root,
.gm-service-shortcode-root *,
.gm-service-shortcode-root *::before,
.gm-service-shortcode-root *::after {
    box-sizing: border-box;
}

.gm-service-shortcode-root {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.gm-service-shortcode-root > p:empty,
.gm-service-shortcode-root > br,
.gm-faq > p:empty,
.gm-faq > br,
.gm-faq__list > p:empty,
.gm-faq__list > br,
.gm-faq__item > p:empty,
.gm-faq__item > br,
.gm-service-reviews-block > p:empty,
.gm-service-reviews-block > br,
.gm-slider-wrapper > p:empty,
.gm-slider-wrapper > br,
.gm-reviews-slider > p:empty,
.gm-reviews-slider > br,
.gm-reviews-actions > p:empty,
.gm-reviews-actions > br,
.gm-popup-overlay > p:empty,
.gm-popup-overlay > br {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 0 !important;
}

.gm-service-shortcode-root p:has(> br:only-child),
.gm-faq p:has(> br:only-child),
.gm-service-reviews-block p:has(> br:only-child) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* FAQ */

.gm-faq {
    display: block;
    width: 100%;
    margin: 0 0 45px;
    padding: 34px;
    background: #f6f8fa;
    border: 1px solid rgba(56, 75, 95, 0.16);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(56, 75, 95, 0.08);
}

.gm-faq__title {
    position: relative;
    margin: 0 0 28px;
    padding: 0 0 16px;
    color: #384b5f;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.gm-faq__title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    content: "";
    background: #384b5f;
    border-radius: 10px;
}

.gm-faq__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.gm-faq__item {
    display: block;
    overflow: hidden;
    width: 100%;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(56, 75, 95, 0.2);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(56, 75, 95, 0.04);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.gm-faq__item:hover {
    border-color: rgba(56, 75, 95, 0.5);
    box-shadow: 0 8px 24px rgba(56, 75, 95, 0.09);
    transform: translateY(-1px);
}

.gm-faq__item.is-open {
    border-color: #384b5f;
    box-shadow: 0 8px 26px rgba(56, 75, 95, 0.13);
}

.gm-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 20px 22px;
    color: #273746;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    appearance: none;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.gm-faq__question:hover,
.gm-faq__question:focus {
    color: #384b5f;
    background: #f2f5f7;
    border: 0;
    box-shadow: none;
}

.gm-faq__question:focus-visible {
    outline: 2px solid #384b5f;
    outline-offset: -3px;
}

.gm-faq__item.is-open .gm-faq__question {
    color: #384b5f;
    background: #f2f5f7;
}

.gm-faq__question-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space:normal;
}

.gm-faq__icon {
    position: relative;
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    background: #eaf0f4;
    border-radius: 50%;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.gm-faq__icon::before,
.gm-faq__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    content: "";
    background: #384b5f;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.gm-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.gm-faq__item.is-open .gm-faq__icon {
    background: #384b5f;
    transform: rotate(180deg);
}

.gm-faq__item.is-open .gm-faq__icon::before,
.gm-faq__item.is-open .gm-faq__icon::after {
    background: #fff;
}

.gm-faq__item.is-open .gm-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.gm-faq__answer {
    display: block;
    overflow: hidden;
    width: 100%;
    margin: 0;
    background: #fff;
    border-top: 1px solid rgba(56, 75, 95, 0.1);
}

.gm-faq__answer[hidden] {
    display: none !important;
}

.gm-faq__answer-content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 20px 22px 23px;
    color: #596a79;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.gm-faq__answer-content p {
    margin: 0 0 12px;
}

.gm-faq__answer-content p:last-child {
    margin-bottom: 0;
}

.gm-faq__answer-content ul,
.gm-faq__answer-content ol {
    margin: 12px 0 0;
    padding-left: 22px;
}

.gm-faq__answer-content li {
    margin-bottom: 7px;
}

.gm-faq__answer-content li:last-child {
    margin-bottom: 0;
}

.gm-faq__answer-content a {
    color: #384b5f;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Отзывы */

.gm-service-reviews-block {
    display: block;
    width: 100%;
    margin: 0 0 40px;
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(56, 75, 95, 0.16);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(56, 75, 95, 0.08);
}

.gm-service-reviews-block > h3 {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 16px;
    color: #384b5f;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.gm-service-reviews-block > h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 58px;
    height: 4px;
    content: "";
    background: #384b5f;
    border-radius: 10px;
}

.gm-service-reviews-summary {
    margin: 0 0 25px;
    color: #596a79;
    font-size: 16px;
    line-height: 1.5;
}

.gm-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin: 0;
}

.gm-reviews-slider {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.gm-review-slide {
    display: none;
    min-height: 220px;
    padding: 25px;
    background: #f6f8fa;
    border: 1px solid rgba(56, 75, 95, 0.14);
    border-radius: 14px;
}

.gm-review-slide.active {
    display: block;
}

.gm-review-slide h4 {
    margin: 0 0 15px;
    color: #273746;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.gm-review-content {
    margin: 0 0 20px;
    color: #596a79;
    font-size: 16px;
    line-height: 1.7;
}

.gm-review-content p {
    margin: 0 0 12px;
}

.gm-review-content p:last-child {
    margin-bottom: 0;
}

.gm-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.gm-review-rating {
    color: #384b5f;
    font-size: 19px;
    letter-spacing: 2px;
}

.gm-review-client {
    color: #596a79;
    font-size: 15px;
    font-style: italic;
    text-align: right;
}

.gm-prev,
.gm-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 21px;
    line-height: 1;
    background: #384b5f;
    border: 1px solid #384b5f;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.gm-prev:hover,
.gm-next:hover,
.gm-prev:focus,
.gm-next:focus {
    color: #fff;
    background: #2b3b4c;
    border-color: #2b3b4c;
    transform: translateY(-1px);
}

.gm-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.gm-dot {
    width: 9px;
    height: 9px;
    margin: 0;
    padding: 0;
    background: rgba(56, 75, 95, 0.3);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.gm-dot.active {
    background: #384b5f;
}

.gm-reviews-empty {
    padding: 22px;
    color: #596a79;
    background: #f6f8fa;
    border: 1px solid rgba(56, 75, 95, 0.14);
    border-radius: 12px;
}

.gm-reviews-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.gm-all-reviews,
.gm-add-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.gm-all-reviews {
    color: #384b5f;
    background: #fff;
    border: 1px solid #384b5f;
}

.gm-all-reviews:hover,
.gm-all-reviews:focus {
    color: #fff;
    background: #384b5f;
    border-color: #384b5f;
    transform: translateY(-1px);
}

.gm-add-review-btn {
    color: #fff;
    background: #384b5f;
    border: 1px solid #384b5f;
    box-shadow: none;
}

.gm-add-review-btn:hover,
.gm-add-review-btn:focus {
    color: #fff;
    background: #2b3b4c;
    border-color: #2b3b4c;
    transform: translateY(-1px);
}

/* Попап */

.gm-popup-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 32, 42, 0.72);
}

.gm-popup-overlay.is-open {
    display: flex;
}

.gm-popup {
    position: relative;
    width: 100%;
    max-width: 570px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(20, 30, 40, 0.28);
}

.gm-popup > h3 {
    margin: 0 0 24px;
    padding-right: 45px;
    color: #384b5f;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.gm-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #384b5f;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
    background: #edf1f4;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
}

.gm-popup-close:hover,
.gm-popup-close:focus {
    color: #fff;
    background: #384b5f;
}

.gm-review-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.gm-review-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.gm-review-form label {
    color: #273746;
    font-size: 15px;
    font-weight: 600;
}

.gm-review-form input[type="text"],
.gm-review-form input[type="email"],
.gm-review-form input[type="file"],
.gm-review-form textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    color: #273746;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    border: 1px solid rgba(56, 75, 95, 0.28);
    border-radius: 8px;
    outline: none;
    box-shadow: none;
}

.gm-review-form textarea {
    min-height: 130px;
    resize: vertical;
}

.gm-review-form input:focus,
.gm-review-form textarea:focus {
    border-color: #384b5f;
    box-shadow: 0 0 0 3px rgba(56, 75, 95, 0.1);
}

.gm-review-form > button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 5px 0 0;
    padding: 12px 24px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    background: #384b5f;
    border: 1px solid #384b5f;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
}

.gm-review-form > button[type="submit"]:hover,
.gm-review-form > button[type="submit"]:focus {
    color: #fff;
    background: #2b3b4c;
    border-color: #2b3b4c;
}

.strong-rating-wrapper {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.strong-rating-wrapper input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.strong-rating-wrapper label {
    color: #cbd3da;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.strong-rating-wrapper label:hover,
.strong-rating-wrapper label:hover ~ label,
.strong-rating-wrapper input:checked ~ label {
    color: #384b5f;
}

/* Адаптив */

@media (max-width: 767px) {
    .gm-faq,
    .gm-service-reviews-block {
        margin-bottom: 30px;
        padding: 22px 16px;
        border-radius: 14px;
    }

    .gm-faq__title,
    .gm-service-reviews-block > h3 {
        margin-bottom: 20px;
        padding-bottom: 13px;
        font-size: 25px;
    }

    .gm-faq__title::after,
    .gm-service-reviews-block > h3::after {
        width: 50px;
        height: 3px;
    }

    .gm-faq__list {
        gap: 11px;
    }

    .gm-faq__question {
        gap: 14px;
        min-height: 0;
        padding: 17px 15px;
        font-size: 16px;
    }

    .gm-faq__icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .gm-faq__answer-content {
        padding: 17px 15px 19px;
        font-size: 15px;
    }

    .gm-slider-wrapper {
        display: block;
    }

    .gm-review-slide {
        min-height: 0;
        padding: 20px 16px;
    }

    .gm-prev,
    .gm-next {
        position: absolute;
        z-index: 2;
        top: 50%;
        width: 38px;
        height: 38px;
        transform: translateY(-50%);
    }

    .gm-prev {
        left: 7px;
    }

    .gm-next {
        right: 7px;
    }

    .gm-prev:hover,
    .gm-next:hover,
    .gm-prev:focus,
    .gm-next:focus {
        transform: translateY(-50%);
    }

    .gm-review-slide {
        padding-right: 52px;
        padding-left: 52px;
    }

    .gm-review-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .gm-review-client {
        text-align: left;
    }

    .gm-reviews-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gm-all-reviews,
    .gm-add-review-btn {
        width: 100%;
    }

    .gm-popup {
        padding: 25px 18px;
        border-radius: 13px;
    }

    .gm-popup > h3 {
        font-size: 24px;
    }
}
.gm-reviews-slider {
    color: #5c6166;
}

.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.uslugi-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.uslugi-card:hover {
    transform: translateY(-5px);
    border-color: #d6d6d6;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.uslugi-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f3f3;
}

.uslugi-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.uslugi-card:hover .uslugi-card__image img {
    transform: scale(1.05);
}

.uslugi-card__title {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-height: 74px;
    padding: 16px 18px;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.uslugi-card:hover .uslugi-card__title {
    color: #e61e2d;
}

.uslugi-grid > p:empty,
.uslugi-grid > br {
    display: none !important;
}

.uslugi-grid > p {
    display: contents;
}

@media (max-width: 900px) {
    .uslugi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .uslugi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .uslugi-card__title {
        min-height: auto;
        padding: 15px;
        font-size: 16px;
    }
}