/* ============================================================
   Cedance.org — Полный набор стилей сайта
   Файл: css/main.css
   Кодировка: UTF-8
   
   Загружается асинхронно через <link rel="preload">.
   ВСЕ КРИТИЧЕСКИЕ СТИЛИ НАХОДЯТСЯ ИНЛАЙН В template.php
   
   В ЭТОМ ФАЙЛЕ ОСТАВЛЕНЫ ТОЛЬКО СТИЛИ КОНТЕНТА,
   КОТОРЫЕ НЕ ВЛИЯЮТ НА 3D-КОНТЕКСТ И ПАРАЛЛАКС
   ============================================================ */

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Модификатор: центрирование контента */
.container--centered {
    text-align: center;
}

/* ===== CLUB CONTENT ELEMENTS — карточки, тарифы, FAQ ===== */
.feature-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.tariff-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.faq-grid {
    display: grid;
    gap: 40px;
    margin: 40px 0;
}

/* Карточки характеристик и тарифов */
.feature-card, .tariff-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.2s;
    position: relative;
}

.feature-card:hover, .tariff-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.3);
}

/* Выделенная карточка тарифа */
.tariff-card.popular {
    border-color: #fffff5;
    background: rgba(255,255,255,0.08);
    transform: scale(1.02);
    overflow: visible;
}

/* Apple-style hover: сохраняет scale + добавляет translateY */
.tariff-card.popular:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: rgba(255,255,255,0.3);
}

/* Типографика тарифов */
.tariff-name {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
}

.tariff-price {
    font-size: 42px;
    font-weight: 300;
    margin: 20px 0;
    letter-spacing: -1px;
}

.tariff-price small {
    font-size: 16px;
    opacity: 0.6;
}

.tariff-features {
    list-style: none;
    margin: 20px 0;
}

.tariff-features li {
    padding: 8px 0;
    /* border-bottom removed per task: div separators - thin lines */
    font-size: 28px; /* Increased from 16px to match --fs-text (28px) from home page for visual harmony */
    display: flex;
    align-items: center;
}

.tariff-features li::before {
    content: "✓";
    margin-right: 10px;
    color: #fffff5;
    font-weight: bold;
}

/* BEM модификатор: технические спецификации остаются слева (Apple-style исключение) */
.tariff-features--specs {
    text-align: left;
}

.tariff-features--specs li {
    text-align: left;
    justify-content: flex-start;
    /* Typography fix: specs should be readable, not decorative */
    font-style: normal !important; /* Override .club-content italic for technical specs */
    font-weight: 400 !important; /* Slightly bolder for technical readability */
}

/* Кнопки тарифов и CTA */
.tariff-button, .cta-button {
    display: inline-block;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-weight: 300;
    padding: 14px 48px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 5px;
    transition: all 0.4s ease;
    cursor: pointer;
    font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-radius: 40px;
    margin-top: 20px;
}

.tariff-button:hover, .cta-button:hover {
    background: #fff;
    color: #000;
}

/* Блок призыва к действию */
.cta-block {
    text-align: center;
    padding: 60px 20px;
    /* border-top/border-bottom removed per task: div separators - thin lines */
}

/* Вопросы и ответы (FAQ) */
.faq-item {
    /* border-bottom removed per task: div separators - thin lines */
    padding-bottom: 20px;
}

.faq-question {
    font-size: 28px; /* Increased from 22px to better match section heading hierarchy from home page */
    font-weight: 500;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 28px; /* Increased from 16px to match --fs-text (28px) from home page for visual harmony */
    opacity: 0.8;
    line-height: 1.6;
}

/* Подвал страницы */
.footer {
    text-align: center;
    opacity: 0.3;
    letter-spacing: 3px;
    /* font-family наследуется от body (Garamond) — не переопределяем */
}

.footer__top {
    margin-top: 30px;
}

.footer__bottom {
    margin-top: 30px;
}

.footer__link {
    color: #fffff5;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.3);
    transition: opacity 0.2s ease;
}

.footer__link:hover {
    opacity: 0.7;
}

