/*
Theme Name: Radiodetal Corporate
Theme URI: https://yoursite.com
Author: Your Name
Version: 2.0
Text Domain: rtelradio
Description: Корпоративная тема в стиле телеком-операторов. Светлый дизайн, оранжевые акценты.
*/

/* ============================================================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   Цветовая гамма адаптирована под светлый корпоративный стиль
   ============================================================================ */
:root {
    --bg-primary: #FFFFFF;        /* Белый фон */
    --bg-secondary: #F2F3F7;      /* Светло-серый фон для секций */
    --bg-card: #FFFFFF;           /* Белые карточки */
    --bg-hover: #F5F5F7;          /* Цвет при наведении */
    --text-primary: #333333;      /* Темно-серый текст для контраста */
    --text-secondary: #666666;    /* Серый текст для описаний */
    --accent: #FF4F12;            /* Фирменный оранжевый (акцент) */
    --accent-hover: #E04510;      /* Оранжевый при наведении */
    --success: #28A745;           /* Зеленый для цен и успеха */
    --border: #E0E0E0;            /* Светлые границы */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Мягкая тень */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Roboto', 'Open Sans', sans-serif; /* Читабельные шрифты */
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

a:hover { 
    color: var(--accent); 
}

/* Контейнер для центрирования контента */
.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ============================================================================
   ШАПКА САЙТА (HEADER)
   Фиксированная, белая, с тенью при скролле
   ============================================================================ */
.site-header {
    background: #FFFFFF;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled { 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.site-logo { 
    font-size: 24px; 
    font-weight: 700; 
    color: var(--accent); 
    letter-spacing: 1px; 
    text-transform: uppercase;
}

.site-logo img { 
    max-height: 40px; 
}

/* Навигация */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover { 
    color: var(--accent); 
}

/* Кнопки контактов в шапке */
.header-contact-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-phone {
    background: var(--accent);
    color: #fff;
}

.btn-phone:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 79, 18, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
}

/* ============================================================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   Светлый баннер с изображением и градиентом
   ============================================================================ */
.hero-banner {
    position: relative;
    height: 600px;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: 80px; /* Отступ под фиксированную шапку */
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

/* Затемнение фона для читаемости текста */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-left: 4%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================================================
   КНОПКИ (BUTTONS)
   Корпоративный стиль кнопок
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.btn-primary { 
    background: var(--accent); 
    color: #fff; 
}

.btn-primary:hover { 
    background: var(--accent-hover); 
}

.btn-whatsapp { 
    background: #25D366; 
    color: #fff; 
}

.btn-outline { 
    background: transparent; 
    color: var(--accent); 
    border: 2px solid var(--accent); 
}

.btn-outline:hover { 
    background: var(--accent); 
    color: #fff; 
}

.contact-buttons { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

/* ============================================================================
   СЕТКА КАТЕГОРИЙ (3 КОЛОНКИ)
   Карточки с тенью и эффектом увеличения
   ============================================================================ */
.category-grid-section {
    margin: 60px 0;
    padding: 0 4%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.category-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-grid-item:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* ============================================================================
   ФИЛЬТРЫ И ПОИСК
   Светлый блок с полями ввода
   ============================================================================ */
.modern-filter-section {
    margin: 60px 0;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.filter-header {
    text-align: center;
    margin-bottom: 30px;
}

.filter-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin-bottom: 10px;
}

.modern-filter-form .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-field label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.3s;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 79, 18, 0.1);
}

.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================================================
   КАРТОЧКИ И СПИСКИ (ROWS)
   Горизонтальный скролл как в каталогах
   ============================================================================ */
.section-row {
    margin: 60px 0;
    position: relative;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-left: 4%;
    border-left: 4px solid var(--accent);
}

.row-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 4%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
}

.row-card {
    flex: 0 0 220px;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid var(--border);
}

.row-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.row-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.row-card-info {
    padding: 15px;
}

.row-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-card-meta {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    margin-top: 5px;
}

/* ============================================================================
   ДЕТАЛЬНАЯ СТРАНИЦА (SINGLE)
   Оформление карточки товара/услуги
   ============================================================================ */
.detail-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.detail-poster {
    flex: 0 0 300px;
    max-width: 300px;
}

.detail-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.detail-info {
    flex: 1;
    min-width: 300px;
}

.detail-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.detail-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.detail-slogan {
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.detail-meta {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.detail-price {
    font-size: 32px;
    color: var(--success);
    font-weight: 700;
    margin: 20px 0;
    background: #E8F5E9;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
}

/* ============================================================================
   КОНТЕНТНЫЕ БЛОКИ
   ============================================================================ */
.content-block {
    margin: 50px 0;
    padding: 0 4%;
}

.content-block h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
    color: var(--text-primary);
}

.content-block p,
.content-block div {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* ============================================================================
   ТАБЛИЦЫ (ПРАЙС-ЛИСТ)
   Чистый корпоративный стиль таблиц
   ============================================================================ */
.metal-table, .price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.metal-table th,
.metal-table td,
.price-table th,
.price-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.metal-table th,
.price-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.metal-table tr:hover, 
.price-table tr:hover { 
    background: var(--bg-hover); 
}

.price-buyer { 
    color: var(--success); 
    font-weight: 700; 
    font-size: 18px; 
}

/* ============================================================================
   ДОПОЛНИТЕЛЬНЫЕ БЛОКИ (15 БЛОКОВ)
   Сетка информационных карточек
   ============================================================================ */
.extra-info-section {
    margin: 60px 0;
    padding: 0 4%;
}

.extra-info-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.extra-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.extra-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Оранжевая полоска слева */
.extra-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.extra-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.extra-block:hover::before {
    width: 6px;
}

.extra-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.extra-block-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 79, 18, 0.1);
    color: var(--accent);
    border-radius: 8px;
    flex-shrink: 0;
}

.extra-block-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.extra-block-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================================================
   ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS)
   ============================================================================ */
.breadcrumbs {
    padding: 20px 4%;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 6px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumbs .separator {
    color: var(--accent);
    margin: 0 8px;
}

/* ============================================================================
   ПОДВАЛ (FOOTER)
   Темный подвал для контраста
   ============================================================================ */
.site-footer {
    background: #222222;
    padding: 60px 0 30px;
    margin-top: 80px;
    color: #AAAAAA;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: #FFFFFF;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 12px;
}

.footer-grid a {
    color: #AAAAAA;
    font-size: 14px;
}

.footer-grid a:hover { 
    color: var(--accent); 
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666666;
    font-size: 13px;
}

/* ============================================================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   ============================================================================ */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 { 
        font-size: 36px; 
    }
}

@media (max-width: 768px) {
    .hero-content h1 { 
        font-size: 28px; 
    }
    .detail-hero { 
        flex-direction: column; 
    }
    .detail-poster { 
        max-width: 100%; 
    }
    .detail-info h1 { 
        font-size: 28px; 
    }
    .row-card { 
        flex: 0 0 160px; 
    }
    .row-card img { 
        height: 120px; 
    }
    .contact-buttons { 
        flex-direction: column; 
        width: 100%;
    }
    .btn { 
        width: 100%; 
        justify-content: center; 
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    /* Мобильное меню */
    .menu-toggle {
        display: flex;
    }
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .main-navigation.active {
        right: 0;
    }
    .main-menu {
        flex-direction: column;
        gap: 15px;
    }
    .header-contact-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
}

/* Кнопка гамбургер */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--accent);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--accent);
}