/* ════════════════════════════════════════════
   БУНКЕР — Dark / Neon / Glassmorphism Theme
   ════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --bg-deep:       #060606;
    --bg-surface:    #0f0f0f;
    --bg-glass:      rgba(255,255,255,0.04);
    --bg-glass-hover:rgba(255,255,255,0.07);
    --border-glass:  rgba(255,255,255,0.08);
    --border-glass-hover: rgba(255,255,255,0.15);
    --accent:        #ff2a2a;
    --accent-glow:   #ff1a1a;
    --accent-soft:   rgba(255,42,42,0.15);
    --text-primary:  #f0f0f0;
    --text-secondary:#a0a0a0;
    --text-muted:    #666666;
    --font-heading:  'Oswald', sans-serif;
    --font-body:     'Inter', sans-serif;
    --container:     1200px;
    --radius:        16px;
    --transition:    0.3s ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

/* ── Per-section animation canvas ──
   Заменяет глобальный #bg-canvas. Канвас каждой секции живёт внутри
   <section> и ограничен её границами. pointer-events:none — не блокирует
   клики, z-index:0 — контент секции (с z-index:1+) поверх. */
.section__bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ── Section title ── */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    color: var(--text-primary);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 0;
    box-shadow: 0 0 12px var(--accent-glow);
    border-radius: 2px;
}

/* ── Section subtitle (gallery, news, visit) ── */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), #cc0000);
    color: #fff;
    border: 1px solid transparent;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(255,42,42,0.25);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(255,42,42,0.45);
}
.btn:hover::before { left: 100%; }
.btn--small {
    padding: clamp(8px, 6px + 0.3vw, 12px) clamp(14px, 8px + 0.85vw, 24px);
    font-size: clamp(0.72rem, 0.65rem + 0.17vw, 0.85rem);
    white-space: nowrap;
}
.btn--large { padding: 20px 48px; font-size: 1.15rem; }
.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 0 16px rgba(255,42,42,0.1);
}
.btn--outline:hover {
    background: linear-gradient(135deg, var(--accent), #cc0000);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 32px rgba(255,42,42,0.35);
}
.btn:disabled,
.btn[disabled] {
    background: var(--text-muted);
    color: rgba(255,255,255,0.6);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}
.btn:disabled::before,
.btn[disabled]::before { display: none; }

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6,6,6,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(255,42,42,0.3);
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: clamp(16px, 4px + 1.7vw, 36px); }
.nav__link {
    font-size: clamp(0.72rem, 0.6rem + 0.25vw, 0.9rem);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: clamp(0.02em, 0.01em + 0.02vw, 0.05em);
    white-space: nowrap;
    position: relative;
    transition: color var(--transition);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width var(--transition);
}
.nav__link:hover::after { width: 100%; }

/* Phone icon */
.header__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-primary);
    border-radius: 50%;
    transition: color var(--transition), background var(--transition);
}
.header__phone:hover {
    color: var(--accent);
}

/* Header actions group (mobile) */
.header__actions {
    display: none;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}
.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Mobile nav open */
.nav--open {
    display: flex !important;
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,6,6,0.95);
    backdrop-filter: blur(20px);
    padding: 28px;
    gap: 20px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 76px;
    z-index: 1;
}
.hero__diagonal {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent);
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 50% 100%);
    opacity: 0.04;
    z-index: 1;
}
.hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    text-shadow: 0 0 16px rgba(255,42,42,0.4);
}
.hero__title {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 24px;
    max-width: 580px;
    color: var(--text-primary);
}
.hero__title span {
    color: var(--accent);
    text-shadow: 0 0 24px rgba(255,42,42,0.35);
}
.hero__desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}
.hero__image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,42,42,0.08);
    border: 1px solid var(--border-glass);
}
.hero__image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
}
.hero__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(6,6,6,0.6) 100%);
    pointer-events: none;
}

/* —— Hero mode modifiers —— */
/* square: enlarge image */
.hero--square .hero__image img {
    transform: scale(1.12);
    transition: transform 0.4s ease;
}

/* oblique: image fills the diagonal area */
.hero--oblique .hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}
.hero--oblique .hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 50% 100%);
    filter: brightness(0.85) contrast(1.1);
}
.hero--oblique .hero__image::after {
    display: none;
}
.hero--oblique .hero__content {
    position: relative;
    z-index: 3;
}

