/* === tonmoda.ru Custom Styles === */

[x-cloak] {
    display: none !important;
}

:root {
    --color-brand: #1A1A1A;
    --color-brand-light: #2D2D2D;
    --color-muted: #6B7280;
    --color-accent: #8B7355;
    --color-accent-light: #C8A87C;
    --color-accent-soft: #F5F0EB;
    --color-surface: #FAFAF9;
    --color-border: #E5E7EB;
    --radius-card: 1rem;
    --radius-btn: 0.875rem;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.08);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    /* Сдержанный бронзовый ободок + мягкий глянец */
    --btn-bronze-border: rgba(200, 168, 124, 0.7);
    --btn-bronze-border-soft: rgba(139, 115, 85, 0.4);
    --btn-glare: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.05) 28%,
        transparent 55%
    );
    --btn-shadow:
        0 2px 10px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}
/* Десктоп: крупнее для читаемости (целевая аудитория 35–60+) */
@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

/* Медиа и сетки не должны раздувать viewport (Chrome, Edge, Safari) */
img, video, svg, canvas {
    max-width: 100%;
}

/* ============================================
   Отступ под фиксированный хедер (на всех страницах)
   ============================================ */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: 64px;          /* h-16 мобилка — фиксированно, не от rem */
    overflow-x: hidden;
    max-width: 100%;
    color: var(--color-brand);
    background-color: #F7F5F2;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(200, 168, 124, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 30%, rgba(245, 240, 235, 0.9), transparent 60%),
        radial-gradient(ellipse 45% 35% at 0% 70%, rgba(232, 213, 181, 0.18), transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, #F7F5F2 40%, #F3F0EB 100%);
    background-attachment: fixed;
}
@media (min-width: 1024px) {
    body {
        padding-top: 80px;      /* lg:h-20 десктоп */
    }
}
@media (max-width: 1023px) {
    body {
        background-attachment: scroll;
    }
}

/* ============================================
   Хедер и меню — фиксированный, с подложкой
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    max-width: 100%;
}
.site-header__bar {
    height: 64px;
}
.site-header > .max-w-7xl,
.site-header .flex.items-center.justify-between {
    min-width: 0;
    width: 100%;
}
@media (min-width: 1024px) {
    .site-header__bar {
        height: 80px;
    }
}
/* Лёгкая тень при прокрутке */
.site-header.scrolled .site-header__bar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 24px rgba(26, 26, 26, 0.06),
        0 1px 0 rgba(200, 168, 124, 0.18);
}

/* Мобилка: прячем только верхнюю полосу, меню — отдельный слой */
@media (max-width: 1023px) {
    .site-header {
        height: auto;
        overflow: visible;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        pointer-events: none;
    }

    .site-header__bar {
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px) saturate(1.2);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        border-bottom: 1px solid rgba(139, 115, 85, 0.1);
        transition: transform 0.22s ease-in-out, box-shadow 0.3s ease, background 0.3s ease;
        position: relative;
        z-index: 52;
    }

    .site-header.scrolled .site-header__bar {
        background: rgba(255, 255, 255, 0.96);
    }

    .site-header.nav-hidden .site-header__bar {
        transform: translateY(calc(-1 * var(--header-bar-height, 64px) - 4px));
        pointer-events: none;
    }

    .site-header.is-menu-open .site-header__bar {
        transform: none;
        pointer-events: auto;
    }

    body.mobile-nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .mobile-nav-layer {
        position: relative;
        z-index: 51;
        pointer-events: none;
    }

    .mobile-nav-layer .mobile-menu-backdrop,
    .mobile-nav-layer .mobile-menu {
        pointer-events: auto;
    }

    .mobile-burger {
        position: relative;
        z-index: 55;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(26, 26, 26, 0.35);
        pointer-events: auto;
        /* без transition — меньше лагов на iOS */
    }

    .mobile-menu {
        position: fixed;
        top: var(--header-bar-height, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 51;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        max-height: none;
        box-shadow: 0 12px 40px rgba(26, 26, 26, 0.12);
        background: #fff;
        touch-action: pan-y;
    }

    .mobile-services__trigger,
    .mm-b__pick,
    .mm-b__close {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Кнопка «Наверх» */
.back-to-top-btn {
    position: fixed;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 53;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(139, 115, 85, 0.25);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, background 0.2s ease;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-btn:active {
    background: var(--color-accent-soft);
}

body.mobile-nav-open .back-to-top-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .back-to-top-btn {
        display: none !important;
    }

    .site-header {
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(16px) saturate(1.2);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    }
    .site-header.scrolled {
        background: rgba(255, 255, 255, 0.9);
        box-shadow:
            0 4px 24px rgba(26, 26, 26, 0.06),
            0 1px 0 rgba(200, 168, 124, 0.18);
    }
}
.site-header .flex.items-center {
    height: 100%;
}

/* -- Logo -- */
.site-header .font-display {
    font-size: inherit;  /* не масштабируем логотип дополнительно */
}

/* -- Nav links -- */
.nav-link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    color: #4B5563;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-link:hover {
    color: #1A1A1A;
    background: #F3F4F6;
}

/* Active nav link */
.nav-link.active {
    color: var(--color-accent);
    background: var(--color-accent-soft);
    font-weight: 600;
}
/* Active nav link — underline slide */
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    width: 50%;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: transform 0.25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: transform 0.25s ease;
}
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(0.6);
}

/* -- Dropdown (меню) -- */
.nav-dropdown-trigger {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    color: #4B5563;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-dropdown-trigger:hover {
    color: #1A1A1A;
    background: #F3F4F6;
}

.nav-dropdown {
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    min-width: 320px;
}
.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}
.nav-dropdown a:hover {
    background: #F9F6F3;
    color: #8B7355;
    border-left-color: #8B7355;
}
.nav-dropdown a .price-hint {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 400;
    margin-top: 0.125rem;
}

/* -- CTA button (в хедере) — мягкое стекло, бронзовый ободок -- */
.btn-cta {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-btn);
    transition: all 0.25s ease;
    border: 1.5px solid var(--btn-bronze-border);
    background:
        var(--btn-glare),
        linear-gradient(180deg, #2D2D2D 0%, #1A1A1A 100%);
    box-shadow: var(--btn-shadow);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-cta:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 30%, transparent 55%),
        linear-gradient(180deg, #3A3A3A 0%, #242424 100%);
    border-color: var(--color-accent-light);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: #fff;
}

