/* ==============================================
   HERO HEADER - Базовые стили и фон
   ============================================== */

.hero-header, .hero-header-index {
    background: var(--e-global-color-kadence1);
}

.hero-header .e-con-inner, 
.hero-header-index .e-con-inner {
    display: flex;
    flex-direction: column !important;
    justify-content: center !important;
}

/* ==============================================
   ЗАГОЛОВКИ H1
   ============================================== */

.hero-header h1, 
.hero-header-index h1 {
    font-size: 3em;
    font-weight: 700;
    font-family: var(--global-body-font-family) !important;
    color: var(--global-palette9, #FFFFFF);
    margin: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: block;
    width: 100%;
}

/* ==============================================
   УМНЫЕ ВЫСОТЫ (min-height)
   ============================================== */

/* Внутренние страницы (базовая высота) */
.hero-header .e-con-inner {
    min-height: clamp(350px, 35vh, 550px);
}

/* Главная страница (базовая высота) */
.hero-header-index .e-con-inner {
    min-height: clamp(450px, 50vh, 700px);
}

/* Главная страница: большие экраны (1200 - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .hero-header-index .e-con-inner {
        min-height: clamp(350px, 40vh, 600px);
    }
}

/* Главная страница: средние экраны (1032 - 1199px) */
@media (min-width: 1032px) and (max-width: 1199px) {
    .hero-header-index .e-con-inner {
        min-height: clamp(300px, 30vh, 500px);
    }
}

/* Главная страница: планшеты (769 - 1031px) */
@media (max-width: 1031px) and (min-width: 769px) {
    .hero-header-index .e-con-inner {
        min-height: clamp(300px, 30vh, 500px);
    }
}

/* Главная страница: крупные мобилки (421 - 768px) */
@media (max-width: 768px) and (min-width: 421px) {
    .hero-header-index .e-con-inner {
        min-height: clamp(300px, 35vh, 550px);
    }
}

/* Главная страница: маленькие мобилки (до 420px) */
@media (max-width: 420px) {
    .hero-header-index .e-con-inner {
        min-height: clamp(350px, 40vh, 600px);
    }
}

/* ==============================================
   АДАПТИВНОСТЬ ЗАГОЛОВКОВ И ОТСТУПОВ
   ============================================== */

/* Мобильные отступы */
@media (max-width: 768px) {
    .hero-header .e-con-inner, 
    .hero-header-index .e-con-inner {
        padding-left: clamp(20px, 5vw, 50px);
        padding-right: clamp(20px, 5vw, 50px);
    }
}

/* Уменьшение H1 на крупных мобилках/планшетах (421 - 768px) */
@media (max-width: 768px) and (min-width: 421px) {
    .hero-header h1, 
    .hero-header-index h1 {
        font-size: 2.7em;
    }
}

/* Уменьшение H1 на маленьких мобилках (до 420px) */
@media (max-width: 420px) {
    .hero-header h1, 
    .hero-header-index h1 {
        font-size: 2.5em;
    }
}


/* ===== КРОШКИ (ГЛОБАЛЬНЫЕ СТИЛИ) ===== */

/* 1. Базовый шрифт крошек */
.kadence-breadcrumbs {
    font-size: 1em; /* Чуть больше (было 0.9em) */
    letter-spacing: 0.02em; /* Межбуквенное расстояние */
    color: var(--global-palette3, #333); 
}

/* 2. Ссылки в крошках */
.kadence-breadcrumbs a {
    text-decoration: none !important; /* Убираем подчеркивание по умолчанию */
    font-weight: 600 !important; /* Жирнее */
    color: var(--global-palette3, #333) !important; 
    transition: all 0.3s ease !important; 
}

/* 3. Ссылки при наведении (добавляем подчеркивание) */
.kadence-breadcrumbs a:hover {
    text-decoration: underline !important; 
    text-underline-offset: 3px !important;
    color: #B80004 !important; /* Красный при наведении */
}

/* 4. Разделитель */
.kadence-breadcrumbs .bc-delimiter {
    color: var(--global-palette5, #999) !important;
    font-weight: 400 !important;
}

/* 5. Текущая страница */
.kadence-breadcrumbs .kadence-bread-current {
    color: var(--global-palette4, #555) !important;
    font-weight: 400 !important;
}


/* ===== МОБИЛЬНАЯ ВЕРСИЯ КРОШЕК ===== */
@media (max-width: 1033px) {
    .kadence-breadcrumbs {
        font-size: 0.9em; 
        line-height: 1.6;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px; 
        padding: 10px 0; 
    }

    /* 1. Ссылки в виде пилюль */
    .kadence-breadcrumbs a {
        display: inline-block;
        background-color: var(--global-palette8, #F1F3F8) !important; 
        color: var(--global-palette3, #333) !important; 
        padding: 4px 12px; 
        border-radius: 20px; 
        text-decoration: none !important;
        font-weight: 600 !important;
        border: 1px solid var(--global-palette5, #ccc) !important; 
        transition: all 0.2s ease !important;
    }

    /* 2. При нажатии/наведении */
    .kadence-breadcrumbs a:hover,
    .kadence-breadcrumbs a:active {
        background-color: var(--global-palette2, #084E81) !important; 
        border-color: var(--global-palette2, #084E81) !important; 
        color: #ffffff !important; 
        text-decoration: none !important;
    }

    /* 3. Разделитель скрываем */
    .kadence-breadcrumbs .bc-delimiter {
        display: none !important;
    }

    /* 4. Текущая страница (прозрачная, с обводкой, в общем потоке) */
    .kadence-breadcrumbs .kadence-bread-current {
        display: inline-block;
        background-color: transparent !important; 
        color: var(--global-palette4, #555) !important; 
        padding: 4px 12px; 
        border-radius: 20px;
        border: 1px solid var(--global-palette5, #ccc) !important; 
        font-weight: 400 !important;
        
        /* Убрали width: 100% и margin-top */
    }
}