/* background: hide separate image block, center text */
.hero--background .hero__image {
    display: none;
}
.hero--background .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}
.hero--background .hero__content {
    margin: 0 auto;
}
.hero--background .hero__title,
.hero--background .hero__desc {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ════════════════════════════════════════════
   ПОЧЕМУ МЫ
   ════════════════════════════════════════════ */
.why { padding: 120px 0; background: var(--bg-surface); position: relative; z-index: 1; }
.why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why__card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 48px 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}
.why__card:hover {
    transform: translateY(-8px);
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,42,42,0.08);
}
.why__num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,42,42,0.3);
}
.why__card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.why__card-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

/* ════════════════════════════════════════════
   ГАЛЕРЕЯ / ВИДЕО
   ════════════════════════════════════════════ */
.gallery { padding: 120px 0; background: var(--bg-deep); position: relative; z-index: 1; }
.gallery__subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}
.gallery__item--video {
    position: relative;
}
.gallery__item--video .gallery__play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform var(--transition);
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.6));
}
.gallery__item--video:hover .gallery__play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}
.gallery__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* скрыть нативный скроллбар — прокрутка управляется стрелками (JS) */
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    scroll-snap-type: x mandatory;
}
.gallery__grid::-webkit-scrollbar { display: none; }
.gallery__page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}
.gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-glass);
    transition: all var(--transition);
}
.gallery__item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,42,42,0.1);
}
.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
    mix-blend-mode: overlay;
}
.gallery__item:hover::after { opacity: 0.25; }
.gallery__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition);
    filter: brightness(0.85);
}
.gallery__item:hover img { transform: scale(1.08); }

/* ════════════════════════════════════════════
   ЦЕНЫ — табы
   ════════════════════════════════════════════ */
.prices { padding: 120px 0; background: var(--bg-surface); position: relative; z-index: 1; }
.prices__tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.prices__tab {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    transition: all var(--transition);
}
.prices__tab:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
}
.prices__tab--active {
    background: linear-gradient(135deg, var(--accent), #cc0000);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 24px rgba(255,42,42,0.3);
}
.prices__tab--active:hover {
    background: linear-gradient(135deg, var(--accent), #cc0000);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 24px rgba(255,42,42,0.3);
}
.prices__panels { position: relative; }
.prices__panel { display: none; }
.prices__panel--active { display: block; }
.prices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}
.prices__grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.certificates__note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 24px;
    font-size: 0.9rem;
}
.news__social {
    text-align: center;
    margin-top: 40px;
    font-size: 1.05rem;
}
.news__social a {
    color: var(--accent);
    text-decoration: underline;
}
.price-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    padding: 48px 24px 28px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.price-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,42,42,0.08);
}
.price-card--featured {
    background: linear-gradient(180deg, var(--bg-glass), rgba(255,42,42,0.06));
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(255,42,42,0.1);
}
.price-card__badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #cc0000);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(255,42,42,0.35);
    margin-bottom: 0;
}
.price-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    min-height: calc(1.1rem * 1.3 * 2);
    margin-bottom: 16px;
    color: var(--text-primary);
}
.price-card__price {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255,42,42,0.25);
}
.price-card__price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.price-card__desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.prices__extra {
    text-align: center;
    margin-top: 32px;
    font-size: 1rem;
    color: var(--text-secondary);
}
.prices__cta { text-align: center; margin-top: 48px; }

/* ════════════════════════════════════════════
   ПРОЦЕСС / АРСЕНАЛ
   ════════════════════════════════════════════ */
.process { padding: 120px 0; background: var(--bg-deep); position: relative; z-index: 1; }
.process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.process__item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-glass);
    transition: all var(--transition);
}
.process__item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,42,42,0.1);
}
.process__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
    mix-blend-mode: overlay;
}
.process__item:hover::after { opacity: 0.25; }
.process__item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform var(--transition);
    filter: brightness(0.85);
}
.process__item:hover img { transform: scale(1.08); }

/* ════════════════════════════════════════════
   СЕРТИФИКАТЫ
   ════════════════════════════════════════════ */
.certificates { padding: 120px 0; background: var(--bg-surface); position: relative; z-index: 1; }
.certificates__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 850px;
    margin: 0 auto;
}
.certificate-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    padding-bottom: 36px;
    transition: all var(--transition);
}
.certificate-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 30px rgba(255,42,42,0.1);
}
.certificate-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
}
.certificate-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.85);
}
.certificate-card__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 28px 0 12px;
    color: var(--text-primary);
}
.certificate-card__price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    text-shadow: 0 0 16px rgba(255,42,42,0.2);
}
.certificate-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 28px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ════════════════════════════════════════════
   ОТЗЫВЫ
   ════════════════════════════════════════════ */