/* -- Phone link (в хедере) — оригинальный размер -- */
.phone-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1A1A1A;
    transition: color 0.2s;
    text-decoration: none;
}
.phone-link:hover {
    color: #8B7355;
}

/* -- Mobile menu — оригинальный размер -- */
.mobile-menu {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu a:not(.btn-cta) {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: block;
    color: #374151;
    transition: all 0.15s;
    text-decoration: none;
}
.mobile-menu a:not(.btn-cta):hover {
    background: #F5F0EB;
    color: #8B7355;
}
.mobile-menu a:not(.btn-cta).active {
    color: #8B7355;
    background: #F5F0EB;
    font-weight: 600;
}
.mobile-menu a.btn-cta {
    color: #fff;
    margin-top: 0.25rem;
    justify-content: center;
}
.mobile-menu a.btn-cta:hover {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 30%, transparent 55%),
        linear-gradient(180deg, #3A3A3A 0%, #242424 100%);
    border-color: var(--color-accent-light);
}

/* Мобильное меню: не больше 85vh, скролл если не помещается */
@media (max-width: 1023px) {
    .mobile-menu {
        max-height: none;
    }
}

/* ============================================
   Контент
   ============================================ */

/* -- Качественный рендеринг заголовков (Windows ClearType friendly) -- */
h1, h2, h3, h4, h5, h6,
.font-display, .section-title {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
}
/* Чуть больше letter-spacing — убирает «остроту» Manrope */
h1, h2, .section-title {
    letter-spacing: -0.015em;
}

/* -- Sections -- */
.section-title {
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1A1A1A;
}
.section-subtitle {
    color: #6B7280;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 640px;
}

/* -- Мобильные отступы: уменьшаем padding у секций -- */
@media (max-width: 767px) {
    section[class*="py-16"] {
        padding-top: 2.5rem !important;   /* было 4rem */
        padding-bottom: 2.5rem !important;
    }
    section[class*="py-24"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    section[class*="py-20"] {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    /* Hero: меньше верхний отступ (уже компенсируется body padding-top) */
    .hero-bg.pt-12 {
        padding-top: 1.5rem !important;
    }
    .hero-bg.pb-20 {
        padding-bottom: 3rem !important;
    }
    /* Межсекционные заголовки */
    section .mb-14 {
        margin-bottom: 2rem !important;
    }
    section .mb-12 {
        margin-bottom: 1.5rem !important;
    }
    /* Текст hero на мобилке: адаптивный, "процентно" от ширины экрана */
    .hero-content-panel {
        font-size: 88%;
        padding: 0.875rem;
    }
    .hero-bg h1 {
        font-size: clamp(2.175rem, 8.2vw, 3.075rem) !important;
        line-height: 1.12;
        letter-spacing: -0.02em;
    }
    .hero-bg p.text-lg,
    .hero-bg p.text-xl {
        font-size: clamp(1.05rem, 3.8vw, 1.29rem) !important;
        line-height: 1.4;
    }
    .hero-bg .btn-primary,
    .hero-bg .btn-outline {
        font-size: clamp(0.93rem, 3.4vw, 1.11rem);
        min-height: 2.6rem;
        padding: 0.625rem 1rem;
    }
    .hero-bg .mt-8 {
        gap: 0.5rem;
        font-size: clamp(0.87rem, 3.1vw, 1.02rem);
        flex-wrap: wrap;
    }
}

/* -- Cards -- */
.card-hover {
    transition: all var(--transition-base);
}

/* -- Footer -- */
.site-footer {
    background:
        radial-gradient(ellipse 70% 60% at 10% 0%, rgba(200, 168, 124, 0.1), transparent 50%),
        linear-gradient(180deg, #1A1A1A 0%, #121212 100%);
    color: #9CA3AF;
    border-top: 1px solid rgba(200, 168, 124, 0.12);
}
.site-footer a {
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #fff;
}

/* -- Animations -- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* -- Form -- */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(139, 115, 85, 0.18);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.72);
    outline: none;
    color: var(--color-brand);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.input-field.bg-white {
    background: rgba(255, 255, 255, 0.92);
}
.input-field:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(139, 115, 85, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* File picker — в общем языке кнопок */
input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--btn-bronze-border-soft);
    border-radius: 0.625rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 240, 235, 0.85) 100%);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}
input[type="file"]::file-selector-button:hover {
    border-color: var(--btn-bronze-border);
    background: linear-gradient(180deg, #fff 0%, #F5F0EB 100%);
}

/* -- Badge -- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #F5F0EB;
    color: #8B7355;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* -- Selection -- */
::selection {
    background: rgba(139,115,85,0.2);
    color: #1A1A1A;
}

/* -- Brand accent text -- */
.text-accent {
    color: #8B7355;
}
.bg-accent-soft {
    background: #F5F0EB;
}

/* ============================================
   Таблица цен — аккуратное единообразие
   ============================================ */
.price-table {
    border-collapse: collapse;
}
.price-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;       /* заголовки таблицы */
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #F9FAFB;
    border-bottom: 2px solid #E5E7EB;
}
.price-table td {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}
.price-table tbody tr {
    transition: background 0.15s ease;
}
.price-table tbody tr:hover {
    background: #FCFAF8;
}
.price-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ячейка с ценой — акцентное выделение */
.price-table td.price-cell {
    font-weight: 700;
    color: #8B7355;
    white-space: nowrap;
    font-size: 1.0625rem;       /* ячейка с ценой */
    letter-spacing: -0.01em;
}

/* Ячейка с описанием */
.price-table td.price-desc {
    color: #6B7280;
    line-height: 1.5;
}

/* ============================================
   Расширенные области клика для ссылок
   ============================================ */

