.service-block {
    margin-top: 48px;
}

.service-block:first-of-type {
    margin-top: 0;
}

/* Описание: текст слева, фото справа */
.service-description {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.service-description--text-only {
    grid-template-columns: 1fr;
}

.service-description__text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--site-body-text, #333333);
}

.service-description__text p {
    margin: 0 0 16px;
}

.service-description__text p:last-child {
    margin-bottom: 0;
}

.service-description__media {
    border-radius: 16px;
    overflow: hidden;
    background: #f0f5f4;
}

.service-description__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Преимущества */
.service-advantages__header {
    max-width: 720px;
    margin-bottom: 28px;
}

.service-advantages__title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--site-body-text, #333333);
}

.service-advantages__intro {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--header-text-muted, #8f8f8f);
}

.service-advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-advantages__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 22px;
    border: 1px solid rgba(74, 140, 136, 0.18);
    border-radius: 16px;
    background: #ffffff;
}

.service-advantages__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 140, 136, 0.12);
    color: var(--header-accent, #4a8c88);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.service-advantages__card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--site-body-text, #333333);
}

.service-advantages__card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--header-text-muted, #8f8f8f);
}

/* Показания и противопоказания */
.service-indications__title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
}

.service-indications__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.service-indications__col {
    padding: 24px 26px;
    border-radius: 16px;
    border: 1px solid rgba(74, 140, 136, 0.18);
    background: #f8fcfb;
}

.service-indications__col-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--header-accent, #4a8c88);
}

.service-indications__col--contra .service-indications__col-title {
    color: #9a5c5c;
}

.service-indications__col--contra {
    background: #fdf9f9;
    border-color: rgba(154, 92, 92, 0.2);
}

.service-indications__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--site-body-text, #333333);
    white-space: pre-line;
}

/* Галерея */
.service-gallery__header {
    max-width: 720px;
    margin-bottom: 28px;
}

.service-gallery__title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--site-body-text, #333333);
}

.service-gallery__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--header-text-muted, #8f8f8f);
}

.service-gallery__slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.service-gallery__viewport {
    overflow: hidden;
}

.service-gallery__track {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.service-gallery__slide {
    flex: 0 0 25%;
    min-width: 0;
}

.service-gallery__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f5f4;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-gallery__thumb:hover {
    transform: translateY(-2px);
}

.service-gallery__thumb:focus-visible {
    outline: 2px solid var(--header-accent, #4a8c88);
    outline-offset: 3px;
}

.service-gallery__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-gallery__nav {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(74, 140, 136, 0.25);
    border-radius: 50%;
    background: #ffffff;
    color: var(--header-accent, #4a8c88);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.service-gallery__nav:hover:not(:disabled) {
    border-color: var(--header-accent, #4a8c88);
    background: #f8fcfb;
}

.service-gallery__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.service-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-gallery-lightbox.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

body.service-gallery-lightbox-open {
    overflow: hidden;
}

.service-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 22, 0.88);
    backdrop-filter: blur(8px);
}

.service-gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: min(1200px, 100%);
    max-height: 92vh;
}

.service-gallery-lightbox__figure {
    margin: 0;
    min-width: 0;
}

.service-gallery-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: min(85vh, 900px);
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
}

.service-gallery-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.service-gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.service-gallery-lightbox__nav {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.service-gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Цены */
.service-prices__header {
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: center;
}

.service-prices__title {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--site-body-text, #333333);
}

.service-prices__title-main,
.service-prices__title-accent {
    display: block;
}

.service-prices__title-accent {
    color: var(--header-accent, #4a8c88);
}

.service-prices__intro {
    margin: 0 auto;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--header-text-muted, #8f8f8f);
    white-space: pre-line;
}

.service-prices__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(74, 140, 136, 0.15);
}

.service-prices__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(74, 140, 136, 0.15);
}

.service-prices__item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.service-prices__item-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--site-body-text, #333333);
}

