/* ============================================
   ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    --fc-navy:      #0A2A5E;
    --fc-navy-dark: #061A3D;
    --fc-red:       #E63946;
    --fc-red-dark:  #C42B37;
    --fc-bg:        #F7F8FA;
    --fc-white:     #FFFFFF;
    --fc-text:      #1A1A1A;
    --fc-gray:      #6B7280;
    --fc-border:    #E5E7EB;
    --fc-radius:    14px;
    --fc-shadow:    0 4px 24px rgba(10, 42, 94, 0.08);
    --fc-shadow-hover: 0 8px 32px rgba(10, 42, 94, 0.15);
   --fc-font-head: 'Manrope', system-ui, -apple-system, sans-serif;
    --fc-font-body: 'Inter', system-ui, -apple-system, sans-serif;
}
/* ============================================
   ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ
   ============================================ */

/* Manrope — для заголовков */
@font-face {
    font-family: 'Manrope';
    src: url('../css/fonts/manrope-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../css/fonts/manrope-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../css/fonts/manrope-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../css/fonts/manrope-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Inter — для основного текста */
@font-face {
    font-family: 'Inter';
    src: url('../css/fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../css/fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../css/fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../css/fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* ============================================
   ПРИНУДИТЕЛЬНОЕ ПРИМЕНЕНИЕ ШРИФТОВ
   ============================================ */
/* Защита от горизонтального скролла на мобильных */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Чтобы картинки и видео никогда не вылезали */
img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
}


h1, h2, h3, h4, h5, h6,
.fc-hero__title, .fc-hero__subtitle,
.fc-section-title h2,
.fc-page-hero__title, .fc-page-hero__subtitle,
.fc-footer__title,
.fc-menu a,
.fc-btn,
.fc-tabs__btn,
.fc-account-quick__label,
.fc-product__title,
.fc-product__price,
.fc-order-progress__label,
.fc-thankyou__title,
.fc-thankyou__step strong {
    font-family: var(--fc-font-head) !important;
}

p, li, span, div, a:not(.fc-btn):not(.fc-menu a),
input, textarea, select,
.fc-hero__subtitle,
.fc-product__excerpt,
.fc-tabs__panel p,
.fc-tabs__panel li {
    font-family: var(--fc-font-body) !important;
}

/* ============================================
   БАЗА
   ============================================ */
body {
    font-family: var(--fc-font-body);
    color: var(--fc-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fc-font-head);
    color: var(--fc-navy);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 0;
}

h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

a {
    color: var(--fc-navy);
    text-decoration: none !important; /* Убираем подчеркивание везде */
    transition: color .2s;
}

a:hover {
    color: var(--fc-red);
    text-decoration: none !important; /* Убираем подчеркивание при наведении */
}

/* Исключение: в тексте статьи ссылки должны быть видны */
.fc-single-post__content a,
.fc-tabs__panel a {
    text-decoration: underline !important;
}

.fc-single-post__content a:hover,
.fc-tabs__panel a:hover {
    text-decoration: underline !important;
}

/* ============================================
   КОНТЕЙНЕР И СЕКЦИИ
   ============================================ */
.fc-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.fc-container--narrow { max-width: 760px; }
.fc-section { padding: 80px 0; }
.fc-section:nth-child(even) { background: var(--fc-bg); }
.fc-section-title { text-align: center; margin: 0 0 48px; }
.fc-section-title h2 { margin-bottom: 16px; }
.fc-section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--fc-red); margin: 0 auto; border-radius: 2px; }

/* ============================================
   КНОПКИ
   ============================================ */
.fc-btn, .wp-block-button__link, button.single_add_to_cart_button, .woocommerce a.button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all .25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}
.fc-btn--primary, .wp-block-button__link, .woocommerce a.button.alt { background: var(--fc-navy); color: var(--fc-white) !important; }
.fc-btn--primary:hover, .wp-block-button__link:hover, .woocommerce a.button.alt:hover { background: var(--fc-red); transform: translateY(-2px); box-shadow: var(--fc-shadow-hover); }
.fc-btn--accent { background: var(--fc-red); color: var(--fc-white) !important; }
.fc-btn--accent:hover { background: var(--fc-red-dark); transform: translateY(-2px); }
.fc-btn--outline { background: transparent; color: var(--fc-navy) !important; border: 2px solid var(--fc-navy); }
.fc-btn--outline:hover { background: var(--fc-navy); color: var(--fc-white) !important; }

/* ============================================
   КАРТОЧКИ / АНИМАЦИИ
   ============================================ */
.fc-card { background: var(--fc-white); border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.fc-card:hover { transform: translateY(-6px); box-shadow: var(--fc-shadow-hover); }
.fc-animate { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fc-animate.is-visible { opacity: 1; transform: translateY(0); }
/* ============================================
   ФИКС ЛАЙТБОКСА (чтобы крестик не торчал)
   ============================================ */
#fc-lightbox {
    display: none !important; /* Жестко скрываем по умолчанию */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Отключаем клики, пока скрыто */
}

#fc-lightbox.is-open {
    display: flex !important; /* Показываем, только когда есть класс is-open */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Перебиваем серый стиль темы для крестика */
.fc-lightbox__close {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}