/* Общее правило: все ссылки в контенте получают минимальную область касания */
main a:not(.btn-cta):not(.btn-primary):not(.btn-outline):not(.btn-secondary):not(.btn-ghost):not(.card-hover):not(.filter-btn):not(.phone-link-wrap):not(.breadcrumbs a):not(.service-card):not(.blog-card-link):not(.blog-cover) {
    display: inline-block;
    padding: 0.25rem 0.375rem;
    margin: -0.25rem -0.375rem;
    border-radius: 0.375rem;
    transition: background 0.15s ease, color 0.15s ease;
}
main a:not(.btn-cta):not(.btn-primary):not(.btn-outline):not(.btn-secondary):not(.btn-ghost):not(.card-hover):not(.filter-btn):not(.phone-link-wrap):not(.breadcrumbs a):not(.service-card):not(.blog-card-link):not(.blog-cover):hover {
    background: rgba(139,115,85,0.06);
}

/* Карточки-ссылки — вся карточка кликабельна */
a.card-hover {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Кнопки фильтров — широкая область касания */
.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    min-height: 2.5rem;
    min-width: 2.5rem;
    justify-content: center;
    transition: all 0.2s ease;
}
.portfolio-type-card:focus-visible,
.portfolio-project-card a:focus-visible {
    outline: 2px solid rgba(139, 115, 85, 0.5);
    outline-offset: 2px;
}

.portfolio-project-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-project-card:hover {
    border-color: rgba(139, 115, 85, 0.25);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
    padding-bottom: 0.15em;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
    padding-bottom: 0.15em;
}

/* ============================================
   Блог — карточки статей
   ============================================ */
.blog-card {
    display: flex;
    flex-direction: column;
}
.blog-card__body {
    flex: 1;
}
.blog-card-link {
    display: block;
    text-decoration: none;
    margin: 0;
    padding: 0;
}
.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-brand);
    line-height: 1.45;
    padding: 0.125rem 0 0;
    transition: color 0.2s ease;
    overflow: visible;
}
.group:hover .blog-card-title {
    color: var(--color-accent);
}
.blog-card-excerpt {
    line-height: 1.55;
    padding-bottom: 0.1em;
}
.blog-drop-cap__letter {
    display: inline-block;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    margin-right: 0.2em;
    vertical-align: -0.12em;
}
.blog-card--text .blog-card__body {
    padding-top: 1.125rem;
}

/* Ссылки в футере — область касания */
.site-footer a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 0.375rem;
}

/* Ссылка "Читать →" — удобный тап */
a.read-more {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    margin: -0.25rem -0.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.15s ease;
}
a.read-more:hover {
    background: rgba(139,115,85,0.06);
}

/* Хлебные крошки */
.breadcrumbs {
    overflow-wrap: anywhere;
}
.breadcrumbs a {
    display: inline-block;
    padding: 0.125rem 0.25rem;
    margin: 0;
    border-radius: 0.375rem;
}

