/* Палитра лендинга Реакции (переопределяется inline из модели) */
.reaction-landing {
    --r-primary: #7C9885;
    --r-primary-dark: #3E5C4A;
    --r-accent: #C97F5C;
    --r-bg-section: #F3EDE3;
    --r-text: #2B2B2B;
    --r-text-muted: #5A5A55;
    --r-border: #D9D2C5;

    /* Override global site variables for this page */
    --color-aqua-primary: #7C9885;
    --color-brand-fitness: #7C9885;
    --color-red-accent: #3E5C4A;
    --color-red-primary: #3E5C4A;
    --color-bg-gray: #F3EDE3;
    --color-text-primary: #2B2B2B;
    --color-text-secondary: #5A5A55;
    --color-border: #D9D2C5;
}

/* ========================================
   REACTIONS - Карточки на главной (горизонтальная прокрутка)
   ======================================== */

.reactions-scroll-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.reactions-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    justify-content: flex-start;
}

.reactions-scroll::-webkit-scrollbar {
    display: none;
}

.reaction-card {
    flex: 0 0 450px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.reaction-card:hover {
    box-shadow: var(--shadow-lg);
}

.reaction-image-container {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
}

.reaction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reaction-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    color: white;
}

.reaction-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.reaction-tagline {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
    opacity: 0.95;
}

.reaction-btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--r-primary), var(--r-primary-dark));
    color: white;
    border: 2px solid var(--r-primary-dark);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.reaction-btn:hover {
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .reaction-card {
        flex: 0 0 420px;
    }

    .reaction-image-container {
        height: 300px;
    }

    .reaction-name {
        font-size: 1.25rem;
    }

    .reaction-tagline {
        font-size: 0.9rem;
    }
}


/* ========================================
   ЛЕНДИНГ РЕАКЦИИ — detail.html
   Воронка: Боль → Как работает → Куратор → Сравнение → Бонусы → Тарифы → CTA
   ======================================== */

/* --- 1. Hero --- */
.reaction-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.reaction-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.85) 0%, rgba(124, 152, 133, 0.7) 100%);
}

.reaction-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
}

.reaction-hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.15;
}

.reaction-hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.reaction-hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin-top: 1rem;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--r-primary), var(--r-primary-dark));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-hero:hover {
    opacity: 0.9;
}

/* --- 3. Боли --- */
.reaction-pains {
    padding: 4rem 0;
    background: var(--r-bg-section);
}

.reaction-pains h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--r-text);
}

.pains-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pain-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.pain-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pain-card.active {
    box-shadow: 0 4px 16px rgba(124, 152, 133, 0.15);
}

.pain-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    user-select: none;
}

.pain-checkbox {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-card.active .pain-checkbox {
    background: var(--r-primary);
    border-color: var(--r-primary);
}

.pain-card.active .pain-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.pain-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--r-text);
    margin: 0;
    flex: 1;
}

.pain-arrow {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #a0aec0;
    transition: transform 0.3s;
    line-height: 1;
}

.pain-card.active .pain-arrow {
    transform: rotate(90deg);
    color: var(--r-primary);
}

.pain-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pain-card.active .pain-body {
    max-height: 500px;
}

.pain-cause {
    padding: 1rem 1.5rem;
    padding-left: 3.5rem;
    color: var(--r-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}

.pain-solution {
    padding: 1rem 1.5rem;
    padding-left: 3.5rem;
    background: rgba(124, 152, 133, 0.05);
    color: var(--r-text);
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 4px solid var(--r-primary);
}

.pain-cause p, .pain-solution p {
    margin: 0;
}

.pains-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.pains-cta p {
    font-size: 1.1rem;
    color: var(--r-text-muted);
    margin-bottom: 1rem;
}

.btn-pains-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--r-primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-pains-cta:hover {
    background: #5a7d63;
}

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

.pain-item {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background: white;
    border-left: 4px solid var(--r-primary-dark);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    color: var(--r-text);
}

/* --- 4. Сравнение --- */
.reaction-comparison {
    padding: 4rem 0;
    background: white;
}

.reaction-comparison h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
}

