/* Севастополь-Мемориал — Memorial Atelier design system */

body.site2-premium {
    --brand-bg: #faf9f7;
    --brand-surface: #ffffff;
    --brand-ink: #1c1917;
    --brand-muted: #78716c;
    --brand-border: #e7e5e4;
    --brand-accent: #9a7b4f;
    --brand-accent-soft: #d4c4a8;
    --brand-accent-hover: #7d6340;
    --brand-on-accent: #ffffff;
    --brand-overlay: rgba(28, 25, 23, 0.45);
    --brand-footer: #1c1917;
    --brand-footer-text: #e8e4df;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-soft: 0 4px 24px rgba(28, 25, 23, 0.06);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --heading-1: clamp(2rem, 4vw, 3rem);
    --heading-2: clamp(1.5rem, 3vw, 2rem);
    --heading-3: 1.35rem;
    --color-bg: var(--brand-bg);
    --color-bg-card: var(--brand-surface);
    --color-text: var(--brand-ink);
    --color-muted: var(--brand-muted);
    --color-border: var(--brand-border);
    --color-primary: var(--brand-ink);
    --color-primary-dark: #0c0a09;
    --color-bg-card-alt: #f5f4f2;
    --color-text-secondary: var(--brand-muted);
    --transition-fast: 0.2s ease;
    --radius-lg: 12px;
    --font-weight-medium: 600;

    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--brand-ink);
    background: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
}

.site2-premium h1,
.site2-premium h2,
.site2-premium h3,
.site2-premium h4,
.site2-premium .hero__title,
.site2-premium .page-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--brand-ink);
}

.site2-premium a:not(.btn) {
    color: var(--brand-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.site2-premium a:not(.btn):hover { color: var(--brand-accent-hover); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn--primary {
    background: var(--brand-ink);
    color: #fff;
    border-color: var(--brand-ink);
}
.btn--primary:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}
.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}
.btn--outline {
    background: transparent;
    color: var(--brand-ink);
    border-color: var(--brand-border);
}
.btn--outline:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}
.btn--secondary {
    background: var(--brand-accent-soft);
    color: var(--brand-ink);
    border-color: var(--brand-accent-soft);
}
.btn--secondary:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

/* Header */
.site-header--premium {
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid var(--brand-border);
    background: color-mix(in srgb, var(--brand-bg) 92%, transparent);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s;
}
.site-header--premium.site-header--scrolled {
    box-shadow: var(--shadow-soft);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
}
.logo-wrapper { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-header--premium .logo {
    text-decoration: none;
    color: var(--brand-ink);
}
.site-header--premium .logo__short {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}
.site-header--premium .logo__full {
    font-size: 0.68rem;
    color: var(--brand-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.header-badge {
    display: none;
    font-size: 0.7rem;
    color: var(--brand-muted);
    letter-spacing: 0.06em;
}
@media (min-width: 900px) {
    .header-badge { display: block; }
    .badge-year { color: var(--brand-accent); margin-right: 0.5rem; }
}

.nav-main .nav-list,
.nav-list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header--premium .nav-main a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--brand-ink);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.site-header--premium .nav-main a:hover,
.site-header--premium .nav-item--active > a {
    color: var(--brand-accent);
}
.site-header--premium .nav-item--active > a {
    background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
}
.site-header--premium .submenu .nav-item--active > a {
    color: var(--brand-accent);
    font-weight: 600;
}
.has-submenu { position: relative; }
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
    z-index: 100;
    list-style: none;
    margin: 0;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu { display: block; }
.submenu a { font-size: 0.82rem; padding: 0.45rem 1rem; }

.header-phone--labeled {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    color: var(--brand-ink);
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--brand-accent-soft);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.header-phone__label {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--brand-muted);
}
.header-rating {
    display: none;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    line-height: 1.1;
}
.header-rating__score {
    font-weight: 700;
    color: var(--brand-accent);
    font-size: 0.95rem;
}
.header-rating__meta {
    font-size: 0.62rem;
    color: var(--brand-muted);
}
@media (min-width: 1024px) {
    .header-rating { display: flex; }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand-ink);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--brand-overlay);
    z-index: 950;
}
.nav-overlay.is-open { display: block; }
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--brand-surface);
    border-left: 1px solid var(--brand-border);
    z-index: 960;
    padding: 0;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}