/* Длинные заголовки — перенос в Edge / Safari */
.heading-break {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* Кнопка пагинации — крупная область */
.pagination-nav a[href] {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   prose-content — форматирование статей
   ============================================ */
.prose-content {
    color: #374151;
    line-height: 1.75;
    font-size: 1.0625rem;
}
@media (min-width: 1024px) {
    .prose-content {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}
.prose-content h2 {
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1A1A1A;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}
.prose-content h3 {
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1A1A1A;
    margin-top: 1.25em;
    margin-bottom: 0.375em;
}
.prose-content p {
    margin-bottom: 0.75em;
}
.prose-content ul, .prose-content ol {
    margin-bottom: 0.75em;
    padding-left: 1.5em;
}
.prose-content li {
    margin-bottom: 0.375em;
}
.prose-content strong {
    color: #1A1A1A;
    font-weight: 600;
}

/* ============================================
   Иконки преимуществ
   ============================================ */
.advantage-icon {
    border-radius: 0.875rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 240, 235, 0.85) 100%);
    color: #8B7355;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(200, 168, 124, 0.28);
    box-shadow:
        0 4px 14px rgba(139, 115, 85, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ============================================
   Кнопки — мягкое стекло + тонкий бронзовый ободок
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1.5px solid var(--btn-bronze-border);
    cursor: pointer;
    min-height: 3rem;
    background:
        var(--btn-glare),
        linear-gradient(180deg, #2D2D2D 0%, #1A1A1A 100%);
    box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 30%, transparent 55%),
        linear-gradient(180deg, #3A3A3A 0%, #242424 100%);
    color: #fff;
    border-color: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.btn-primary--light {
    color: var(--color-brand);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 100%),
        linear-gradient(180deg, #FFFFFF 0%, #F3F0EB 100%);
    border-color: rgba(200, 168, 124, 0.55);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(139, 115, 85, 0.06);
}
.btn-primary--light:hover {
    color: var(--color-brand);
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
    border-color: var(--color-accent-light);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(139, 115, 85, 0.05);
}

.btn-outline,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    min-height: 3rem;
    border: 1.5px solid var(--btn-bronze-border-soft);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 240, 235, 0.55) 100%);
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-outline:hover,
.btn-secondary:hover {
    color: var(--color-accent);
    border-color: rgba(139, 115, 85, 0.55);
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F5F0EB 100%);
    box-shadow:
        0 4px 14px rgba(139, 115, 85, 0.1),
        inset 0 1px 0 #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    min-height: 3rem;
    border: 1.5px solid rgba(200, 168, 124, 0.45);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
    color: #fff;
    border-color: rgba(200, 168, 124, 0.7);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ============================================
   Визуальный язык «стекло»
   ============================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 10px 36px rgba(26, 26, 26, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-card);
}

.glass-panel--dark {
    background: rgba(18, 18, 18, 0.52);
    border: 1px solid rgba(200, 168, 124, 0.18);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.film-gradient {
    background:
        radial-gradient(ellipse 70% 80% at 15% 20%, rgba(200, 168, 124, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 70% at 90% 80%, rgba(139, 115, 85, 0.08), transparent 50%),
        linear-gradient(135deg, #FAFAF9 0%, #F5F0EB 48%, #FAFAF9 100%);
    position: relative;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.22), transparent);
    border: none;
    margin: 0;
}

/* Панели контента — мягкое стекло вместо плоского серого */
.surface-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.25rem;
    box-shadow:
        0 8px 28px rgba(26, 26, 26, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.surface-panel--dark {
    background:
        linear-gradient(165deg, rgba(55, 48, 40, 0.92) 0%, rgba(26, 26, 26, 0.96) 55%, #141414 100%);
    border: 1px solid rgba(200, 168, 124, 0.28);
    border-radius: 1.25rem;
    color: #fff;
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.surface-panel--dark .text-gray-300 {
    color: rgba(229, 231, 235, 0.82);
}

/* Заголовок страницы — лёгкий акцент бронзы */
.page-intro h1,
main > section > .max-w-5xl > h1:first-child,
main > section > .max-w-7xl > h1:first-child,
main > section > .max-w-4xl > h1:first-child,
main > section > .max-w-3xl > h1:first-child {
    position: relative;
    padding-bottom: 0.75rem;
}
.page-intro h1::after,
main > section > .max-w-5xl > h1:first-child::after,
main > section > .max-w-7xl > h1:first-child::after,
main > section > .max-w-4xl > h1:first-child::after,
main > section > .max-w-3xl > h1:first-child::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent-light), rgba(200, 168, 124, 0.15));
}

/* ============================================
   Hero
   ============================================ */
.hero-bg {
    position: relative;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%);
}
.hero-bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(0.95) contrast(1.05);
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(0,0,0,0.25), rgba(0,0,0,0) 60%),
        linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.42) 45%, rgba(0,0,0,0.55) 100%);
}
.hero-bg--with-image {
    background: #121212;
}
.hero-content-panel {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
@media (min-width: 1024px) {
    .hero-content-panel {
        padding: 1.5rem;
    }
}
.text-gradient {
    background: linear-gradient(135deg, #C8A87C, #E8D5B5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Карточки цен с фото-превью (все разрешения)
   ============================================ */

/* Горизонтальная карточка: фото слева, контент справа */
.price-card-h {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 0;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.04);
}
.price-card-h:hover {
    border-color: rgba(200, 168, 124, 0.45);
    box-shadow:
        0 16px 40px rgba(26, 26, 26, 0.1),
        0 0 0 1px rgba(200, 168, 124, 0.12);
    background: linear-gradient(135deg, #fff 0%, rgba(245, 240, 235, 0.55) 100%);
}

/* Фото-превью */
.price-card-photo {
    position: relative;
    flex-shrink: 0;
    width: 10rem;           /* 240px при базе 24px */
    min-height: 100%;
    cursor: pointer;
    overflow: hidden;
    background: #F3F4F6;
}
.price-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.price-card-photo:hover .price-card-img {
    transform: scale(1.05);
}

/* Оверлей с лупой при наведении */
.price-card-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    opacity: 0;
}
.price-card-photo:hover .price-card-photo-overlay {
    background: rgba(0,0,0,0.3);
    opacity: 1;
}

/* Тело карточки */
.price-card-body {
    flex: 1;
    padding: 1rem 1.25rem;
    min-width: 0;  /* чтобы flex-дети не вылезали */
}

.price-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.15s;
}
.price-card-title:hover {
    color: #8B7355;
}

.price-value {
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 700;
    color: #8B7355;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.price-card-desc {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #6B7280;
}

.price-variants {
    padding-left: 0.25rem;
}

.price-variant-row__name {
    min-width: 0;
}

/* --- Меню услуг: фото-карточки --- */
.nav-mega-menu {
    min-width: 22rem;
    max-width: 26rem;
    max-height: min(80vh, 42rem);
    overflow-y: auto;
    padding: 0.5rem;
    background: #F7F5F2;
}
.nav-mega-menu a.nav-service-item__parent,
.nav-mega-menu a.nav-service-item__child {
    padding: 0;
    border-left: none;
    color: inherit;
    background: transparent;
}
.nav-mega-menu a.nav-service-item__parent:hover,
.nav-mega-menu a.nav-service-item__child:hover {
    background: transparent;
    border-left-color: transparent;
    color: inherit;
}
.nav-mega-menu__all {
    display: block;
    padding: 0.625rem 0.875rem;
    margin: 0.25rem 0.25rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    border-left: none !important;
    border-radius: 0.5rem;
}
.nav-mega-menu__all:hover {
    color: var(--color-brand);
    background: rgba(255, 255, 255, 0.7) !important;
    border-left-color: transparent !important;
}

.nav-service-item {
    margin-bottom: 0.375rem;
}
.nav-service-item:last-of-type {
    margin-bottom: 0;
}
.nav-service-item__card {
    position: relative;
    display: flex;
    align-items: stretch;
}

/* --- Desktop: категория неподвижна, варианты раскрываются только снизу --- */
.nav-mega-menu .nav-service-item {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}
.nav-mega-menu .nav-service-item:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.nav-mega-menu .nav-service-item__card {
    overflow: hidden;
}
.nav-mega-menu .nav-service-item__parent {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 5rem;
    min-height: 5rem;
    max-height: 5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #fff;
    min-width: 0;
    isolation: isolate;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                min-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.35s ease;
}
/* Расширение фото категории при hover — только карточка, не подменю */
.nav-mega-menu .nav-service-item__card:hover .nav-service-item__parent {
    height: 9rem;
    min-height: 9rem;
    max-height: 9rem;
    padding: 0.875rem 1rem 1rem;
}
.nav-mega-menu .nav-service-item__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #3a342e 0%, #1f1c19 100%);
}
.nav-mega-menu .nav-service-item__media--fallback {
    background: linear-gradient(135deg, #5c5349 0%, #2a2622 100%);
}
.nav-mega-menu .nav-service-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    filter: brightness(0.9) saturate(1.05);
    transition: transform 0.4s ease, filter 0.3s ease;
}
.nav-mega-menu .nav-service-item__media-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
}
.nav-mega-menu .nav-service-item__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.28) 45%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: background 0.3s ease;
    pointer-events: none;
}
.nav-mega-menu .nav-service-item__text,
.nav-mega-menu .nav-service-item__child-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}
.nav-mega-menu .nav-service-item__name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
    transition: color 0.25s ease, font-size 0.35s ease, text-shadow 0.25s ease;
}
.nav-mega-menu .nav-service-item__price {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.2rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    transition: color 0.25s ease;
}
.nav-mega-menu .nav-service-item__card:hover .nav-service-item__parent > .nav-service-item__media .nav-service-item__img {
    transform: scale(1.08);
    filter: brightness(1.02) saturate(1.1);
}
.nav-mega-menu .nav-service-item__card:hover .nav-service-item__parent > .nav-service-item__scrim {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.04) 70%,
        transparent 100%
    );
}
.nav-mega-menu .nav-service-item__card:hover .nav-service-item__name {
    font-size: 1.0625rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.nav-mega-menu .nav-service-item__card:hover .nav-service-item__price,
.nav-mega-menu .nav-service-item.is-open .nav-service-item__price {
    color: var(--color-accent-light);
}
.nav-mega-menu .nav-service-item.is-open .nav-service-item__parent > .nav-service-item__media .nav-service-item__img {
    transform: scale(1.04);
    filter: brightness(1) saturate(1.06);
}
.nav-mega-menu .nav-service-item.is-open .nav-service-item__name {
    color: #fff;
}

/* Нижняя полоска: клик открывает/закрывает; hover по категории — подсказка */
.nav-mega-menu .nav-service-item__sub {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}
.nav-mega-menu .nav-service-item__sub-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    height: 1.375rem;
    min-height: 1.375rem;
    padding: 0.2rem 0.5rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, #2a2622 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                min-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.4s ease,
                color 0.4s ease,
                box-shadow 0.4s ease;
}
.nav-mega-menu .nav-service-item__sub-grip {
    width: 2.25rem;
    height: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 0 -1px rgba(255, 255, 255, 0.18);
    transition: width 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.nav-mega-menu .nav-service-item__sub-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, color 0.3s ease, transform 0.4s ease;
    transform: translateY(-2px);
}
.nav-mega-menu .nav-service-item__sub-label--close {
    display: none;
}
.nav-mega-menu .nav-service-item__sub-chevron {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Подсказка при наведении на категорию с вариантами (ещё закрыта) */
.nav-mega-menu .nav-service-item.has-variants:not(.is-open):hover .nav-service-item__sub-handle,
.nav-mega-menu .nav-service-item.has-variants:not(.is-open) .nav-service-item__sub-handle:hover {
    height: 2rem;
    min-height: 2rem;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(180deg, #3f3830 0%, #1f1c19 100%);
    box-shadow: inset 0 1px 0 rgba(200, 168, 124, 0.25);
}
.nav-mega-menu .nav-service-item.has-variants:not(.is-open):hover .nav-service-item__sub-grip,
.nav-mega-menu .nav-service-item.has-variants:not(.is-open) .nav-service-item__sub-handle:hover .nav-service-item__sub-grip {
    width: 2.75rem;
    background: var(--color-accent-light);
    box-shadow: 0 3px 0 -1px rgba(200, 168, 124, 0.35);
    animation: nav-sub-grip-pulse 1.4s ease-in-out infinite;
}
.nav-mega-menu .nav-service-item.has-variants:not(.is-open):hover .nav-service-item__sub-label--open,
.nav-mega-menu .nav-service-item.has-variants:not(.is-open) .nav-service-item__sub-handle:hover .nav-service-item__sub-label--open {
    max-height: 1rem;
    opacity: 1;
    transform: translateY(0);
    color: var(--color-accent-light);
}
.nav-mega-menu .nav-service-item.has-variants:not(.is-open):hover .nav-service-item__sub-chevron,
.nav-mega-menu .nav-service-item.has-variants:not(.is-open) .nav-service-item__sub-handle:hover .nav-service-item__sub-chevron {
    animation: nav-sub-chevron-nudge 1.2s ease-in-out infinite;
}

/* Открыто: подсказка «свернуть» */
.nav-mega-menu .nav-service-item.is-open .nav-service-item__sub-label--open {
    display: none;
}
.nav-mega-menu .nav-service-item.is-open .nav-service-item__sub-label--close {
    display: flex;
}
.nav-mega-menu .nav-service-item.is-open .nav-service-item__sub-handle {
    height: 1.75rem;
    min-height: 1.75rem;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, #3a342e 0%, #1f1c19 100%);
}
.nav-mega-menu .nav-service-item.is-open .nav-service-item__sub-grip {
    width: 2.5rem;
    background: var(--color-accent-light);
    box-shadow: 0 3px 0 -1px rgba(200, 168, 124, 0.35);
}
.nav-mega-menu .nav-service-item.is-open .nav-service-item__sub-label--close {
    max-height: 1rem;
    opacity: 0.75;
    transform: translateY(0);
}
.nav-mega-menu .nav-service-item.is-open:hover .nav-service-item__sub-handle,
.nav-mega-menu .nav-service-item.is-open .nav-service-item__sub-handle:hover {
    height: 2rem;
    min-height: 2rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(200, 168, 124, 0.3);
}
.nav-mega-menu .nav-service-item.is-open:hover .nav-service-item__sub-label--close,
.nav-mega-menu .nav-service-item.is-open .nav-service-item__sub-handle:hover .nav-service-item__sub-label--close {
    opacity: 1;
    color: var(--color-accent-light);
}

@keyframes nav-sub-grip-pulse {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(1.12); opacity: 0.85; }
}
@keyframes nav-sub-chevron-nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}