.comparison-table {
    max-width: 850px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
}

.comparison-header {
    background: var(--r-text);
    color: white;
    font-weight: 600;
}

.comparison-header .comparison-reaction {
    background: var(--r-primary);
    color: white;
}

.comparison-header .comparison-regular {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.comparison-col {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.comparison-row {
    border-bottom: 1px solid var(--r-border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:nth-child(even) {
    background: var(--r-bg-section);
}

.comparison-aspect {
    font-weight: 600;
    color: var(--r-text);
}

.comparison-regular {
    color: var(--r-text-muted);
    font-size: 0.95rem;
}

.comparison-row .comparison-regular::before {
    content: '✕ ';
    color: var(--r-primary-dark);
}

.comparison-row .comparison-reaction {
    color: var(--r-primary);
    font-weight: 600;
    background: rgba(124, 152, 133, 0.05);
}

/* --- 4. Как это работает (доказательства) --- */
.reaction-how {
    padding: 4rem 0;
    background: var(--r-bg-section);
}

.reaction-how h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
}

.proof-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.proof-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Карточка с фото */
.proof-item--with-image {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.proof-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.proof-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
}

/* Без фото — proof-body не используется, номер и контент прямо в proof-item */
.proof-item:not(.proof-item--with-image) .proof-body {
    display: contents;
}

.proof-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: linear-gradient(135deg, var(--r-primary), var(--r-primary-dark));
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50%;
}

.proof-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--r-text);
}

.proof-content p {
    color: var(--r-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- 5. Дополнительные бонусы --- */
.reaction-bonuses {
    padding: 4rem 0;
    background: white;
}

.reaction-bonuses h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
}

.bonuses-grid {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bonus-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.bonus-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: var(--r-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50%;
}

/* --- 7. Куратор --- */
.reaction-curator {
    padding: 4rem 0;
    background: var(--r-bg-section);
}

.reaction-curator h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
}

.curator-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.curator-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
}

.curator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curator-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.curator-description {
    color: var(--r-text-muted);
    line-height: 1.7;
}


/* --- 9. Тарифы --- */
.reaction-pricing {
    padding: 4rem 0;
    background: var(--r-bg-section);
}

.reaction-pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    border-color: var(--r-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: var(--r-primary);
    box-shadow: 0 4px 20px rgba(124, 152, 133, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--r-primary);
    color: white;
    padding: 0.3rem 1.25rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    font-family: 'Montserrat', sans-serif;
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-value {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--r-primary);
    font-family: 'Montserrat', sans-serif;
}

.price-currency {
    font-size: 1rem;
    color: var(--r-text-muted);
}

.pricing-description {
    font-size: 0.95rem;
    color: var(--r-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-pricing {
    display: inline-block;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--r-primary), var(--r-primary-dark));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-pricing:hover {
    opacity: 0.9;
}

/* --- 12. CTA --- */
.reaction-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--r-primary) 0%, var(--r-primary-dark) 100%);
    text-align: center;
    color: white;
}

.reaction-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
}

