/* static/css/global.css */

/* --- FONTS --- */
@font-face {
    font-family: 'High Speed';
    src: url("../fonts/High Speed.otf") format('opentype'),
         url("../fonts/High Speed.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Conthrax Font Family (остается без изменений) --- */
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Light.otf") format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Light Italic.otf") format('opentype');
    font-weight: 300;
    font-style: italic;
}

/* Regular (Book is often similar to Regular) */
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Regular.otf") format('opentype'),
         url("../fonts/Conthrax Book.otf") format('opentype'); /* Assuming Book is an alternative for Regular */
    font-weight: 400; /* Regular / Normal / Book */
    font-style: normal;
}
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Regular Italic.otf") format('opentype'),
         url("../fonts/Conthrax Book Italic.otf") format('opentype');
    font-weight: 400; /* Regular / Normal / Book */
    font-style: italic;
}

/* SemiBold */
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax SemiBold.otf") format('opentype');
    font-weight: 600; /* SemiBold */
    font-style: normal;
}
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax SemiBold Italic.otf") format('opentype');
    font-weight: 600; /* SemiBold */
    font-style: italic;
}

/* Bold */
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Bold.otf") format('opentype');
    font-weight: 700; /* Bold */
    font-style: normal;
}
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Bold Italic.otf") format('opentype');
    font-weight: 700; /* Bold */
    font-style: italic;
}

/* Heavy */
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Heavy.otf") format('opentype');
    font-weight: 800; /* Heavy (can also be 900 for Black/Ultra) */
    font-style: normal;
}
@font-face {
    font-family: 'Conthrax';
    src: url("../fonts/Conthrax Heavy Italic.otf") format('opentype');
    font-weight: 800; /* Heavy */
    font-style: italic;
}


/* --- GLOBAL STYLES & RESETS --- */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    /* --- ИЗМЕНЕНИЕ ШРИФТА НА INTER --- */
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    background-color: #101010;
    color: #c0c0c0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    flex-grow: 1;
}

.main-content-area {
    width: 100%;
}

a {
    color: #ff8128;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: #e07018;
    opacity: 0.85;
}

/* Общие стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Conthrax', sans-serif; /* Оставляем Conthrax для заголовков */
    margin-top: 0;
    margin-bottom: 0.75em;
    line-height: 1.3;
    color: #e0e0e0;
}

h1 { font-size: 2.8em; font-weight: 800; color: #ff8128; }
h2 { font-size: 2.2em; font-weight: 700; color: #ff8128; }
h3 { font-size: 1.6em; font-weight: 600; }
h4 { font-size: 1.3em; font-weight: 600; }

p {
    margin-top: 0;
    margin-bottom: 1em;
}

strong, b {
    font-weight: 700; /* Используем жирное начертание Inter */
}

em, i {
    font-style: italic;
}

/* Геройский раздел Сезона 5 */
#season5-hero .season-badge h1 {
    /* text-shadow: 0 0 15px rgba(255, 129, 40, 0.7); */
}
#season5-hero .season-badge p {
    /* Стили уже инлайново */
}

/* Секция с детальным описанием фич плагина */
.plugin-deep-dive-section h2,
.plugin-deep-dive-section > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.plugin-features-detailed {
    margin-top: 50px;
    display: grid;
    gap: 40px;
}

.detailed-feature-block {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.detailed-feature-icon img {
    width: 60px;
    height: auto;
    opacity: 0.7;
}

.detailed-feature-text h3 {
    font-family: 'Conthrax', sans-serif;
    font-weight: 700;
    font-size: 1.7em;
    color: #e5e5e5;
    margin-bottom: 10px;
}

.detailed-feature-text p {
    /* Убрано font-family: 'Conthrax', чтобы наследовался шрифт из body */
    font-weight: 400;
    font-size: 1.05em;
    color: #b5b5b5;
    line-height: 1.75;
    margin-bottom: 0;
}
.detailed-feature-text p strong {
    color: #ff8128;
    font-weight: 600;
}

/* Адаптация для кнопок вторичного действия */
.section-action-button.secondary-action {
    background-color: transparent;
    color: #ff8128;
    border: 2px solid #ff8128;
}
.section-action-button.secondary-action:hover {
    background-color: rgba(255, 129, 40, 0.1);
    color: #ff8128;
}


/* Адаптивность для grid и flex элементов */
@media (max-width: 768px) {
    #season5-hero .poster-hero-content-left {
        text-align: center;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    #season5-hero .poster-hero-logo-left {
        margin-left: auto;
        margin-right: auto;
    }
     #season5-hero .season-badge {
        text-align: center;
    }
    #season5-hero .poster-hero-actions-left {
        flex-direction: column;
        align-items: center;
    }
    #season5-hero .poster-hero-actions-left .action-link {
        width: 100%;
        max-width: 320px;
    }

    .detailed-feature-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detailed-feature-icon {
        margin-bottom: 15px;
    }
     .join-actions .section-action-button {
        margin-right: 0;
        margin-bottom: 15px;
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .join-actions .section-action-button:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    /* Уменьшаем шрифты заголовков */
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.3em; }

    /* Убираем лишние отступы у страницы */
    .page-wrapper {
        overflow-x: hidden; /* Защита от горизонтального скролла */
    }

    /* Делаем все кнопки "action" на всю ширину */
    .section-action-button {
        width: 100% !important;
        text-align: center;
        box-sizing: border-box;
    }
}