/* Плавное раскрытие через grid */
.nav-mega-menu .nav-service-item__children {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    background: #0f0e0d;
    transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.45s ease;
}
.nav-mega-menu .nav-service-item.is-open .nav-service-item__children {
    grid-template-rows: 1fr;
    opacity: 1;
}
.nav-mega-menu .nav-service-item__children-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nav-mega-menu .nav-service-item__child {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 3rem;
    min-height: 3rem;
    max-height: 3rem;
    padding: 0.5rem 0.875rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    border-radius: 0;
    box-shadow: none;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                min-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.35s ease;
}
.nav-mega-menu .nav-service-item__child:hover {
    height: 8rem;
    min-height: 8rem;
    max-height: 8rem;
    padding: 0.75rem 0.875rem 0.875rem;
}
.nav-mega-menu .nav-service-item__child .nav-service-item__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #4a433c 0%, #252220 100%);
}
.nav-mega-menu .nav-service-item__child .nav-service-item__img {
    filter: brightness(0.85) saturate(1.05);
    transform: scale(1.02);
    transition: transform 0.4s ease, filter 0.35s ease;
}
.nav-mega-menu .nav-service-item__child:hover .nav-service-item__img {
    transform: scale(1.08);
    filter: brightness(1.02) saturate(1.1);
}
.nav-mega-menu .nav-service-item__child .nav-service-item__scrim {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.28) 48%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: background 0.35s ease;
}
.nav-mega-menu .nav-service-item__child:hover .nav-service-item__scrim {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.04) 70%,
        transparent 100%
    );
}
.nav-mega-menu .nav-service-item__child-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    transition: color 0.25s ease, font-size 0.35s ease, text-shadow 0.25s ease;
}
.nav-mega-menu .nav-service-item__child-price {
    display: block;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.1rem;
    opacity: 1;
    max-height: none;
    overflow: visible;
    transition: color 0.25s ease;
}
.nav-mega-menu .nav-service-item__child:hover .nav-service-item__child-name {
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.nav-mega-menu .nav-service-item__child:hover .nav-service-item__child-price {
    color: var(--color-accent-light);
}

@media (prefers-reduced-motion: reduce) {
    .nav-mega-menu .nav-service-item.has-variants:not(.is-open):hover .nav-service-item__sub-grip,
    .nav-mega-menu .nav-service-item.has-variants:not(.is-open) .nav-service-item__sub-handle:hover .nav-service-item__sub-grip,
    .nav-mega-menu .nav-service-item.has-variants:not(.is-open):hover .nav-service-item__sub-chevron,
    .nav-mega-menu .nav-service-item.has-variants:not(.is-open) .nav-service-item__sub-handle:hover .nav-service-item__sub-chevron {
        animation: none;
    }
    .nav-mega-menu .nav-service-item,
    .nav-mega-menu .nav-service-item__parent,
    .nav-mega-menu .nav-service-item__child,
    .nav-mega-menu .nav-service-item__img,
    .nav-mega-menu .nav-service-item__name,
    .nav-mega-menu .nav-service-item__price,
    .nav-mega-menu .nav-service-item__children,
    .nav-mega-menu .nav-service-item__sub-handle,
    .nav-mega-menu .nav-service-item__sub-label,
    .nav-mega-menu .nav-service-item__sub-chevron,
    .nav-mega-menu .nav-service-item__sub-grip {
        transition-duration: 0.01ms !important;
    }
}

.category-thumb {
    flex-shrink: 0;
    overflow: hidden;
    background: #F3F4F6;
}
.category-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.category-thumb__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
}