.nav-drawer.is-open { right: 0; }
.nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--brand-border);
    background: color-mix(in srgb, var(--brand-bg) 60%, var(--brand-surface));
    position: sticky;
    top: 0;
    z-index: 1;
}
.nav-drawer__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-ink);
}
.nav-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--brand-ink);
    cursor: pointer;
}
.nav-drawer__close:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}
.nav-main--drawer {
    display: block;
    padding: 0.5rem 1.25rem 2rem;
}
.nav-main--drawer .nav-list { flex-direction: column; gap: 0; }
.nav-main--drawer a {
    display: block;
    padding: 0.85rem 0;
    font-size: var(--text-base);
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--brand-ink);
    border-bottom: 1px solid var(--brand-border);
}
.nav-main--drawer a:hover,
.nav-main--drawer .nav-item--active > a {
    color: var(--brand-accent);
}
.nav-main--drawer .nav-item--active > a {
    font-weight: 600;
}
.nav-main--drawer .has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-main--drawer .has-submenu > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand-muted);
    border-bottom: 2px solid var(--brand-muted);
    transform: rotate(45deg);
    transition: transform 0.2s, border-color 0.2s;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.nav-main--drawer .has-submenu.is-open > a::after {
    transform: rotate(-135deg);
    border-color: var(--brand-accent);
}
.nav-main--drawer .has-submenu .submenu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
    margin: 0;
    background: transparent;
}
.nav-main--drawer .has-submenu.is-open .submenu { display: block; }
.nav-main--drawer .submenu a {
    font-size: 0.9rem;
    padding: 0.55rem 0;
    border-bottom: none;
    color: var(--brand-muted);
}
.nav-main--drawer .submenu .nav-item--active > a {
    color: var(--brand-accent);
    font-weight: 600;
}
.nav-drawer__phone {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}
.nav-drawer__phone a {
    border-bottom: none;
    font-weight: 600;
    color: var(--brand-accent);
}

@media (max-width: 1024px) {
    .site-header--premium .header-inner > nav.nav-main { display: none; }
    .header-actions { display: none; }
    .menu-toggle { display: flex; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
    .site-header--premium .nav-main a { padding: 0.5rem 0.55rem; font-size: 0.8rem; }
}

/* Hero — editorial split */
.hero--atelier {
    position: relative;
    display: grid;
    grid-template-columns: 1fr min(44%, 520px);
    align-items: stretch;
    min-height: 0;
    max-height: min(68vh, 600px);
    background: var(--brand-ink);
    color: #fff;
    overflow: hidden;
}
.hero--atelier .hero__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 4rem max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
    position: relative;
    z-index: 2;
}
.hero--atelier .hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--brand-accent-soft);
    margin: 0 0 1rem;
}
.hero--atelier .hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: #fff;
    margin: 0 0 1.25rem;
    max-width: 14ch;
}
.hero--atelier .hero__lead {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 42ch;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.hero__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-accent-soft);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__credentials span::before { content: '· '; }
.hero__credentials span:first-child::before { content: ''; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__microtext {
    margin-top: 1.25rem;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.78);
}
.hero--atelier .hero__visual {
    position: relative;
    min-height: 0;
    height: 100%;
    max-height: min(68vh, 600px);
    overflow: hidden;
    background: var(--brand-ink);
}
.hero--atelier .hero__visual picture {
    display: block;
    width: 100%;
    height: 100%;
}
.hero--atelier .hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero--atelier .hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--brand-ink) 0%, transparent 40%);
}
@media (max-width: 900px) {
    .hero--atelier {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .hero--atelier .hero__main { padding: 3rem 1.5rem 2rem; }
    .hero--atelier .hero__visual {
        order: -1;
        max-height: min(42vw, 260px);
        min-height: 200px;
    }
    .hero--atelier .hero__visual::after {
        background: linear-gradient(180deg, transparent 40%, var(--brand-ink) 100%);
    }
}

/* Legacy hero compat */
.hero.hero--premium.hero--with-bg {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.hero.hero--with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.88), rgba(28, 25, 23, 0.65));
}
.hero.hero--with-bg .hero__content-wrap { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

/* Page */
.site-main { min-height: 50vh; }
.site-main--wide .page-content { max-width: 900px; }
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.page-title {
    font-size: var(--heading-1);
    margin-bottom: 2rem;
    color: var(--brand-ink);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: var(--text-sm);
    color: var(--brand-muted);
}
.breadcrumbs li:not(:last-child)::after { content: ' / '; margin-left: 0.35rem; }
.breadcrumbs a { color: var(--brand-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-accent); }

/* Atelier panels */
.atelier-panel,
.vip-info-box {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.atelier-panel.reveal.active,
.vip-info-box.reveal.active,
.atelier-panel:first-of-type,
.vip-info-box:first-of-type {
    opacity: 1;
    transform: none;
}
.atelier-panel h2,
.vip-info-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--heading-2);
}
.atelier-panel h3,
.vip-info-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: var(--heading-3);
}
.atelier-panel h4,
.vip-info-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--heading-3);
    font-weight: 600;
}
.atelier-panel p:last-child,
.vip-info-box p:last-child { margin-bottom: 0; }
.atelier-panel ul,
.vip-info-box ul { padding-left: 1.25rem; margin: 1rem 0; }
.atelier-panel li,
.vip-info-box li { margin-bottom: 0.4rem; }

