:root {
    --gold: #ffb703;
    --gold-hover: #fb8500;
    --bg-black: #0b0b0b;
    --card-gray: #141414;
    --border-gray: #222222;
    --text-white: #ffffff;
    --text-muted: #aaaaaa;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
    /* Чтобы подвал всегда прижимался к низу */
}

/* --- НАВБАР --- */
nav {
    background-color: #000000;
    border-bottom: 2px solid var(--gold);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav .logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-white);
}

nav .logo span {
    color: var(--gold);
}

nav .links {
    display: flex;
    gap: 25px;
}

nav .links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.2s;
}

nav .links a:hover {
    color: var(--gold);
}

/* --- ГЛАВНАЯ СТРАНИЦА --- */
.welcome-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.welcome-text {
    flex: 1;
}

.welcome-text h1 {
    font-size: 42px;
    margin-top: 0;
    color: var(--gold);
}

.welcome-media {
    flex: 1;
}

.live-monitoring {
    background: var(--card-gray);
    border: 1px solid var(--border-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.ip-badge {
    background: #000;
    border: 1px solid var(--gold);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: var(--gold);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-box {
    background: var(--card-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 25px;
    transition: 0.3s;
}

.feature-box:hover {
    border-color: var(--gold);
}

/* --- ДВУХПАНЕЛЬНЫЙ МАГАЗИН (ФИКСИРОВАННЫЙ РАЗМЕР) --- */
.shop-wrapper {
    display: flex;
    gap: 25px;

    width: 1100px;
    /* 🔥 ВАЖНО: НЕ 100% */
    height: 600px;

    margin-top: 25px;

    flex-wrap: nowrap;
    overflow: hidden;
}

/* Левая панель: Список товаров */
.shop-sidebar {
    flex: 0 0 320px;
    width: 320px;

    background: #000;
    /* 🔥 подложка */
    border: 1px solid var(--border-gray);
    border-radius: 8px;

    padding: 15px;

    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;
}

.sidebar-item {
    background: #000;
    border: 1px solid var(--border-gray);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
}

.sidebar-item:hover,
.sidebar-item.active {
    border-color: var(--gold);
}

.sidebar-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.sidebar-item h4 {
    margin: 0;
    font-size: 16px;
}

/* Правая панель: Детализация контента */ 
.shop-details {
    flex: 1;
    min-width: 0;

    overflow: hidden;

    background: var(--card-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;

    padding: 30px;

    display: grid;
    grid-template-rows: 1fr auto;
    box-sizing: border-box;
}

* {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Внутренний контейнер для текста (защищает от растягивания) */
.details-content-scroll {
    overflow-y: auto;
    overflow-x: hidden;

    min-height: 0;

    width: 100%;
    max-width: 100%;
}

/* Переносы текста для заголовков и описания */
#det-title {
    white-space: normal;
    word-break: break-word;
}

#det-desc {
    white-space: normal;
    word-break: break-word;
}

/* Кастомизация скроллбаров */
.shop-sidebar::-webkit-scrollbar,
.details-content-scroll::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar::-webkit-scrollbar-thumb,
.details-content-scroll::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover,
.details-content-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
    }
    
    .features-list {
        list-style: none;
        padding: 0;
        margin: 0 0 25px 0;
    }
    
    /* Переносы текста внутри списка возможностей */
    .features-list li {
        margin-bottom: 8px;
        color: var(--text-muted);
        white-space: normal;
        word-break: break-word;
    }
    
    .features-list li::before {
        content: "⚡ ";
        color: var(--gold);
    }
    
    /* --- КИБЕРПАНК ИНПУТЫ И КНОПКИ --- */
    .input-field {
        width: 100%;
        background: #050505;
        border: 1px solid #222;
        border-radius: 6px;
        color: var(--text-white);
        padding: 14px 16px;
        font-size: 14px;
        font-family: inherit;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }
    
    .input-field:focus {
        border-color: var(--gold);
        outline: none;
        box-shadow: 0 0 10px rgba(255, 183, 3, 0.15);
        background: #090909;
    }
    
    .duration-selector {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .duration-btn {
        flex: 1;
        background: #090909;
        border: 1px solid #222;
        color: var(--text-muted);
        padding: 12px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }
    
    .duration-btn:hover {
        border-color: #444;
        color: var(--text-white);
    }
    
    .duration-btn.active {
        border-color: var(--gold);
        color: var(--gold);
        background: rgba(255, 183, 3, 0.03);
        box-shadow: 0 0 10px rgba(255, 183, 3, 0.05);
    }
    
    .btn-promo-apply {
        background: #111;
        border: 1px solid #333;
        color: var(--text-white);
        padding: 0 25px;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }
    
    .btn-promo-apply:hover {
        background: #161616;
        border-color: var(--gold);
        color: var(--gold);
    }
    
    .open-modal-btn {
        background: transparent;
        color: var(--gold);
        border: 1px solid var(--gold);
        padding: 14px 35px;
        font-weight: 700;
        font-size: 13px;
        border-radius: 6px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
    }
    
    .open-modal-btn:hover {
        background: var(--gold);
        color: #000;
        box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
    }
    
    .purchase-footer {
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }
    
    .price-display {
        font-size: 28px;
        font-weight: bold;
        color: var(--gold);
    }
    
    /* --- МОДАЛЬНОЕ ОКНО И ЭФФЕКТ БЛЮРА --- */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        /* Размытие всего заднего плана */
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .modal-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
    
    .modal-window {
        background: #0a0a0a;
        border: 2px solid var(--gold);
        width: 100%;
        max-width: 450px;
        border-radius: 12px;
        padding: 30px;
        position: relative;
        box-shadow: 0 0 30px rgba(255, 183, 3, 0.2);
    }
    
    .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        color: var(--text-muted);
        cursor: pointer;
    }
    
    .close-modal:hover {
        color: var(--gold);
    }
    
    .promo-group {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .btn-pay-container {
        margin-top: 25px;
    }
    
    .btn-pay-main {
        background: var(--gold);
        color: #000;
        width: 100%;
        padding: 16px;
        border: none;
        border-radius: 6px;
        font-weight: 800;
        font-size: 15px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.2s ease;
    }
    
    .btn-pay-main:hover {
        background: var(--gold-hover);
        box-shadow: 0 0 20px rgba(255, 183, 3, 0.4);
    }
    
    /* --- СТИЛЬНЫЕ КОНТАКТЫ --- */
    .social-button {
        display: block;
        width: 100%;
        padding: 18px;
        margin-bottom: 15px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: 0.3s;
        }
        
        .tg-btn {
            background: #0088cc;
            color: white;
        }
        
        .tg-btn:hover {
            background: #0077b3;
            box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
        }
        
        .ds-btn {
            background: #5865F2;
            color: white;
        }
        
        .ds-btn:hover {
            background: #4752C4;
            box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
        }
        
        .vk-btn {
            background: #0077FF;
            color: white;
        }
        
        .vk-btn:hover {
            background: #0066DD;
            box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
        }
        
        /* --- ПОДВАЛ --- */
        footer {
            background: #000000;
            border-top: 1px solid var(--border-gray);
            padding: 30px 20px;
            text-align: center;
            color: var(--text-muted);
            font-size: 14px;
            margin-top: auto;
        }
        
        footer .footer-logo {
            font-weight: bold;
            color: var(--gold);
            margin-bottom: 10px;
        }
        
        /* АДАПТИВНОСТЬ */
        max-width: 768px {
            nav {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        
            nav .links {
                flex-direction: column;
                width: 100%;
            }
        
            .welcome-section {
                flex-direction: column;
            }
        
            .shop-wrapper {
                flex-direction: column;
                height: auto;
                max-height: none;
            }
        
            .shop-sidebar,
            .shop-details {
                width: 100%;
                height: auto;
            }
        }