.reviews { padding: 120px 0; background: var(--bg-deep); position: relative; z-index: 1; }
.reviews__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* скрыть нативный скроллбар — прокрутка управляется стрелками (JS) */
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    scroll-snap-type: x mandatory;
    /* «воздух» для hover-подъёма карточек (translateY -6px) и тени (0 12px 40px):
       padding создаёт пространство внутри overflow-y: hidden,
       отрицательный margin компенсирует его, не сдвигая секцию */
    padding: 14px 0 18px;
    margin: -14px 0 -18px;
}
.reviews__list::-webkit-scrollbar { display: none; }
.review-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 36px;
    transition: all var(--transition);
}
.review-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.review-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.review-card__name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--text-primary); }
.review-card__stars { color: #ffb020; font-size: 1rem; margin-top: 4px; text-shadow: 0 0 8px rgba(255,176,32,0.3); }
.review-card__text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════ */
.faq { padding: 120px 0; background: var(--bg-surface); position: relative; z-index: 1; }
.faq__list { max-width: 850px; margin: 0 auto; }

/* Многоколоночный режим (≥6 вопросов) */
.faq__list--multi {
    max-width: 1200px;
    margin: 0 auto;
    column-count: 2;
    column-gap: 16px;
}
/* 11+ вопросов → 3 колонки (hard-cap 3) */
.faq__list--multi-3 {
    column-count: 3;
}
/* Защита карточек от разрыва между колонками */
.faq__list--multi .faq__item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.faq__item {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition);
}
.faq__item:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    transition: color var(--transition);
}
.faq__question:hover { color: var(--accent); }
.faq__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    text-shadow: 0 0 8px rgba(255,42,42,0.4);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq__item--open .faq__icon { transform: rotate(45deg); }
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
}
.faq__item--open .faq__answer {
    max-height: 300px;
    padding: 0 32px 28px;
}
.faq__answer p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ════════════════════════════════════════════
   НОВОСТИ
   ════════════════════════════════════════════ */
.news { padding: 120px 0; background: var(--bg-deep); position: relative; z-index: 1; }
.news__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* скрыть нативный скроллбар — прокрутка управляется стрелками (JS) */
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    scroll-snap-type: x mandatory;
    /* «воздух» для hover-подъёма карточек (translateY -6px) и тени (0 12px 40px):
       padding создаёт пространство внутри overflow-y: hidden,
       отрицательный margin компенсирует его, не сдвигая секцию */
    padding: 14px 0 18px;
    margin: -14px 0 -18px;
}
.news__grid::-webkit-scrollbar { display: none; }
.news__page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 28px;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}
/* Отзывы: 3 колонки × 1 строка = 3 на страницу */
.reviews__page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, minmax(180px, auto));
    gap: 28px;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}
/* «Для посещения»: 4 колонки × 1 строка = 4 на страницу */
.visit__page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, minmax(280px, auto));
    gap: 28px;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.news-card--clickable { cursor: pointer; }
.news-card__image { width: 100%; height: 180px; flex-shrink: 0; background: var(--bg-surface); }
.news-card__image img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.85); }
.news-card__video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
    border: 0;
    display: block;
}
.news-card__image:has(.news-card__video) { background: #000; }
.news-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}
.news-card__date {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 500;
}
.news-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    /* ограничение заголовка до 2 строк */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__text {
    /* ограничение текста до 3 строк — карточки смотрятся одинаково */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Карточки «Для посещения» (visit-card — алиасы news-card) ──
   Классы visit-card (НЕ news-card), чтобы JS-селектор .news-card не
   захватил эти карточки. Визуально идентичны news-карточкам. */
.visit-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.visit-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.visit-card--clickable { cursor: pointer; }
.visit-card__image { width: 100%; height: 180px; flex-shrink: 0; background: var(--bg-surface); }
.visit-card__image img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.85); }
/* Заглушка «ВАЖНО» вместо фото в карточке (image_url пуст) */
.visit-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: var(--bg-surface);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(255,42,42,0.4);
}
.visit-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}
.visit-card__date {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 500;
}
.visit-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.visit-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ════════════════════════════════════════════
   СТРЕЛКИ ПРОКРУТКИ (десктоп ≥769px, для блоков с лимитом 4×2)
   ════════════════════════════════════════════ */
