/* ===========================
   UI KIT — Глобальные настройки
   =========================== */

:root {
    /* Шрифты */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Цвета */
    --color-bg: #F8F9FA;
    --color-text-primary: #1C1E21;
    --color-text-secondary: #5F6368;
    --color-accent: #10B981;

    /* Скругления */
    --radius-base: 8px;
    --radius-photo: 12px;

    /* Размеры */
    --header-height: 80px;
}

/* ===========================
   Базовые стили
   =========================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
}

/* ===========================
   Skip Link (Accessibility)
   =========================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius-base);
}

.skip-link:focus {
    top: 16px;
}

/* ===========================
   Focus Styles (Accessibility)
   =========================== */

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

/* ===========================
   Header: Glassmorphism Navigation
   =========================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .site-header__inner {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        padding: 0 32px;
    }
}

.site-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    /* BUG-12: не убиваем outline глобально — оставляем для :focus-visible */
}

.site-header__logo:focus {
    outline: none; /* убираем дефолтный (виден только при :focus-visible) */
}

.site-header__logo:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.site-header__logo-img {
    height: 64px; /* Максимальный размер под высоту шапки 80px */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.site-header__logo:hover .site-header__logo-img {
    transform: translateY(-2px);
}

.site-header__nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 769px) {
    .site-header__nav {
        display: flex;
    }
}

.site-header__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header__link:hover,
.site-header__link[aria-current="page"] {
    color: var(--color-accent);
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header__cta:hover {
    background-color: #059669;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Actions wrapper (CTA + Burger) */

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Burger button — hidden on desktop */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.burger__line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger active state (X) */

.burger--active .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown — hidden by default */

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0 24px 24px;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #E5E7EB;
}

.mobile-nav--open {
    display: flex;
}

.mobile-nav__link {
    display: block;
    padding: 16px 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    transition: color 0.2s ease;
}

.mobile-nav__link:last-of-type {
    border-bottom: none;
}

.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] {
    color: var(--color-accent);
}

.mobile-nav__cta {
    display: block;
    margin-top: 8px;
    padding: 14px 24px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.mobile-nav__cta:hover {
    background-color: #059669;
}

/* Show burger, hide desktop nav on tablet & mobile */

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .site-header__cta {
        display: none;
    }
}

/* ===========================
   Scroll Animations (Fade-in)
   =========================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--visible {
    opacity: 1;
    transform: translateY(0);
}



/* Disable animations for users who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .story-reveal,
    .contrast--anim-in,
    .text-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ===========================
   Блок 1: Hero Section
   =========================== */

.hero {
    padding: 40px 0;
    padding-top: 100px;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero__content {
    flex: 1 1 55%;
    max-width: 55%;
}

.hero__visual {
    flex: 1 1 45%;
    max-width: 45%;
}

/* Типографика */

.hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 48px;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin: 0 0 16px;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0 0 24px;
}

/* Буллеты */

.hero__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-primary);
}

.hero__bullet-icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* Кнопка + обёртка для магнитного эффекта */

.hero__btn-wrap {
    display: inline-block;
}

.hero__btn {
    display: inline-block;
    margin-top: 28px;
    padding: 16px 32px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hero__btn:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Sheen effect — белый блик, пробегает слева направо каждые 4-5 секунд.
   Единый блок для: .hero__btn, [class*="--shine"] (styles, pricing, faq, footer) */
@keyframes hero-btn-sheen {
    0%   { left: -100%; }
    50%  { left: 150%; }
    100% { left: -100%; }
}

.hero__btn::after,
.styles__btn--shine::after,
.pricing__btn--shine::after,
.faq__cta-btn--shine::after,
.footer__card--shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    animation: hero-btn-sheen 5s ease-in-out infinite;
}

/* Изображение — склейка До/После */

.hero__compare {
    position: relative;
    display: flex;
    border-radius: var(--radius-photo);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.hero__compare-side {
    position: relative;
    width: calc(50% - 1px);
}

.hero__compare-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero__compare-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    background: rgba(28, 30, 33, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    color: #FFFFFF;
}

.hero__compare-badge--before {
    left: 16px;
}

.hero__compare-badge--after {
    right: 16px;
}

.hero__compare-divider {
    width: 2px;
    flex-shrink: 0;
    background-color: #FFFFFF;
}

/* ===========================
   Блок 2: Зеркало боли / Контраст
   =========================== */

.contrast {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.contrast__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.contrast__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    color: var(--color-text-primary);
    text-align: center;
    margin: 0 0 48px;
}

.contrast__grid {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

.contrast__card {
    flex: 1 1 0;
    background-color: #FFFFFF;
    border-radius: var(--radius-base);
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.contrast__card--positive {
    border: 2px solid var(--color-accent);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.12);
}

.contrast__card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-text-primary);
    margin: 0 0 24px;
}

