/* ===== EKSOLUTIONS — PREMIUM STYLE (CLEAN) ===== */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg-dark: #0a1122;
    --bg-card: #111c33;
    --bg-card-hover: #1a2744;
    --border-color: rgba(245, 182, 66, 0.2);
    --border-strong: rgba(245, 182, 66, 0.35);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;

    --accent-gold: #f5b642;
    --accent-gold-light: #ffd97a;
    --accent-gold-dark: #c98a1e;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;

    --gradient-primary: linear-gradient(135deg, #f5b642, #c98a1e);
    --gradient-hover: linear-gradient(135deg, #ffd97a, #f5b642);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
    --gradient-bg: linear-gradient(165deg, #0a1122 0%, #111c33 55%, #050914 100%);
}

/* ===== ГЛОБАЛЬНЫЙ ФОН ===== */
body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}
main { flex: 1; }

/* Технологичная сетка на фоне */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 182, 66, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 182, 66, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Едва заметный паттерн из кода */
body::after {
    content: 'const express = require("express"); app.get("/api"); SELECT * FROM inventory; <div class="warehouse"></div> class InventoryManager { }';
    position: fixed;
    inset: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 2;
    color: var(--accent-gold);
    opacity: 0.02;
    word-break: break-all;
    padding: 20px;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* ===== НАВБАР ===== */
.main-navbar {
    background: rgba(10, 17, 34, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 12px 0;
}

.navbar-brand.business {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 5px 10px;
}

.brand-hex-logo {
    position: relative;
    width: 46px; height: 46px;
    background: linear-gradient(145deg, var(--accent-gold), var(--accent-gold-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(245, 182, 66, 0.3);
    flex-shrink: 0;
}
.brand-hex-logo::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
}
.brand-hex-logo span {
    position: relative;
    z-index: 2;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Arial Black', sans-serif;
}

/* ===== НОВЫЙ ЛОГОТИП ===== */
.logo-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Декоративные уголки */
.logo-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #f5b642;
    z-index: 3;
    opacity: 0.9;
}

.logo-corner.top-left {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
    border-radius: 3px 0 0 0;
}

.logo-corner.bottom-right {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 3px 0;
}

/* Шестиугольник */
.brand-hex-logo {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Внешняя золотая обводка */
.brand-hex-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #f5b642;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Внутренняя темная часть */
.brand-hex-logo::after {
    content: '';
    position: absolute;
    inset: 1.5px; /* Толщина внешней обводки */
    background: linear-gradient(145deg, #1a2744, #0a1122);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8); /* Внутренняя тень для объема */
}

/* Буквы EK */
.brand-hex-logo span {
    position: relative;
    z-index: 2;
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    /* Градиент для букв (белый сверху, золотой снизу) */
    background: linear-gradient(180deg, #ffffff 0%, #f5b642 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Тень для объема букв */
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
    margin-left: -1px; /* Небольшая коррекция положения */
}

.brand-block { display: flex; flex-direction: column; }
.brand-main { display: flex; align-items: baseline; gap: 5px; }
.brand-solutions {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.slogan-small {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    letter-spacing: 1px;
}
.slogan-small i {
    color: var(--accent-gold);
    font-style: normal;
    margin-right: 4px;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    padding: 8px 16px !important;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
}
.navbar-nav .nav-link:hover {
    background: rgba(245, 182, 66, 0.1);
    color: var(--accent-gold) !important;
    transform: translateY(-1px);
}
.navbar-nav .nav-link i {
    color: var(--accent-gold);
    margin-right: 6px;
}

.dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6) !important;
}
.dropdown-item {
    color: var(--text-secondary) !important;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: rgba(245, 182, 66, 0.1) !important;
    color: var(--accent-gold) !important;
    padding-left: 25px !important;
}

/* ===== HERO (главная) ===== */
.hero-section .bg-primary {
    background: rgba(17, 28, 51, 0.6) !important;
    border: 1px solid var(--border-color);
    border-radius: 24px !important;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.hero-section h1 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    background: linear-gradient(135deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(245, 182, 66, 0.2);
}
.hero-section .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
}
.hero-section .btn-light {
    background: rgba(245, 182, 66, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s;
}
.hero-section .btn-light:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 182, 66, 0.3);
}
.hero-section .btn-outline-light {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s;
}
.hero-section .btn-outline-light:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    transform: translateY(-2px);
}
.hero-section .col-lg-4 .text-center {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
}
.hero-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

/* ===== КАРТОЧКИ МАТЕРИАЛОВ ===== */
.news-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    border-color: var(--accent-gold) !important;
}
.news-card .image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}
.news-card .image-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.news-card:hover .image-container img { transform: scale(1.1); }
.news-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}
.news-card:hover .card-title { color: var(--accent-gold); }
.news-card .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.badge-container .badge.bg-light {
    background: rgba(245, 182, 66, 0.1) !important;
    color: var(--accent-gold) !important;
    border: 1px solid var(--border-color) !important;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}