.scroll-block { position: relative; }
@media (min-width: 769px) {
    .scroll-block { padding: 0 56px; }
}
.scroll-block__arrow {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.scroll-block__arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 24px rgba(255,42,42,0.2);
}
.scroll-block__arrow--prev:active,
.scroll-block__arrow--next:active { transform: translateY(-50%) scale(0.94); }
.scroll-block__arrow--prev { left: 0; top: 50%; transform: translateY(-50%); }
.scroll-block__arrow--next { right: 0; top: 50%; transform: translateY(-50%); }
.scroll-block__arrow[hidden] { display: none; }
@media (max-width: 960px) {
    .scroll-block { padding: 0; }
    .scroll-block__arrow { display: none !important; }
}

/* ════════════════════════════════════════════
   ДОКУМЕНТЫ
   ════════════════════════════════════════════ */
.documents { padding: 120px 0; background: var(--bg-surface); position: relative; z-index: 1; }
.documents__list { max-width: 720px; margin: 0 auto; }
.document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    margin-bottom: 14px;
    transition: all var(--transition);
}
.document-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.document-item__icon { font-size: 1.5rem; flex-shrink: 0; }
.document-item__name { flex: 1; font-weight: 500; color: var(--text-primary); }
.document-item__action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════
   КОНТАКТЫ + ФОРМА
   ════════════════════════════════════════════ */
.contacts { padding: 120px 0; background: var(--bg-deep); position: relative; z-index: 1; }
.contacts__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.1fr) minmax(260px, 1fr);
    gap: 36px;
    align-items: stretch;
    margin-bottom: 0;
}
.contacts__block { margin-bottom: 32px; }
.contacts__subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(255,42,42,0.2);
}
.contacts__text { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }
.contacts__text a { color: var(--text-primary); text-decoration: underline; transition: all var(--transition); }
.contacts__text a:hover { color: var(--accent); text-shadow: 0 0 12px rgba(255,42,42,0.3); }

/* Миниатюра «Как нас найти» — кликабельна, открывает lightbox */
.contacts__thumb {
    margin-top: 12px;
    max-width: 200px;
    max-height: 140px;
    width: 100%;
    border-radius: var(--radius);
    cursor: zoom-in;
    object-fit: cover;
    border: 1px solid var(--border-glass);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contacts__thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(255,42,42,0.25);
}

/* Form */
.form {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.form__group { margin-bottom: 14px; }
.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    transition: all var(--transition);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-muted); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,42,42,0.15), 0 0 20px rgba(255,42,42,0.1);
}
.form__textarea { resize: vertical; min-height: 88px; }

/* ── Select: кастомная стрелка ── */
.form__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0a0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}
.form__select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff2a2a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}
.form__select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* ── Checkbox ── */
.form__group--checkbox { margin-top: 4px; margin-bottom: 16px; }
.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    user-select: none;
}
.checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
.checkbox__box {
    flex: 0 0 20px;
    width: 20px; height: 20px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    background: rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-top: 1px;
}
.checkbox__box::before {
    content: '';
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 2px;
    transform: scale(0);
    transition: transform var(--transition);
    box-shadow: 0 0 8px rgba(255,42,42,0.4);
}
.checkbox__input:checked + .checkbox__box {
    border-color: var(--accent);
    background: rgba(255,42,42,0.08);
}
.checkbox__input:checked + .checkbox__box::before { transform: scale(1); }
.checkbox__input:focus-visible + .checkbox__box {
    box-shadow: 0 0 0 3px rgba(255,42,42,0.15);
    border-color: var(--accent);
}
.checkbox__text a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-glass);
    transition: all var(--transition);
}
.checkbox__text a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
    text-shadow: 0 0 12px rgba(255,42,42,0.3);
}
.checkbox__input:disabled ~ .checkbox__box { opacity: 0.5; cursor: not-allowed; }

/* Map */
.contacts__map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}
.map-placeholder {
    width: 100%;
    flex: 1;
    min-height: 420px;
    background: var(--bg-surface);
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; filter: brightness(0.7) contrast(1.1) saturate(0.8); }

/* ════════════════════════════════════════════
   ФУТЕР
   ════════════════════════════════════════════ */
.footer {
    padding: 48px 0;
    background: var(--bg-surface);
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}
.footer__inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer__copy { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 500; color: var(--text-primary); letter-spacing: 0.05em; }
.footer__legal { font-size: 0.9rem; color: var(--text-muted); }
.footer__disclaimer { font-size: 0.8rem; color: var(--text-muted); opacity: 0.8; }

