/* ==============================
   Публичный раздел услуг
============================== */

.site-content {
    min-width: 0;
}

.services-page,
.category-section,
.services-slider-wrapper,
.slider-viewport {
    min-width: 0;
    width: 100%;
}

.services-hero {
    margin-bottom: clamp(34px, 5vw, 64px);
    padding: clamp(48px, 8vw, 92px) 20px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(201, 169, 110, .16), transparent 32%),
        linear-gradient(135deg, #faf6ef, #fff);
    border-radius: 0 0 32px 32px;
}

.services-hero-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.services-hero h1 {
    margin: 0;
    color: #2e2922;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.services-page {
    padding-bottom: clamp(48px, 7vw, 84px);
}

.categories-grid {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: clamp(52px, 8vw, 90px);
}

.category-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto clamp(24px, 4vw, 38px);
    align-items: center;
}

.category-card--without-image {
    grid-template-columns: 1fr;
}

.category-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(42, 34, 24, .12);
}

.category-info {
    min-width: 0;
}

.category-info h2 {
    margin: 0 0 12px;
    color: #302a22;
    font-size: clamp(27px, 3.5vw, 40px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.category-info p {
    max-width: 760px;
    margin: 0;
    color: #70695f;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.65;
}

/* ==============================
   Адаптивный слайдер
============================== */

.services-slider-wrapper {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(52px, 6vw, 86px);
}

.slider-viewport {
    padding: 8px 3px 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.slider-viewport::-webkit-scrollbar {
    display: none;
}

.services-slider {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.services-slider .service-card {
    flex: 0 0 calc((100% - 72px) / 4);
    scroll-snap-align: start;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    color: #594832;
    font-size: 20px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(201, 169, 110, .36);
    border-radius: 50%;
    box-shadow: 0 9px 24px rgba(37, 29, 20, .16);
    backdrop-filter: blur(9px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.slider-arrow:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-50%) scale(1.07);
}

.slider-arrow.prev {
    left: clamp(4px, 1.4vw, 20px);
}

.slider-arrow.next {
    right: clamp(4px, 1.4vw, 20px);
}

.slider-arrow:disabled {
    opacity: .28;
    cursor: default;
}

/* ==============================
   Карточка услуги
============================== */

.service-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(201, 169, 110, .18);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(37, 29, 20, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(37, 29, 20, .13);
}

.service-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-body {
    display: flex;
    min-width: 0;
    height: 100%;
    padding: clamp(18px, 2.2vw, 25px);
    flex-direction: column;
}

.service-body h3 {
    margin: 0 0 10px;
    color: #332d25;
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.service-body > p {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 18px;
    overflow: hidden;
    color: #746d63;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.service-bottom {
    display: flex;
    gap: 14px;
    margin: auto 0 22px;
    align-items: flex-end;
    justify-content: space-between;
}

.service-bottom > div:first-child {
    flex-shrink: 0;
    color: #81786c;
    font-size: 14px;
}

.service-price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.old-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.new-price {
    color: #8f1d1f;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 800;
    white-space: nowrap;
}

.discount-badge {
    display: inline-flex;
    width: max-content;
    padding: 4px 9px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: #d9484b;
    border-radius: 999px;
}

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

.outline-btn,
.service-buttons .gold-btn {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
}

.outline-btn {
    color: #9c793e;
    background: #fff;
    border: 1px solid #c9a96e;
    transition: color .2s ease, background .2s ease;
}

.outline-btn:hover {
    color: #fff;
    background: #a98548;
}

/* ==============================
   Таймслоты и детальная страница
============================== */

.slot-btn {
    margin: 6px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #c9a96e;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.slot-btn:hover {
    background: #f7f0e2;
}

.slot-btn.active {
    color: #fff;
    background: #c9a96e;
}

.service-detail-page {
    padding: clamp(32px, 6vw, 64px) 0;
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 60px);
    align-items: start;
}

.service-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
}

.service-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.service-card-info,
.benefit-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.service-card-info {
    padding: 20px;
}

.info-row {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 16px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.label {
    color: #888;
}

.value {
    color: #9c793e;
    font-weight: 600;
    text-align: right;
}

.full-btn {
    width: 100%;
    text-align: center;
}

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

.service-content h1 {
    margin: 0 0 24px;
    font-size: clamp(30px, 4vw, 44px);
    overflow-wrap: anywhere;
}

.service-text,
.service-description {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

.service-reviews {
    display: grid;
    gap: 18px;
    margin-top: clamp(34px, 6vw, 62px);
    padding-top: clamp(24px, 4vw, 38px);
    border-top: 1px solid rgba(201, 169, 110, .28);
}

.service-reviews__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.service-reviews__heading span {
    color: #9c793e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.service-reviews__heading h2 {
    margin: 5px 0 0;
    color: #332d25;
    font-size: clamp(25px, 3vw, 34px);
}

.service-reviews__heading > strong {
    display: grid;
    min-width: 50px;
    min-height: 50px;
    place-items: center;
    border-radius: 15px;
    color: #8a6933;
    background: #f7f0e4;
    font-size: 21px;
}

.service-reviews__carousel {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 11px;
    align-items: center;
}

.service-reviews__list {
    display: flex;
    min-width: 0;
    gap: 14px;
    padding: 7px 3px 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.service-reviews__list::-webkit-scrollbar { display: none; }

.service-reviews__arrow {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(201, 169, 110, .5);
    border-radius: 50%;
    color: #73572c;
    background: #fff;
    box-shadow: 0 8px 22px rgba(45, 35, 22, .1);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.service-reviews__arrow:hover:not(:disabled) { background: #f9f2e7; transform: scale(1.06); }
.service-reviews__arrow:disabled { cursor: default; opacity: .28; }

.service-public-review {
    display: grid;
    flex: 0 0 min(82%, 520px);
    box-sizing: border-box;
    gap: 14px;
    padding: clamp(16px, 2.5vw, 22px);
    border: 1px solid rgba(201, 169, 110, .24);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(45, 35, 22, .055);
    scroll-snap-align: start;
}

.service-public-review > header,
.service-public-review__author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.service-public-review > header {
    justify-content: space-between;
}

.service-public-review__author img,
.service-public-review__author > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
    background: #f4ede2;
    font-size: 19px;
}

.service-public-review__author strong,
.service-public-review__author time {
    display: block;
}

.service-public-review__author strong { color: #40372e; }
.service-public-review__author time { margin-top: 3px; color: #9a9085; font-size: 11px; }
.service-public-review__stars { display: flex; flex: 0 0 auto; gap: 1px; color: #ddd2c1; font-size: 19px; }
.service-public-review__stars .is-active { color: #d3a33e; }
.service-public-review > p { margin: 0; color: #675e54; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.service-public-review__images { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.service-public-review__images img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

.service-reviews__loader { display: flex; justify-content: center; }
.service-reviews__loader[hidden] { display: none; }
.service-reviews__loader button {
    min-width: 180px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #c9a96e;
    border-radius: 12px;
    color: #8a6933;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
.service-reviews__loader button:disabled { cursor: wait; opacity: .6; }
.service-reviews__feedback { min-height: 18px; margin: 0; color: #81766a; font-size: 12px; text-align: center; }
.service-reviews__feedback.is-error { color: #a54b4b; }
.service-reviews__empty { width: 100%; flex: 0 0 100%; box-sizing: border-box; padding: 26px 18px; border: 1px dashed #dfd1bd; border-radius: 16px; color: #8b8175; background: #fcf9f4; text-align: center; }

.service-description {
    margin-bottom: 25px;
}

.service-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
}

.service-benefits h2 {
    margin-bottom: 30px;
    font-size: 30px;
}

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

.benefit-card {
    padding: 25px;
    transition: transform .25s ease;
}

.benefit-card:hover,
.service-card-info:hover {
    transform: translateY(-3px);
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

/* ==============================
   Breakpoints
============================== */

@media (max-width: 1280px) {
    .services-slider .service-card {
        flex-basis: calc((100% - 48px) / 3);
    }
}

@media (max-width: 900px) {
    .category-card {
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    }

    .services-slider .service-card {
        flex-basis: calc((100% - 24px) / 2);
    }

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

    .service-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .services-hero {
        border-radius: 0 0 22px 22px;
    }

    .category-card {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
    }

    .category-card > img {
        max-height: 260px;
    }

    .services-slider-wrapper {
        padding: 0;
    }

    .slider-viewport {
        padding-right: 16px;
        padding-left: 16px;
        scroll-padding-left: 16px;
    }

    .services-slider .service-card {
        flex-basis: min(88%, 360px);
    }

    .slider-arrow {
        display: none !important;
    }

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

@media (max-width: 420px) {
    .service-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-price {
        align-items: flex-start;
        text-align: left;
    }

    .services-slider .service-card {
        flex-basis: 92%;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .value {
        text-align: left;
    }

    .service-public-review > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-reviews__carousel {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 6px;
    }

    .service-reviews__arrow {
        width: 36px;
        height: 36px;
        font-size: 25px;
    }

    .service-public-review { flex-basis: 92%; }
}
