/*
Theme Name: 
Author URI: https://rollyk.ru/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

#page {
    max-width: 1456px; /* Общая максимальная ширина страницы */
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Стили для шапки */
.site-header {
    background-color: #fff; /* Теперь шапка белая */
    color: #333; /* Основной цвет текста в шапке (для описания сайта и т.п.) */
    padding: 15px 20px;
    border-bottom: 1px solid #eee; /* Легкая граница снизу для отделения от контента */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Легкая тень для объема */
}

.site-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1456px; /* Соответствует общей ширине сайта */
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Логотип */
.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo-link img {
    max-height: 80px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 1.8em;
}

.site-title a {
    color: #333; /* Цвет для текстового логотипа на белом фоне */
    text-decoration: none;
}

.site-description {
    font-size: 0.9em;
    opacity: 0.7; /* Чуть менее заметно на белом */
}

/* --- Навигация (меню): теперь просто черное на белом, без отдельного фона --- */
.main-navigation {
    flex-grow: 1;
    text-align: center;
    background-color: transparent; /* Убираем фон, теперь меню часть шапки */
    border-radius: 0; /* Убираем скругление */
    padding: 0; /* Убираем внутренние отступы, так как шапка уже их имеет */
    margin: 0 20px; /* Отступы от логотипа и переключателя языков остаются */
    box-shadow: none; /* Убираем тень */
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: #333; /* Цвет текста меню на белом фоне */
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    background-color: #f0f0f0; /* Более светлый серый фон при наведении на белой шапке */
    color: #000;
}

/* --- Переключатель языков: теперь текст должен быть темным на белом --- */
.language-switcher {
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 0.9em;
    white-space: nowrap;
}

.language-switcher a {
    color: #333; /* Цвет текста для переключателя языков на белом фоне */
    text-decoration: none;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.language-switcher a:hover {
    border-color: #333; /* Граница при наведении темная */
}

/* Стили для основного контента */
#primary {
    padding: 0px;
    min-height: 400px; /* Чтобы подвал не "подпрыгивал", если мало контента */
}

/* Стили для подвала */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Стили для скрытия "Skip to content" для обычных пользователей */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Когда пользователь фокусируется на "Skip to content" */
.screen-reader-text:focus {
    background-color: #eee;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #333;
    display: block;
    font-size: 0.875em;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Достаточно высокое значение, чтобы быть над всем */
}

.hero-banner {
    width: 100%;
    max-width: 1456px;
    margin: 0 auto;
    background-color: #555; /* Темный фон по умолчанию, если нет изображения */
    /* background-image: url('assets/images/banner-bg.jpg'); <--- УДАЛИТЕ ИЛИ ЗАКОММЕНТИРУЙТЕ ЭТУ СТРОКУ */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* --- Стили для гамбургера --- */
.menu-toggle {
    display: none; /* По умолчанию скрываем кнопку на больших экранах */
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
}

/* Стили для иконки гамбургера (три полоски) */
.menu-toggle-icon {
    display: inline-block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: transform 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

/* --- Медиа-запрос для мобильных устройств --- */
/* Этот код будет работать только на экранах меньше 768px (или другого размера, который вы выберете) */
@media screen and (max-width: 768px) {
    /* Показываем кнопку гамбургера */
    .menu-toggle {
        display: block;
    }
    
    /* Скрываем обычное меню по умолчанию */
    .main-navigation {
        display: none;
        width: 100%;
        order: 3; /* Чтобы меню располагалось под логотипом и кнопкой */
    }

    /* Когда меню активно, показываем его */
    .main-navigation.toggled-on {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column; /* Элементы меню будут отображаться вертикально */
        text-align: left;
        border-top: 1px solid #eee; /* Отделяем меню от шапки */
    }

    .main-navigation li {
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        background-color: #f9f9f9; /* Светлый фон для пунктов меню */
    }
    
    .main-navigation a:hover,
    .main-navigation a:focus {
        background-color: #e9e9e9;
    }
    
    .site-header-container {
        flex-wrap: wrap; /* Позволяем элементам переноситься на новую строку */
    }

    /* Убираем отступ у меню, чтобы оно занимало всю ширину */
    .main-navigation {
        margin: 0;
    }
}