/* Модификатор: без hover-эффекта (для унификации футера) */
.footer__link--plain {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

.footer__link--plain:hover {
    opacity: 1;
}

/* Заголовки секций */
.section-heading {
    /* border-bottom removed per task: div separators - thin lines */
    padding-bottom: 10px;
    font-weight: 400;
    letter-spacing: -0.8px;
    color: #fffff5;
    text-align: left;
}

/* Модификатор: без нижней границы (оставлен для совместимости) */
.section-heading--no-border {
    border-bottom: none;
}

/* Модификатор: центрирование */
.section-heading--centered {
    text-align: center;
}

/* Заголовки секций со свечением (gradient + glow) */
.section-heading-glow {
    background: linear-gradient(135deg, #fffff5, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Текст секций (наследует стиль .heart-line1 из template.php) */
.section-text {
    font-weight: 300;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ===== TYPOGRAPHY UNIFICATION — home page as style reference ===== */
/* General text elements inherit italic for unified visual rhythm (matching home page) */
.club-content p,
.club-content .section-text,
.club-content .feature-card p,
.club-content .tariff-card p {
    font-style: italic;
    font-weight: 300;
}

/* FAQ answers follow general text rhythm */
.club-content .faq-answer {
    font-style: italic;
    font-weight: 300;
}

/* Technical specs in tariff cards: NORMAL style for readability (exception to italic rule) */
.club-content .tariff-features--specs li {
    font-style: normal;
    font-weight: 400;
}

/* General tariff features (non-specs) keep italic */
.club-content .tariff-features li:not(.tariff-features--specs li) {
    font-style: italic;
    font-weight: 300;
}

/* Исключение: заголовки остаются без курсива для иерархии */
.club-content h2,
.club-content h3,
.club-content h4,
.club-content .section-heading,
.club-content .tariff-name,
.club-content .tariff-price,
.club-content .countdown-number,
.club-content .countdown-label {
    font-style: normal;
}

/* Кнопки и ссылки — без курсива для читаемости */
.club-content .tariff-button,
.club-content .cta-button,
.club-content a:not(.footer__link) {
    font-style: normal;
}

/* Контейнер текста секции */
.section-content {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* Отступ перед кнопкой */
.section-content__button-wrapper {
    margin-top: 40px;
}

/* Спейсер */
.section-content__spacer {
    height: 20px;
}

/* Курсив */
.section-content__italic {
    font-style: italic;
}

/* Акцент YOU (наследует стиль .heart-line2 .you из template.php) */
.you {
    font-weight: 500;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(255,255,255,0.5);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* ===== COUNTDOWN STYLES — стили таймера обратного отсчёта ===== */
.countdown-block {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: var(--fs-countdown-num);
    font-weight: 300;
    line-height: 1;
    display: block;
    font-feature-settings: "tnum";
    letter-spacing: -2px;
    color: #fffff5;
    font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.countdown-label {
    font-size: var(--fs-countdown-lbl);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.5;
    font-weight: 300;
    margin-top: 8px;
    display: block;
    font-family: Garamond, "EB Garamond", "Times New Roman", serif;
}

/* Центрирование блока таймера */
#countdown {
    justify-content: center;
}

/* Обёртка таймера */
.countdown-wrapper {
    margin: 40px 0 60px 0;
    text-align: center;
}

/* ===== MOBILE — адаптация для мобильных устройств ===== */
@media (max-width: 987px) {

    #countdown {
        justify-content: center;
    }

    .feature-grid { grid-template-columns: 1fr; }
    .tariff-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }

    .tariff-card.popular::before {
        content: "FOREVER";
        position: absolute;
        top: -8px;
        right: 20px;
        background: #fff;
        color: #000;
        padding: 6px 18px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        border-radius: 20px;
        font-family: Garamond, "EB Garamond", "Times New Roman", serif;
        z-index: 10;
        white-space: nowrap;
    }

    .section-heading { font-size: var(--fs-heading); margin: 40px 0 20px; }
    .section-text { font-size: var(--fs-text); }
    .cta-block { margin: 40px 0 20px; }
    .footer { font-size: var(--fs-footer); margin-top: 20px; }
    .countdown-wrapper { margin: 20px 0 40px 0; }
    .section-content { margin-bottom: 40px; }
}

/* Мобильная версия — таймер */
@media (max-width: 987px) {
    .countdown-number {
        letter-spacing: -1px;
        font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    .countdown-label {
        letter-spacing: 2px;
    }

    .countdown-item {
        min-width: 60px;
    }
}

/* ===== TABLET — адаптация для планшетов ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    #countdown {
        justify-content: center;
    }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .tariff-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .faq-grid { grid-template-columns: 1fr 1fr; }

    .tariff-card.popular::before {
        content: "FOREVER";
        position: absolute;
        top: 12px;
        right: -30px;
        background: #fff;
        color: #000;
        padding: 4px 30px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
        transform: rotate(45deg);
        font-family: Garamond, "EB Garamond", "Times New Roman", serif;
    }

    .section-heading { font-size: var(--fs-heading); margin: 50px 0 25px; }
    .section-text { font-size: var(--fs-text); }
    .cta-block { margin: 60px 0 30px; padding: 50px 20px; }
    .footer { font-size: var(--fs-footer); margin-top: 50px; }
    .countdown-wrapper { margin: 30px 0 50px 0; }
    .section-content { margin-bottom: 50px; }
}

/* Планшетная версия — таймер */
@media (min-width: 769px) and (max-width: 1024px) {
    .countdown-number {
        letter-spacing: -2px;
        font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    .countdown-label {
        letter-spacing: 3px;
    }
}

/* ===== DESKTOP — полный экран ===== */
@media (min-width: 1025px) {

    #countdown {
        justify-content: center;
    }

    .countdown-number {
        font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    .feature-grid { grid-template-columns: repeat(4, 1fr); }
    .tariff-grid { grid-template-columns: repeat(3, 1fr); }
    .faq-grid { grid-template-columns: 1fr 1fr; }

    .tariff-card.popular::before {
        content: "FOREVER";
        position: absolute;
        top: 12px;
        right: -30px;
        background: #fff;
        color: #000;
        padding: 4px 30px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
        transform: rotate(45deg);
        font-family: Garamond, "EB Garamond", "Times New Roman", serif;
    }

    .section-heading { font-size: var(--fs-heading); margin: 60px 0 30px; }
    .section-text { font-size: var(--fs-text); }
    .cta-block { margin: 100px 0 40px; padding: 60px 20px; }
    .footer { font-size: var(--fs-footer); margin-top: 60px; }
    /* .footer__link стили убраны — используем inline-стили в template.php */
    .countdown-wrapper { margin: 40px 0 60px 0; }
    .section-content { margin-bottom: 60px; }
}

/* Плавная прокрутка страницы */
html {
    scroll-behavior: smooth;
}

/* Шрифт для параграфов в блоке "первые 100" */
.first-100-block p {
    font-family: Garamond, "EB Garamond", "Times New Roman", serif;
}

/* Интерактивность ссылок блока tagline */
.tagline a {
    transition: opacity 0.2s ease;
}

.tagline a:hover {
    opacity: 0.7;
}