/* ==========================================================================
   Услуги: список /uslugi и карточка услуги /usluga
   ========================================================================== */

.us-page {
    --us-bg: #fcf0ea;
    --us-card: #f8ece5;
    --us-card-2: #f1ddd1;
    --us-line: #e2cbbc;
    --us-accent: #b28663;
    --us-accent-dark: #96694a;
    --us-ink: #1d1d1d;
    --us-ink-soft: rgba(29, 29, 29, 0.82);
    --us-ink-mute: rgba(29, 29, 29, 0.6);
    --us-shadow: 0 26px 60px rgba(122, 78, 45, 0.13);
    --us-shadow-soft: 0 16px 38px rgba(122, 78, 45, 0.10);

    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 2%, rgba(255, 255, 255, 0.9), transparent 32%),
        radial-gradient(circle at 94% 18%, rgba(178, 134, 99, 0.12), transparent 30%),
        radial-gradient(circle at 2% 86%, rgba(178, 134, 99, 0.10), transparent 28%),
        var(--us-bg);
}

.us-page *,
.us-page *::before,
.us-page *::after {
    box-sizing: border-box;
}

.us-container {
    width: min(1260px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.us-section {
    position: relative;
    padding: clamp(46px, 5.5vw, 88px) 0;
}

.us-section--head {
    padding-bottom: clamp(28px, 3vw, 44px);
}

.us-section--flush {
    padding-top: 0;
}

.us-stars {
    position: absolute;
    top: 3%;
    right: -40px;
    width: clamp(180px, 22vw, 340px);
    opacity: 0.18;
    transform: rotate(24deg);
    pointer-events: none;
    user-select: none;
}

/* --- общая типографика --------------------------------------------------- */

.us-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: "Spectral", serif;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--us-accent);
}

.us-eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--us-accent);
    opacity: 0.6;
}

.us-title {
    margin: 0;
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem) !important;
    line-height: 1.1;
    color: var(--us-ink);
}

.us-head {
    text-align: center;
}

.us-head .us-eyebrow {
    justify-content: center;
}

.us-head .us-eyebrow::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--us-accent);
    opacity: 0.6;
}

.us-head .us-title::after {
    content: "";
    display: block;
    width: 96px;
    height: 1px;
    margin: 26px auto 0;
    background: var(--us-accent);
    opacity: 0.55;
}

/* --- кнопки -------------------------------------------------------------- */

.us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--us-accent);
    color: #fff9f5;
    font-family: "Forum", serif;
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(150, 105, 74, 0.22);
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}

.us-btn:hover,
.us-btn:focus-visible {
    background: var(--us-accent-dark);
    color: #fff9f5;
    transform: translateY(-3px);
    box-shadow: 0 22px 38px rgba(150, 105, 74, 0.28);
}

.us-btn__arrow {
    transition: transform .3s ease;
}

.us-btn:hover .us-btn__arrow {
    transform: translateX(5px);
}

.us-btn--ghost {
    background: transparent;
    color: var(--us-ink);
    border-color: var(--us-line);
    box-shadow: none;
}

.us-btn--ghost:hover,
.us-btn--ghost:focus-visible {
    background: rgba(178, 134, 99, 0.08);
    border-color: var(--us-accent);
    color: var(--us-ink);
    box-shadow: none;
}

.us-btn--lg {
    min-height: 62px;
    padding: 16px 38px;
    font-size: 1.15rem;
}

/* ==========================================================================
   СПИСОК УСЛУГ
   ========================================================================== */

.us-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.us-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: var(--us-card);
    border: 1px solid rgba(226, 203, 188, 0.75);
    box-shadow: var(--us-shadow-soft);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease, border-color .4s ease;
}

.us-card:hover {
    transform: translateY(-8px);
    border-color: var(--us-accent);
    box-shadow: var(--us-shadow);
}

/* фото одинаковой высоты во всех карточках */
.us-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--us-card-2);
}

.us-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}

.us-card:hover .us-card__media img {
    transform: scale(1.06);
}

.us-card__price {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 253, 251, 0.94);
    backdrop-filter: blur(6px);
    font-family: "Forum", serif;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--us-accent-dark);
    box-shadow: 0 10px 22px rgba(122, 78, 45, 0.16);
}

.us-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 28px 28px 30px;
}