.badge-container .badge.bg-warning {
    background: var(--accent-gold) !important;
    color: var(--bg-dark) !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.price-badge .badge-price {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 182, 66, 0.4);
}
.price-badge .badge-free {
    background: var(--accent-green);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
}

.news-card .btn-outline-primary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-top: auto;
}
.news-card .btn-outline-primary:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.meta-info {
    border-top: 1px solid rgba(245, 182, 66, 0.1);
    border-bottom: 1px solid rgba(245, 182, 66, 0.1);
    padding: 12px 0;
    margin-bottom: 15px;
}
.author-info small, .stats small { color: var(--text-secondary) !important; }
.author-info i, .stats i { color: var(--accent-gold); margin-right: 4px; }

/* ===== ИНФО-БЛОКИ ===== */
.info-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    transition: all 0.4s;
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}
.info-card i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.info-card h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px !important;
    padding: 10px 16px;
    transition: all 0.3s;
    margin: 0 2px;
}
.pagination .page-link:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
}
.pagination .page-item.active .page-link {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 700;
}
.pagination .page-item.disabled .page-link {
    background: rgba(255,255,255,0.05);
    border-color: transparent;
    color: #4a5568;
}

/* ===== ФУТЕР ===== */
.footer-modern {
    background: rgba(10, 17, 34, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}
.footer-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.footer-hex {
    position: relative;
    width: 44px; height: 44px;
    background: linear-gradient(145deg, var(--accent-gold), var(--accent-gold-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
}
.footer-hex::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.footer-hex span {
    position: relative;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Arial Black', sans-serif;
}
.footer-brand-title { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.footer-brand-subtitle { font-size: 0.8rem; color: var(--text-secondary); }
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.footer-copyright {
    color: #64748b;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}
.footer-copyright::before {
    content: '// ';
    color: var(--accent-gold);
    font-weight: 600;
}
.footer-copyright i { color: var(--accent-gold); }

.footer-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover { color: var(--accent-gold); transform: translateX(4px); }
.footer-links a i { font-size: 0.7rem; color: var(--accent-gold); }

.footer-contacts { margin-bottom: 1rem; }
.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.footer-contact i { color: var(--accent-gold); }
.footer-legal {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.7;
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 182, 66, 0.1);
}
/* ===== ЛОГОТИП В ФУТЕРЕ ===== */
.footer-logo-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Декоративные уголки */
.footer-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.5px solid #f5b642;
    z-index: 3;
    opacity: 0.8;
}
.footer-corner.top-left {
    top: -3px; left: -3px;
    border-right: none; border-bottom: none;
    border-radius: 2px 0 0 0;
}
.footer-corner.bottom-right {
    bottom: -3px; right: -3px;
    border-left: none; border-top: none;
    border-radius: 0 0 2px 0;
}

/* Шестиугольник */
.footer-hex {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Внешняя золотая обводка */
.footer-hex::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #f5b642;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Внутренняя темная часть */
.footer-hex::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: linear-gradient(145deg, #1a2744, #0a1122);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
}

/* Буквы EK */
.footer-hex span {
    position: relative;
    z-index: 2;
    font-family: 'Arial Black', sans-serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #f5b642 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* ===== РЕКВИЗИТЫ В ФУТЕРЕ ===== */
.footer-legal-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.legal-item i {
    color: var(--accent-gold);
    font-size: 0.9rem;
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-item strong {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Убираем старую обертку с фоном, если она мешает */
.footer-legal-modern::before {
    display: none;
}

/* Адаптивность */
@media (max-width: 991px) {
    .footer-legal-modern {
        margin-top: 1rem;
    }
}
/* ===== ОБЩИЕ ЭЛЕМЕНТЫ ===== */
.section-title {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i { color: var(--accent-gold); font-size: 1.3rem; }

.hero-icon-hex {
    width: 80px; height: 80px;
    background: linear-gradient(145deg, var(--accent-gold), var(--accent-gold-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 0 25px rgba(245, 182, 66, 0.3);
}
.hero-icon-hex i { font-size: 2.5rem; color: var(--bg-dark); }

.featured-nav .btn {
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    background: transparent;
    transition: all 0.3s;
}
.featured-nav .btn:hover { background: rgba(245, 182, 66, 0.1); }

.featured-card {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    border-radius: 16px !important;
}
.additional-card, .quick-links-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: all 0.3s;
}
.additional-card:hover, .quick-links-card:hover { border-color: rgba(245, 182, 66, 0.4) !important; }
.additional-card .card-title, .quick-links-card .card-title { color: var(--text-primary); }
.additional-card .card-title i, .quick-links-card .card-title i { color: var(--accent-gold); }

.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: var(--bg-dark) !important;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 182, 66, 0.3);
}

.price-filter select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    cursor: pointer;
}
.price-filter select:hover { border-color: var(--accent-gold); }

.empty-state i { color: rgba(245, 182, 66, 0.2); }
.empty-state h4 { color: var(--text-primary); }
.empty-state .text-muted { color: var(--text-secondary) !important; }

/* ===== ГЛАВНАЯ (home.php) ===== */
.home-hero { position: relative; padding: 4rem 0 5rem; overflow: hidden; }
.hero-bg-glow {
    position: absolute;
    top: -50%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(245,182,66,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero-tagline {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,182,66,0.08);
    border: 1px solid var(--border-strong);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
.home-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-gold {
    background: linear-gradient(135deg, #f5b642, #ffd97a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
}
.home-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(245,182,66,0.3);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,182,66,0.5);
    color: var(--bg-dark);
}
.btn-hero-secondary {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(245,182,66,0.05);
    transform: translateY(-2px);
}

.hero-stats-card {
    background: linear-gradient(135deg, rgba(17,28,51,0.9), rgba(26,39,68,0.9));
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(245,182,66,0.2);
}
.stats-icon-hex {
    width: 64px; height: 64px;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--bg-dark);
    margin-bottom: 1rem;
    box-shadow: 0 0 30px rgba(245,182,66,0.4);
}
.stats-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}
.stats-number span { font-size: 2rem; }
.stats-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}
.stats-divider { height: 1px; background: var(--border-color); margin: 1.5rem 0; }
.stats-mini { display: flex; justify-content: space-around; }
.stats-mini > div { display: flex; flex-direction: column; }
.stats-mini strong { color: var(--accent-gold); font-size: 1.2rem; font-weight: 700; }
.stats-mini span { color: var(--text-secondary); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-title-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}
.title-icon {
    width: 36px; height: 36px;
    background: rgba(245,182,66,0.1);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent-gold);
    font-size: 1rem;
}

/* Рекомендуемые */
.featured-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}
.featured-scroll::-webkit-scrollbar { height: 6px; }
.featured-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
.featured-scroll::-webkit-scrollbar-thumb { background: var(--accent-gold-dark); border-radius: 3px; }
.featured-item {
    flex: 0 0 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s;
    scroll-snap-align: start;
}
.featured-item:hover {
    border-color: var(--border-strong);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
}
.featured-img { position: relative; height: 180px; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.featured-item:hover .featured-img img { transform: scale(1.08); }
.featured-img-placeholder {
    height: 100%;
    background: var(--bg-card-hover);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
}
.featured-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex; align-items: center; gap: 5px;
}
.featured-body { padding: 1.25rem; }
.featured-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em;
}
.featured-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-meta { display: flex; gap: 15px; font-size: 0.8rem; color: var(--text-secondary); }
.featured-meta span { display: flex; align-items: center; gap: 5px; }
.featured-meta i { color: var(--accent-gold); }

/* Фильтр */
.catalog-filter {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 12px;
}
.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    font-weight: 600;
}