/* ════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox--open {
    display: flex;
    opacity: 1;
}
.lightbox__image {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 80px rgba(255,42,42,0.15);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.lightbox--open .lightbox__image { transform: scale(1); }
.lightbox__close {
    position: absolute;
    top: 24px; right: 36px;
    font-size: 3rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255,42,42,0.7);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: color var(--transition), transform var(--transition);
}
.lightbox__close:hover { color: var(--accent); transform: scale(1.1); }
.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 0 16px;
    text-shadow: 0 0 20px rgba(255,42,42,0.5);
    transition: color var(--transition);
}
.lightbox__arrow:hover { color: var(--accent); }
.lightbox__arrow--left { left: 12px; }
.lightbox__arrow--right { right: 12px; }
.lightbox__video,
.lightbox__iframe {
    max-width: 92vw;
    max-height: 88vh;
    width: 90vw;
    height: 80vh;
    border: none;
    border-radius: var(--radius);
    object-fit: contain;
}

/* ════════════════════════════════════════════
   SCROLL ANIMATIONS
   ════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════
   АДАПТИВ — MOBILE
   ════════════════════════════════════════════ */

/* ≤ 1024px */

@media (max-width: 1024px) {
    .hero__title { font-size: 3.4rem; }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .process__grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2.4rem; }
}

/* ≤ 768px */
@media (max-width: 960px) {
    /* ── FAQ: сброс многоколоночности ── */
    .faq__list--multi,
    .faq__list--multi-3 { column-count: 1; }

    /* ── Snap-scroll по секциям (Шаг 5) ── */
    html {
        scroll-snap-type: y proximity;
        scroll-padding-top: 76px;
    }
    .hero, .why, .gallery, .prices, .process,
    .certificates, .reviews, .faq, .news,
    .documents, .contacts {
        scroll-snap-align: start;
    }
    /* Футер выравнивается по низу вьюпорта — свободный скролл
       начинается после .contacts. */
    .footer {
        scroll-snap-align: end;
        scroll-snap-stop: always;
    }

    /* ── Уменьшенные вертикальные отступы секций (Шаг 3) ── */
    .why, .gallery, .prices, .process,
    .certificates, .reviews, .faq, .news,
    .documents, .contacts {
        padding: 48px 0;
    }

    .section-title { font-size: 2rem; margin-bottom: 24px; }
    .nav { display: none; }
    .burger { display: flex; }
    .nav.nav--open { display: flex; }

    /* ── Hero на всю высоту экрана (Шаг 2) ── */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 96px 0 48px;
    }
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__title { font-size: 2.6rem; max-width: none; }
    .hero__desc { max-width: none; }
    .hero__image { order: -1; }
    .hero__image img { height: 320px; }
    .hero__diagonal { clip-path: polygon(0 40%, 100% 20%, 100% 100%, 0 100%); opacity: 0.05; }

    /* Hero mode modifiers mobile */
    .hero--square .hero__image img { transform: none; height: 340px; }
    .hero--oblique .hero__image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; border-radius: 0; overflow: hidden; box-shadow: none; }
    .hero--oblique .hero__image img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 27%, 100% 17%, 100% 73%, 0 83%); }
    .hero--oblique .hero__image::after { display: none; }
    .hero--background .hero__inner { grid-template-columns: 1fr; text-align: center; }

    /* Horizontal scroll carousel for mobile */
    .why__grid,
    .gallery__grid,
    .process__grid,
    .prices__grid,
    .prices__grid--3,
    .certificates__grid,
    .reviews__list,
    .news__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        align-items: stretch;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 14px 0 18px;
        margin: -14px 0 -18px;
        }
    /* «воздух» для hover-подъёма карточек сохраняется и на мобайле
       (translateY -6px + тень 0 12px 40px), padding-bottom: 8px не достаточен */
    .news__grid,
    .reviews__list {
        padding: 14px 0 18px;
        margin: -14px 0 -18px;
    }
    .why__grid::-webkit-scrollbar,
    .gallery__grid::-webkit-scrollbar,
    .process__grid::-webkit-scrollbar,
    .prices__grid::-webkit-scrollbar,
    .certificates__grid::-webkit-scrollbar,
    .reviews__list::-webkit-scrollbar,
    .news__grid::-webkit-scrollbar { display: none; }

    .why__grid > *,
    .gallery__grid > *,
    .process__grid > *,
    .prices__grid > *,
    .certificates__grid > *,
    .reviews__list > *,
    .news__grid > * {
        flex: 0 0 85%;
        min-width: 260px;
        scroll-snap-align: start;
    }


    .news-card { flex-direction: column; }
    .news-card__image { width: 100%; height: 200px; }
    .visit-card { flex-direction: column; }
    .visit-card__image { width: 100%; height: 200px; }
    .news-modal__image-placeholder { font-size: 2rem; min-height: 180px; }
    .contacts__inner { grid-template-columns: 1fr; }
    .contacts__form-wrapper { order: 1; }
    .contacts__info { order: 2; }
    .contacts__map { order: 3; }
    .map-placeholder { height: 320px; min-height: 320px; }

    .header .btn--small { display: none; }
    .header__actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    /* ── Растянуть карточки галереи/процесса/сертификатов (Шаг 4) ── */
    /* Галерея: если страница разбита на .gallery__page (десктоп→ресайз),
       каждая страница — 100% ширины, ряды 1fr 1fr */
    .gallery__grid > .gallery__page {
        flex: 0 0 100%;
        min-width: 0;
    }
    .gallery__page {
        grid-template-rows: 1fr 1fr;
    }
    .gallery__page .gallery__item img {
        height: 100%;
        min-height: 0;
    }
    /* Галерея без пагинации (мобилка): img адаптивная высота */
    .gallery__item img {
        height: clamp(200px, 40svh, 320px);
    }
    /* Видео-карточка: центрировать постер по вертикали */
    .gallery__item--video {
        display: flex;
        align-items: center;
    }

    /* Процесс: img — clamp вместо фиксированной высоты */
    .process__item img {
        height: clamp(180px, 35svh, 260px);
    }

    /* Сертификаты: img — clamp */
    .certificate-card__image {
        aspect-ratio: 16 / 9;
    }
    .certificate-card__image img {
        height: 100%;
    }
    /* Цены: карточка не выталкивает секцию */
    .prices__grid > * {
        min-height: 0;
    }
}
    /* Цены: карточка не выталкивает секцию */
    .prices__grid > * {
        min-height: 0;
    }
}

