/*
Theme Name: Radiomarket
Theme URI: https://radiomarket.ru
Author: Radiomarket Team
Version: 1.0
Text Domain: radiomarket
Description: Современная тема для скупки радиодеталей и драгметаллов
*/

/* ============================================================================
   CSS ПЕРЕМЕННЫЕ - НОВАЯ ЦВЕТОВАЯ СХЕМА
   ============================================================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0891b2;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   ШАПКА САЙТА - СОВРЕМЕННЫЙ ДИЗАЙН
   ============================================================================ */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

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

.site-logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.site-logo a {
    color: var(--primary-color);
}

/* Навигация */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.main-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-hover);
}

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

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-phone {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* Гамбургер меню для мобильных */
.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 ease;
    border-radius: 2px;
}

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

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

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

/* ============================================================================
   HERO БАННЕР - СОВРЕМЕННЫЙ ГРАДИЕНТ
   ============================================================================ */
.hero-banner {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    margin-top: 80px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 80px 20px;
    color: #fff;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

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

/* ============================================================================
   КНОПКИ - ОБЩИЕ СТИЛИ
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

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

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

.btn-search {
    background: linear-gradient(135deg, var(--secondary-color), #0e7490);
    color: #fff;
    padding: 16px 48px;
    font-size: 17px;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
    color: #fff;
}

/* ============================================================================
   СЕТКА КАТЕГОРИЙ - 3 КОЛОНКИ
   ============================================================================ */
.category-grid-section {
    margin: 80px 0;
    padding: 0;
}

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

.category-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: var(--shadow-md);
}

.category-grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

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

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

.category-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   СОВРЕМЕННЫЙ ФИЛЬТР ПОИСКА
   ============================================================================ */
.modern-filter-section {
    margin: 80px 0;
    padding: 50px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.filter-header h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.filter-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

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

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

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filter-field select {
    cursor: pointer;
}

.filter-submit {
    text-align: center;
    margin-top: 10px;
}

/* ============================================================================
   ГОРИЗОНТАЛЬНЫЕ СЕКЦИИ (NETFLIX ROWS)
   ============================================================================ */
.section-row {
    margin: 80px 0;
    position: relative;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-left: 20px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.row-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 20px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-hover);
}

.row-scroller::-webkit-scrollbar {
    height: 8px;
}

.row-scroller::-webkit-scrollbar-track {
    background: var(--bg-hover);
    border-radius: 4px;
}

.row-scroller::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.row-card {
    flex: 0 0 220px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.row-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

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

.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(--text-secondary);
    margin-top: 8px;
}

/* ============================================================================
   ДЕТАЛЬНАЯ СТРАНИЦА (HERO С ПОСТЕРОМ)
   ============================================================================ */
.detail-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-xl);
    margin: 40px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.detail-poster img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

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

.detail-info h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.detail-slogan {
    font-size: 17px;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 24px;
    font-weight: 500;
}

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

.detail-price {
    font-size: 32px;
    color: var(--success-color);
    font-weight: 800;
    margin: 24px 0;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* ============================================================================
   КОНТЕНТ БЛОКИ
   ============================================================================ */
.content-block {
    margin: 60px 0;
    padding: 0 20px;
}

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

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

/* ============================================================================
   ТАБЛИЦА ДРАГМЕТАЛЛОВ
   ============================================================================ */
.metal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.metal-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

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

.metal-table tr:last-child td {
    border-bottom: none;
}

.price-exchange {
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* ============================================================================
   ДОПОЛНИТЕЛЬНЫЕ ИНФОРМАЦИОННЫЕ БЛОКИ (15 БЛОКОВ)
   ============================================================================ */
.extra-info-section {
    margin: 80px 0;
    padding: 0 20px;
}

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

.extra-info-section > p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 16px;
    padding-left: 20px;
}

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

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

.extra-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.extra-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

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

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

.extra-block-icon {
    font-size: 26px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(8, 145, 178, 0.1));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

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

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

.extra-block-content p {
    margin: 0 0 16px;
}

.extra-block-content p:last-child {
    margin-bottom: 0;
}

.extra-block-content ul,
.extra-block-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.extra-block-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.extra-block-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================================================
   ФИНАЛЬНЫЙ БАННЕР
   ============================================================================ */
.final-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 40px;
    text-align: center;
    margin: 80px 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.final-banner h2 {
    font-size: 40px;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 800;
}

.final-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-size: 19px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-banner .contact-buttons {
    justify-content: center;
}

/* ============================================================================
   ПОДВАЛ САЙТА
   ============================================================================ */
.site-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 70px 0 35px;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

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

.footer-grid h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 700;
}

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

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

.footer-grid a {
    color: var(--text-light);
    font-size: 15px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================================ */
.breadcrumbs {
    padding: 25px 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

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

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

.breadcrumbs .separator {
    color: var(--primary-color);
    margin: 0 10px;
}

/* ============================================================================
   АРХИВ И ПОИСК
   ============================================================================ */
.archive-header,
.search-header {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-xl);
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.archive-title {
    color: var(--text-primary);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 18px;
}

.archive-description {
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 800px;
    font-size: 17px;
}

/* Сетка записей */
.archive-grid,
.search-results {
    margin: 60px 0;
    padding: 0 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: block;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.card-title {
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px;
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.card-price {
    color: var(--success-color);
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
}

/* ============================================================================
   ПАГИНАЦИЯ
   ============================================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 50px 0;
    padding: 0 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: #fff;
}

/* ============================================================================
   ПРАЙС-ЛИСТ ТАБЛИЦА
   ============================================================================ */
.price-list-section {
    margin: 60px 0;
    padding: 0 20px;
}

.price-category {
    margin-bottom: 60px;
}

.price-category h3 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.price-subtype {
    margin-bottom: 35px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.price-subtype h4 {
    color: var(--primary-color);
    font-size: 19px;
    font-weight: 700;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(8, 145, 178, 0.05));
}

.price-table,
.price-table-edit {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

.price-table th,
.price-table td,
.price-table-edit th,
.price-table-edit td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.price-table th {
    background: var(--bg-hover);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-table td {
    color: var(--text-primary);
}

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--bg-white);
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: var(--shadow-xl);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .header-contact-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px solid var(--border-color);
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 34px;
    }
    
    .hero-content p {
        font-size: 17px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-hero {
        flex-direction: column;
    }
    
    .detail-poster {
        max-width: 100%;
    }
    
    .detail-info h1 {
        font-size: 30px;
    }
    
    .row-card {
        flex: 0 0 170px;
    }
    
    .row-card img {
        height: 240px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .extra-info-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-filter-section {
        padding: 30px 20px;
    }
    
    .final-banner {
        padding: 50px 20px;
    }
    
    .final-banner h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-banner {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .row-card {
        flex: 0 0 150px;
    }
}

/* ============================================================================
   УТИЛИТЫ
   ============================================================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}