.service-prices__item-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--header-text-muted, #8f8f8f);
}

.service-prices__item-price {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--header-accent, #4a8c88);
    white-space: nowrap;
}

/* FAQ */
.service-faq__layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.service-faq__banner {
    position: relative;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background-color: #2d5a56;
}

.service-faq__banner-bg {
    position: absolute;
    inset: 0;
    background-color: #2d5a56;
    background-size: cover;
    background-position: right bottom;
    background-repeat: no-repeat;
}

.service-faq__banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 48, 45, 0.82) 0%,
        rgba(20, 48, 45, 0.55) 45%,
        rgba(20, 48, 45, 0.75) 100%
    );
}

.service-faq__banner-frame {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-height: 360px;
    margin: 18px;
    padding: 22px 20px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
}

.service-faq__banner-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.service-faq__banner-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: var(--header-radius-pill, 999px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-faq__banner-title {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.service-faq__banner-subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.service-faq__banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    color: var(--header-accent, #4a8c88);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-faq__banner-btn:hover {
    background: #f0f8f7;
    color: var(--header-accent-dark, #3d7572);
    transform: translateY(-1px);
}

.service-faq__main {
    min-width: 0;
}

.service-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-faq__item {
    border: 1px solid rgba(74, 140, 136, 0.14);
    border-radius: 14px;
    background: linear-gradient(165deg, #f6faf9 0%, #f0f5f4 100%);
    overflow: hidden;
}

.service-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.45;
    color: var(--site-body-text, #333333);
    transition: color 0.2s ease, background 0.2s ease;
}

.service-faq__question::-webkit-details-marker {
    display: none;
}

.service-faq__question::marker {
    content: '';
}

.service-faq__question:hover {
    color: var(--header-accent, #4a8c88);
}

.service-faq__question-text {
    flex: 1 1 auto;
    min-width: 0;
}

.service-faq__icon {
    flex-shrink: 0;
    position: relative;
    width: 22px;
    height: 22px;
}

.service-faq__icon::before,
.service-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--header-text-muted, #8f8f8f);
    border-radius: 1px;
    transition: transform 0.25s ease, background 0.2s ease;
}

.service-faq__icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.service-faq__icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.service-faq__item[open] .service-faq__icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.service-faq__item[open] .service-faq__icon::before,
.service-faq__item[open] .service-faq__icon::after {
    background: var(--header-accent, #4a8c88);
}

.service-faq__item[open] .service-faq__question {
    color: var(--header-accent, #4a8c88);
}

.service-faq__answer {
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--site-body-text, #333333);
}

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

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

/* Этапы: полоса на всю ширину (вне .service-page__container), светло-серый фон */
.service-stages--band.service-block {
    display: flow-root;
    width: 100%;
    margin-top: 64px;
    margin-bottom: 0;
    padding: 0;
    background: #f0f0f0;
}

.service-stages--band > .service-page__container {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Отступ после серой полосы до «Показания» (без схлопывания margin) */
.service-stages--band + .service-page__container {
    padding-top: 48px;
}

.service-stages--band + .service-page__container > .service-indications.service-block {
    margin-top: 0;
}

/* Этапы: вкладки слева, светлая панель справа (в стиле карточек услуг) */
.service-stages__heading {
    margin: 0 0 28px;
    font-size: clamp(26px, 3.5vw, 28px);
    font-weight: 700;
    color: var(--site-body-text, #333333);
}

.service-stages__layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.service-stages__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-stages__tab {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(74, 140, 136, 0.18);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--site-body-text, #333333);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.service-stages__tab:hover {
    border-color: rgba(74, 140, 136, 0.35);
    background: #f8fcfb;
}

.service-stages__tab.is-active {
    border-color: var(--header-accent, #4a8c88);
    background: linear-gradient(160deg, #f0f8f7 0%, #ffffff 70%);
}

.service-stages__tab-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 140, 136, 0.1);
    color: var(--header-accent, #4a8c88);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.service-stages__tab.is-active .service-stages__tab-num {
    background: var(--header-accent, #4a8c88);
    color: #ffffff;
}

.service-stages__tab-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.service-stages__tab:focus-visible {
    outline: 2px solid var(--header-accent, #4a8c88);
    outline-offset: 2px;
}

.service-stages__panels {
    position: relative;
    min-height: 280px;
}

.service-stages__panel {
    display: none;
}

.service-stages__panel.is-active {
    display: block;
}

.service-stages__panel-inner {
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(74, 140, 136, 0.18);
    background: linear-gradient(165deg, #f8fcfb 0%, #ffffff 48%);
}

.service-stages__panel-grid {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.service-stages__panel-grid--no-media {
    grid-template-columns: 1fr;
}

.service-stages__media {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #eef5f4;
    border: 1px solid rgba(74, 140, 136, 0.12);
}

.service-stages__media img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: cover;
}

.service-stages__panel-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--site-body-text, #333333);
}

.service-stages__panel-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--header-text-muted, #8f8f8f);
}

.service-stages__panel-text p {
    margin: 0 0 12px;
}

.service-stages__panel-text p:last-child {
    margin-bottom: 0;
}

.service-stages__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-stages__list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-stages__check {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--header-accent, #4a8c88);
}

.service-stages__list-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--site-body-text, #333333);
}

.service-stages__footer {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(74, 140, 136, 0.15);
    font-size: 14px;
    line-height: 1.6;
    color: var(--header-text-muted, #8f8f8f);
}

@media (max-width: 1023px) {
    .service-stages__layout {
        grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
        gap: 16px;
    }

    .service-stages__panel-grid {
        grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
        gap: 20px;
    }

    .service-advantages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-stages--band > .service-page__container {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .service-stages--band + .service-page__container {
        padding-top: 40px;
    }

}

@media (max-width: 767px) {
    .service-description {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-description__media {
        order: -1;
    }

    .service-advantages__grid {
        grid-template-columns: 1fr;
    }

    .service-indications__cols {
        grid-template-columns: 1fr;
    }

    .service-advantages__title,
    .service-indications__title,
    .service-stages__heading {
        font-size: 22px;
    }

    .service-stages__layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-stages__nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .service-stages__tab {
        flex: 0 0 auto;
        min-width: 200px;
        max-width: 280px;
    }

    .service-stages__panel-inner {
        padding: 22px 20px;
    }

    .service-stages__panel-grid,
    .service-stages__panel-grid--no-media {
        grid-template-columns: 1fr;
    }

    .service-stages__media img {
        min-height: 200px;
    }

    .service-stages--band.service-block {
        margin-top: 48px;
    }

    .service-stages--band > .service-page__container {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .service-stages--band + .service-page__container {
        padding-top: 32px;
    }

    .service-gallery__title {
        font-size: 22px;
    }

    .service-gallery-lightbox__dialog {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-gallery-lightbox__nav--prev,
    .service-gallery-lightbox__nav--next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .service-gallery-lightbox__nav--prev {
        left: 8px;
    }

    .service-gallery-lightbox__nav--next {
        right: 8px;
    }

    .service-gallery-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .service-prices__title {
        font-size: 24px;
    }

    .service-prices__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 0;
    }

    .service-prices__item-price {
        white-space: normal;
    }

    .service-faq__layout {
        grid-template-columns: 1fr;
    }

    .service-faq__banner {
        min-height: 280px;
    }

    .service-faq__banner-frame {
        min-height: 240px;
        margin: 14px;
        padding: 20px 18px;
    }

    .service-faq__question {
        padding: 16px 18px;
        font-size: 14px;
    }

    .service-faq__answer {
        padding: 0 18px 16px;
        font-size: 14px;
    }
}