/* --- Mobile: компактный список с превью --- */
.mobile-services__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}
.mobile-services__trigger:hover {
    background: #F3F4F6;
}
.mobile-services__list {
    padding: 0.25rem 0 0.5rem;
}
.mobile-services__all {
    display: block;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.mobile-services .nav-service-item {
    margin-bottom: 0;
    border-bottom: 1px solid #F3F4F6;
}
.mobile-services .nav-service-item__card {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.mobile-services .nav-service-item__parent {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.mobile-services .nav-service-item__parent:hover {
    background: #F9F6F3;
}
.mobile-services .nav-service-item__media {
    position: relative;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #F3F4F6;
}
.mobile-services .nav-service-item__media--fallback {
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
}
.mobile-services .nav-service-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mobile-services .nav-service-item__media-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
}
.mobile-services .nav-service-item__scrim {
    display: none;
}
.mobile-services .nav-service-item__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mobile-services .nav-service-item__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
}
.mobile-services .nav-service-item__price {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.125rem;
}
.mobile-services .nav-service-item__toggle {
    flex-shrink: 0;
    width: 2.25rem;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
}
.mobile-services .nav-service-item__toggle:hover {
    color: var(--color-accent);
    background: #F9F6F3;
}
.mobile-services .nav-service-item__children {
    padding: 0 0.5rem 0.5rem 1rem;
    background: #FAFAF9;
}
.mobile-services .nav-service-item__child {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
}
.mobile-services .nav-service-item__child:hover {
    background: #fff;
}
.mobile-services .nav-service-item__child .nav-service-item__media {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
}
.mobile-services .nav-service-item__child-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}
.mobile-services .nav-service-item__child-price {
    display: block;
    font-size: 0.6875rem;
    color: #9CA3AF;
}

/* --- Прайс: аккордеон с вариантами --- */
.price-accordion {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-accordion:hover {
    border-color: rgba(139, 115, 85, 0.35);
}
.price-accordion[open] {
    box-shadow: var(--shadow-card);
    border-color: rgba(139, 115, 85, 0.4);
}
.price-accordion__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    list-style: none;
}
.price-accordion__summary::-webkit-details-marker {
    display: none;
}
.price-accordion__thumb {
    width: 5.5rem;
    height: 4rem;
    border-radius: 0.625rem;
}
.price-accordion__head {
    flex: 1;
    min-width: 0;
}
.price-accordion__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.price-accordion__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.35;
}
.price-accordion__desc {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.45;
}
.price-accordion__hint {
    display: inline-block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
}
.price-accordion__chevron {
    flex-shrink: 0;
    color: #9CA3AF;
    transition: transform 0.2s ease;
}
.price-accordion[open] .price-accordion__chevron {
    transform: rotate(180deg);
}
.price-accordion__body {
    padding: 0 1rem 1rem;
    border-top: 1px solid #F3F4F6;
}
.price-variant-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.625rem;
    margin-top: 0.875rem;
}
@media (min-width: 640px) {
    .price-variant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.price-variant-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    background: #FAFAF9;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.price-variant-card:hover {
    border-color: var(--color-accent);
    background: #fff;
}
.price-variant-card__thumb {
    width: 4rem;
    height: 3rem;
    border-radius: 0.5rem;
}
.price-variant-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.125rem;
}
.price-variant-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A1A;
}
.price-variant-card__desc {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.35;
}
.price-variant-card__price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
}
.price-accordion__more {
    display: inline-block;
    margin-top: 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
}
.price-accordion__more:hover {
    color: var(--color-brand);
}

.price-card-photo--placeholder {
    width: 10rem;
    min-height: 5.5rem;
}

.service-variant-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F3F4F6;
}
.service-variant-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-variant-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-variant-card:hover {
    border-color: rgba(139, 115, 85, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-variant-switcher a {
    text-decoration: none;
}

/* Аккордеон */
.price-details {
    border-top: 1px solid #F3F4F6;
    padding-top: 0.625rem;
    margin-top: 0.625rem;
}
.price-details__toggle {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-accent);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}
.price-details__toggle:hover {
    color: var(--color-brand);
}
.price-details__text {
    margin-top: 0.625rem;
    padding: 0.625rem 0 0.125rem 0.75rem;
    border-left: 2px solid rgba(139, 115, 85, 0.3);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4B5563;
}
.price-details summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.price-details summary::-webkit-details-marker {
    display: none;
}
.price-details summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    background: #F5F0EB;
    color: #8B7355;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.price-details[open] summary::before {
    content: "−";
    background: var(--color-accent);
    color: #fff;
}

