/* === СБРОС СТИЛЕЙ === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }
body { 
    font-family: 'Roboto', Verdana, sans-serif; 
    font-size: 14px; 
    line-height: 1.6; 
    color: #eee; 
    background: #111 url(/images/bg/header.jpg) no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
}
a { text-decoration: none; color: #f9d471; transition: 0.3s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; border: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* === ШАПКА === */
.site-header { background: rgba(0, 0, 0, 0.85); border-bottom: 2px solid #f9d471; position: relative; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; flex-wrap: wrap; }
.logo img { width: 220px; height: auto; }
.header-contacts { display: flex; align-items: center; gap: 20px; }
.phone { font-size: 1.4rem; font-weight: bold; color: #f9d471; white-space: nowrap; }
.header-icons { display: flex; gap: 10px; }
.header-icons img { width: 24px; height: 24px; opacity: 0.8; }
.header-icons img:hover { opacity: 1; }

/* === НАВИГАЦИЯ === */
.main-nav { background: rgba(30, 30, 30, 0.95); border-bottom: 1px solid #333; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list li { margin: 0; }
.nav-list a { 
    display: block; 
    padding: 15px 20px; 
    color: #fff; 
    font-weight: 500; 
    font-size: 0.95rem; 
    text-transform: uppercase;
    border-right: 1px solid #333; 
}
.nav-list a:hover, .nav-list a.current { background: #f9d471; color: #000; }

/* === СЛАЙДЕРЫ === */
/* === CSS СЛАЙДЕР === */
.features-section { padding: 30px 0; margin-bottom: 30px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.feature-card { 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #333; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.cat_slide { 
    background: #f9d471; 
    color: #000; 
    padding: 12px 15px; 
    font-size: 1rem; 
    text-align: center; 
    font-weight: bold; 
    text-transform: uppercase; 
    margin: 0;
}

/* Контейнер слайдера */
.css-slider {
    position: relative;
    width: 100%;
    height: 220px; /* Высота картинки + подписи */
    overflow: hidden;
    background: #000;
}

/* Общие стили для слайдов */
.css-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Анимация: 3 слайда по 5 секунд = 15 секунд цикл */
    animation: fadeSlider 15s infinite;
}

.css-slider .slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.css-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Подпись */
.css-slider .caption { 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: rgba(0, 0, 0, 0.85);
    color: #f9d471;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}
.css-slider .caption p { margin: 0; padding: 0 10px; }

/* Настройка задержек для каждого слайда */
.css-slider .slide:nth-child(1) { animation-delay: 0s; }
.css-slider .slide:nth-child(2) { animation-delay: 5s; }
.css-slider .slide:nth-child(3) { animation-delay: 10s; }

/* Сама анимация */
@keyframes fadeSlider {
    0% { opacity: 0; z-index: 1; }
    5% { opacity: 1; z-index: 2; }  /* Появление */
    33% { opacity: 1; z-index: 2; } /* Показ */
    38% { opacity: 0; z-index: 1; } /* Исчезновение */
    100% { opacity: 0; z-index: 1; }
}

/* Эффект зума при наведении (опционально) */
.feature-card:hover .css-slider img {
    transform: scale(1.05);
    transition: transform 5s linear;
}
/* === СЕТКА === */
.layout-grid { display: grid; grid-template-columns: 260px 1fr 300px; gap: 30px; padding-bottom: 40px; }
@media (max-width: 992px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .right-sidebar { order: 3; }
    .content-area { order: 1; }
}

/* === МЕНЮ И ВИДЖЕТЫ === */
.menu_block, .widget { background: rgba(255, 255, 255, 0.03); padding: 20px; margin-bottom: 25px; border-radius: 8px; border: 1px solid #222; }
.title { font-size: 1rem; font-weight: bold; margin-bottom: 15px; color: #f9d471; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 8px; }
.menu_block p { margin-bottom: 10px; font-size: 0.9rem; }
.menu_block a { color: #aaa; display: block; padding: 5px 0 5px 15px; position: relative; }
.menu_block a:before { content: "›"; position: absolute; left: 0; color: #f9d471; }
.menu_block a:hover, .menu_block a.current { color: #fff; }

/* === КОНТЕНТ === */
.content-area { background: rgba(255, 255, 255, 0.03); padding: 30px; border-radius: 8px; border: 1px solid #222; }
.speedbar { font-size: 0.85rem; color: #888; margin-bottom: 20px; }
.speedbar a { color: #888; }
.speedbar a:hover { color: #f9d471; }
.page.content h1, .page.content h2, .page.content h3 { font-size: 1.8rem; margin-bottom: 20px; color: #f9d471; line-height: 1.2; }
.page.content p { margin-bottom: 15px; line-height: 1.7; }
.page.content img { border-radius: 4px; margin: 15px 0; border: 1px solid #333; }
.page.content ul { margin-left: 20px; margin-bottom: 15px; }
.page.content li { list-style-type: disc; margin-bottom: 8px; color: #ccc; }

/* === ФОРМЫ === */
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; background: #222; border: 1px solid #444; border-radius: 4px; color: #fff; font-family: inherit; font-size: 0.9rem; }
.form-group input:focus, .form-group textarea:focus { border-color: #f9d471; outline: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { background: #f9d471; color: #000; border: none; padding: 12px 20px; border-radius: 4px; cursor: pointer; width: 100%; font-weight: bold; font-size: 1rem; text-transform: uppercase; transition: 0.3s; }
.btn-submit:hover { background: #fff; }

/* === НОВОСТИ === */
.new { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #333; }
.new:last-child { border-bottom: none; }
.date { font-size: 0.8rem; color: #777; margin-bottom: 5px; }
.title_new a { font-weight: bold; font-size: 1rem; color: #fff; }
.title_new a:hover { color: #f9d471; }
.text_new { font-size: 0.9rem; color: #aaa; margin-top: 5px; }
.more-link { text-align: right; font-size: 0.9rem; margin-top: 10px; }
.more-link a { color: #f9d471; }

/* === ПОДВАЛ === */
.site-footer { background: #000; color: #888; padding: 40px 0 20px; text-align: center; border-top: 2px solid #f9d471; }
.footer-menu { margin-bottom: 20px; }
.footer-menu a { color: #fff; font-size: 0.9rem; margin: 0 5px; }
.footer-menu a:hover { color: #f9d471; }
.footer-info { font-size: 0.85rem; display: flex; flex-direction: column; gap: 15px; align-items: center; }
.counters { display: flex; gap: 10px; justify-content: center; }
.design a { color: #888; }

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: #f9d471; }
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; width: 100%; }
    .main-nav.active { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list a { border-right: none; border-bottom: 1px solid #333; }
    .header-inner { flex-direction: column; gap: 15px; text-align: center; }
    .header-contacts { flex-direction: column; gap: 10px; }
    .content-area { padding: 20px 15px; }
    .page.content h1, .page.content h2 { font-size: 1.4rem; }
}

/* === СТИЛИ ДЛЯ КАПЧИ И ЧЕКБОКСОВ === */
.modern-form { max-width: 600px; }
.captcha-group input[type="text"] { max-width: 200px; margin-top: 10px; }
.checkbox-group { margin-top: 25px; }
.checkbox-group a { color: #f9d471; text-decoration: underline; }

/* === СТИЛИ ДЛЯ МЕССЕНДЖЕРОВ В ШАПКЕ === */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f9d471;
    white-space: nowrap;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Цвета иконок */
.social-links .icon-wa { background-color: #25D366; } /* WhatsApp */
.social-links .icon-tg { background-color: #0088cc; } /* Telegram */
.social-links .icon-mail { background-color: #ffffff; color: #1a2a3a; } /* Почта (белая) */
/* Стили для иконки MAX */
.social-links .icon-max {
    background-color: #fff; /* Или оставьте синий, если у вас белый логотип */
    padding: 6px; /* Отступы внутри круга, чтобы логотип не прилипал */
}

.social-links .icon-max .max-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Логотип впишется в круг, сохраняя пропорции */
    border-radius: 50%; /* На всякий случай скругляем саму картинку */
}
/* Адаптация для мобильных */
@media (max-width: 768px) {
    .header-contacts {
        flex-direction: column;
        gap: 15px;
    }
    .social-links {
        justify-content: center;
    }
}