/* Дана Павловская — базовые стили */
@import url("zodiac-icons.css");

:root {
    --color-bg: #0f1114;
    --color-bg-elevated: #171a1f;
    --color-surface: #1e2329;
    --color-text: #e8eaef;
    --color-muted: #9aa3b2;
    --color-accent: #c4a574;
    --color-accent-dim: rgba(196, 165, 116, 0.15);
    --font-sans: "Manrope", system-ui, sans-serif;
    --font-serif: "Literata", Georgia, serif;
    --font-cta: "Manrope", system-ui, sans-serif;
    --dana-heading-transform: uppercase;
    --dana-heading-tracking: 0.035em;
    --dana-caption-transform: uppercase;
    --dana-caption-hero-track: 0.12em;
    --dana-caption-hub-track: 0.22em;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --header-h: 4rem;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@supports (scrollbar-gutter: stable) {
    html {
        /* резерв под полосу прокрутки — меньше рывка при overflow:hidden у body (моб. меню) */
        scrollbar-gutter: stable;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(196, 165, 116, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(100, 120, 180, 0.06), transparent);
}

/* Фоновый звездопад: canvas (только страница 503 в header.php → dana_starfall.js; не в админке; off при prefers-reduced-motion) */
canvas.dana-starfall {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration-skip-ink: auto;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 2rem, 680px);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* без backdrop-filter: иначе дочернее моб. меню с backdrop-filter ломается (Chrome / WebKit) */
    background: color-mix(in srgb, var(--color-bg) 90%, #000 10%);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding-block: 0.75rem;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-decoration: none;
}

.logo--image {
    display: inline-flex;
    align-items: center;
    max-width: min(50vw, 460px);
    font-size: 0;
    line-height: 0;
}

.logo__img {
    display: block;
    max-height: clamp(2.25rem, 4vw, 3.125rem);
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo--image:hover .logo__img {
    opacity: 0.92;
}

.logo:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: var(--color-surface);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin-inline: auto;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.28, 1), opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__link {
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav__link:hover {
    color: var(--color-text);
    text-decoration: none;
}

.nav__link.is-active {
    color: var(--color-accent);
}

/* Десктоп: меню в одну строку; если не помещается — прокрутка по горизонтали */
@media (min-width: 721px) {
    .header__inner .nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav__list {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: clamp(0.3rem, 1.1vw, 0.95rem);
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-block: 0.2rem;
        overscroll-behavior-x: contain;
    }

    .nav__list::-webkit-scrollbar {
        height: 4px;
    }

    .nav__list::-webkit-scrollbar-thumb {
        background: rgba(196, 165, 116, 0.35);
        border-radius: 4px;
    }

    .nav__link {
        white-space: nowrap;
        font-size: clamp(0.8rem, 1.05vw, 0.9375rem);
    }
}

/* Слой размытия / клик моб. меню (включены только в @media mobile) */
.nav__frost,
.nav__shade,
.nav__backdrop {
    display: none;
}

body.nav-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

/* Узкая шапка на мобилке — больше места под логотип */
@media (max-width: 720px) {
    :root {
        --header-h: 3.5rem;
    }

    .site-header .header__inner {
        width: min(100% - 1rem, 1100px);
        min-height: var(--header-h);
        padding-block: 0.45rem;
        gap: 0.65rem;
    }

    .logo--image {
        max-width: min(72vw, 420px);
    }

    .logo__img {
        max-height: clamp(2.5rem, 11vw, 3.125rem);
    }
}

/* Main */
.main {
    min-height: calc(100vh - var(--header-h));
}

.main--home {
    min-height: 0;
}

/* Главная: карусель экранов — чёткое переключение, плавная анимация на transform */
.home-carousel {
    --carousel-film-dur: 1s;
    --carousel-film-ease: cubic-bezier(0.22, 1, 0.28, 1);
    position: relative;
}

.home-carousel__viewport {
    position: relative;
    height: calc(100svh - var(--header-h));
    min-height: 280px;
    overflow: hidden;
}

/* Подсказка «следующий экран» — только первый слайд при наличии ещё экранов; клик = следующий */
.home-carousel-scroll-hint {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    z-index: 32;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.5rem;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.home-carousel-scroll-hint:focus-visible {
    outline: 2px solid rgba(196, 165, 116, 0.75);
    outline-offset: 4px;
    border-radius: 999px;
}

#home-carousel[data-slide-active="1"]:not([data-slides-total="1"]) .home-carousel-scroll-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-carousel-scroll-hint__group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    animation: home-carousel-scroll-hint-bob 2.4s ease-in-out infinite;
}

.home-carousel-scroll-hint__ring {
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(196, 165, 116, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(196, 165, 116, 0.28);
}

.home-carousel-scroll-hint__stem {
    display: block;
    width: 2px;
    height: 36px;
    border-radius: 1px;
    background: linear-gradient(
        to bottom,
        rgba(196, 165, 116, 0.85),
        rgba(196, 165, 116, 0)
    );
}

@keyframes home-carousel-scroll-hint-bob {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.75;
    }

    50% {
        transform: translateY(12px);
        opacity: 1;
    }
}

.home-carousel__track {
    display: flex;
    flex-direction: column;
    transform: translate3d(0, 0, 0);
    transition: transform var(--carousel-film-dur) var(--carousel-film-ease);
    will-change: transform;
}

.home-carousel--instant .home-carousel__track {
    transition-duration: 0.05s;
}

.home-carousel .home-slide {
    position: relative;
    flex: 0 0 calc(100svh - var(--header-h));
    height: calc(100svh - var(--header-h));
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Сглаживает «щель» под фоном hero при длинном контенте (iOS) */
    background: var(--color-bg);
}

/*
 * Появление блока контента: один opacity-transition на .hero__inner / .home-hub__inner
 * (без каскада и @keyframes — надёжнее на iOS).
 */
.home-carousel--motion {
    --home-slide-reveal-dur: 0.7s;
    --home-slide-reveal-delay: 0.1s;
}

.home-page .home-carousel--motion .home-slide .hero__inner::before,
.home-page .home-carousel--motion .home-slide .home-hub__inner::before {
    opacity: 1;
    transition: none;
}

.home-carousel--motion .home-slide:not(.home-slide--revealed):not(.home-slide--revealed-done) .hero__inner > *,
.home-carousel--motion .home-slide:not(.home-slide--revealed):not(.home-slide--revealed-done) .home-hub__inner > * {
    opacity: 0;
}

.home-carousel--motion .home-slide--revealed .hero__inner > *,
.home-carousel--motion .home-slide--revealed .home-hub__inner > * {
    opacity: 1;
    transition: opacity var(--home-slide-reveal-dur) ease var(--home-slide-reveal-delay);
}

.home-carousel--motion .home-slide--revealed-done .hero__inner > *,
.home-carousel--motion .home-slide--revealed-done .home-hub__inner > *,
.home-page .home-carousel--motion .home-slide--revealed-done .hero__inner::before,
.home-page .home-carousel--motion .home-slide--revealed-done .home-hub__inner::before {
    opacity: 1;
    transition: none;
}

.home-carousel .home-slide--hero .hero--parallax {
    --hero-min-h: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
}

.home-carousel .home-slide--hero .hero--parallax.hero--split {
    --hero-min-h: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
}

/* «Личные консультации», статические разделы (книги, гороскопы…): hero ≈ 70% высоты вьюпорта */
.section-static-hero.hero--parallax,
.consultations-hero.hero--parallax {
    --hero-min-h: 70svh;
}

/* Мобильные поля: parallax hero (консультации, книги/гороскопы…), контент в main, заголовки page-head — без прилипания к краям */
@media (max-width: 720px) {
    .section-static-hero .container.hero__inner,
    .consultations-hero .container.hero__inner {
        padding-left: max(1rem, calc(env(safe-area-inset-left) + 0.75rem));
        padding-right: max(1rem, calc(env(safe-area-inset-right) + 0.75rem));
        box-sizing: border-box;
    }

    main .container:not(.about-page-shell) {
        width: min(100% - 2.75rem, 1100px);
    }

    main .container.narrow:not(.about-page-shell) {
        width: min(100% - 2.75rem, 680px);
    }

    main .dana-cart-checkout-section > .container.narrow,
    main .page-head.page-head--detail:has(+ .dana-cart-checkout-section) > .container.narrow {
        width: min(100% - 2.75rem, 800px);
    }

    main .about-page-shell {
        width: min(100% - 2.75rem, 960px);
    }

    .page-head .container,
    .page-head .container.narrow {
        padding-left: max(1rem, calc(env(safe-area-inset-left) + 0.75rem));
        padding-right: max(1rem, calc(env(safe-area-inset-right) + 0.75rem));
        box-sizing: border-box;
    }
}

@media (max-width: 520px) {
    .section-static-hero .container.hero__inner,
    .consultations-hero .container.hero__inner {
        padding-left: max(1.1rem, calc(env(safe-area-inset-left) + 0.85rem));
        padding-right: max(1.1rem, calc(env(safe-area-inset-right) + 0.85rem));
    }

    main .container:not(.about-page-shell) {
        width: min(100% - 3rem, 1100px);
    }

    main .container.narrow:not(.about-page-shell) {
        width: min(100% - 3rem, 680px);
    }

    main .dana-cart-checkout-section > .container.narrow,
    main .page-head.page-head--detail:has(+ .dana-cart-checkout-section) > .container.narrow {
        width: min(100% - 3rem, 800px);
    }

    main .about-page-shell {
        width: min(100% - 3rem, 960px);
    }

    .page-head .container,
    .page-head .container.narrow {
        padding-left: max(1.1rem, calc(env(safe-area-inset-left) + 0.85rem));
        padding-right: max(1.1rem, calc(env(safe-area-inset-right) + 0.85rem));
    }

    .service-section .service-chess {
        padding: clamp(1.15rem, 5vw, 1.65rem);
        gap: clamp(1rem, 4vw, 1.4rem);
    }

    .service-section .service-chess__body {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
}

.home-carousel .home-hub {
    min-height: 100%;
    box-sizing: border-box;
}

/* Подписи «назад / вперёд» по краям карусели — без рамок */
.home-carousel__edge {
    position: absolute;
    z-index: 35;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.55rem 0.35rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    color: rgba(232, 234, 239, 0.72);
    cursor: pointer;
    transition:
        color 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

.home-carousel__edge--prev {
    left: max(0.75rem, env(safe-area-inset-left));
}

.home-carousel__edge--next {
    right: max(0.75rem, env(safe-area-inset-right));
}

.home-carousel__edge-label {
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    transition: transform 0.35s ease;
}

.home-carousel__edge-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0.85;
}

.home-carousel__edge:not(:disabled):focus-visible {
    outline: none;
    color: var(--color-accent);
}

.home-carousel__edge:not(:disabled):focus-visible .home-carousel__edge-label::after {
    transform: scaleX(1);
}

.home-carousel__edge:not(:disabled):hover {
    color: var(--color-accent);
}

.home-carousel__edge:not(:disabled):hover .home-carousel__edge-label::after {
    transform: scaleX(1);
}

.home-carousel__edge:not(:disabled):hover .home-carousel__edge-label {
    text-shadow: 0 0 28px rgba(196, 165, 116, 0.35);
}

.home-carousel__edge--prev:not(:disabled):hover .home-carousel__edge-label {
    animation: home-carousel-edge-prev 0.95s ease-in-out infinite alternate;
}

.home-carousel__edge--next:not(:disabled):hover .home-carousel__edge-label {
    animation: home-carousel-edge-next 0.95s ease-in-out infinite alternate;
}

.home-carousel__edge:not(:disabled):active .home-carousel__edge-label {
    transform: scale(0.96);
}

@keyframes home-carousel-edge-prev {
    from {
        transform: translateX(2px);
    }

    to {
        transform: translateX(-6px);
    }
}

@keyframes home-carousel-edge-next {
    from {
        transform: translateX(-2px);
    }

    to {
        transform: translateX(6px);
    }
}

.home-carousel__edge:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.home-carousel__edge:disabled .home-carousel__edge-label::after {
    display: none;
}

@media (max-width: 720px) {
    /* Без краевых кнопок — обычные поля контейнера */
    .home-carousel {
        --carousel-content-gutter: clamp(1rem, 5vw, 1.75rem);
    }

    .home-carousel .hero .container.hero__inner,
    .home-carousel .home-hub .container.home-hub__inner {
        padding-left: max(var(--carousel-content-gutter), calc(env(safe-area-inset-left) + 0.85rem));
        padding-right: max(var(--carousel-content-gutter), calc(env(safe-area-inset-right) + 0.85rem));
        box-sizing: border-box;
    }

    .home-carousel__edge {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .home-carousel {
        --carousel-content-gutter: clamp(0.95rem, 5.5vw, 1.65rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__shortcut-link::after {
        animation: none;
        width: 100%;
        transform: none;
        left: 0;
    }

    .home-carousel__edge--prev:not(:disabled):hover .home-carousel__edge-label,
    .home-carousel__edge--next:not(:disabled):hover .home-carousel__edge-label {
        animation: none;
        transform: none;
    }

    .home-carousel-scroll-hint__group {
        animation: none !important;
        opacity: 0.92;
    }

    .home-carousel .home-slide .hero__inner,
    .home-carousel .home-slide .home-hub__inner,
.home-carousel .home-slide .hero__inner > *,
.home-carousel .home-slide .home-hub__inner > *,
    .home-page .home-carousel .home-slide .hero__inner::before,
    .home-page .home-carousel .home-slide .home-hub__inner::before {
        opacity: 1 !important;
        transition: none !important;
    }

    .home-carousel__track {
        transition-duration: 0.06s;
        transition-timing-function: linear;
    }
}

.hero__hint {
    margin: 0 0 1.25rem;
    max-width: 38rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(232, 234, 239, 0.82);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    white-space: pre-line;
}

.hero__shortcut {
    margin: 1.15rem 0 0;
}

/* Как .hero__eyebrow («Астрологические консультации») + бегущее подчёркивание */
.hero__shortcut-link {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35em;
    font-family: var(--font-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: var(--dana-caption-hero-track);
    text-transform: var(--dana-caption-transform);
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hero__shortcut-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(196, 165, 116, 0.35);
    border-radius: 1px;
}

.hero__shortcut-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38%;
    height: 2px;
    border-radius: 1px;
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(196, 165, 116, 0.55);
    will-change: transform;
    animation: hero-shortcut-underline-run 2.1s ease-in-out infinite alternate;
}

.hero--parallax .hero__shortcut-link {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__shortcut-link:hover {
    color: #e8d4b0;
    text-decoration: none;
}

.hero__shortcut-link:hover::after {
    box-shadow: 0 0 14px rgba(196, 165, 116, 0.75);
}

.hero__shortcut-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

@keyframes hero-shortcut-underline-run {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(163%);
    }
}

/* Главная (index): матирование через blur у hero (single + split) */
.home-page .home-carousel .hero--parallax:not(.hero--split) .hero__inner,
.home-page .home-carousel .home-hub .home-hub__inner {
    box-sizing: border-box;
    padding: clamp(1.35rem, 3.8vw, 2rem) clamp(1.3rem, 3.2vw, 1.85rem);
}

.home-page .home-carousel .hero--parallax.hero--split .hero__inner {
    box-sizing: border-box;
    padding: clamp(1.35rem, 3.8vw, 2rem) clamp(1.3rem, 3.2vw, 1.85rem);
    max-width: min(1120px, 100%);
    width: 100%;
}

.home-page .home-carousel .hero--parallax .hero__inner::before,
.home-page .home-carousel .home-hub .home-hub__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(12, 14, 18, 0.38);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__inner::before {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    backdrop-filter: blur(10px) saturate(1.05);
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__parallax-img {
    filter: brightness(0.54) saturate(1.05);
}

.home-page .home-carousel .home-hub.home-hub--about .home-hub__inner::before {
    background: rgba(18, 14, 24, 0.4);
}

.home-page .home-carousel .home-hub.home-hub--white .home-hub__inner::before {
    background: rgba(255, 255, 255, 0.52);
}

.home-page .home-carousel .home-hub.home-hub--black .home-hub__inner::before {
    background: rgba(8, 8, 8, 0.62);
}

.home-page .home-carousel .home-hub.home-hub--accent .home-hub__inner::before {
    background: rgba(62, 52, 38, 0.25);
}

.home-page .home-carousel .hero--parallax .hero__inner > *,
.home-page .home-carousel .home-hub .home-hub__inner > * {
    position: relative;
    z-index: 1;
}

/* На стекле тени текста можно чуть смягчить */
.home-page .home-carousel .hero--parallax .hero__eyebrow {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.home-page .home-carousel .hero--parallax .hero__title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.home-page .home-carousel .hero--parallax .hero__lead {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.home-page .home-carousel .hero--parallax .hero__hint {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

@media (max-width: 920px) {
    /*
     * Длинный контент в слайде: фон hero тянется на всю прокручиваемую высоту,
     * чтобы под карточками не оставалась «пустая» чёрная полоса body.
     */
    .home-carousel .home-slide--hero .hero--parallax.hero--split {
        min-height: 100%;
        align-items: flex-start;
    }

    .home-carousel .home-slide--hero .hero--parallax.hero--split .hero__parallax {
        top: 0;
        bottom: 0;
        height: auto;
        min-height: 100%;
    }

    .home-carousel .home-slide--hero .hero--parallax.hero--split .hero__parallax-img {
        min-height: 100%;
        min-width: 100%;
    }

    /*
     * Сплит: порядок — надзаголовок → заголовок → фото → лид; фото ограничено по высоте экрана.
     */
    .home-page .home-carousel .hero-split {
        --hero-split-img-max-h: min(40svh, calc(100svh - var(--header-h) - 11rem), 340px);
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "intro"
            "media"
            "after";
        gap: clamp(0.75rem, 2.4vw, 1.25rem);
    }

    .home-page .home-carousel .home-slide--hero-split .hero.hero--parallax.hero--split {
        align-items: flex-start;
        padding: clamp(1.35rem, 4.2vw, 2.75rem) 0;
    }

    .home-page .home-carousel .home-slide--hero-split .hero.hero--parallax.hero--split .hero__inner.hero-split-intro {
        box-sizing: border-box;
        margin-left: 10px;
        margin-right: 10px;
        width: auto;
        max-width: min(1120px, 100%);
        padding: clamp(0.85rem, 2.4vw, 1.35rem) clamp(0.95rem, 2.6vw, 1.5rem);
    }

    .home-page .home-carousel .home-slide--hero-split .hero-split__media {
        position: relative;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        align-self: start;
        height: auto;
        min-height: 0;
    }

    .home-page .home-carousel .home-slide--hero-split .hero__title {
        font-size: clamp(1.45rem, 5vw, 2.35rem);
        margin-bottom: 0;
        text-wrap: balance;
    }

    .home-page .home-carousel .home-slide--hero-split .hero__lead {
        margin-bottom: 1rem;
        font-size: 0.97rem;
        line-height: 1.55;
    }

    .home-page .home-carousel .home-slide--hero-split .hero__eyebrow {
        margin-bottom: 0.55rem;
    }
}

/* Герой сплит: надзаголовок + заголовок → фото → лид и кнопки */
.home-page .home-carousel .hero-split-intro {
    width: 100%;
}

/* Обёртка: на мобиле не вмешивается в сетку (intro / media / after), на десктопе — одна колонка текста подряд */
.home-page .home-carousel .hero-split__copy {
    display: contents;
}

/* Герой сплит: общие привязки к областям сетки (мобила + десктоп) */
.home-page .home-carousel .hero-split__intro {
    grid-area: intro;
    min-width: 0;
}

.home-page .home-carousel .hero-split__intro .hero__title {
    margin-bottom: 0;
}

.home-page .home-carousel .hero-split__after {
    grid-area: after;
    min-width: 0;
}

.home-page .home-carousel .hero-split__after .hero__lead {
    margin-top: 0;
}

.home-page .home-carousel .hero-split__media {
    grid-area: media;
    position: relative;
    min-width: 0;
    align-self: start;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.home-page .home-carousel .hero-split__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: var(--hero-split-img-max-h, min(48svh, 420px));
    margin-inline: auto;
}

@media (min-width: 921px) {
    /* Десктоп: слева единая колонка eyebrow → заголовок → лид и CTA; справа фото на всю высоту текста */
    .home-page .home-carousel .hero-split {
        --hero-split-img-max-h: min(55svh, calc(100svh - var(--header-h) - 6.5rem), 540px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
        grid-template-rows: auto;
        grid-template-areas: "copy media";
        gap: clamp(1rem, 3vw, 2rem);
        align-items: start;
        width: 100%;
    }

    .home-page .home-carousel .hero-split__copy {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: clamp(0.4rem, 1vw, 0.65rem);
        grid-area: copy;
        min-width: 0;
    }

    .home-page .home-carousel .hero-split__intro,
    .home-page .home-carousel .hero-split__after {
        grid-area: unset;
    }

    /* +10px к горизонтальным полям «стекла» относительно базового padding hero--split */
    .home-page .home-carousel .hero--parallax.hero--split .hero__inner.hero-split-intro {
        padding-left: calc(clamp(1.3rem, 3.2vw, 1.85rem) + 10px);
        padding-right: calc(clamp(1.3rem, 3.2vw, 1.85rem) + 10px);
    }
}

.hero__actions--cta-end {
    justify-content: flex-end;
}

/* Инверсия героя: тёмный текст на светлой подложке (только главная карусель) */
.home-page .home-carousel .hero--parallax.hero--invert .hero__eyebrow {
    color: var(--color-accent);
    text-shadow: none;
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__title {
    color: #141820;
    text-shadow: none;
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__lead {
    color: #3f4754;
    text-shadow: none;
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__hint {
    color: #596273;
    text-shadow: none;
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__shortcut-link {
    color: var(--color-accent);
    text-shadow: none;
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__shortcut-link::before {
    background: rgba(90, 74, 46, 0.28);
}

.home-page .home-carousel .hero--parallax.hero--invert .hero__shortcut-link:hover {
    color: #8a7048;
}

.home-page .home-carousel .hero--parallax.hero--invert .button.button--primary {
    background: #17120f;
    color: var(--color-accent);
    border-width: 2px;
    border-style: solid;
    border-color: #17120f;
}

.home-page .home-carousel .hero--parallax.hero--invert .button.button--primary:hover {
    background: #2a231b;
    border-color: #2a231b;
    color: #e8cfa5;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .home-page .home-carousel .hero--parallax .hero__inner::before,
    .home-page .home-carousel .home-hub .home-hub__inner::before {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(16, 18, 23, 0.88);
    }

    .home-page .home-carousel .home-hub.home-hub--about .home-hub__inner::before {
        background: rgba(22, 18, 30, 0.9);
    }

    .home-page .home-carousel .home-hub.home-hub--white .home-hub__inner::before {
        background: rgba(248, 249, 252, 0.94);
    }

    .home-page .home-carousel .home-hub.home-hub--black .home-hub__inner::before {
        background: rgba(10, 10, 10, 0.94);
    }

    .home-page .home-carousel .home-hub.home-hub--accent .home-hub__inner::before {
        background: rgba(196, 165, 116, 0.92);
    }

    .home-page .home-carousel .hero--parallax.hero--invert .hero__inner::before {
        background: rgba(252, 252, 254, 0.94);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .home-page .home-carousel .hero--parallax .hero__inner::before,
    .home-page .home-carousel .home-hub .home-hub__inner::before {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(16, 18, 23, 0.92);
    }

    .home-page .home-carousel .home-hub.home-hub--about .home-hub__inner::before {
        background: rgba(26, 20, 32, 0.94);
    }

    .home-page .home-carousel .home-hub.home-hub--white .home-hub__inner::before {
        background: rgba(250, 250, 252, 0.97);
    }

    .home-page .home-carousel .home-hub.home-hub--black .home-hub__inner::before {
        background: rgba(6, 6, 6, 0.96);
    }

    .home-page .home-carousel .home-hub.home-hub--accent .home-hub__inner::before {
        background: rgba(196, 165, 116, 0.96);
    }

    .home-page .home-carousel .hero--parallax.hero--invert .hero__inner::before {
        background: rgba(252, 252, 254, 0.97);
    }

}

/* iOS / touch: без blur на стекле */
@media (hover: none) and (pointer: coarse) {
    .home-page .home-carousel .hero--parallax .hero__inner::before,
    .home-page .home-carousel .home-hub .home-hub__inner::before {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(14, 16, 20, 0.9);
    }

    .home-page .home-carousel .hero--parallax.hero--invert .hero__inner::before {
        background: rgba(252, 252, 254, 0.94);
    }
}

/* iPad / iOS WebKit: без blur на стекле */
.dana-ios-webkit .home-page .home-carousel .hero--parallax .hero__inner::before,
.dana-ios-webkit .home-page .home-carousel .home-hub .home-hub__inner::before {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(14, 16, 20, 0.9);
}

.dana-ios-webkit .home-page .home-carousel .hero--parallax.hero--invert .hero__inner::before {
    background: rgba(252, 252, 254, 0.94);
}

.dana-ios-webkit .home-carousel__track {
    will-change: auto;
}

.dana-ios-webkit .home-page .home-carousel .hero__inner,
.dana-ios-webkit .home-page .home-carousel .home-hub__inner {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    isolation: isolate;
}

.dana-ios-webkit .home-page .home-carousel .hero__parallax {
    will-change: auto;
}

.home-page .home-carousel .hero-split__intro,
.home-page .home-carousel .hero-split__after {
    isolation: isolate;
}

/* Хабы разделов: тизер + «зайти внутрь» */
.home-hub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(4rem, 12vw, 6rem) 0;
    box-sizing: border-box;
}

.home-hub__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hub__bg--default {
    background:
        radial-gradient(ellipse 90% 70% at 20% 30%, rgba(196, 165, 116, 0.08), transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 70%, rgba(90, 110, 160, 0.06), transparent 55%),
        linear-gradient(165deg, #13161c 0%, #0c0e12 100%);
}

.home-hub__bg--about {
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(196, 165, 116, 0.1), transparent 52%),
        linear-gradient(180deg, #141821 0%, #0f1114 45%, #0c0d10 100%);
}

.home-hub__bg--white {
    background: #eff0f4;
}

.home-hub__bg--black {
    background: #000000;
}

.home-hub__bg--accent {
    background: var(--color-accent);
}

.home-hub__inner {
    position: relative;
    z-index: 1;
}

/* iPad / телефон landscape: низкий экран — текст hero/hub не обрезается */
@media (orientation: landscape) and (max-height: 900px) {
    .home-carousel .home-slide--hero .hero--parallax,
    .home-carousel .home-slide--hub .home-hub {
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100%;
        overflow: visible;
        padding-top: clamp(0.85rem, 2.5vh, 1.75rem);
        padding-bottom: clamp(1rem, 3vh, 2rem);
    }

    .home-carousel .home-slide--hero .hero--parallax .hero__inner,
    .home-carousel .home-slide--hub .home-hub__inner {
        margin-top: 0;
    }
}

.home-hub__chapter {
    margin: 0 0 0.85rem;
    font-family: var(--font-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: var(--dana-caption-hub-track);
    text-transform: var(--dana-caption-transform);
    color: var(--color-accent);
}

.home-hub__title {
    margin: 0 0 1.15rem;
    font-size: clamp(2rem, 7vw, 3.15rem);
}

.home-hub__lead {
    margin: 0 0 1.75rem;
    max-width: 34rem;
    font-family: var(--font-serif);
    font-size: 1.06rem;
    line-height: 1.68;
    color: var(--color-muted);
}

.home-hub__cta-wrap {
    margin: 0 0 1.25rem;
}

.home-hub__micro {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(154, 163, 178, 0.95);
}

.home-hub__micro a {
    color: var(--color-accent);
    text-decoration: none;
}

.home-hub__micro a:hover {
    text-decoration: underline;
}

/* Hub: светлый / чёрный / акцент — типографика */
.home-hub--white .home-hub__chapter {
    color: #7a6139;
}

.home-hub--white .home-hub__title {
    color: #141820;
}

.home-hub--white .home-hub__lead {
    color: #3f4754;
}

.home-hub--white .home-hub__micro {
    color: #596273;
}

.home-hub--white .home-hub__micro a {
    color: #5c4a2a;
}

.home-hub--white .home-hub__micro a:hover {
    color: #2a2316;
}

.home-hub--black .home-hub__title {
    color: var(--color-text);
}

.home-hub--accent .home-hub__chapter {
    color: rgba(42, 32, 16, 0.78);
}

.home-hub--accent .home-hub__title {
    color: #17120e;
}

.home-hub--accent .home-hub__lead {
    color: rgba(32, 26, 16, 0.88);
}

.home-hub--accent .home-hub__micro {
    color: rgba(40, 32, 20, 0.85);
}

.home-hub--accent .home-hub__micro a {
    color: #33220d;
}

.home-hub--accent .button.button--primary {
    background: #17120f;
    color: var(--color-accent);
    border: 2px solid #17120f;
}

.home-hub--accent .button.button--primary:hover {
    background: #2a231b;
    border-color: #2a231b;
    color: #e8cfa5;
}

/* «7 Элемент»: текст героя ниже на 25% высоты блока */
.seven-element-hero.hero--parallax .hero__inner {
    transform: translateY(calc(var(--hero-min-h) * 0.25));
}

/* Hero */
.hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero--parallax {
    --hero-min-h: min(92svh, 900px);
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--hero-min-h);
    padding: clamp(4rem, 10vw, 6rem) 0;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
}

.hero__parallax {
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: -12%;
    height: 124%;
    will-change: transform;
}

.hero__parallax-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
    transform: scale(1.1);
    transform-origin: center center;
}

.hero--parallax .hero__parallax-img {
    filter: brightness(0.48) saturate(1.06);
}

.hero--parallax .hero__inner {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    width: 100%;
}

.hero__inner {
    max-width: 42rem;
}

.hero__eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: var(--dana-caption-hero-track);
    text-transform: var(--dana-caption-transform);
    color: var(--color-accent);
    white-space: pre-line;
}

.hero--parallax .hero__eyebrow {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 4.8vw, 3rem);
    white-space: pre-line;
}

.hero--parallax .hero__title {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero__lead {
    margin: 0 0 1.75rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.65;
    white-space: pre-line;
}

.hero--parallax .hero__lead {
    color: rgba(232, 234, 239, 0.88);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 0;
}

.hero--parallax .button--ghost {
    color: #f4f2ee;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.hero--parallax .button--ghost:hover {
    color: #fff;
    background: rgba(196, 165, 116, 0.2);
    border-color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
    .hero__parallax {
        top: 0;
        height: 100%;
        will-change: auto;
    }

    .hero__parallax-img {
        transform: none;
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

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

.button--primary {
    background: var(--color-accent);
    color: #1a1510;
}

.button--primary:hover {
    background: #d4b68a;
    text-decoration: none;
}

.button--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.button--ghost:hover {
    background: var(--color-accent-dim);
    border-color: var(--color-accent);
    text-decoration: none;
}

/* Sections */
.section {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section--soft {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section--alt {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section__title {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
}

.section__title--sub {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section__text {
    margin: 0;
    color: var(--color-muted);
}

.feature-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-muted);
}

.feature-list li {
    margin-bottom: 0.5rem;
}

/* Page head */
.page-head {
    padding: clamp(2rem, 4vw, 2.75rem) 0 0;
}

.page-head__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.page-head__intro {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* Обо мне: текст + фото колонкой справа (узкий контент шире, чем .narrow) */
.about-page-shell {
    width: min(100% - 2rem, 960px);
    margin-inline: auto;
}

.about-page-layout {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: start;
}

.about-page-layout--with-photo {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

@media (min-width: 900px) {
    .about-page-layout--with-photo {
        gap: clamp(2rem, 4.5vw, 3rem);
    }
}

.about-page-layout__main {
    min-width: 0;
}

.about-page-layout__media {
    min-width: 0;
}

.about-page-figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
}

.about-page-figure__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

@media (max-width: 760px) {
    .about-page-layout--with-photo {
        grid-template-columns: 1fr;
    }

    .about-page-layout__media {
        max-width: min(440px, 100%);
        margin-inline: auto;
    }
}

.about-contact-cta {
    margin-top: clamp(1.75rem, 5vw, 2.75rem);
    padding-top: clamp(1rem, 3vw, 1.75rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.about-contact-open {
    position: relative;
    z-index: 1;
}

.about-page-video {
    margin-top: clamp(1.25rem, 4vw, 2rem);
}

.about-page-video__player {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: var(--radius);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
}

body.contact-modal-open {
    overflow: hidden;
}

.contact-modal[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.contact-modal:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 900;
    padding: clamp(0.85rem, 4vw, 1.75rem);
    box-sizing: border-box;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 12, 0.78);
}

.contact-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 428px);
    max-height: min(92vh, 640px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: auto;
    padding: clamp(1.35rem, 4.5vw, 2rem) clamp(1.15rem, 4vw, 1.85rem);
    background: linear-gradient(
        160deg,
        var(--color-bg-elevated) 0%,
        color-mix(in srgb, var(--color-surface) 88%, var(--color-bg) 12%) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow), 0 0 0 1px rgba(196, 165, 116, 0.08);
}

.contact-modal-icon-x {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-muted);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition:
        background 0.2s,
        color 0.2s;
}

.contact-modal-icon-x:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

.contact-modal-icon-x:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.contact-modal__title {
    margin: 0 2.75rem 0.45rem 0;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 600;
}

.contact-modal__lead {
    margin: 0 0 1.15rem;
    font-size: 0.935rem;
    color: var(--color-muted);
    line-height: 1.55;
}

.contact-modal__banner {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.contact-modal__banner--success {
    display: none;
    background: rgba(196, 165, 116, 0.18);
    color: color-mix(in srgb, var(--color-accent) 65%, var(--color-text) 35%);
    border: 1px solid rgba(196, 165, 116, 0.35);
}

.contact-modal__banner--success:not([hidden]) {
    display: block;
}

.contact-modal__banner--error {
    display: none;
    background: rgba(210, 80, 80, 0.15);
    color: #ebb;
    border: 1px solid rgba(220, 100, 100, 0.35);
}

.contact-modal__banner--error:not([hidden]) {
    display: block;
}

.contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field__label {
    font-size: 0.8625rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(232, 234, 239, 0.88);
}

.contact-req {
    color: var(--color-accent);
    font-weight: 700;
}

.contact-field__input {
    font: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: var(--color-text);
}

.contact-field__input::placeholder {
    color: rgba(154, 163, 178, 0.55);
}

.contact-field__input:focus {
    outline: none;
    border-color: rgba(196, 165, 116, 0.55);
    box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.15);
}

.contact-field__err {
    margin: 0;
    font-size: 0.8125rem;
    color: #e89999;
    min-height: 1rem;
}

.contact-field__err[hidden] {
    display: none !important;
}

.contact-field__birth-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.contact-field__birth-row .contact-field__input {
    flex: 1 1 auto;
    min-width: 5rem;
}

.contact-field__input--narrow {
    min-width: 4.25rem;
    max-width: 6.25rem;
    flex: 0 1 auto;
}

.contact-field__input--year {
    min-width: 5rem;
    max-width: 7rem;
    flex: 0 1 auto;
}

.contact-field__birth-row select.contact-field__input--time-hour,
.contact-field__birth-row select.contact-field__input--time-min {
    flex: 0 1 auto;
    min-width: 4.25rem;
    max-width: 5.25rem;
}

/* Дата рождения: цифры и подписи в селектах заметнее на тёмном фоне. */
.contact-field__birth-row select.contact-field__input {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f4f6fb;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color-scheme: dark;
}

.contact-field__birth-row select.contact-field__input:focus {
    border-color: rgba(196, 165, 116, 0.65);
}

.contact-field__birth-row select.contact-field__input option {
    background-color: #171a20;
    color: #f4f6fb;
    font-weight: 600;
}

.contact-field__textarea {
    min-height: 5rem;
    resize: vertical;
}

.contact-field--checkbox {
    gap: 0.45rem;
}

.contact-field__check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(232, 234, 239, 0.9);
    cursor: pointer;
}

.contact-field__check input {
    margin-top: 0.2em;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
}

.contact-field__check a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.contact-field__check a:hover {
    color: #e4d4b8;
}

.contact-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.35rem;
}

.contact-modal__submit {
    min-width: 8.5rem;
}

/* Consultations: шахматный порядок — фото + текст, чередование сторон */
.service-section {
    padding-top: 0;
}

.consult-popular {
    padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(1.4rem, 3.2vw, 2.2rem);
}

.consult-popular__title {
    margin: 0 0 clamp(1rem, 2.2vw, 1.5rem);
    text-align: center;
}

.consult-popular__grid {
    /* Плоский шестиугольник: высота = ширина × √3/2 */
    --consult-popular-hex-w: clamp(120px, 18vw, 200px);
    --consult-popular-hex-h: calc(var(--consult-popular-hex-w) * 0.8660254);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.8rem, 2vw, 1.3rem);
    align-items: start;
    justify-items: center;
}

.consult-popular__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.consult-popular__hex {
    display: block;
    width: var(--consult-popular-hex-w);
    height: var(--consult-popular-hex-h);
    flex-shrink: 0;
    filter:
        drop-shadow(0 0 9px rgba(196, 165, 116, 0.78))
        drop-shadow(0 0 24px rgba(196, 165, 116, 0.52));
}

.consult-popular__hex-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: var(--color-surface);
}

.consult-popular__hex img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.consult-popular__name {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: clamp(0.95rem, 1.45vw, 1.05rem);
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Узкий экран: три колонки, подпись переносится по словам */
@media (max-width: 720px) {
    .consult-popular__grid {
        --consult-popular-hex-w: clamp(96px, 28vw, 130px);
    }

    .consult-popular__item {
        min-width: 0;
    }

    .consult-popular__hex {
        filter:
            drop-shadow(0 0 6px rgba(196, 165, 116, 0.65))
            drop-shadow(0 0 14px rgba(196, 165, 116, 0.4));
    }

    .consult-popular__name {
        font-size: clamp(0.68rem, 2.65vw, 0.88rem);
        line-height: 1.35;
        hyphens: none;
    }
}

/* consultations.php — вертикальный скролл: внизу экрана видно начало следующей услуги */
@media (max-width: 720px) {
    .page-consultations .service-section > .container.service-grid {
        gap: clamp(1rem, 3vw, 1.35rem);
        padding-bottom: 2rem;
    }

    .page-consultations .service-chess,
    .page-consultations .service-chess--reverse {
        flex-direction: column;
        align-items: stretch;
        padding: clamp(1rem, 3.2vw, 1.35rem);
        scroll-snap-align: start;
        scroll-margin-top: calc(var(--header-h) + 0.65rem);
        scroll-margin-bottom: 1rem;
    }

    .page-consultations .service-chess__media {
        width: 100%;
        max-width: min(100%, 22rem);
        max-height: min(25dvh, 13rem);
        aspect-ratio: 1;
        height: auto;
        margin-inline: auto;
    }

    .page-consultations .service-chess__img {
        max-height: min(25dvh, 13rem);
    }

    .page-consultations .service-chess__title {
        font-size: clamp(1.05rem, 4.2vw, 1.28rem);
        margin-bottom: 0.5rem;
    }

    .page-consultations .service-chess__text {
        position: relative;
        font-size: 0.95rem;
        line-height: 1.55;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
    }

    .page-consultations .service-chess__text.is-excerpt-clamped::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1.55em;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(22, 24, 28, 0) 0%,
            var(--color-bg-elevated) 92%
        );
    }

    .page-consultations .service-chess__more-wrap {
        margin-top: 0.75rem;
    }
}

.service-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.service-chess {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.service-chess--reverse {
    flex-direction: row-reverse;
}

.service-chess__media {
    flex: 0 0 min(45%, 400px);
    width: min(45%, 400px);
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    align-self: center;
}

.service-chess__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
}

.service-chess__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0;
}

/* Заголовок карточки: пиктограмма сразу после текста в одной строке */
.service-chess__title-with-icon .dana-service-icon--tile {
    width: 1em;
    height: 1em;
    margin-top: 0;
    vertical-align: middle;
    position: relative;
    top: -0.06em;
}

.service-chess__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.service-chess__price {
    margin: -0.35rem 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.service-chess__text {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

.service-chess__more-wrap {
    margin: 1rem 0 0;
}

.service-chess__more {
    display: inline-flex;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .service-chess,
    .service-chess--reverse {
        flex-direction: column;
        align-items: stretch;
    }

    .service-chess__media {
        width: 100%;
        max-width: min(100%, 400px);
        margin-inline: auto;
    }
}

/* Страница одной услуги */
.page-head--detail {
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
}

.service-detail__crumb {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.service-detail__crumb a {
    color: var(--color-accent);
    text-decoration: none;
}

.service-detail__crumb a:hover {
    text-decoration: underline;
}

.service-detail__crumb-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.service-detail-section {
    padding-top: 0;
}

/* Заголовок услуги: иконка в одном текстовом потоке сразу после текста (не отдельным flex-рядом) */
.service-detail__title-with-icon .dana-service-icon--hero {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    position: relative;
    top: -0.06em;
}

.dana-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.dana-service-icon svg {
    display: block;
}

.dana-service-icon--tile {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.15rem;
}

.dana-service-icon--tile svg {
    width: 100%;
    height: 100%;
}

.dana-service-icon--hero {
    width: 2.75rem;
    height: 2.75rem;
}

.dana-service-icon--hero svg {
    width: 100%;
    height: 100%;
}

.service-detail__photo {
    margin: 0 0 2rem;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    background: var(--color-surface);
}

.service-detail__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 50% 28%;
}

.service-detail__body {
    margin-bottom: 2rem;
}

.service-detail__lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--color-muted);
}

.service-detail__body.prose .service-detail__excerpt {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--color-muted);
}

.service-detail__body.prose .service-detail__full {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-text);
}

.service-detail__body.prose .service-detail__excerpt + .service-detail__full {
    margin-top: 1.15rem;
}

.service-detail__price {
    margin: 1rem 0 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.service-detail__muted {
    color: var(--color-muted);
}

.order-card {
    margin-top: 0.5rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.order-card__title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
}

.order-card__price {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-accent);
}

.order-card__text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.order-card__actions {
    margin-bottom: 1rem;
}

.order-card__btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.order-card__hint {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.order-card__hint a {
    color: var(--color-accent);
}

.service-chess__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.order-card__actions--split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.order-card__actions--split .order-card__btn {
    flex: 1 1 12rem;
}

/* Плавающая корзина услуг (видна только при ≥1 позиции — см. syncDock в main.js) */
.dana-cart-dock {
    position: fixed;
    z-index: 60;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.dana-cart-dock[hidden] {
    display: none !important;
}

.dana-cart-dock__link {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem 0.55rem 0.6rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--color-bg-elevated) 92%, #000 8%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    color: rgba(232, 234, 239, 0.92);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.dana-cart-dock__link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: color-mix(in srgb, var(--color-bg-elevated) 88%, var(--color-accent) 12%);
}

.dana-cart-dock__icon {
    display: flex;
    color: var(--color-accent);
    flex-shrink: 0;
}

.dana-cart-dock__label {
    padding-right: 0.1rem;
}

.dana-cart-dock__count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-accent);
    color: #12141a;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
}

/* Плавающий переключатель фоновой музыки (настройки сайта) */
.dana-bg-music {
    position: fixed;
    z-index: 60;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

@media (min-width: 901px) {
    .dana-bg-music {
        right: calc(max(0.75rem, env(safe-area-inset-right, 0px)) + 10px);
    }
}

.dana-bg-music__audio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.dana-bg-music__btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem 0.55rem 0.65rem;
    border-radius: var(--radius);
    border: 1px solid rgba(196, 165, 116, 0.45);
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--color-bg-elevated) 88%, var(--color-accent) 12%),
        color-mix(in srgb, var(--color-bg-elevated) 94%, #000 6%)
    );
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: rgba(255, 248, 238, 0.96);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.dana-bg-music__btn:hover {
    color: #fff;
    border-color: rgba(212, 184, 122, 0.65);
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--color-bg-elevated) 82%, var(--color-accent) 18%),
        color-mix(in srgb, var(--color-bg-elevated) 90%, #000 10%)
    );
}

.dana-bg-music__btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.dana-bg-music--playing .dana-bg-music__btn {
    border-color: rgba(124, 200, 255, 0.45);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(100, 170, 255, 0.15);
}

.dana-bg-music__icon {
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.dana-bg-music__svg {
    display: block;
    width: 22px;
    height: 22px;
}

.dana-bg-music__glyph {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transform: scale(1) rotate(0deg);
    transition:
        opacity 0.22s ease,
        transform 0.24s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.dana-bg-music__glyph--play {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.dana-bg-music__glyph--pause {
    opacity: 0;
    transform: scale(0.72) rotate(-12deg);
}

.dana-bg-music--playing .dana-bg-music__icon {
    color: rgba(150, 210, 255, 0.95);
}

.dana-bg-music--playing .dana-bg-music__glyph--play {
    opacity: 0;
    transform: scale(0.72) rotate(12deg);
}

.dana-bg-music--playing .dana-bg-music__glyph--pause {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .dana-bg-music__glyph {
        transition-duration: 0.05s;
        transition-timing-function: ease;
    }
}

.dana-bg-music__label {
    padding-right: 0.1rem;
}

/* Плавающая кнопка Telegram (настройки сайта) — два шага: раскрыть → перейти */
.dana-telegram-float {
    position: fixed;
    z-index: 61;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    width: auto;
    min-width: 3.25rem;
    max-width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #1a1610;
    background:
        radial-gradient(ellipse 90% 75% at 50% 18%, rgba(255, 248, 235, 0.55), transparent 55%),
        linear-gradient(155deg, #f5ecd4 0%, #d4b87a 46%, #9a7848 100%);
    border: 1px solid rgba(212, 184, 122, 0.72);
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.38),
        0 0 20px rgba(196, 165, 116, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    transition:
        max-width 0.32s ease,
        padding 0.32s ease,
        border-radius 0.32s ease,
        gap 0.32s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.dana-telegram-float__label {
    flex: 0 1 auto;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    font-family: var(--font-body, inherit);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition:
        max-width 0.32s ease,
        opacity 0.22s ease,
        margin 0.32s ease;
}

.dana-telegram-float.is-expanded {
    max-width: min(17.5rem, calc(100vw - 1.5rem));
    padding: 0 1rem 0 0.75rem;
    border-radius: 999px;
    justify-content: flex-start;
    gap: 0.5rem;
}

.dana-telegram-float.is-expanded .dana-telegram-float__label {
    max-width: 14rem;
    opacity: 1;
    transition:
        max-width 0.32s ease 0.06s,
        opacity 0.24s ease 0.08s,
        margin 0.32s ease 0.06s;
}

@media (prefers-reduced-motion: reduce) {
    .dana-telegram-float,
    .dana-telegram-float__label {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

@media (min-width: 901px) {
    .dana-telegram-float {
        right: calc(max(0.75rem, env(safe-area-inset-right, 0px)) + 10px);
    }
}

body:has(.dana-bg-music) .dana-telegram-float {
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom, 0px)) + 3.65rem);
}

.dana-telegram-float:hover {
    color: #121018;
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(196, 165, 116, 0.38),
        0 4px 22px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.dana-telegram-float:focus-visible {
    outline: 2px solid var(--color-accent, #c4a574);
    outline-offset: 3px;
}

.dana-telegram-float__icon {
    display: flex;
    flex-shrink: 0;
    margin-left: -0.12rem;
}

.dana-telegram-float__icon svg {
    display: block;
}

@media (max-width: 520px) {
    .dana-telegram-float {
        min-width: 3rem;
        max-width: 3rem;
        height: 3rem;
    }

    .dana-telegram-float.is-expanded {
        max-width: min(16rem, calc(100vw - 1.25rem));
        height: 3rem;
        padding: 0 0.85rem 0 0.65rem;
    }

    .dana-telegram-float.is-expanded .dana-telegram-float__label {
        font-size: 0.75rem;
        max-width: 11rem;
        white-space: normal;
        text-align: left;
    }

    body:has(.dana-bg-music) .dana-telegram-float {
        bottom: calc(max(0.75rem, env(safe-area-inset-bottom, 0px)) + 3.35rem);
    }
}

@media (max-width: 900px) {
    #main {
        padding-bottom: max(1rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
    }
}

.dana-cart-checkout-section {
    padding-top: 0;
}

/* Страница корзины: колонка шире обычной .narrow (680px), чтобы таблица не была слишком узкой */
.page-head.page-head--detail:has(+ .dana-cart-checkout-section) > .container.narrow,
.dana-cart-checkout-section > .container.narrow {
    width: min(100% - 2rem, 800px);
}

.dana-cart-checkout-empty {
    padding: 1rem 0 2rem;
}

.dana-cart-checkout__table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-elevated);
}

.dana-cart-checkout__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.dana-cart-checkout__table th,
.dana-cart-checkout__table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dana-cart-checkout__table th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    background: rgba(0, 0, 0, 0.2);
}

.dana-cart-checkout__table tbody tr:last-child td {
    border-bottom: none;
}

.dana-cart-checkout__icon-cell {
    width: 2.75rem;
    vertical-align: middle;
    padding-right: 0.25rem;
}

.dana-service-icon.dana-service-icon--cart {
    width: 2rem;
    height: 2rem;
}

.dana-service-icon.dana-service-icon--cart svg {
    width: 100%;
    height: 100%;
}

.dana-cart-checkout__title .dana-cart-checkout__title-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.dana-cart-checkout__title {
    font-weight: 600;
    color: #fff;
}

.dana-cart-checkout__title .dana-cart-checkout__name {
    display: block;
}

.dana-cart-checkout__title .dana-cart-checkout__excerpt {
    display: block;
    margin-top: 0.35rem;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.38;
    color: var(--color-muted);
}

/* Длинное описание: полный текст только на широком экране */
.dana-cart-checkout__excerpt--checkout-desktop {
    display: block;
}

.dana-cart-checkout__excerpt-acc {
    display: none;
    margin-top: 0.35rem;
    max-width: 100%;
}

.dana-cart-checkout__excerpt-acc-summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--color-accent);
    user-select: none;
}

.dana-cart-checkout__excerpt-acc-summary::-webkit-details-marker {
    display: none;
}

.dana-cart-checkout__excerpt-acc-summary::after {
    content: '';
    width: 0.35rem;
    height: 0.35rem;
    margin-top: 0.05rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    opacity: 0.85;
}

.dana-cart-checkout__excerpt-acc[open] .dana-cart-checkout__excerpt-acc-summary::after {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.dana-cart-checkout__excerpt-acc-panel {
    margin-top: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-muted);
}

@media (max-width: 720px) {
    .dana-cart-checkout__excerpt--checkout-desktop {
        display: none !important;
    }

    .dana-cart-checkout__excerpt-acc {
        display: block;
    }
}

.dana-cart-checkout__sum {
    white-space: nowrap;
    color: var(--color-muted);
}

.dana-cart-checkout__rm {
    width: 1%;
    white-space: nowrap;
}

.dana-cart-checkout__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-accent);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.dana-cart-checkout__remove svg {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
}

.dana-cart-checkout__remove:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.07);
}

.dana-cart-checkout__remove:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.dana-cart-checkout__total-row td {
    border-bottom: none;
    padding-top: 1rem;
    font-size: 1.05rem;
}

.dana-cart-checkout__total {
    color: var(--color-accent);
    white-space: nowrap;
}

.dana-cart-checkout__note {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.55;
}

.dana-cart-checkout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 0;
}

.dana-cart-order {
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dana-cart-order__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-family: var(--font-cta);
    font-weight: 700;
    letter-spacing: var(--dana-heading-tracking);
    text-transform: var(--dana-heading-transform);
    color: #fff;
    line-height: 1.2;
}

.dana-cart-order__lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.55;
}

.dana-cart-order .contact-modal__banner {
    margin-bottom: 1rem;
}

.dana-cart-order__form > .contact-field__err[data-field-err='cart_service_ids'] {
    margin: 0 0 0.75rem;
}

.dana-cart-order__check-offer {
    margin-top: 0.35rem;
}

.dana-cart-order__actions {
    margin-top: 1.35rem;
}

.dana-cart-order__actions--split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.dana-cart-order__actions--split .button {
    flex: 1 1 200px;
}

/* Prose (about) */
.prose p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.prose h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.2rem;
}

/* Заголовки разделов: шрифт CTA и вариант «пропись» (ТТ) — через переменные */
.hero__title,
.page-head__title,
.home-hub__title,
.service-chess__title,
.section__title,
.section__title--sub,
.order-card__title,
.prose h2 {
    font-family: var(--font-cta);
    font-weight: 700;
    font-style: normal;
    text-transform: var(--dana-heading-transform);
    letter-spacing: var(--dana-heading-tracking);
    line-height: 1.18;
    color: #fff;
}

/* Literata / Cormorant Garamond: lining-figures — цифры на линии прописных в заголовках */
html.dana-heading-numeral-fix .hero__title,
html.dana-heading-numeral-fix .page-head__title,
html.dana-heading-numeral-fix .home-hub__title,
html.dana-heading-numeral-fix .service-chess__title,
html.dana-heading-numeral-fix .section__title,
html.dana-heading-numeral-fix .section__title--sub,
html.dana-heading-numeral-fix .order-card__title,
html.dana-heading-numeral-fix .prose h2,
html.dana-heading-numeral-fix .service-detail__title-with-icon,
.dana-admin-typo-preview.dana-heading-numeral-fix .home-hub__title {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

html.dana-heading-font-literata.dana-heading-numeral-fix .hero__title,
html.dana-heading-font-literata.dana-heading-numeral-fix .page-head__title,
html.dana-heading-font-literata.dana-heading-numeral-fix .home-hub__title,
html.dana-heading-font-literata.dana-heading-numeral-fix .service-chess__title,
html.dana-heading-font-literata.dana-heading-numeral-fix .section__title,
html.dana-heading-font-literata.dana-heading-numeral-fix .section__title--sub,
html.dana-heading-font-literata.dana-heading-numeral-fix .order-card__title,
html.dana-heading-font-literata.dana-heading-numeral-fix .prose h2,
html.dana-heading-font-literata.dana-heading-numeral-fix .service-detail__title-with-icon,
.dana-admin-typo-preview.dana-heading-font-literata.dana-heading-numeral-fix .home-hub__title {
    font-variation-settings: "opsz" 36;
}



@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-header {
        z-index: 200;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 150;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
        box-sizing: border-box;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        visibility: hidden;
        pointer-events: none;
        /* opacity родителя не анимируем — иначе backdrop-filter пересчитывается каждый кадр */
        transition: visibility 0s linear 0.38s;
    }

    .nav.is-open {
        visibility: visible;
        pointer-events: auto;
        transition: visibility 0s linear 0s;
    }

    .nav__frost {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 1;
        background: rgba(10, 12, 16, 0.12);
        -webkit-backdrop-filter: blur(24px) saturate(1.2);
        backdrop-filter: blur(24px) saturate(1.2);
        transform: translateZ(0);
    }

    @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .nav__frost {
            background: rgba(10, 12, 16, 0.91);
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
    }

    .nav__shade {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: 0;
        background: linear-gradient(
            165deg,
            rgba(14, 16, 20, 0.78) 0%,
            rgba(6, 8, 12, 0.9) 100%
        );
        transition:
            opacity 0.34s cubic-bezier(0.22, 1, 0.28, 1);
        transform: translateZ(0);
    }

    .nav.is-open .nav__shade {
        opacity: 1;
    }

    .nav:not(.is-open) .nav__shade {
        transition:
            opacity 0.34s cubic-bezier(0.4, 0, 1, 1);
    }

    .nav__backdrop {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 2;
        cursor: pointer;
        background: transparent;
    }

    .nav__list {
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 22rem;
        margin: 0;
        padding: 0 1rem;
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        transition:
            opacity 0.34s cubic-bezier(0.22, 1, 0.28, 1) 0.04s,
            transform 0.36s cubic-bezier(0.22, 1, 0.28, 1) 0.04s;
    }

    .nav.is-open .nav__list {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav:not(.is-open) .nav__list {
        transition:
            opacity 0.22s cubic-bezier(0.4, 0, 1, 1),
            transform 0.24s cubic-bezier(0.4, 0, 1, 1);
    }

    .nav__link {
        display: block;
        width: 100%;
        max-width: 20rem;
        padding: 1.1rem 1.25rem;
        text-align: center;
        font-size: clamp(1.6rem, 6.5vw, 2.35rem);
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.02em;
        color: var(--color-text);
        text-decoration: none;
        text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    }

    .nav__link:hover,
    .nav__link:focus-visible {
        color: var(--color-accent);
        text-decoration: none;
    }

    .nav__link.is-active {
        color: var(--color-accent);
    }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .nav {
        transition: visibility 0s linear 0.2s;
    }

    .nav.is-open {
        transition: visibility 0s linear 0s;
    }

    .nav:not(.is-open) .nav__shade,
    .nav.is-open .nav__shade {
        transition-duration: 0.14s;
    }

    .nav__list {
        transition:
            opacity 0.14s ease,
            transform 0.14s ease;
    }

    .nav:not(.is-open) .nav__list {
        transition-duration: 0.12s;
    }

    .nav.is-open .nav__list {
        transition-delay: 0s;
    }
}

/* Книги и статьи — сетка карточек */
.articles-hub-section {
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.articles-hub-empty {
    max-width: 42rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

@media (max-width: 560px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    min-width: 0;
    border-radius: var(--radius, 12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 38, 46, 0.35);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    border-color: rgba(196, 165, 116, 0.35);
    transform: translateY(-2px);
}

.article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 0 1rem;
    color: inherit;
    text-decoration: none;
}

.article-card__media {
    aspect-ratio: 16 / 10;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 8rem;
    background: linear-gradient(135deg, rgba(196, 165, 116, 0.12), rgba(80, 90, 110, 0.35));
}

.article-card__title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 1rem 1rem 0.35rem;
    line-height: 1.35;
}

.article-card__excerpt {
    margin: 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(232, 234, 239, 0.78);
    flex: 1;
}

.article-card__cta {
    margin: 0.85rem 1rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.articles-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.articles-pagination__status {
    font-size: 0.9rem;
    color: rgba(232, 234, 239, 0.72);
}

/* Отзывы */
.reviews-hub-section {
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.reviews-hub-carousel-wrap {
    width: min(100% - 2rem, 920px);
}

.reviews-hub-empty {
    max-width: 42rem;
}

.reviews-carousel {
    --reviews-carousel-dur: 0.5s;
    --reviews-carousel-ease: cubic-bezier(0.22, 1, 0.28, 1);
    --reviews-panel-min-h: clamp(26rem, 58vh, 38rem);
}

.reviews-carousel__shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: clamp(0.65rem, 2.5vw, 1.15rem);
}

.reviews-carousel__panel {
    display: flex;
    flex-direction: column;
    min-height: var(--reviews-panel-min-h);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius, 12px);
    background: rgba(30, 38, 46, 0.42);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.reviews-carousel__viewport {
    flex: 1 1 auto;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.reviews-carousel__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    transition: transform var(--reviews-carousel-dur) var(--reviews-carousel-ease);
    will-change: transform;
}

.reviews-carousel--instant .reviews-carousel__track {
    transition: none;
}

.reviews-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
}

.reviews-carousel__arrow {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(14, 17, 22, 0.82);
    color: rgba(232, 234, 239, 0.88);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.reviews-carousel__arrow:not(:disabled):hover {
    background: rgba(24, 28, 36, 0.95);
    border-color: rgba(196, 165, 116, 0.45);
    color: var(--color-accent, #c4a574);
}

.reviews-carousel__arrow:not(:disabled):active {
    transform: scale(0.96);
}

.reviews-carousel__arrow:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.55);
}

.reviews-carousel__arrow:disabled {
    opacity: 0.22;
    cursor: default;
    pointer-events: none;
}

.reviews-carousel__footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    padding: clamp(0.85rem, 2.2vw, 1.1rem) clamp(1rem, 3vw, 1.35rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 22, 28, 0.35);
}

.reviews-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    max-width: 100%;
}

.reviews-carousel__dot {
    width: 0.55rem;
    height: 0.55rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(232, 234, 239, 0.22);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.reviews-carousel__dot.is-active {
    background: var(--color-accent, #c4a574);
    transform: scale(1.25);
}

.reviews-carousel__dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.55);
}

.reviews-carousel__status {
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    color: rgba(232, 234, 239, 0.58);
}

.reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.review-card {
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border-radius: var(--radius, 12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 38, 46, 0.35);
}

.reviews-carousel .review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.reviews-carousel .review-card__author,
.reviews-carousel .review-card__body {
    width: 100%;
    max-width: 38rem;
    text-align: left;
}

.reviews-carousel .review-card__figure {
    width: 100%;
    display: flex;
    justify-content: center;
}

.reviews-carousel .review-card__img-trigger {
    width: auto;
    max-width: min(100%, 420px);
    margin-inline: auto;
}

.reviews-carousel .review-card__img {
    width: auto;
    max-width: min(100%, 420px);
    max-height: min(72vh, 640px);
    height: auto;
    object-fit: contain;
}

.review-card__author {
    font-family: var(--font-serif, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.65rem;
    color: var(--color-accent, #c4a574);
}

.review-card__body {
    margin: 0 0 0.85rem;
    line-height: 1.55;
}

.review-card__body:last-child {
    margin-bottom: 0;
}

.review-card__figure {
    margin: 0;
}

.review-card__img-trigger {
    display: block;
    width: 100%;
    max-width: 52rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
    color: inherit;
    font: inherit;
    text-align: inherit;
    line-height: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.review-card__img-trigger:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.review-card__img-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.55);
}

.review-card__img {
    width: 100%;
    max-width: 52rem;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* Модальное окно фото отзыва */
body.review-photo-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .reviews-hub-carousel-wrap {
        width: min(100% - 1.5rem, 920px);
    }

    .reviews-carousel {
        --reviews-panel-min-h: clamp(22rem, 52vh, 32rem);
    }

    .reviews-carousel__shell {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem 1rem;
    }

    .reviews-carousel__panel {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .reviews-carousel__arrow {
        width: 2.5rem;
        height: 2.5rem;
        align-self: auto;
    }

    .reviews-carousel__arrow--prev {
        grid-row: 2;
        grid-column: 1;
        justify-self: end;
    }

    .reviews-carousel__arrow--next {
        grid-row: 2;
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-carousel__track,
    .reviews-carousel__arrow,
    .reviews-carousel__dot {
        transition: none !important;
    }
}

.review-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.65rem, 3vw, 1.5rem);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.34s ease,
        visibility 0.34s ease;
}

.review-photo-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.review-photo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 12, 0.82);
    backdrop-filter: blur(2px);
}

.review-photo-modal__stage {
    position: relative;
    z-index: 1;
    width: min(100%, min(96vw, 1200px));
    max-height: min(92vh, 960px);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.review-photo-modal__close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 3;
    background: rgba(15, 17, 20, 0.65) !important;
    color: var(--color-text, #e8eaef) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.review-photo-modal__close:hover {
    background: rgba(30, 34, 42, 0.9) !important;
    color: var(--color-text, #fff) !important;
}

.review-photo-modal__frame {
    margin: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease;
}

.review-photo-modal.is-open .review-photo-modal__frame {
    transform: scale(1);
    opacity: 1;
}

.review-photo-modal__img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(88vh, 920px);
    margin: 0 auto;
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
    .review-photo-modal,
    .review-photo-modal__frame {
        transition: none !important;
    }

    .review-photo-modal__frame {
        transform: none !important;
    }
}

.page-head__meta {
    margin: 0 0 0.5rem;
}

.page-head__back {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
}

.page-head__back:hover {
    text-decoration: underline;
}

.article-hero-cover {
    padding-block: 0 1rem;
}

.article-cover-wrap {
    border-radius: var(--radius, 12px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-cover-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 520px);
    object-fit: cover;
}

.article-body.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.35rem auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.article-body.prose p > img:only-child {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.article-gallery-section {
    padding-block: 0 2rem;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

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

@media (max-width: 480px) {
    .article-gallery {
        grid-template-columns: 1fr;
    }
}

.article-gallery__cell {
    margin: 0;
    border-radius: var(--radius, 10px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-gallery__cell img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ——— Гороскопы: аккордеон знаков ——— */
.horoscope-hub-section {
    padding-top: 0.5rem;
}

.horoscope-hub__head {
    margin-bottom: 2rem;
    text-align: center;
}

.horoscope-hub__period {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    letter-spacing: var(--dana-heading-tracking);
    text-transform: var(--dana-heading-transform);
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.horoscope-hub__lead {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.horoscope-acc-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.horoscope-acc {
    border: 1px solid rgba(196, 165, 116, 0.22);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.horoscope-acc:hover {
    border-color: rgba(196, 165, 116, 0.38);
}

.horoscope-acc[open] {
    border-color: rgba(196, 165, 116, 0.45);
}

.horoscope-acc__summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.horoscope-acc__summary::-webkit-details-marker {
    display: none;
}

.horoscope-acc:hover .horoscope-zodiac-icon,
.horoscope-acc[open] .horoscope-zodiac-icon {
    border-color: rgba(232, 212, 168, 0.75);
    box-shadow:
        0 0 0 1px rgba(196, 165, 116, 0.25) inset,
        0 0 28px rgba(196, 165, 116, 0.35),
        0 8px 22px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: scale(1.04);
}

.horoscope-acc[open] .horoscope-zodiac-icon {
    background:
        radial-gradient(ellipse 90% 75% at 50% 15%, rgba(245, 236, 212, 0.32), transparent 52%),
        radial-gradient(circle at 50% 115%, rgba(0, 0, 0, 0.4), transparent 58%),
        linear-gradient(155deg, rgba(52, 46, 36, 0.98) 0%, rgba(28, 26, 22, 1) 100%);
}

.horoscope-acc__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.horoscope-acc__name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.horoscope-acc__dates {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: var(--dana-caption-transform);
    letter-spacing: 0.06em;
}

.horoscope-acc__chev {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 0.25rem;
}

.horoscope-acc[open] .horoscope-acc__chev {
    transform: rotate(-135deg);
    margin-top: 0.35rem;
}

.horoscope-acc__panel {
    padding: 0 1.15rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.horoscope-acc__body {
    padding-top: 1rem;
    color: var(--color-text);
}

.horoscope-acc__empty {
    margin: 1rem 0 0;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-style: italic;
}

.horoscope-acc[data-empty="1"] .horoscope-acc__name {
    opacity: 0.85;
}

@media (max-width: 520px) {
    .horoscope-acc__summary {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
        padding: 0.85rem 0.9rem;
    }

}

/* ——— Магазин: заглушка Soon ——— */
.shop-soon-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.shop-soon {
    text-align: center;
    padding: 3rem 1rem;
}

.shop-soon__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    letter-spacing: var(--dana-caption-hub-track);
    text-transform: var(--dana-caption-transform);
    color: var(--color-muted);
}

.shop-soon__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 1.25rem;
}

.shop-soon__text {
    max-width: 28rem;
    margin: 0 auto 2rem;
    color: var(--color-muted);
    line-height: 1.7;
}