/* Каталог */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.product-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}
.product-card-modern:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -15px rgba(0,0,0,0.7);
}
.product-img-wrap { position: relative; height: 200px; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card-modern:hover .product-img-wrap img { transform: scale(1.08); }
.product-img-placeholder {
    height: 100%;
    background: var(--bg-card-hover);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 2.5rem;
}
.product-price-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex; align-items: center; gap: 5px;
    backdrop-filter: blur(10px);
}
.product-price-badge.paid { background: var(--gradient-primary); color: var(--bg-dark); }
.product-price-badge.free { background: rgba(16,185,129,0.9); color: #fff; }
.product-featured-badge {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: rgba(10,17,34,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-gold);
    font-size: 0.85rem;
}
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-meta-row { margin-bottom: 0.5rem; }
.product-date { font-size: 0.75rem; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.product-date i { color: var(--accent-gold); }
.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}
.product-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.product-footer i { color: var(--accent-gold); }
.product-cta {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    background: rgba(245,182,66,0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.85rem;
}
.product-card-modern:hover .product-cta {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-dark);
}
.cta-text { display: flex; align-items: center; gap: 6px; }

.info-block-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: all 0.4s;
}
.info-block-modern:hover {
    border-color: var(--border-strong);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
}
.info-block-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}
.info-block-icon.excel { background: rgba(16,185,129,0.12); color: #10b981; }
.info-block-icon.csharp { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.info-block-icon.support { background: rgba(245,182,66,0.12); color: var(--accent-gold); }
.info-block-modern h4 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.info-block-modern p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin: 0; }

.pagination-modern { display: flex; justify-content: center; margin-top: 2rem; }
.pagination-list { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.page-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(245,182,66,0.05); }
.page-btn.active { background: var(--gradient-primary); border-color: transparent; color: var(--bg-dark); font-weight: 700; }
.page-btn.disabled { opacity: 0.3; pointer-events: none; }
.page-dots { display: inline-flex; align-items: center; padding: 0 8px; color: var(--text-secondary); }

.empty-state-modern {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: 20px;
}
.empty-state-modern i { font-size: 4rem; color: var(--accent-gold); opacity: 0.3; margin-bottom: 1rem; display: block; }
.empty-state-modern h3 { color: var(--text-primary); font-weight: 700; margin-bottom: 0.5rem; }
.empty-state-modern p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ===== СТАТЬЯ (news.php) ===== */
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: rgba(245,182,66,0.08); z-index: 9999; }
.reading-progress-bar { height: 100%; background: var(--gradient-primary); width: 0%; transition: width 0.1s; }