/* Gallery */
.gallery-title { margin-bottom: 1.5rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.gallery-grid figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/5;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(28, 25, 23, 0.85));
    color: #fff;
    font-size: var(--text-sm);
    transform: translateY(100%);
    transition: transform 0.3s;
}
.gallery-grid figure:hover figcaption { transform: translateY(0); }
@media (hover: none) {
    .gallery-grid figcaption { transform: translateY(0); }
}

/* Gallery lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 1.5rem;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__container {
    position: relative;
    max-width: min(960px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-lightbox__content {
    margin: 0;
    text-align: center;
    color: #fff;
}
.gallery-lightbox__img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.gallery-lightbox__caption {
    margin-top: 1rem;
    font-size: var(--text-sm);
}
.gallery-lightbox__footer { margin-top: 1.25rem; }
.gallery-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    z-index: 10;
}
.gallery-lightbox__close::before,
.gallery-lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}
.gallery-lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.gallery-lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.gallery-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}
.gallery-lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.gallery-lightbox__nav--prev { left: 0.5rem; }
.gallery-lightbox__nav--prev::before { content: "‹"; }
.gallery-lightbox__nav--next { right: 0.5rem; }
.gallery-lightbox__nav--next::before { content: "›"; }
@media (max-width: 767px) {
    .gallery-lightbox__nav { display: none; }
    .gallery-lightbox__img { max-height: 65vh; }
}
.gallery-grid img { cursor: zoom-in; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--brand-ink);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    background: var(--brand-surface);
    color: var(--brand-ink);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.15);
}
.form-success-message {
    text-align: center;
    padding: 2rem;
    color: var(--brand-accent);
}
.success-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal.is-open { display: flex; }
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.55);
    backdrop-filter: blur(4px);
}
.modal__container {
    position: relative;
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}
.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--brand-border);
}
.modal__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0;
}
.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-muted);
    line-height: 1;
}
.modal__close::before { content: '×'; }
.modal__content { padding: 1.5rem; }

/* Footer */
.site-footer--premium {
    background: var(--brand-footer);
    color: var(--brand-footer-text);
    padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer--premium h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--brand-accent-soft);
    margin-bottom: 0.75rem;
}
.site-footer--premium .footer-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: #fff;
    margin: 0 0 0.75rem;
}
.footer-trust {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--brand-footer-text);
    opacity: 0.92;
}
.site-footer--premium a {
    color: var(--brand-accent-soft);
    text-decoration: none;
}
.site-footer--premium a:hover { color: #fff; }
.footer-links {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}
.footer-copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}
.footer-col { margin-bottom: 1.5rem; }