/* ── Отключить hover-трансформации на тач-устройствах (Шаг 1) ── */
@media (max-width: 960px), (hover: none) {
    .price-card:hover,
    .why__card:hover,
    .btn:hover,
    .gallery__item:hover img,
    .process__item:hover img,
    .certificate-card:hover,
    .review-card:hover,
    .news-card:hover,
    .document-item:hover {
        transform: none;
    }
}

/* ≤ 480px */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-title { font-size: 1.7rem; }
    .hero { padding: 76px 0 24px; }
    .hero__title { font-size: 2rem; }
    .btn { padding: 14px 28px; font-size: 0.9rem; }
    .btn--large { padding: 18px 32px; font-size: 1rem; }
    .form { padding: 20px; }
    .prices__tabs { gap: 8px; }
    .prices__tab { padding: 12px 20px; font-size: 0.85rem; }

    .price-card { padding: 48px 20px 24px; }
    .price-card__title { font-size: 1rem; min-height: calc(1rem * 1.3 * 3); }
    .price-card__price { font-size: 1.9rem; }
    .lightbox__close { top: 12px; right: 16px; font-size: 2.2rem; }
    .lightbox__arrow { font-size: 2.4rem; padding: 0 8px; }
    .news-modal__close { top: 12px; right: 16px; font-size: 2.2rem; }
}

/* ════════════════════════════════════════════
   NEWS MODAL
   ════════════════════════════════════════════ */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.news-modal--open { display: flex; }
.news-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}
.news-modal__content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1;
    animation: modalIn 0.25s ease;
}
.news-modal__scroll {
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.news-modal__scroll::-webkit-scrollbar { width: 4px; }
.news-modal__scroll::-webkit-scrollbar-track { background: transparent; }
.news-modal__scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}
.news-modal__scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,42,42,0.4);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.news-modal__close {
    position: absolute;
    top: 24px;
    right: 36px;
    font-size: 3rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255,42,42,0.7);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3001;
    transition: color var(--transition), transform var(--transition);
}
.news-modal__close:hover { color: var(--accent); transform: scale(1.1); }
.news-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3001;
    padding: 0 16px;
    text-shadow: 0 0 20px rgba(255,42,42,0.5);
    transition: color var(--transition);
}
.news-modal__arrow:hover { color: var(--accent); }
.news-modal__arrow--left { left: 12px; }
.news-modal__arrow--right { right: 12px; }

/* ── Скрыть стрелки на тач-устройствах и в мобилке (Шаг 1) ── */
@media (max-width: 960px), (hover: none) {
    .lightbox__arrow,
    .news-modal__arrow { display: none; }
}