.floating-actions { position: fixed; right: 20px; bottom: 80px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(17,28,51,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
    position: relative;
}
.float-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(-3px); }
.progress-ring { position: absolute; top: 0; left: 0; width: 50px; height: 50px; transform: rotate(-90deg); pointer-events: none; }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 2; }
.ring-progress { fill: none; stroke: var(--accent-gold); stroke-width: 2; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset 0.1s; stroke-linecap: round; }

.minimal-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.minimal-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: 0.2s; }
.minimal-breadcrumb a:hover { color: var(--accent-gold); }
.minimal-breadcrumb i { color: var(--text-secondary); font-size: 0.7rem; }
.minimal-breadcrumb span { color: var(--text-primary); }

.modern-article { display: flex; flex-direction: column; gap: 2rem; }
.hero-tags { display: flex; gap: 8px; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tag-premium { background: var(--gradient-primary); color: var(--bg-dark); }
.tag-free { background: var(--gradient-blue); color: #fff; }
.tag-featured { background: rgba(245,182,66,0.1); border: 1px solid var(--border-strong); color: var(--accent-gold); }
.hero-main-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-author-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.author-mini { display: flex; align-items: center; gap: 12px; }
.author-mini-img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent-gold); }
.author-mini-name { display: block; font-weight: 600; font-size: 0.95rem; }
.author-mini-date { color: var(--text-secondary); font-size: 0.8rem; }
.hero-stats { display: flex; gap: 8px; }
.stat-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 6px;
}
.stat-pill i { color: var(--accent-gold); }
.hero-image-large {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.hero-image-large img { width: 100%; max-height: 500px; object-fit: cover; display: block; transition: transform 0.8s ease; }
.hero-image-large:hover img { transform: scale(1.02); }

.modern-lead {
    background: linear-gradient(135deg, rgba(245,182,66,0.06), rgba(59,130,246,0.03));
    border-left: 4px solid var(--accent-gold);
    padding: 1.75rem 2rem;
    border-radius: 0 16px 16px 0;
    font-size: 1.2rem;
    line-height: 1.7;
    position: relative;
}
.modern-lead > i {
    position: absolute;
    top: -12px; left: 20px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}

.modern-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); }
.modern-content h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.modern-content h3 { color: var(--text-primary); font-size: 1.35rem; margin: 1.5rem 0 1rem; }
.modern-content p { margin-bottom: 1.5rem; }
.modern-content a { color: var(--accent-blue); text-decoration: none; }
.modern-content a:hover { text-decoration: underline; }