/* заголовок занимает ровно две строки — тогда описание и кнопки
   во всех карточках начинаются на одной высоте */
.us-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px;
    min-height: calc(2 * 1.25em);
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: 1.3rem !important;
    line-height: 1.25;
    color: var(--us-ink);
    transition: color .3s ease;
}

a.us-card__title-link {
    text-decoration: none;
}

a.us-card__title-link:hover .us-card__title {
    color: var(--us-accent);
}

/* описание одинаковой высоты: ровно 5 строк во всех карточках */
.us-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 24px;
    min-height: calc(5 * 1.6em);
    font-family: "Spectral", serif;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--us-ink-soft);
}

.us-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--us-line);
}

.us-card__foot .us-btn {
    flex: 1 1 150px;
    min-height: 50px;
    padding: 12px 20px;
    font-size: 1rem;
}

/* ==========================================================================
   КАРТОЧКА УСЛУГИ
   ========================================================================== */

.us-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-family: "Spectral", serif;
    font-size: 0.92rem;
    color: var(--us-ink-mute);
}

.us-crumbs a {
    color: var(--us-ink-mute);
    text-decoration: none;
    transition: color .3s ease;
}

.us-crumbs a:hover {
    color: var(--us-accent);
}

.us-crumbs span[aria-hidden] {
    opacity: 0.5;
}

.us-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(30px, 4.5vw, 68px);
    align-items: center;
}

.us-hero__title {
    margin: 0;
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: clamp(2rem, 3.6vw, 3.3rem) !important;
    line-height: 1.12;
    color: var(--us-ink);
}

.us-hero__price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(178, 134, 99, 0.12);
    border: 1px solid rgba(178, 134, 99, 0.28);
}

.us-hero__price span {
    font-family: "Spectral", serif;
    font-size: 0.88rem;
    font-style: italic;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--us-ink-mute);
}

.us-hero__price strong {
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--us-accent-dark);
}

.us-hero__lead {
    margin: 18px 0 0;
    max-width: 48ch;
    font-family: "Spectral", serif;
    font-style: italic;
    font-size: clamp(1.02rem, 1.2vw, 1.22rem);
    line-height: 1.65;
    color: var(--us-ink-soft);
}

.us-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

/* фото услуги */

.us-hero__visual {
    position: relative;
    perspective: 1200px;
}

.us-hero__frame {
    position: absolute;
    inset: 24px -24px -24px 24px;
    border: 1px solid var(--us-accent);
    border-radius: 36px;
    opacity: 0.45;
    pointer-events: none;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.us-photo {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    background: var(--us-card-2);
    box-shadow: var(--us-shadow);
    aspect-ratio: 1 / 1;
    transform: rotateX(var(--us-rx, 0deg)) rotateY(var(--us-ry, 0deg));
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), box-shadow .6s ease;
    will-change: transform;
}

.us-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}

.us-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 46%, rgba(122, 78, 45, 0.16) 100%);
    pointer-events: none;
}

.us-hero__visual:hover .us-photo img {
    transform: scale(1.05);
}

.us-hero__visual:hover .us-hero__frame {
    transform: translate(-12px, -12px);
}

/* --- текст услуги -------------------------------------------------------- */

.us-article {
    position: relative;
    padding: clamp(30px, 3.6vw, 60px) clamp(24px, 3.4vw, 62px);
    border-radius: 36px;
    background: var(--us-card);
    border: 1px solid rgba(226, 203, 188, 0.8);
    box-shadow: var(--us-shadow-soft);
    font-family: "Spectral", serif;
    font-size: clamp(1.02rem, 1.15vw, 1.18rem);
    line-height: 1.75;
    color: var(--us-ink-soft);
}

.us-article > :first-child {
    margin-top: 0;
}

.us-article > :last-child {
    margin-bottom: 0;
}

.us-article p {
    margin: 0 0 20px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.us-article h2,
.us-article h3,
.us-article h4 {
    margin: 38px 0 16px;
    font-family: "Forum", serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--us-ink);
}

.us-article h2 { font-size: clamp(1.5rem, 2.2vw, 2rem) !important; }
.us-article h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem) !important; }
.us-article h4 { font-size: 1.2rem !important; }

.us-article strong,
.us-article b {
    color: var(--us-ink);
    font-weight: 600;
}