.news-modal__image {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: calc(var(--radius) / 2);
    margin-bottom: 24px;
    display: block;
}
/* Видео в шапке модалки (режим extra_data.type='video'). Замещает
   #newsModalImg, когда карточка новости — видео. */
.news-modal__video {
    width: 100%;
    max-height: 480px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
    border-radius: calc(var(--radius) / 2);
    margin-bottom: 24px;
    display: block;
}
.news-modal__video--iframe {
    border: 0;
    max-height: 480px;
}
/* Заглушка «ВАЖНО» в модалке (image_url пуст). Показывается вместо
   #newsModalImg (JS toggle между ними). */
.news-modal__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 360px;
    min-height: 240px;
    background: var(--bg-surface);
    border-radius: calc(var(--radius) / 2);
    margin-bottom: 24px;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(255,42,42,0.5);
}
.news-modal__text-wrap { }
.news-modal__category {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}
.news-modal__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.news-modal__shorttext {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}
/* ── Стили HTML-разметки внутри краткого текста новости (TinyMCE → DOMPurify) ── */
.news-modal__shorttext p { margin: 0 0 0.6em 0; }
.news-modal__shorttext p:last-child { margin-bottom: 0; }
.news-modal__shorttext a {
    color: var(--accent);
    text-decoration: underline;
}
.news-modal__shorttext strong { font-weight: 700; }
.news-modal__shorttext em { font-style: italic; }
.news-modal__body {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}
/* ── Стили HTML-разметки внутри тела новости (TinyMCE → DOMPurify) ── */
.news-modal__body p { margin: 0 0 0.8em 0; }
.news-modal__body p:last-child { margin-bottom: 0; }
.news-modal__body h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.2em 0 0.5em;
    line-height: 1.3;
}
.news-modal__body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1em 0 0.4em;
    line-height: 1.3;
}
.news-modal__body ul,
.news-modal__body ol {
    padding-left: 1.5em;
    margin: 0.5em 0 0.8em;
}
.news-modal__body ul li,
.news-modal__body ol li { margin: 0.2em 0; }
.news-modal__body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1em;
    margin: 0.8em 0;
    color: var(--text-secondary);
    font-style: italic;
}
.news-modal__body a {
    color: var(--accent);
    text-decoration: underline;
    transition: color var(--transition);
}
.news-modal__body a:hover { color: var(--text-primary); }
.news-modal__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.8em 0;
    display: block;
}
.news-modal__body hr {
    border: none;
    border-top: 1px solid var(--border-glass);
    margin: 1em 0;
}
.news-modal__body figure { margin: 0.8em 0; }
.news-modal__body figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.4em;
}
@media (max-width: 960px) {
    .news-modal__content { padding: 0; width: 100%; max-width: 100%; max-height: 100vh; max-height: 100svh; border: none; border-radius: 0; }
    .news-modal__scroll { padding: 16px 20px; max-height: 100vh; max-height: 100svh; }
    .news-modal__title { font-size: 1.4rem; }
    .news-modal__image { max-height: 220px; object-fit: contain; }
    .news-modal__body h2 { font-size: 1.2rem; }
    .news-modal__body h3 { font-size: 1.05rem; }
}

/* ── Lead Popup ── */
.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
}
.lead-popup--open { display: flex; }
body.lead-popup-open { overflow: hidden; }
.lead-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}
.lead-popup__dialog {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    max-width: 440px;
    width: 90%;
    padding: 32px 28px 24px;
    z-index: 1;
    animation: modalIn 0.25s ease;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.lead-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: color var(--transition), transform var(--transition);
}
.lead-popup__close:hover { color: var(--accent); transform: scale(1.1); }
.lead-popup__image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}
.lead-popup__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lead-popup__title:empty { display: none; }
.lead-popup--success .lead-popup__title { color: #3aaa3a; }
.lead-popup--error .lead-popup__title { color: var(--accent); }
.lead-popup__text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 20px;
}
.lead-popup__ok {
    width: 100%;
    padding: 14px 36px;
    font-size: 1rem;
}
@media (max-width: 480px) {
    .lead-popup__dialog { width: 92vw; max-width: none; padding: 24px 18px 18px; }
    .lead-popup__title { font-size: 1.2rem; }
    .lead-popup__image { max-height: 160px; }
}

/* ═══════════════════════════════════════════════════════════
   Чат — плавающий виджет
   ═══════════════════════════════════════════════════════════ */

.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(255, 42, 42, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(255, 42, 42, 0.55);
}
.chat-fab:active { transform: scale(0.95); }