.cta-subtitle {
    opacity: 0.95;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cta-limited {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-block;
    min-width: 220px;
    padding: 1rem 2rem;
    background: white;
    color: var(--r-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-cta-primary:hover {
    opacity: 0.9;
}

.btn-cta-secondary {
    display: inline-block;
    min-width: 220px;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .reaction-hero {
        min-height: 60vh;
    }

    .reaction-hero h1 {
        font-size: 2rem;
    }

    .reaction-hero-tagline {
        font-size: 1.1rem;
    }

    .reaction-hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .reaction-hero-content {
        padding: 0 1rem;
    }

    /* Сравнение — на мобильном карточками */
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
        border: 1px solid var(--r-border);
        background: white;
    }

    .comparison-row .comparison-aspect {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--r-text-muted);
        margin-bottom: 0.5rem;
        padding: 0;
    }

    .comparison-row .comparison-regular,
    .comparison-row .comparison-reaction {
        padding: 0.5rem 0;
    }

    .comparison-row .comparison-regular::before {
        content: 'Обычный: ';
        font-weight: 600;
        color: var(--r-text-muted);
    }

    .comparison-row .comparison-reaction::before {
        content: 'Реакция: ';
        font-weight: 600;
    }

    /* Бонусы */
    .bonuses-grid {
        grid-template-columns: 1fr;
    }

    /* Доказательства */
    .proof-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .proof-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Куратор */
    .curator-card {
        flex-direction: column;
        text-align: center;
    }

    .curator-image {
        width: 140px;
        height: 140px;
    }

    /* Тарифы */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Боли — мобильные адаптации */
    .btn-pains-cta {
        display: block;
        width: 100%;
        text-align: center;
    }

    .pain-cause, .pain-solution {
        padding-left: 1.5rem;
    }

}

/* ========================================
   ПЕРЕОПРЕДЕЛЕНИЕ КАРТОЧЕК АБОНЕМЕНТОВ
   для лендинга Реакции (шалфей/песок/терракот)
   ======================================== */

.reaction-landing .subscription-card {
    background: white;
    border: 1px solid var(--r-border, #D9D2C5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.reaction-landing .subscription-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 2px var(--r-primary, #7C9885);
    border-color: var(--r-primary, #7C9885);
    background: white;
}

.reaction-landing .subscription-card::before {
    background: transparent;
}

.reaction-landing .subscription-card::after {
    background: linear-gradient(135deg, var(--r-primary, #7C9885), transparent 70%);
}

.reaction-landing .name-line-1 {
    color: var(--r-text-muted, #5A5A55);
    text-shadow: none;
}

.reaction-landing .name-line-2 {
    color: var(--r-text, #2B2B2B);
    text-shadow: none;
}

.reaction-landing .name-line-2::before,
.reaction-landing .name-line-2::after {
    color: var(--r-primary, #7C9885);
}

.reaction-landing .name-line-3 {
    color: var(--r-text-muted, #5A5A55);
    text-shadow: none;
}

.reaction-landing .subscription-divider {
    background: var(--r-border, #D9D2C5);
}

.reaction-landing .subscription-price {
    color: var(--r-text, #2B2B2B);
    text-shadow: none;
}

.reaction-landing .price-label {
    color: var(--r-text-muted, #5A5A55);
    text-shadow: none;
}

.reaction-landing .subscription-duration {
    color: var(--r-primary, #7C9885);
    text-shadow: none;
}

.reaction-landing .duration-label {
    color: var(--r-text-muted, #5A5A55);
    text-shadow: none;
}

.reaction-landing .subscription-card.recommended {
    border-color: var(--r-accent, #C97F5C);
    box-shadow: 0 0 0 2px var(--r-accent, #C97F5C), 0 12px 24px rgba(201, 127, 92, 0.2);
}

.reaction-landing .subscription-card.recommended::after {
    content: 'Популярный';
    position: absolute;
    top: 12px;
    right: -8px;
    background: var(--r-accent, #C97F5C);
    color: white;
    font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px 0 0 4px;
    z-index: 2;
}

.reaction-landing .subscriptions-scroll-container .scroll-btn {
    color: var(--r-primary, #7C9885);
}

.reaction-landing .subscriptions-scroll-hint {
    color: var(--r-text-muted, #5A5A55);
}

/* Override global button styles on landing */
.reaction-landing .btn-lesson-signup:hover {
    box-shadow: 0 4px 15px rgba(124, 152, 133, 0.4);
}

/* Schedule time on dark CTA background — needs high contrast */
.reaction-landing .lesson-time {
    color: #b8d4c0;
    font-weight: 700;
}

.reaction-landing .lesson-date {
    color: white;
}

.reaction-landing .lesson-weekday {
    color: rgba(255, 255, 255, 0.65);
}