.us-article a {
    color: var(--us-accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.us-article a:hover {
    color: var(--us-accent);
}

.us-article ul,
.us-article ol {
    margin: 0 0 22px;
    padding: 0 0 0 4px;
    list-style: none;
}

.us-article ol {
    counter-reset: us-ol;
}

.us-article li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
    font-size: inherit;
    line-height: 1.65;
}

.us-article ul > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.68em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--us-accent);
}

.us-article ol > li {
    counter-increment: us-ol;
}

.us-article ol > li::before {
    content: counter(us-ol);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-family: "Forum", serif;
    font-size: 1.05em;
    color: var(--us-accent);
}

.us-article blockquote {
    margin: 26px 0;
    padding: 22px 28px;
    border-left: 3px solid var(--us-accent);
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

.us-article img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 24px;
}

.us-article table {
    width: 100%;
    margin: 0 0 22px;
    border-collapse: collapse;
}

.us-article td,
.us-article th {
    padding: 12px 14px;
    border: 1px solid var(--us-line);
}

/* широкое фото между блоками */

.us-banner {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    aspect-ratio: 21 / 9;
    background: var(--us-card-2);
    box-shadow: var(--us-shadow-soft);
    transition: box-shadow .45s ease;
}

.us-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}

.us-banner:hover img {
    transform: scale(1.04);
}

.us-banner:hover {
    box-shadow: var(--us-shadow);
}

/* --- призыв записаться --------------------------------------------------- */

.us-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 4.4vw, 66px) clamp(26px, 4vw, 70px);
    border-radius: 40px;
    background: linear-gradient(135deg, #b28663 0%, #c9a184 52%, #d4c1b3 100%);
    color: #fffaf6;
    text-align: center;
    box-shadow: 0 30px 62px rgba(122, 78, 45, 0.26);
}

.us-cta::before,
.us-cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.us-cta::before {
    top: -140px;
    left: -100px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
}

.us-cta::after {
    right: -120px;
    bottom: -150px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

.us-cta__title {
    position: relative;
    margin: 0;
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: clamp(1.7rem, 2.8vw, 2.6rem) !important;
    line-height: 1.18;
    color: #fffaf6;
}

.us-cta__price {
    position: relative;
    margin: 16px 0 0;
    font-family: "Spectral", serif;
    font-style: italic;
    font-size: 1.12rem;
    color: rgba(255, 250, 246, 0.92);
}

.us-cta__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 30px;
}

.us-cta .us-btn {
    background: #fffaf6;
    color: #7d5539;
    box-shadow: 0 18px 34px rgba(70, 42, 22, 0.22);
}

.us-cta .us-btn:hover {
    background: #fff;
    color: #7d5539;
}

.us-cta .us-btn--ghost {
    background: transparent;
    border-color: rgba(255, 250, 246, 0.6);
    color: #fffaf6;
    box-shadow: none;
}

.us-cta .us-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fffaf6;
    color: #fffaf6;
}

/* --- другие услуги ------------------------------------------------------- */

.us-more__title {
    margin: 0 0 clamp(24px, 3vw, 38px);
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem) !important;
    line-height: 1.2;
    text-align: center;
    color: var(--us-ink);
}

/* ==========================================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ (класс us-anim ставит скрипт)
   ========================================================================== */

.us-page.us-anim .us-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.us-page.us-anim .us-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .us-page.us-anim .us-reveal,
    .us-photo,
    .us-card {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

@media (max-width: 1199.98px) {
    .us-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .us-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .us-hero__visual {
        order: -1;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .us-hero__frame {
        inset: 18px -18px -18px 18px;
    }

    .us-banner {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767.98px) {
    .us-stars {
        display: none;
    }

    .us-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .us-card__body {
        padding: 24px 22px 26px;
    }

    /* на телефоне ничего не обрезаем — карточки идут одна под другой */
    .us-card__title,
    .us-card__text {
        -webkit-line-clamp: unset;
        min-height: 0;
        display: block;
        overflow: visible;
    }

    .us-card__foot .us-btn {
        flex: 1 1 100%;
    }

    .us-hero__actions .us-btn,
    .us-cta__actions .us-btn {
        width: 100%;
    }

    .us-banner {
        aspect-ratio: 4 / 3;
    }
}