/* Плавающая кнопка МАКС — выше иконки чата */
.max-fab {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(45, 194, 117, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    overflow: hidden;
}
.max-fab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}
.max-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(45, 194, 117, 0.55);
}
.max-fab:active { transform: scale(0.95); }
.chat-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #fff;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: none;
}
.chat-fab__badge--show { display: flex; }

.chat-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}
.chat-window--open { display: flex; }

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0;
}
.chat-header__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}
.chat-header__close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color var(--transition);
}
.chat-header__close:hover { color: var(--text-primary); }

.chat-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
}
.chat-message__text { color: inherit; white-space: pre-wrap; }
.chat-message__sender {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 3px;
}
.chat-message__time {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 4px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.chat-message__checkmarks {
    color: var(--accent);
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
}

.chat-message--visitor {
    align-self: flex-end;
    background: rgba(255,42,42,0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255,42,42,0.2);
    border-bottom-right-radius: 4px;
}
.chat-message--visitor .chat-message__time { text-align: right; }

.chat-message--admin {
    align-self: flex-start;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
}
.chat-message--admin .chat-message__time { text-align: left; }

.chat-message--error {
    align-self: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: none;
    padding: 4px 8px;
    max-width: 90%;
    text-align: center;
}

/* форма ввода имени */
.chat-name-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    gap: 16px;
    text-align: center;
}
.chat-name-form__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-name-form__text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}
.chat-name-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}
.chat-name-input:focus { border-color: var(--accent); }
.chat-name-input::placeholder { color: var(--text-muted); }
.chat-name-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}
.chat-name-btn:hover { opacity: 0.9; }
.chat-name-btn:disabled { opacity: 0.5; cursor: wait; }

/* область ввода сообщения */
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-glass);
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-deep);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    outline: none;
    resize: none;
    overflow-y: auto;
    min-height: 48px;
    max-height: 100px;
    transition: border-color var(--transition);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.chat-input::-webkit-scrollbar { width: 6px; }
.chat-input::-webkit-scrollbar-track { background: transparent; }
.chat-input::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.chat-input::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-muted); font-size: 0.75rem; }
.chat-send {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}
.chat-send:hover { opacity: 0.9; }
.chat-send:disabled { opacity: 0.5; cursor: wait; }

/* Мобильная адаптивность: на узких экранах чат на весь экран */
@media (max-width: 480px) {
    .chat-fab { bottom: 16px; right: 16px; width: 28px; height: 28px; }
    .chat-fab svg { width: 13px; height: 13px; }
    .max-fab { bottom: 52px; right: 16px; width: 28px; height: 28px; }
    .max-fab img { width: 28px; height: 28px; }
    .chat-window {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        z-index: 1001;
    }
    .chat-header {
        padding: 12px 14px;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }
    .chat-header__title {
        font-size: 0.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    .chat-header__close {
        font-size: 26px;
        padding: 4px 8px;
        flex-shrink: 0;
        line-height: 1;
    }
    .chat-input-area { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════════════════════
   Позиционирование FAB чата и МАКС по стороне экрана
   (settings.general.chat_side)
   ═══════════════════════════════════════════════════════════ */
body[data-chat-side="left"] .chat-fab {
    right: auto;
    left: 24px;
}
body[data-chat-side="left"] .max-fab {
    right: auto;
    left: 24px;
}
body[data-chat-side="left"] .chat-window {
    right: auto;
    left: 24px;
}
@media (max-width: 480px) {
    body[data-chat-side="left"] .chat-fab { left: 16px; }
    body[data-chat-side="left"] .max-fab { left: 16px; }
    /* На узких экранах окно чата на весь экран — сторона не важна */
    body[data-chat-side="left"] .chat-window { left: 0; right: 0; }
}

/* ═══════════════════════════════════════════════════════════
   Куки-плашка (уведомление о cookies)
   ═══════════════════════════════════════════════════════════ */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #1a1a1a;
    border: 1px solid var(--accent);
    color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px 0 16px;
    box-sizing: border-box;
    overflow: hidden;
}
.cookie-notice__text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}
.cookie-notice__text * { display: inline; }
.cookie-notice__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color var(--transition);
}
.cookie-notice__close:hover { color: var(--accent-glow); }

/* Мобильная адаптивность: куки-плашка с переносом текста */
@media (max-width: 480px) {
    .cookie-notice {
        height: auto;
        min-height: 50px;
        padding: 10px 40px 10px 16px;
        align-items: flex-start;
    }
    .cookie-notice__text {
        white-space: normal;
        text-overflow: clip;
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .cookie-notice__close {
        top: 8px;
        transform: none;
    }
}