/* Mobile CTA */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--brand-surface);
    border-top: 1px solid var(--brand-border);
    padding: 8px 12px;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    min-height: 48px;
}
.mobile-cta-btn--call { background: var(--brand-ink); color: var(--brand-on-accent); }
.mobile-cta-btn--wa { background: #25D366; color: var(--brand-on-accent); }
.mobile-cta-btn--order {
    background: var(--brand-accent);
    color: var(--brand-on-accent);
    border: 1px solid var(--brand-accent);
}
.mobile-cta-btn--order:hover {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
}

/* Reading progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--brand-accent);
    z-index: 9999;
    width: 0;
    transition: width 0.1s;
}

/* 404 */
.page-content--404 .vip-info-box,
.page-content--404 .atelier-panel { text-align: center; }

/* Tables */
.vip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.vip-table th,
.vip-table td {
    padding: 0.65rem 1rem;
    border: 1px solid var(--brand-border);
    text-align: left;
}
.vip-table th { background: var(--brand-bg); font-weight: 600; }

/* Widget 3D */
.widget-3d-project { text-align: center; }
.form-hint {
    margin-top: 1rem;
    font-size: var(--text-sm);
    color: var(--brand-muted);
}

/* Trust strip */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    text-align: center;
}
.trust-strip__item {
    position: relative;
    padding: 1.15rem 0.85rem 1rem;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
.trust-strip__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 40%, var(--brand-ink)));
    opacity: 0.85;
}
.trust-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 12%, var(--brand-surface));
    color: var(--brand-accent);
}
.trust-strip__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--brand-ink);
    line-height: 1.2;
}
.trust-strip__label {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--text-sm);
    color: var(--brand-muted);
    line-height: 1.35;
}
.reveal-stagger.is-visible .trust-strip__item,
.trust-strip.reveal-stagger.is-visible .trust-strip__item {
    opacity: 1;
    transform: none;
}
.reveal-stagger.is-visible .trust-strip__item:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible .trust-strip__item:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible .trust-strip__item:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible .trust-strip__item:nth-child(4) { transition-delay: 0.26s; }
.trust-strip__item:hover {
    box-shadow: var(--shadow-soft);
    border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--brand-border));
}

/* Hero entrance */
.hero--animated .hero__anim {
    opacity: 0;
    transform: translateY(20px);
    animation: atelier-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero--animated .hero__anim:nth-child(1) { animation-delay: 0.05s; }
.hero--animated .hero__main .hero__anim:nth-of-type(1) { animation-delay: 0.05s; }
.hero--animated .hero__main .hero__anim:nth-of-type(2) { animation-delay: 0.12s; }
.hero--animated .hero__main .hero__anim:nth-of-type(3) { animation-delay: 0.2s; }
.hero--animated .hero__credentials.hero__anim { animation-delay: 0.28s; }
.hero--animated .hero__cta.hero__anim { animation-delay: 0.36s; }
.hero--animated .hero__microtext.hero__anim { animation-delay: 0.44s; }
.hero--animated .hero__anim--visual {
    opacity: 0;
    animation: atelier-hero-fade 0.85s ease 0.12s forwards;
}
@keyframes atelier-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}
@keyframes atelier-hero-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Infographic — process timeline */
.info-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin: 1.75rem 0 1rem;
    padding-top: 1.25rem;
}
.info-timeline__track {
    position: absolute;
    top: 1.55rem;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--brand-border);
    border-radius: 2px;
    overflow: hidden;
}
.info-timeline__progress {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-ink));
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.is-visible .info-timeline__progress { width: 100%; }
.info-step {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-stagger.is-visible .info-step {
    opacity: 1;
    transform: none;
}
.reveal-stagger.is-visible .info-step:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible .info-step:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible .info-step:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible .info-step:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible .info-step:nth-child(6) { transition-delay: 0.4s; }
.info-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--brand-surface);
    color: var(--brand-accent);
    border: 2px solid var(--brand-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--brand-surface);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.reveal-stagger.is-visible .info-step:hover .info-step__num {
    background: var(--brand-accent);
    color: #fff;
    transform: scale(1.06);
}
.info-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.45rem;
    color: var(--brand-accent);
    opacity: 0.9;
}
.info-step__body strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}
.info-step__body p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--brand-muted);
    line-height: 1.45;
}

/* Infographic — cost composition */
.info-compose {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 2rem 2.5rem;
    align-items: center;
    margin: 1.5rem 0 0.75rem;
}
.info-donut {
    margin: 0;
    text-align: center;
}
.info-donut__chart {
    position: relative;
    width: min(200px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--brand-ink) 0deg 126deg,
        var(--brand-accent) 126deg 234deg,
        #8b7355 234deg 288deg,
        #57534e 288deg 360deg
    );
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-border) 60%, transparent);
    opacity: 0;
    transform: scale(0.88) rotate(-12deg);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.info-donut__chart::after {
    content: '';
    position: absolute;
    inset: 26%;
    border-radius: 50%;
    background: var(--brand-surface);
    box-shadow: inset 0 0 0 1px var(--brand-border);
}
.reveal-stagger.is-visible .info-donut__chart {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.info-donut__center {
    position: relative;
    margin-top: -5.5rem;
    margin-bottom: 1.25rem;
    pointer-events: none;
    z-index: 1;
}
.info-donut__title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-ink);
    line-height: 1.2;
}
.info-donut__sub {
    display: block;
    font-size: var(--text-sm);
    color: var(--brand-muted);
}
.info-donut__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    text-align: left;
    font-size: 0.8rem;
    color: var(--brand-muted);
}
.info-donut__legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-donut__swatch {
    flex-shrink: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 2px;
    background: var(--swatch, var(--brand-accent));
}