.modern-gallery {
    background: rgba(17,28,51,0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
}
.gallery-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.gallery-header h3 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0; }
.gallery-header h3 i { color: var(--accent-gold); }
.gallery-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 100px;
}
.gallery-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.gallery-scroll::-webkit-scrollbar { height: 4px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--accent-gold-dark); border-radius: 2px; }
.gallery-thumb {
    flex: 0 0 auto;
    width: 160px; height: 160px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-thumb:hover { border-color: var(--accent-gold); }
.gallery-thumb:hover img { transform: scale(1.1); }
.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,17,34,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--accent-gold);
    font-size: 1.5rem;
}
.gallery-thumb:hover .thumb-overlay { opacity: 1; }

/* Product showcase */
.product-showcase {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(17,28,51,0.9), rgba(26,39,68,0.9));
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 60px -20px rgba(245,182,66,0.2);
}
.product-glow {
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,182,66,0.15), transparent 70%);
    pointer-events: none;
}
.product-content { position: relative; z-index: 1; padding: 2rem; }
.product-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.product-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(245,182,66,0.1);
    border: 1px solid var(--border-strong);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}
.product-price-tag { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 2.2rem; font-weight: 800; color: var(--accent-gold); line-height: 1; }
.price-currency { font-size: 1.2rem; color: var(--accent-gold); font-weight: 600; }

.product-tabs { display: flex; gap: 4px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 12px; margin-bottom: 1.5rem; }
.product-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.product-tab.active { background: var(--gradient-primary); color: var(--bg-dark); }
.product-panel { display: none; }
.product-panel.active { display: block; }

.product-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.25rem; }
.product-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 1.5rem; }
.p-feature { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.p-feature i { color: var(--accent-gold); }
.product-features-large { grid-template-columns: repeat(2, 1fr); }
.p-feature-large {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}
.p-feature-large i { color: var(--accent-green); }

.product-file {
    display: flex; align-items: center; gap: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1rem;
}
.file-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(245,182,66,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-gold);
    font-size: 1.2rem;
}
.file-name { display: block; font-weight: 500; font-size: 0.9rem; color: var(--text-primary); word-break: break-all; }
.file-size { display: block; font-size: 0.75rem; color: var(--text-secondary); }

.btn-product {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-product-gold { background: var(--gradient-primary); color: var(--bg-dark); box-shadow: 0 4px 12px rgba(245,182,66,0.3); }
.btn-product-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,182,66,0.5); color: var(--bg-dark); }
.btn-product-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--accent-gold); }
.btn-product-outline:hover { background: rgba(245,182,66,0.1); color: var(--accent-gold); }
.product-trust {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.product-trust i { color: var(--accent-green); }
.product-offer { text-align: center; font-size: 0.75rem; color: var(--text-secondary); margin-top: 1rem; line-height: 1.5; }
.product-offer a { color: var(--accent-blue); text-decoration: none; }
.product-offer a:hover { text-decoration: underline; }
.product-offer .text-warning { color: #f59e0b !important; }
.product-trust-row {
    display: flex; justify-content: space-around;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.product-trust-row span { display: flex; align-items: center; gap: 5px; }
.product-trust-row i { color: var(--accent-gold); }

.free-product-card {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(17,28,51,0.9));
    border: 1px solid rgba(59,130,246,0.3);
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}
.free-glow {
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
}
.free-content { position: relative; z-index: 1; }
.free-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.free-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.free-content p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.modern-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.action-pill:hover { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(245,182,66,0.05); transform: translateY(-2px); }
.action-dropdown { position: relative; }
.share-menu-modern {
    display: none;
    position: absolute;
    bottom: 100%; left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 100;
}
.share-menu-modern.show { display: block; }
.share-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.share-link:hover { background: rgba(255,255,255,0.05); color: var(--accent-gold); }
.share-sep { height: 1px; background: var(--border-color); margin: 5px 0; }

/* Сайдбар */
.modern-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; }
.widget-title {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.02);
}
.widget-title i { color: var(--accent-gold); }
.widget-body { padding: 1.25rem; }