@media (min-width: 1024px) {
    .price-card-body {
        padding: 1.125rem 1.5rem;
    }
    .price-card-desc,
    .price-details__toggle,
    .price-details__text {
        font-size: 1rem;
    }
    .price-card-title {
        font-size: 1.1875rem;
    }
    .price-value {
        font-size: 1.3125rem;
    }
}

/* Мобильные: фото сверху, контент снизу */
@media (max-width: 639px) {
    .price-card-h {
        flex-direction: column;
    }
    .price-card-photo {
        width: 100%;
        height: 180px;
    }
    .price-card-title {
        font-size: 1.0625rem;  /* ~17px */
    }
}

/* ============================================
   Галерея на странице проекта
   ============================================ */
.project-gallery-swiper,
.project-before-swiper,
.project-drawing-swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.project-gallery-swiper .swiper-slide,
.project-before-swiper .swiper-slide,
.project-drawing-swiper .swiper-slide {
    height: auto;
}
.project-swiper-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    cursor: zoom-in;
}
.project-swiper-img--drawing {
    padding: 1rem;
}
.project-gallery-swiper .swiper-button-prev,
.project-gallery-swiper .swiper-button-next {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.project-gallery-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent);
}

/* Компактная кнопка «на весь экран» на галерее */
.project-gallery-fs-trigger {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(26, 26, 26, 0.72);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.project-gallery-fs-trigger:hover,
.project-gallery-fs-trigger:focus-visible {
    background: rgba(26, 26, 26, 0.9);
    outline: none;
    transform: translateY(-1px);
}
.project-gallery-fs-trigger__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.project-gallery-fs-trigger__label {
    white-space: nowrap;
}
@media (max-width: 639px) {
    .project-gallery-fs-trigger {
        left: 0.625rem;
        top: 0.625rem;
        padding: 0.55rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        justify-content: center;
    }
    .project-gallery-fs-trigger__label {
        display: none;
    }
}
/* На мобилке/планшете у основной галереи есть крупная CTA — компактную кнопку скрываем */
@media (max-width: 1023px) {
    [data-project-gallery="photos"] .project-gallery-fs-trigger {
        display: none;
    }
}

/* Кнопка «развернуть для просмотра» — только мобилка */
.project-gallery-expand-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 1.5px solid #E5E7EB;
    background: #F9FAFB;
    color: #1A1A1A;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.project-gallery-expand-btn:hover,
.project-gallery-expand-btn:focus-visible {
    border-color: #8B7355;
    background: #F5F0EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.12);
}
.project-gallery-expand-btn__icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    color: #8B7355;
    animation: galleryRotateHint 2.4s ease-in-out infinite;
}
.project-gallery-expand-btn__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}
.project-gallery-expand-btn__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
.project-gallery-expand-btn__hint {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.35;
}
@keyframes galleryRotateHint {
    0%, 100% { transform: rotate(0deg); }
    35% { transform: rotate(-90deg); }
    70% { transform: rotate(-90deg); }
}

/* Полноэкранная галерея проекта */
.project-gallery-fs {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    display: flex;
    flex-direction: column;
}
.project-gallery-fs.hidden {
    display: none;
}
.project-gallery-fs__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    flex-shrink: 0;
}
.project-gallery-fs__title {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-gallery-fs__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
    flex-shrink: 1;
    min-width: 0;
}
.project-gallery-fs__hint svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    animation: galleryRotateHint 2.4s ease-in-out infinite;
}
.project-gallery-fs__close {
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.project-gallery-fs__close svg {
    width: 1.25rem;
    height: 1.25rem;
}
.project-gallery-fs-swiper {
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}
.project-gallery-fs-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 0.5rem 1rem;
    box-sizing: border-box;
}
.project-gallery-fs__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 5.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}
.project-gallery-fs--drawing .project-gallery-fs__img {
    background: #fff;
    border-radius: 0.25rem;
    padding: 0.75rem;
    box-sizing: border-box;
}
.project-gallery-fs-swiper .swiper-button-prev,
.project-gallery-fs-swiper .swiper-button-next {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
}
.project-gallery-fs-swiper .swiper-button-prev::after,
.project-gallery-fs-swiper .swiper-button-next::after {
    font-size: 1rem;
}
.project-gallery-fs-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}
.project-gallery-fs-swiper .swiper-pagination-bullet-active {
    background: #fff;
}
.project-gallery-fs__counter {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    pointer-events: none;
}
@media (max-width: 639px) {
    .project-gallery-fs__toolbar {
        flex-wrap: wrap;
    }
    .project-gallery-fs__title {
        flex: 1 1 calc(100% - 3.5rem);
        order: 1;
    }
    .project-gallery-fs__close {
        order: 2;
    }
    .project-gallery-fs__hint {
        order: 3;
        flex: 1 1 100%;
        font-size: 0.8125rem;
    }
}
@media (orientation: landscape) {
    .project-gallery-fs__img {
        max-height: calc(100vh - 3.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
    .project-gallery-fs__toolbar {
        padding-top: max(0.5rem, env(safe-area-inset-top));
        padding-bottom: 0.25rem;
    }
    .project-gallery-fs__hint {
        display: none;
    }
}

/* ============================================
   Лайтбокс
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}
.lightbox.active {
    display: flex;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
    animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}
@media (max-width: 639px) {
    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    .lightbox {
        padding: 1rem;
    }
}

/* ============================================
   Анимации
   ============================================ */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Toast / уведомления
   ============================================ */
.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Карточки (единый стиль)
   ============================================ */
.card,
.card-hover {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.04);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
a.card-hover:hover,
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 48px rgba(26, 26, 26, 0.1),
        0 0 0 1px rgba(200, 168, 124, 0.2);
    border-color: rgba(200, 168, 124, 0.35);
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.service-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent-soft), #fff);
}
.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-card__media img {
    transform: scale(1.05);
}
.service-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    opacity: 0.5;
}