.contrast__card-title--positive {
    font-weight: 800;
}

.contrast__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contrast__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

.contrast__card--negative .contrast__item {
    color: var(--color-text-secondary);
}

.contrast__card--positive .contrast__item {
    color: var(--color-text-primary);
}

.contrast__marker {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-weight: 700;
    line-height: 1.5;
}

.contrast__marker--negative {
    color: var(--color-text-secondary);
}

.contrast__marker--positive {
    color: var(--color-accent);
}

/* === Блок 2: Фазированная анимация === */

/* Фаза 1: Карточки скрыты до анимации */
.contrast__card--negative,
.contrast__card--positive {
    opacity: 0;
    transform: translateY(48px);
}

/* Левая — медленная, тяжёлая */
.contrast__card--negative {
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Правая — быстрая, упругая (spring) */
.contrast__card--positive {
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease, border-color 0.4s ease;
}

.contrast__card--negative.contrast--anim-in,
.contrast__card--positive.contrast--anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hover только для правой карточки (после анимации) */
.contrast__card--positive.contrast--ready:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.35),
                0 12px 24px rgba(16, 185, 129, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Фаза 2: Маркеры скрыты до анимации */
.contrast__marker--negative,
.contrast__marker--positive {
    display: inline-block;
    opacity: 0;
}

/* Красные крестики — жёсткое падение сверху, без отскока */
@keyframes contrast-marker-drop {
    0%   { opacity: 0; transform: translateY(-14px); }
    75%  { opacity: 1; transform: translateY(2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Зелёные галочки — мягкое упругое появление */
@keyframes contrast-marker-pop {
    0%   { opacity: 0; transform: scale(0); }
    65%  { opacity: 1; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.contrast__marker--negative.contrast--anim-in {
    animation: contrast-marker-drop 0.22s ease-out forwards;
}

.contrast__marker--positive.contrast--anim-in {
    animation: contrast-marker-pop 0.32s ease-out forwards;
}

/* Фаза 3: Доминация — левая сдаётся */
.contrast--dominance .contrast__card--negative {
    opacity: 0.6;
    transform: scale(0.96);
    filter: blur(0.5px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

/* Фаза 3: Доминация — правая побеждает */
.contrast--dominance .contrast__card--positive {
    transform: scale(1.06);
    box-shadow: 0 20px 52px rgba(16, 185, 129, 0.4),
                0 0 0 2px rgba(16, 185, 129, 0.25);
    border-color: var(--color-accent);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s ease, border-color 0.6s ease;
}

/* Hover правой во время доминации — lift поверх scale */
.contrast--dominance .contrast__card--positive.contrast--ready:hover {
    transform: scale(1.06) translateY(-6px);
    box-shadow: 0 28px 60px rgba(16, 185, 129, 0.5),
                0 0 0 2px rgba(16, 185, 129, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===========================
   Блок 3: Интерактив "До / После"
   =========================== */

.compare {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.compare__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.compare__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.compare__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    color: var(--color-text-primary);
    margin: 0;
}

.compare__desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--color-text-secondary);
    margin: 16px 0 0;
}

/* Слайдер */

.compare__slider {
    max-width: 800px;
    margin: 0 auto;
}

.compare__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-photo);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    cursor: ew-resize;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}


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

.compare__img--after {
    position: absolute;
    top: 0;
    left: 0;
}

.compare__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.compare__img--before {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    min-width: 100%;
    height: 100%;
}

/* Бейджи */

.compare__badge {
    position: absolute;
    top: 16px;
    z-index: 3;
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-base);
}

.compare__badge--before {
    left: 16px;
}

.compare__badge--after {
    right: 16px;
}

/* Ползунок */

.compare__handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.compare__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
}

.compare__btn {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: #FFFFFF;
    border: none;
    border-radius: var(--radius-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    pointer-events: auto;
    padding: 0;
    animation: handle-pulse 2s ease-out infinite;
}

/* Пульсация ползунка */
@keyframes handle-pulse {
    0%   { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70%  { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 14px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Пульсация останавливается при взаимодействии */
.compare__image-wrapper:hover .compare__btn,
.compare__image-wrapper:active .compare__btn {
    animation: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Блок 4: Витрина стилей
   =========================== */

.styles {
    padding: 32px 0 80px;
    background-color: var(--color-bg);
}

.styles__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.styles__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.styles__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    color: var(--color-text-primary);
    margin: 0;
}

.styles__desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--color-text-secondary);
    margin: 16px 0 0;
}

/* Галерея — Бесконечная карусель */

@-webkit-keyframes marquee-scroll {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.styles__gallery {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    cursor: pointer;
}

.styles__track {
    display: flex;
    gap: 24px;
    width: -webkit-max-content;
    width: max-content;
    -webkit-animation: marquee-scroll 35s linear infinite;
    animation: marquee-scroll 35s linear infinite;
}

.styles__gallery:hover .styles__track {
    animation-play-state: paused;
}

.styles__card {
    flex-shrink: 0;
    width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-photo);
    aspect-ratio: 3 / 4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.styles__card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

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

/* Кнопка */

.styles__cta {
    text-align: center;
    margin-top: 40px;
}

.styles__btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.styles__btn:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Блик (sheen) — объединён с .hero__btn::after в общем grouped selector выше */

/* ===========================
   Блок 5: Манифест Эксперта + Сравнение
   =========================== */

.manifest {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.manifest__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Стейтмент */

.manifest__statement {
    max-width: 800px;
    margin: 0 auto 48px;
    background-color: #FFFFFF;
    border-radius: var(--radius-base);
    border-left: 6px solid var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 40px 48px 40px 40px;
}

.manifest__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    color: var(--color-text-primary);
    text-align: left;
    margin: 0 0 20px;
}

.manifest__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-primary);
    text-align: left;
    margin: 0 0 14px;
}

.manifest__text:last-child {
    margin-bottom: 0;
}

.manifest__text strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Сетка фото */

.manifest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.manifest__photo-card {
    position: relative;
}

.manifest__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-photo);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Бейджи */

.manifest__badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-base);
}

.manifest__badge--dark {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
}

.manifest__badge--accent {
    background-color: var(--color-accent);
    color: #FFFFFF;
}

/* === Story Reveal: направленные анимации появления === */

.story-reveal {
    opacity: 0;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeftFade {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRightFade {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.story-reveal.is-visible.text-reveal {
    animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.story-reveal.is-visible.card-left {
    animation: slideLeftFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.story-reveal.is-visible.card-center {
    animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.story-reveal.is-visible.card-right {
    animation: slideRightFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* ===========================
   Блок 6: Прозрачные Тарифы
   =========================== */

.pricing {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.pricing__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.pricing__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    color: var(--color-text-primary);
    text-align: center;
    margin: 0 0 48px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

/* Базовая карточка */

.pricing__card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: var(--radius-base);
    padding: 40px 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Акцентная карточка */

.pricing__card--accent {
    border: 2px solid var(--color-accent);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
    padding: 48px 32px;
    transform: scale(1.05);
    z-index: 1;
}

/* Бейдж ХИТ */

.pricing__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-base);
    white-space: nowrap;
}

/* Типографика карточки */

.pricing__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text-primary);
    margin: 0;
}

.pricing__price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    color: var(--color-text-primary);
    margin: 8px 0 0;
}

.pricing__price--accent {
    color: var(--color-accent);
}

.pricing__divider {
    border: none;
    height: 2px;
    background-color: var(--color-bg);
    margin: 16px 0;
}

.pricing__desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0 0 24px;
}

/* Кнопки */

.pricing__btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: var(--radius-base);
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.pricing__btn--ghost {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.pricing__btn--ghost:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.pricing__btn--solid {
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.pricing__btn--solid:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Блик на кнопке — объединён с .hero__btn::after в общем grouped selector */

/* ===========================
   Блок 7: Часто задаваемые вопросы
   =========================== */

.faq {
    padding: 96px 0 80px;
    background-color: var(--color-bg);
}

.faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

.faq__sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.faq__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    color: var(--color-text-primary);
    margin: 0;
}

.faq__subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 160%;
    color: var(--color-text-secondary);
    margin: 24px 0 0;
    max-width: 350px;
}

.faq__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 16px 32px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* .faq__cta-btn--shine::after — объединён с .hero__btn::after в общем grouped selector */

.faq__cta-btn:hover {
    background-color: #059669;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq__item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border-bottom: 1px solid #E5E7EB;
}

.faq__item:first-child {
    border-top: 1px solid #E5E7EB;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

.faq__question:hover {
    color: var(--color-accent);
}

.faq__question span:first-child {
    padding-right: 24px;
}

.faq__icon {
    flex-shrink: 0;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.faq__icon .faq__icon-v {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.faq__item--active .faq__icon .faq__icon-v {
    transform: scaleY(0);
    opacity: 0;
}

.faq__item--active .faq__icon {
    color: var(--color-accent);
}

.faq__question:hover .faq__icon {
    color: var(--color-accent);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq__answer p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: var(--color-text-secondary);
    margin: 0;
    padding: 0 0 24px;
}

@media (min-width: 769px) {
    .faq__container {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
    }

    .faq__sidebar {
        position: sticky;
        top: 100px;
    }
}

/* ===========================
   Блок 8: Подвал / Финальный захват
   =========================== */

.footer {
    padding: 80px 0 100px;
    background-color: var(--color-bg);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__header {
    text-align: center;
    margin-bottom: 48px;
}

.footer__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 40px;
    color: var(--color-text-primary);
    margin: 0 0 16px;
}

.footer__desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки контактов */

.footer__contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer__card {
    display: block;
    background-color: #FFFFFF;
    border-radius: var(--radius-photo);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

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

/* Блик для карточек контактов — объединён с .hero__btn::after в общем grouped selector */

.footer__card-title {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text-primary);
}

.footer__card--accent .footer__card-title {
    color: #FFFFFF;
}

.footer__card-sub {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.footer__card--accent .footer__card-sub {
    color: var(--color-bg);
}

/* Копирайт */

.footer__copy {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
    margin: 48px 0 0;
}

/* ===========================
   Адаптив: Laptop (769px — 1024px)
   =========================== */

@media (min-width: 769px) and (max-width: 1024px) {
    html {
        scroll-padding-top: 72px;
    }

    /* Header */

    .site-header__inner {
        height: 72px;
        padding: 0 24px;
    }

    .site-header__logo {
        font-size: 22px;
    }

    .site-header__nav {
        gap: 24px;
    }

    .site-header__link {
        font-size: 15px;
    }

    .site-header__cta {
        font-size: 13px;
        padding: 10px 20px;
    }

    /* Hero */

    .hero {
        padding-top: 140px;
        padding-bottom: 64px;
    }

    .hero__container {
        padding: 0 24px;
        gap: 40px;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__bullet {
        font-size: 15px;
    }

    /* Контраст */

    .contrast {
        padding: 64px 0;
    }

    .contrast__container {
        padding: 0 24px;
    }

    .contrast__title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .contrast__grid {
        gap: 24px;
    }

    .contrast__card {
        padding: 32px;
    }

    .contrast__card-title {
        font-size: 20px;
    }

    .contrast__item {
        font-size: 15px;
    }

    /* До / После */

    .compare {
        padding: 64px 0;
    }

    .compare__container {
        padding: 0 24px;
    }

    .compare__title {
        font-size: 30px;
    }

    .compare__desc {
        font-size: 16px;
    }

    .compare__slider {
        max-width: 600px;
    }

    /* Витрина стилей */

    .styles {
        padding: 64px 0;
    }

    .styles__container {
        padding: 0 24px;
    }

    .styles__title {
        font-size: 30px;
    }

    .styles__desc {
        font-size: 16px;
    }

    .styles__card {
        width: 260px;
    }

    /* Манифест */

    .manifest {
        padding: 64px 0;
    }

    .manifest__container {
        padding: 0 24px;
    }

    .manifest__statement {
        padding: 32px 36px 32px 32px;
    }

    .manifest__title {
        font-size: 26px;
    }

    .manifest__text {
        font-size: 16px;
    }

    .manifest__grid {
        gap: 20px;
    }

    .manifest__badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Тарифы */

    .pricing {
        padding: 64px 0;
    }

    .pricing__container {
        padding: 0 24px;
    }

    .pricing__title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .pricing__grid {
        gap: 20px;
    }

    .pricing__card {
        padding: 32px 24px;
    }

    .pricing__card--accent {
        padding: 40px 24px;
    }

    .pricing__name {
        font-size: 18px;
    }

    .pricing__price {
        font-size: 28px;
    }

    .pricing__desc {
        font-size: 15px;
    }

    /* FAQ */

    .faq {
        padding: 72px 0 64px;
    }

    .faq__container {
        padding: 0 24px;
        gap: 40px;
    }

    .faq__title {
        font-size: 30px;
    }

    .faq__sidebar {
        top: 92px;
    }

    .faq__question {
        font-size: 16px;
    }

    .faq__answer p {
        font-size: 15px;
    }

    /* Footer */

    .footer {
        padding: 64px 0 80px;
    }

    .footer__container {
        padding: 0 24px;
    }

    .footer__title {
        font-size: 32px;
    }

    .footer__desc {
        font-size: 16px;
    }

    .footer__contacts {
        gap: 16px;
    }

    .footer__card-title {
        font-size: 16px;
    }
}

/* ===========================
   Адаптив: Tablet (481px — 768px)
   =========================== */

@media (min-width: 481px) and (max-width: 768px) {
    html {
        scroll-padding-top: 68px;
    }

    /* Header */

    .site-header__inner {
        height: 68px;
        padding: 0 20px;
    }

    .site-header__logo {
        font-size: 20px;
    }

    .site-header__cta {
        font-size: 13px;
        padding: 10px 20px;
        border-radius: 10px;
    }

    /* Hero */

    .hero {
        padding: 48px 0;
        padding-top: 116px;
    }

    .hero__container {
        flex-direction: column;
        padding: 0 24px;
        gap: 40px;
    }

    .hero__content {
        flex: none;
        max-width: 100%;
    }

    .hero__visual {
        flex: none;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero__title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .hero__subtitle {
        font-size: 17px;
        margin-bottom: 28px;
    }

    .hero__bullet {
        font-size: 15px;
    }

    .hero__btn {
        display: inline-block;
        margin-top: 32px;
    }

    /* Контраст */

    .contrast {
        padding: 64px 0;
    }

    .contrast__container {
        padding: 0 24px;
    }

    .contrast__title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .contrast__grid {
        flex-direction: column;
        gap: 20px;
    }

    .contrast__card {
        padding: 32px;
    }

    .contrast__card-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .contrast__item {
        font-size: 15px;
    }

    /* До / После */

    .compare {
        padding: 64px 0;
    }

    .compare__container {
        padding: 0 24px;
    }

    .compare__title {
        font-size: 28px;
    }

    .compare__desc {
        font-size: 16px;
    }

    .compare__slider {
        max-width: 500px;
    }

    .compare__badge {
        font-size: 13px;
    }

    /* Витрина стилей */

    .styles {
        padding: 64px 0;
    }

    .styles__container {
        padding: 0 24px;
    }

    .styles__title {
        font-size: 28px;
    }

    .styles__desc {
        font-size: 16px;
    }

    .styles__track {
        gap: 20px;
    }

    .styles__card {
        width: 240px;
    }

    .styles__card:hover {
        transform: none;
    }

    /* Манифест */

    .manifest {
        padding: 64px 0;
    }

    .manifest__container {
        padding: 0 24px;
    }

    .manifest__statement {
        padding: 32px 28px 32px 24px;
        margin-bottom: 36px;
    }

    .manifest__title {
        font-size: 26px;
    }

    .manifest__text {
        font-size: 16px;
    }

    .manifest__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .manifest__badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Тарифы */

    .pricing {
        padding: 64px 0;
    }

    .pricing__container {
        padding: 0 24px;
    }

    .pricing__title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing__card {
        padding: 32px 28px;
    }

    .pricing__card--accent {
        transform: none;
        padding: 36px 28px;
    }

    .pricing__name {
        font-size: 19px;
    }

    .pricing__price {
        font-size: 30px;
    }

    /* FAQ */

    .faq {
        padding: 64px 0;
    }

    .faq__container {
        padding: 0 24px;
        gap: 36px;
    }

    .faq__title {
        font-size: 28px;
    }

    .faq__subtitle {
        font-size: 15px;
        max-width: 100%;
    }

    .faq__question {
        font-size: 17px;
        padding: 22px 0;
    }

    .faq__answer p {
        font-size: 15px;
        padding: 0 0 22px;
    }

    /* Footer */

    .footer {
        padding: 64px 0 80px;
    }

    .footer__container {
        padding: 0 24px;
    }

    .footer__title {
        font-size: 32px;
    }

    .footer__desc {
        font-size: 16px;
    }

    .footer__contacts {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer__card:last-child {
        grid-column: 1 / -1;
    }

    /* Lightbox */

    .lightbox__wrap {
        max-width: 88vw;
        max-height: 88vh;
    }

    .lightbox__img {
        max-width: 88vw;
        max-height: 88vh;
    }

    /* Lightbox: .lightbox__close — стили в базовом блоке */
}

/* ===========================
   Адаптив: Mobile (max-width: 480px)
   =========================== */

@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }

    /* Header */

    .site-header__inner {
        height: 60px;
    }

    .site-header__logo {
        font-size: 18px;
    }

    .site-header__cta {
        font-size: 13px;
        padding: 10px 16px;
        border-radius: 10px;
    }

    /* Hero */

    .hero {
        padding: 48px 0;
        padding-top: 100px;
    }

    .hero__container {
        flex-direction: column;
        padding: 0 16px;
        gap: 32px;
    }

    .hero__content {
        flex: none;
        max-width: 100%;
    }

    .hero__visual {
        flex: none;
        max-width: 100%;
    }

    .hero__title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .hero__subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero__bullets {
        gap: 12px;
    }

    .hero__bullet {
        font-size: 14px;
    }

    .hero__btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        margin-top: 32px;
    }

    /* Контраст */

    .contrast {
        padding: 56px 0;
    }

    .contrast__container {
        padding: 0 16px;
    }

    .contrast__title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .contrast__grid {
        flex-direction: column;
        gap: 16px;
    }

    .contrast__card {
        padding: 24px;
    }

    .contrast__card-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .contrast__list {
        gap: 12px;
    }

    .contrast__item {
        font-size: 14px;
    }

    /* До / После */

    .compare {
        padding: 56px 0;
    }

    .compare__container {
        padding: 0 16px;
    }

    .compare__title {
        font-size: 24px;
    }

    .compare__desc {
        font-size: 15px;
    }

    .compare__badge {
        font-size: 12px;
    }

    /* Витрина стилей */

    .styles {
        padding: 56px 0;
    }

    .styles__container {
        padding: 0 16px;
    }

    .styles__title {
        font-size: 24px;
    }

    .styles__desc {
        font-size: 15px;
    }

    .styles__track {
        gap: 16px;
    }

    .styles__card {
        width: 220px;
    }

    .styles__card:hover {
        transform: none;
    }

    /* Манифест */

    .manifest {
        padding: 56px 0;
    }

    .manifest__container {
        padding: 0 16px;
    }

    .manifest__statement {
        padding: 28px 20px 28px 16px;
        margin-bottom: 28px;
    }

    .manifest__title {
        font-size: 22px;
    }

    .manifest__text {
        font-size: 15px;
    }

    .manifest__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .manifest__badge {
        font-size: 12px;
    }

    /* Тарифы */

    .pricing {
        padding: 56px 0;
    }

    .pricing__container {
        padding: 0 16px;
    }

    .pricing__title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pricing__card {
        padding: 28px 20px;
    }

    .pricing__card--accent {
        transform: none;
        padding: 28px 20px;
    }

    .pricing__price {
        font-size: 26px;
    }

    /* FAQ */

    .faq {
        padding: 56px 0;
    }

    .faq__container {
        padding: 0 16px;
        gap: 28px;
    }

    .faq__title {
        font-size: 24px;
    }

    .faq__subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .faq__question {
        font-size: 15px;
        padding: 18px 0;
    }

    .faq__answer p {
        font-size: 14px;
        padding: 0 0 18px;
    }

    /* Footer */

    .footer {
        padding: 56px 0 72px;
    }

    .footer__container {
        padding: 0 16px;
    }

    .footer__title {
        font-size: 28px;
    }

    .footer__desc {
        font-size: 15px;
    }

    .footer__contacts {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Lightbox */

    .lightbox__wrap {
        max-width: 85vw;
        max-height: 85vh;
    }

    .lightbox__img {
        max-width: 85vw;
        max-height: 85vh;
    }

    /* Lightbox: .lightbox__close — стили в базовом блоке */
}

/* ===========================
   Lightbox — Модальное окно
   =========================== */

.lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox--active {
    opacity: 1;
    visibility: visible;
}

.lightbox__wrap {
    position: relative;
    display: inline-flex;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: default;
}

.lightbox--active .lightbox__wrap {
    transform: scale(1);
    opacity: 1;
}

.lightbox__img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-photo);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lightbox__close:hover {
    opacity: 0.9;
}

/* Карусель: пауза при открытом лайтбоксе */

.styles__track--paused {
    animation-play-state: paused !important;
}



/* Disable animations for users who prefer reduced motion (BUG-14) */
@media (prefers-reduced-motion: reduce) {
    /* animate-fade-up deleted; animate-on-scroll already handled above */
}