/* Infographic — cost bars */
.info-bars { margin: 0; }
.info-bars__row {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) 1fr 3.25rem;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-bottom: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.is-visible .info-bars__row {
    opacity: 1;
    transform: none;
}
.reveal-stagger.is-visible .info-compose .info-bars__row:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.is-visible .info-compose .info-bars__row:nth-child(2) { transition-delay: 0.18s; }
.reveal-stagger.is-visible .info-compose .info-bars__row:nth-child(3) { transition-delay: 0.26s; }
.reveal-stagger.is-visible .info-compose .info-bars__row:nth-child(4) { transition-delay: 0.34s; }
.info-bars__label {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.3;
}
.info-bars__track {
    height: 0.75rem;
    background: var(--brand-bg);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    box-shadow: inset 0 1px 2px rgba(28, 25, 23, 0.04);
}
.info-bars__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bar-color, var(--brand-accent)) 85%, #000), var(--bar-color, var(--brand-accent)));
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.info-compose.is-animated .info-bars__fill,
.info-bars.is-animated .info-bars__fill {
    width: calc(var(--progress, 0) * 1%);
}
.info-bars__pct {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--brand-accent);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.info-bars__note {
    font-size: var(--text-sm);
    color: var(--brand-muted);
    margin: 0.5rem 0 0;
}

/* Infographic — icon grid */
.info-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}
.info-icon-card {
    padding: 1.35rem 1.4rem;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}
}
.reveal-stagger.is-visible .info-icon-card {
    opacity: 1;
    transform: none;
}
.reveal-stagger.is-visible .info-icon-card:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible .info-icon-card:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible .info-icon-card:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible .info-icon-card:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible .info-icon-card:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible .info-icon-card:nth-child(6) { transition-delay: 0.4s; }
.info-icon-card:hover {
    border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--brand-border));
    border-left-color: var(--brand-accent);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}
.info-icon-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--brand-accent) 10%, var(--brand-surface));
    color: var(--brand-accent);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, var(--brand-border));
}
.info-icon-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}
.info-icon-card p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--brand-muted);
    line-height: 1.45;
}

/* Stagger children — useful cards */
.useful-grid.reveal-stagger:not(.is-visible) .useful-card {
    opacity: 0;
    transform: translateY(12px);
}
.useful-grid.reveal-stagger .useful-card {
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.useful-grid.reveal-stagger.is-visible .useful-card {
    opacity: 1;
    transform: none;
}
.useful-grid.reveal-stagger.is-visible .useful-card:nth-child(1) { transition-delay: 0.05s; }
.useful-grid.reveal-stagger.is-visible .useful-card:nth-child(2) { transition-delay: 0.1s; }
.useful-grid.reveal-stagger.is-visible .useful-card:nth-child(3) { transition-delay: 0.15s; }
.useful-grid.reveal-stagger.is-visible .useful-card:nth-child(4) { transition-delay: 0.2s; }

@media (max-width: 900px) {
    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-compose {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .info-donut__center {
        margin-top: -5rem;
    }
    .info-timeline {
        grid-template-columns: 1fr;
        padding-top: 0;
        gap: 0;
    }
    .info-timeline__track {
        top: 0;
        bottom: 0;
        left: 1.1rem;
        right: auto;
        width: 2px;
        height: auto;
    }
    .info-timeline__progress {
        width: 100% !important;
        height: 0;
        transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal-stagger.is-visible .info-timeline__progress { height: 100%; }
    .info-step {
        display: grid;
        grid-template-columns: 2.25rem 1fr;
        gap: 0 1rem;
        text-align: left;
        padding: 0 0 1.25rem 0;
    }
    .info-step__num { margin-bottom: 0; grid-row: span 3; align-self: start; }
    .info-step__icon { margin-bottom: 0.25rem; }
    .info-icon-grid {
        grid-template-columns: 1fr;
    }
    .info-bars__row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .info-bars__pct { text-align: left; }
}

/* Conversion CTA */
.conversion-cta { text-align: center; }
.conversion-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}
.conversion-cta__micro {
    margin-top: 1rem;
    font-size: var(--text-sm);
    color: var(--brand-muted);
}

/* Раздел «Полезное» — карточки статей */
.useful-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}
.useful-card {
    background: var(--color-bg-card-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    color: var(--brand-ink);
}
.useful-card h2 {
    font-size: var(--text-lg);
    margin: 0;
    line-height: 1.3;
}
.useful-card h2 a {
    color: inherit;
    text-decoration: none;
}
.useful-card h2 a:hover { color: var(--brand-accent); }
.useful-card p {
    flex: 1;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}
.useful-card .btn { align-self: flex-start; margin-top: var(--space-2); }
.useful-card h3 {
    font-size: var(--text-lg);
    margin: 0;
    line-height: 1.3;
}
.useful-card h3 a {
    color: var(--brand-ink);
    text-decoration: none;
}
.useful-card h3 a:hover { color: var(--brand-accent); }
.useful-grid--compact { margin-bottom: var(--space-3); }

/* Рубрики «Полезное» */
.stati-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-5);
}
.stati-filter {
    padding: 0.45rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-surface);
    color: var(--brand-ink);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.stati-filter:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}