.reading-widget { padding: 1rem 1.25rem; }
.reading-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.reading-info strong { color: var(--accent-gold); font-size: 1rem; }
.reading-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.reading-bar-fill { height: 100%; background: var(--gradient-primary); width: 0%; transition: width 0.1s; border-radius: 3px; }

.similar-card {
    display: flex;
    gap: 12px;
    padding: 12px 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
.similar-card:last-child { border-bottom: none; }
.similar-card:hover { background: rgba(255,255,255,0.03); }
.similar-img-wrap {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
}
.similar-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.similar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.similar-name {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.similar-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--text-secondary); }
.similar-badge { background: var(--gradient-primary); color: var(--bg-dark); padding: 2px 6px; border-radius: 4px; font-weight: 700; }

.ad-modern {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: 0.3s;
}
.ad-modern:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.ad-modern i { display: block; font-size: 1.5rem; margin-bottom: 8px; }

.sticky-buy-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(10,17,34,0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-strong);
    padding: 12px 24px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s;
    gap: 15px;
}
.sticky-buy-bar.show { display: flex; transform: translateY(0); }
.sticky-info { display: flex; flex-direction: column; }
.sticky-title { font-size: 0.85rem; color: var(--text-secondary); }
.sticky-price { font-size: 1.2rem; font-weight: 800; color: var(--accent-gold); }

.image-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(5,10,20,0.97);
    z-index: 10000;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s;
    align-items: center;
    justify-content: center;
}
.image-modal.show { display: flex; opacity: 1; }
.image-modal-content { max-width: 92%; max-height: 92%; }
.image-modal-content img {
    max-width: 100%; max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.image-modal-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.7;
    transition: 0.3s;
}
.image-modal-close:hover { opacity: 1; transform: rotate(90deg); }
.image-modal-caption {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
    font-size: 0.9rem;
}

/* ===== СПИННЕР ===== */
.spinner-border.text-warning { color: var(--accent-gold) !important; }

/* ===== АДАПТИВ ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-card);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }
    .home-hero { padding: 3rem 0; }
    .home-hero-title { font-size: 2.5rem; }
    .hero-stats-card { margin-top: 2rem; }
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section .bg-primary { padding: 30px !important; }
    .home-hero-title { font-size: 2rem; letter-spacing: -1px; }
    .home-hero-subtitle { font-size: 1rem; }
    .home-hero-actions { flex-direction: column; }
    .home-hero-actions .btn-hero-primary,
    .home-hero-actions .btn-hero-secondary { width: 100%; justify-content: center; }
    .stats-number { font-size: 3rem; }
    .section-title-modern { font-size: 1.2rem; }
    .catalog-filter { width: 100%; }
    .filter-btn { flex: 1; padding: 8px 10px; font-size: 0.8rem; }
    .featured-item { flex: 0 0 280px; }
    .hero-main-title { font-size: 2rem; }
    .modern-article { gap: 1.5rem; }
    .product-content { padding: 1.5rem; }
    .product-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .product-features-large { grid-template-columns: 1fr; }
    .modern-actions { flex-direction: column; }
    .action-pill { width: 100%; justify-content: center; }
    .share-menu-modern { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; margin: 0; border-radius: 16px 16px 0 0; }
    .modern-sidebar { position: static; }
    .sticky-buy-bar { flex-direction: column; gap: 10px; }
    .sticky-buy-bar .btn-product { width: 100%; }
    .floating-actions { bottom: 120px; }
    .gallery-thumb { width: 140px; height: 140px; }
    .footer-modern { padding: 2rem 0 1rem; }
}