/* ============================================
   CTA band (внутренние страницы)
   ============================================ */
.cta-band {
    padding: 3.5rem 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 0%, rgba(200, 168, 124, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 70% at 90% 100%, rgba(139, 115, 85, 0.18), transparent 50%),
        linear-gradient(160deg, #1F1C19 0%, #1A1A1A 45%, #121212 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 30%;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(200, 168, 124, 0.2), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 35%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 12px,
            rgba(255, 255, 255, 0.015) 12px,
            rgba(255, 255, 255, 0.015) 13px
        );
    pointer-events: none;
}
.cta-band__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}
.cta-band__title {
    font-family: "Manrope", "Inter", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.cta-band__text {
    color: rgba(209, 213, 219, 0.92);
    margin-bottom: 1.75rem;
    line-height: 1.65;
    font-size: 1.05rem;
}
.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
}

/* ============================================
   Блок «В цифрах»
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}
.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--radius-card);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.stat-card:hover {
    border-color: rgba(139, 115, 85, 0.25);
    box-shadow: var(--shadow-card);
}
.stat-card__value {
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.stat-card__label {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 0.375rem;
    line-height: 1.45;
}
@media (min-width: 1024px) {
    .stat-card__label {
        font-size: 1rem;
    }
}

/* ============================================
   Timeline процесса
   ============================================ */
.process-timeline {
    position: relative;
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .process-timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    .process-timeline::before {
        content: "";
        position: absolute;
        top: 2.25rem;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-accent-soft), var(--color-accent), var(--color-accent-soft));
        transform-origin: left center;
        transform: scaleX(0);
        transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .process-timeline.is-visible::before {
        transform: scaleX(1);
    }
}
.process-step {
    position: relative;
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--radius-card);
    padding: 1.5rem;
}
.process-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.process-step__title {
    font-weight: 600;
    color: var(--color-brand);
    margin-bottom: 0.375rem;
}
.process-step__desc {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}
@media (min-width: 1024px) {
    .process-step__desc {
        font-size: 1rem;
        line-height: 1.65;
    }
}

/* Десктоп: описания в карточках и секциях — не мельче 16–18px */
@media (min-width: 1024px) {
    main p.text-sm,
    main .text-gray-500.text-sm,
    main .text-gray-400.text-sm,
    .service-card__body p,
    .advantage-icon + h3 + p,
    .site-footer .text-sm {
        font-size: 1rem;
        line-height: 1.65;
    }
    .section-subtitle,
    main .text-lg.text-gray-500 {
        font-size: 1.25rem;
        line-height: 1.7;
    }
    .btn-primary,
    .btn-outline,
    .btn-secondary,
    .btn-ghost,
    .btn-cta {
        font-size: 1rem;
    }
    .input-field {
        font-size: 1rem;
    }
}

/* ============================================
   Hero trust list (мобилка)
   ============================================ */
.hero-trust-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}
.hero-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(243, 244, 246, 0.92);
    font-size: 0.875rem;
    line-height: 1.45;
}
.hero-trust-list__icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 168, 124, 0.2);
    border: 1px solid rgba(200, 168, 124, 0.45);
    color: #E8D5B5;
}
.hero-trust-list__icon svg {
    width: 0.75rem;
    height: 0.75rem;
}
@media (min-width: 640px) {
    .hero-trust-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .hero-trust-list li {
        font-size: 0.9375rem;
        padding: 0.8rem 1rem;
    }
}
@media (min-width: 1024px) {
    .hero-trust-list {
        grid-template-columns: 1fr;
        max-width: 36rem;
    }
}

/* ============================================
   Блог — обложка (только при наличии фото)
   ============================================ */
.blog-cover {
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--color-surface);
}
.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.group:hover .blog-cover img {
    transform: scale(1.04);
}

/* ============================================
   Контакты — мессенджеры (приглушённые)
   ============================================ */
.contact-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(200, 168, 124, 0.28);
    background: rgba(255, 255, 255, 0.75);
    transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
}
.contact-social-link:hover {
    border-color: rgba(139, 115, 85, 0.45);
    background: rgba(245, 240, 235, 0.9);
    box-shadow: 0 4px 14px rgba(139, 115, 85, 0.08);
}
.contact-social-link span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-brand);
}

/* ============================================
   About — pull quote
   ============================================ */
.pull-quote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--color-accent-soft);
    border-radius: 0 0.75rem 0.75rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-brand);
    line-height: 1.55;
}

/* ============================================
   Portfolio type card — parallax overlay
   ============================================ */
.portfolio-type-card .aspect-\[4\/3\] img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-type-card:hover .aspect-\[4\/3\] img {
    transform: scale(1.06);
}

.portfolio-project-card .card-photo-wrap img {
    transition: transform 0.5s ease;
}
.portfolio-project-card:hover .card-photo-wrap img {
    transform: scale(1.03);
}

/* ============================================
   Модалки — кнопки (мягкое стекло + бронза)
   ============================================ */
.modal-btn-primary {
    flex: 1;
    padding: 0.75rem 1rem;
    color: #fff;
    border-radius: var(--radius-btn);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid var(--btn-bronze-border);
    cursor: pointer;
    transition: all var(--transition-base);
    background:
        var(--btn-glare),
        linear-gradient(180deg, #2D2D2D 0%, #1A1A1A 100%);
    box-shadow: var(--btn-shadow);
}
.modal-btn-primary:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 30%, transparent 55%),
        linear-gradient(180deg, #3A3A3A 0%, #242424 100%);
    border-color: var(--color-accent-light);
}
.modal-btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    color: #374151;
    border-radius: var(--radius-btn);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid var(--btn-bronze-border-soft);
    cursor: pointer;
    transition: all var(--transition-base);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 240, 235, 0.7) 100%);
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.modal-btn-secondary:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F0EB 100%);
    border-color: rgba(139, 115, 85, 0.55);
}

/* ============================================
   Stagger animation delays
   ============================================ */
.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-item:nth-child(4) { transition-delay: 0.2s; }
.stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-item:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll,
    .animate-in,
    .stagger-item {
        opacity: 1 !important;
        transform: none !important;
    }
    .process-timeline::before {
        transform: scaleX(1) !important;
        transition: none !important;
    }
}