.stati-filter--active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-on-accent, #fff);
}
.stati-card__tag {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-accent);
}
.geo-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.geo-links-inline a {
    text-decoration: none;
    font-weight: 600;
}

.geo-hero .lead {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}
.geo-local-note {
    padding: 0.85rem 1rem;
    margin: 0.75rem 0 0;
    border-left: 3px solid var(--brand-accent);
    background: color-mix(in srgb, var(--brand-accent) 8%, var(--brand-bg));
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--text-sm);
    line-height: 1.5;
}
.geo-distance-hint {
    font-size: var(--text-sm);
    color: var(--brand-muted);
    margin-top: 0.5rem;
}
.geo-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}
.geo-facts__item {
    padding: 1rem 0.85rem;
    text-align: center;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-stagger.is-visible .geo-facts__item {
    opacity: 1;
    transform: none;
}
.reveal-stagger.is-visible .geo-facts__item:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.is-visible .geo-facts__item:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible .geo-facts__item:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible .geo-facts__item:nth-child(4) { transition-delay: 0.22s; }
.geo-facts__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-ink);
    line-height: 1.25;
}
.geo-facts__label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--brand-muted);
    line-height: 1.3;
}
.geo-cemetery-list,
.geo-neighbors-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}
.geo-neighbors-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.geo-neighbors-list a {
    font-weight: 600;
    text-decoration: none;
}
.geo-neighbors-list a:hover {
    text-decoration: underline;
}
.geo-settlements-list {
    columns: 2;
    column-gap: 2rem;
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.65;
}
@media (max-width: 600px) {
    .geo-settlements-list { columns: 1; }
    .geo-facts { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    background: var(--brand-surface);
    overflow: hidden;
}
.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 1.25rem 1rem; color: var(--brand-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Footer layout */
.footer-col--full { width: 100%; }
.footer-links--3col {
    columns: 2;
    column-gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links--3col li { margin-bottom: 0.35rem; break-inside: avoid; }
@media (min-width: 768px) {
    .footer-links--3col { columns: 3; }
}

/* Map embed */
.map-embed {
    border: 0;
    width: 100%;
    height: 360px;
    border-radius: var(--radius-md);
}

/* Toast */
.ux-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-ink);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.ux-toast.is-visible { opacity: 1; }

/* Chat widget — плавающие кнопки слева */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--brand-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft), 0 4px 18px rgba(28, 25, 23, 0.12);
    position: relative;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
    background: var(--brand-surface);
    color: var(--brand-accent);
}
.floating-btn:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-soft), 0 8px 24px rgba(28, 25, 23, 0.16);
    border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--brand-border));
    background: color-mix(in srgb, var(--brand-accent) 8%, var(--brand-surface));
    color: var(--brand-accent-hover);
}
.floating-btn svg { stroke: currentColor; }
.floating-btn.btn-chat {
    background: var(--brand-accent);
    color: var(--brand-on-accent);
    border-color: var(--brand-accent);
}
.floating-btn.btn-chat:hover {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: #fff;
}
.floating-btn.btn-call,
.floating-btn.btn-theme,
.floating-btn.btn-top {
    background: var(--brand-surface);
    color: var(--brand-accent);
}
.chat-options {
    position: absolute;
    bottom: 245px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-option {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-ink);
    background: var(--brand-surface);
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--brand-border);
}
.chat-option:hover {
    background: var(--brand-ink);
    color: #fff;
    border-color: var(--brand-ink);
}
.chat-option.wa { border-left: 4px solid #25D366; }
.chat-option.tg { border-left: 4px solid #37aee2; }
.chat-option.max { border-left: 4px solid var(--brand-accent); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .atelier-panel.reveal { opacity: 1; transform: none; }
    .hero--animated .hero__anim,
    .hero--animated .hero__anim--visual {
        opacity: 1;
        animation: none;
    }
    .info-timeline__progress,
    .info-bars__fill,
    .info-donut__chart { transition: none !important; }
    .info-bars__fill { width: calc(var(--progress, 100) * 1%) !important; }
    .info-donut__chart { opacity: 1 !important; transform: none !important; }
    .reveal-stagger .info-step,
    .reveal-stagger .info-bars__row,
    .reveal-stagger .info-icon-card,
    .reveal-stagger .trust-strip__item,
    .useful-grid.reveal-stagger .useful-card {
        opacity: 1;
        transform: none;
    }
}

/* Chat widget — тёмная тема */
[data-theme="dark"] .floating-btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .floating-btn:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .floating-btn.btn-call,
[data-theme="dark"] .floating-btn.btn-theme,
[data-theme="dark"] .floating-btn.btn-top {
    background: var(--brand-surface);
    color: var(--brand-accent-soft);
    border-color: var(--brand-border);
}
[data-theme="dark"] .floating-btn.btn-call:hover,
[data-theme="dark"] .floating-btn.btn-theme:hover,
[data-theme="dark"] .floating-btn.btn-top:hover {
    background: color-mix(in srgb, var(--brand-accent) 14%, var(--brand-surface));
    color: var(--brand-accent-soft);
}
[data-theme="dark"] .floating-btn.btn-chat {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}
[data-theme="dark"] .floating-btn.btn-chat:hover {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
}
[data-theme="dark"] .chat-option:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

[data-theme="dark"] body.site2-premium {
    --brand-bg: #141210;
    --brand-surface: #1c1917;
    --brand-ink: #f5f4f2;
    --brand-border: #292524;
    --brand-muted: #a8a29e;
    --brand-overlay: rgba(0, 0, 0, 0.55);
    --color-bg-card-alt: #292524;
}
[data-theme="dark"] .site-header--premium {
    background: color-mix(in srgb, var(--brand-bg) 95%, transparent);
}
[data-theme="dark"] .nav-drawer {
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .site-header--premium .nav-item--active > a,
[data-theme="dark"] .nav-main--drawer .nav-item--active > a {
    background: color-mix(in srgb, var(--brand-accent) 18%, transparent);
}
[data-theme="dark"] .hero--atelier {
    background: linear-gradient(135deg, #141210 0%, #1c1917 100%);
}
[data-theme="dark"] .site-footer--premium {
    background: #0c0a09;
}
[data-theme="dark"] .btn--primary {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}
[data-theme="dark"] .mobile-cta-bar {
    background: var(--brand-surface);
    border-top-color: var(--brand-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .modal__container {
    background: var(--brand-surface);
    color: var(--brand-ink);
}

/* Gallery filters */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.gallery-filter {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-surface);
    color: var(--brand-ink);
    cursor: pointer;
    font: inherit;
}
.gallery-filter.is-active { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }

/* Case study */
.case-study__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.case-study__images img { width: 100%; height: auto; border-radius: var(--radius-md, 8px); }

/* Quiz */
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.quiz-option { display: block; margin: 0.5rem 0; padding: 0.75rem; border: 1px solid var(--brand-border); border-radius: 8px; cursor: pointer; }
.quiz-option input { margin-right: 0.5rem; }

/* Seasonal banner */
.seasonal-banner {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand-accent) 12%, var(--brand-surface));
    border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, var(--brand-border));
    font-size: var(--text-sm, 0.9rem);
}

.checklist li { margin-bottom: 0.5rem; }
