/* Premium SIM-Networks inspired theme */
:root{
    --bg: #f7fcff;
    --surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-600: #1e4fd6;
    --primary-light: #dbeafe;
    --accent: #06b6d4;
    --accent-light: #cffafe;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 6px 20px rgba(15,23,42,0.1);
    --shadow-lg: 0 12px 40px rgba(37,99,235,0.12);
    --max-width: clamp(320px, 95vw, 1400px);
    --container-padding: clamp(16px, 3vw, 28px);
    --gap-sm: clamp(8px, 1.5vw, 12px);
    --gap-md: clamp(12px, 2vw, 20px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
  
/* Base reset */
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #185c8d 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(37,99,235,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="transparent"/><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, cover, 100px 100px;
    background-attachment: fixed;
    display:flex;
    flex-direction:column;
    min-height:100vh;
    font-family: "Orbitron", "Montserrat", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color:var(--text-dark);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.6;
    font-size:16px;
    overflow-x: hidden;
}

/* Global neural mesh overlay */
body::before{
    content:'';
    position:fixed;
    inset:0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg stroke='rgba(255,255,255,0.08)' stroke-width='1' fill='none'%3E%3Cpath d='M10 30 Q60 10 110 30 T210 30'/%3E%3Cpath d='M-20 80 Q40 40 120 80 T220 80'/%3E%3Cpath d='M0 130 Q70 90 140 130 T240 130'/%3E%3Cpath d='M-30 180 Q50 140 130 180 T230 180'/%3E%3Cpath d='M20 -10 Q40 60 20 130 T20 230'/%3E%3Cpath d='M80 -20 Q100 40 80 120 T80 240'/%3E%3Cpath d='M150 -30 Q170 50 150 130 T150 230'/%3E%3Ccircle cx='20' cy='130' r='3' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='80' cy='120' r='3' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='150' cy='130' r='3' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='120' cy='80' r='3' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='60' cy='10' r='3' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='170' cy='50' r='3' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='40' cy='60' r='3' fill='rgba(255,255,255,0.25)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 420px 420px;
    mix-blend-mode: screen;
    opacity: 0.5;
    pointer-events:none;
    z-index:0;
}

.body-body{
    flex:1;
}

.site-footer-wrapper{
    margin-top:auto;
}

/* Footer contrast improvements */
.site-footer a {
    color: rgba(255,255,255,0.85);
}
.site-footer a:hover {
    color: #cffafe;
    text-decoration: none;
}
.site-footer h5 {
    color: #ffffff;
}

a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline;opacity:0.9}

.container{
    max-width:var(--max-width);
    margin:0 auto;
    padding:var(--container-padding);
    width:100%;
}

.header-bar{
    background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
    backdrop-filter: blur(6px);
    box-shadow:var(--shadow-sm);
    padding:12px 24px;
    display:flex;align-items:center;justify-content:space-between;
}
.site-logo a{font-weight:700;color:var(--text);letter-spacing:0.4px}

/* Cards and surfaces */
.card{
    background:var(--surface);
    border-radius:var(--radius);
    box-shadow:var(--shadow-md);
    padding:24px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.5);
}
.card:hover{
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.card-sm{padding:16px}

/* Buttons */
.btn{
    display:inline-flex;align-items:center;justify-content:center;
    gap:8px;padding:12px 20px;border-radius:var(--radius);border:1px solid transparent;cursor:pointer;
    background:transparent;color:var(--text-dark);font-weight:600;transition:var(--transition);
    text-decoration: none;
}
.btn:hover{filter:brightness(0.95);transform: translateY(-2px)}

.btn-primary{
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color:white;
    box-shadow: var(--shadow-md);
    border:none;
}
.btn-primary:hover{
    background: linear-gradient(135deg, var(--primary-600), #0891b2);
    box-shadow: var(--shadow-lg);
}
.btn-ghost{
    background:transparent;
    border:2px solid var(--primary);
    color:var(--primary);
}
.btn-ghost:hover{
    background:var(--primary-light);
}

/* Forms */
.input,textarea,select{
    width:100%;padding:12px 14px;border-radius:10px;border:2px solid rgba(15,23,42,0.08);background:rgba(255,255,255,0.9);color:var(--text-dark);
    transition: var(--transition);
    font-family: inherit;
}
.input:focus,textarea:focus,select:focus{
    outline:none;border-color:var(--accent);
    box-shadow:0 8px 24px rgba(6,182,212,0.15);
    background:white;
}

label{display:block;margin-bottom:8px;color:var(--text-muted);font-size:14px;font-weight:600}

/* Utility */
.row{display:flex;gap:var(--gap-md);flex-wrap:wrap}
.col{
    flex:1 1 280px;
    min-width:280px;
}
.center{text-align:center}
.small{font-size:13px;color:var(--text-muted)}

/* Headings with premium styling */
h1, h2, h3, h4, h5, h6 {
    font-family: "Orbitron", "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--text-dark);
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 10px; }
h4 { font-size: clamp(18px, 2vw, 24px); }

/* Notice, alerts */
.alert{padding:12px;border-radius:8px;background:#fff3cd;color:#856404;border:1px solid rgba(0,0,0,0.03)}

/* Footer */
.footer{padding:var(--container-padding);text-align:center;color:var(--muted);font-size:14px}

.footer-row{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
.footer-links{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-end}
.footer-links a{white-space:nowrap}
.footer-meta{margin-top:12px;text-align:center;color:var(--muted);font-size:13px}

/* Responsive tweaks */
/* Sidebar widths use default flow; no fixed width. */
.sidebar-left, .sidebar-right{
}

/* Docs sidebar styling */
.docs-nav{
    background: #f7f9fb;
    border: none;
    padding: 0;
    margin-top: 30px;
}

.docs-links{
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f7f9fb;
    border: none;
    padding: 0;
}

.docs-link{
    display: block;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e4e8f0;
    border-radius: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.docs-link:hover{
    border-color: #cdd5e3;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.main-content{
    flex:1;
    min-width:0;
}

/* Две боковые панели */
.layout-both .main-content{
    margin:0 var(--gap-md);
}
 
/* Только левая */
.layout-left .main-content{
    margin-left:var(--gap-md);
}

/* Только правая */
.layout-right .main-content{
    margin-right:var(--gap-md);
}

@media (max-width:992px){
    .row{flex-direction:column}
    .col{
        flex:1 1 100%;
        min-width:100%;
    }
    
    /* Сайдбары на планшетах становятся полной ширины */
    .sidebar-left, .sidebar-right{
        flex:1 1 100%;
        max-width:100%;
        width:100%;
        margin:0 !important;
    }
    
    /* Карточки внутри сайдбаров тоже на всю ширину */
    .sidebar-left .card, .sidebar-right .card,
    .sidebar-left nav, .sidebar-right nav,
    .sidebar-left aside, .sidebar-right aside{
        width:100%;
        max-width:100%;
    }
    
    .main-content{
        margin:var(--gap-md) 0 !important;
        width:100%;
    }
    
    /* Порядок: левая панель, контент, правая панель */
    .sidebar-left{order:1}
    .main-content{order:2}
    .sidebar-right{order:3}
}

@media (max-width:720px){
    .container{padding:16px}
    .header-bar{padding:10px;flex-wrap:wrap}
    body{font-size:15px}
    
    .col{
        min-width:100%;
    }

    .site-footer{margin:16px;padding:16px}
    .footer-row{justify-content:center;gap:12px}
    .footer-links{justify-content:center}

    .site-header{position:fixed}
    .header-container{height:auto;flex-wrap:wrap;gap:10px;align-items:flex-start;padding:12px}
    .body-body{padding-top:96px}
    .guest-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px}
    .guest-actions .btn{padding:8px 12px;font-size:13px}
    .lang-switcher{gap:4px;font-size:13px}
    .lang-divider{display:none}
}

@media (max-width:480px){
    .btn{padding:8px 12px;font-size:14px}
    .card{padding:14px}
}

/* Small helpers for images and avatars */
.img-responsive{max-width:100%;height:auto;border-radius:8px}
.avatar{width:40px;height:40px;border-radius:999px;overflow:hidden;display:inline-block}

/* Accessibility focus */
:focus{outline:3px solid rgba(37,99,235,0.15);outline-offset:2px}

/* ========================================
   NAVBAR MODERN (для nderhead.php)
   ======================================== */

/* ========================================
   NAVBAR MODERN (для header.php)
   ======================================== */

/* Фиксированная шапка */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.95) 100%);
    border-bottom: 1px solid rgba(37,99,235,0.1);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

/* Контейнер шапки */
.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px clamp(12px, 2vw, 24px);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Отступ для body-body чтобы контент не залазил под шапку */
.body-body {
    padding-top: 80px;
}

.site-logo {
    font-family: 'Orbitron', 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.site-logo a {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Бургер-кнопка */
.burger-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.burger-line {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Основное меню */
.main-nav {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
    gap: var(--gap-md);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
    display: block;
    font-weight: 600;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

/* Подменю */
.submenu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: var(--surface);
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: var(--radius);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    list-style: none;
}

.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a {
    color: var(--text-dark);
    padding: 10px 18px;
    display: block;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.submenu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.nav-item:hover .submenu,
.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
}

.nav-item {
    position: relative;
    margin: 0 var(--gap-sm);
}

.nav-link {
    color: var(--text);
    padding: 10px 15px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: block;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    text-decoration: none;
}

/* Подменю */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding-left: 0;
}

.submenu li {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.submenu li a {
    color: var(--text);
    padding: 8px 20px;
    display: block;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.submenu li a:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
    text-decoration: none;
}

.nav-item:hover .submenu,
.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
}

/* Панель пользователя */
.user-panel {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
    line-height: 1.3;
}

.user-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.user-tokens {
    background: var(--accent-light);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.user-tokens:hover {
    background: var(--accent);
    color: white;
}

.header-user-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header-tokens {
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.token-icon {
    font-style: normal;
    font-size: 1rem;
}

.token-count {
    font-weight: 700;
}

.header-logout {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
}

.header-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
    text-decoration: none;
}

/* Навигация для гостей */
.guest-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.guest-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Переключатель языка */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
}

.lang-link {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
    position: relative;
}

.lang-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(1.05);
}

.lang-link.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.lang-divider {
    color: rgba(15, 23, 42, 0.2);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .header-container{
        height:auto;
        flex-wrap:wrap;
        gap:12px;
        align-items:flex-start;
        padding:12px 16px;
    }
    .body-body{padding-top:90px}
    .guest-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px}
    .guest-actions .btn{padding:8px 12px;font-size:13px}
    .lang-switcher{gap:6px}
    .lang-divider{display:none}
    
    .main-nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
        border-left: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin: 0 0 20px 0;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
        background: rgba(37, 99, 235, 0.02);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: var(--radius);
    }
    
    .submenu.active {
        max-height: 500px;
        padding: 8px 0;
    }
    
    .has-submenu.active > .nav-link::after {
        transform: rotate(-180deg);
    }
    
    .submenu li a {
        padding: 10px 15px 10px 25px;
        border-bottom: none;
    }
    
    .user-panel {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin: 0;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .user-info {
        margin-bottom: 15px;
    }
    
    .user-tokens {
        margin: 10px 0;
        align-self: flex-start;
    }
    
    .logout-link {
        margin-top: 10px;
    }
    
    /* Анимация бургера */
    .burger-btn.active .burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .burger-btn.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-btn.active .burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Для гостей кнопки НЕ сворачиваются - остаются в строку всегда */
}

@media (max-width: 768px) {
    .site-logo {
        font-size: 1.3rem;
    }
}

/* ========================================
   COOKIE MODAL (модальное окно куки)
   ======================================== */
.cookie-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    padding: 14px 18px;
    z-index: 9999;
    animation: fadeInUp 0.4s ease;
    box-shadow: var(--shadow-md);
}

.cookie-content {
    color: var(--text);
    text-align: left;
}

.cookie-content h3 {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

.cookie-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: var(--muted);
}

.cookie-content a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.cookie-button {
    padding: 6px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    min-width: 90px;
}

.cookie-button.accept {
    background: var(--primary);
    color: white;
}

.cookie-button.accept:hover {
    background: var(--primary-600);
}

.cookie-button.decline {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-button.decline:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .cookie-modal {
        width: calc(100% - 40px);
        bottom: 10px;
        padding: 20px;
        margin: 0 20px;
    }
    
    .cookie-content p {
        padding: 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-button {
        width: 100%;
    }
}

/* ========================================
   SIM-NETWORKS INSPIRED STYLES
   ========================================  */

/* v3 classes для красоты как в SIM-Networks */
.v3-eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.v3-muted {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.v3-hero {
    padding: 60px 0 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 60px;
}

.v3-hero > div:first-child {
    max-width: 600px;
    animation: fadeInLeft 0.8s ease;
}

.v3-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 20px 0 25px 0;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.v3-hero .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: var(--text-muted);
}

.v3-panel {
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    padding: 40px;
}

.v3-head {
    margin-bottom: 45px;
}

.v3-head > div {
    max-width: 800px;
}

.v3-head h2,
.v3-head h3 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    margin: 15px 0;
    letter-spacing: -0.5px;
}

.v3-head h4,
.v3-head h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.v3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.v3-plan {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.v3-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v3-plan:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.v3-plan:hover::before {
    opacity: 1;
}
}

.v3-plan--accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.v3-plan--accent .v3-plan__title {
    color: white;
}

.v3-plan--accent .v3-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.v3-plan__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.v3-plan__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.v3-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.v3-tag--accent {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.v3-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v3-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.v3-list li::before {
    content: '✓';
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.v3-plan--accent .v3-list li::before {
        background: var(--primary-light);
        color: var(--primary);
    }

    /* ===== HERO SECTION - PREMIUM STYLE ===== */
    .v3-hero {
        position: relative;
        padding: 100px var(--container-padding) 80px;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.95) 50%, rgba(24, 92, 141, 0.95) 100%);
        overflow: hidden;
        color: #ffffff;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
        align-items: center;
    }

    .v3-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
        pointer-events: none;
        animation: gradientFlow 8s ease-in-out infinite;
    }

    @keyframes gradientFlow {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.8; }
    }

    .v3-hero > * {
        position: relative;
        z-index: 1;
    }

    .v3-hero-img {
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.35);
        border: 1px solid rgba(255,255,255,0.2);
    }

    .v3-hero-svg {
        width: 100%;
        max-width: 520px;
        height: auto;
        border-radius: 12px;
        box-shadow: none;
        border: none;
        background: transparent;
        display: block;
    }

    @media (max-width: 992px) {
        .v3-hero {
            grid-template-columns: 1fr;
        }
    }

    .v3-hero h1 {
        font-size: clamp(32px, 5vw, 56px);
        font-weight: 700;
        margin: 0 0 16px 0;
        background: linear-gradient(135deg, #ffffff, #cffafe);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 0.5px;
    }

    .v3-hero p {
        font-size: clamp(14px, 2vw, 18px);
        color: rgba(255, 255, 255, 0.85);
        margin: 0 0 24px 0;
    }

    .v3-hero .v3-actions {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 32px;
    }

    .v3-hero .v3-btn--primary {
        background: linear-gradient(135deg, #2563eb, #1e4fd6);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 14px 32px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .v3-hero .v3-btn--primary:hover {
        background: linear-gradient(135deg, #1e4fd6, #1e3a8a);
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
        transform: translateY(-2px);
        text-decoration: none;
    }

    .v3-eyebrow {
        font-size: 12px;
        font-weight: 700;
        color: #06b6d4;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        margin: 0 0 12px 0;
    }

    .v3-muted {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }

    /* ===== LANGUAGE DROPDOWN ===== */
    .lang-dropdown {
        position: relative;
    }

    .lang-dropdown-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.2));
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 8px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .lang-dropdown-btn:hover {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.4));
        box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
    }

    .lang-dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        list-style: none;
        padding: 8px 0;
        min-width: 180px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        display: none;
        z-index: 1000;
    }

    .lang-dropdown-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .lang-dropdown-menu li {
        list-style: none;
    }

    .lang-dropdown-menu a {
        display: block;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }

    .lang-dropdown-menu a:hover {
        background: rgba(37, 99, 235, 0.2);
        color: #cffafe;
        border-left-color: #06b6d4;
        padding-left: 24px;
    }

    .lang-dropdown-menu a.active {
        background: rgba(37, 99, 235, 0.3);
        color: #cffafe;
        border-left-color: #2563eb;
        font-weight: 600;
    }

.v3-section {
    padding: 80px 0;
}

.v3-section--panel {
    background: rgba(6, 182, 212, 0.02);
    border-radius: 16px;
    padding: 80px 0;
}

.v3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Lighter hero checks */
.v3-checks {
    margin-top: 20px;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}
.v3-hero .v3-checks span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 10px;
    border-radius: 8px;
}

.v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.v3-btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e4fd6 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}

.v3-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    text-decoration: none;
}

.v3-btn--secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.v3-btn--secondary:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.v3-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v3-step {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    line-height: 1.6;
}

.v3-step::before {
    content: counter(step);
    counter-increment: step;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

@supports (counter-reset: step 0) {
    .v3-steps {
        counter-reset: step 0;
    }
}

/* Если нет поддержки counter, используем по-другому */
.v3-steps {
    --step: 0;
}

/* Симуляция нумерации для .v3-step */
.v3-step:nth-child(1)::before {
    content: '1';
}

.v3-step:nth-child(2)::before {
    content: '2';
}

.v3-step:nth-child(3)::before {
    content: '3';
}

.v3-step:nth-child(4)::before {
    content: '4';
}

.v3-step:nth-child(5)::before {
    content: '5';
}

/* Navbar улучшение для SIM menu */
.sim-menu {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9)) !important;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--text) !important;
    font-size: 1.3rem;
}

/* Карточка для информационных блоков */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: var(--accent);
}

/* Текстуры фона как в SIM-Networks */
.section-texture {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="a" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 50h100M50 0v100" stroke="rgba(6,182,212,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23a)"/></svg>');
    background-size: 100px 100px;
}

/* Улучшенные gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.gradient-light {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
}

/* Page-wrapper для полной структуры */
#page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page-wrapper > .body-body {
    flex: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Улучшенные кнопки Bootstrap */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e4fd6 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, #1e4fd6 0%, var(--primary) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Улучшенные карточки Bootstrap */
.card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Дополнительные утилиты */
.text-primary-light {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.bg-primary-light {
    background: rgba(37, 99, 235, 0.05);
}

.bg-accent-light {
    background: rgba(6, 182, 212, 0.05);
}

/* Responsive улучшения */
@media (max-width: 768px) {
    .v3-hero {
        padding: 50px 0 70px 0;
        min-height: auto;
    }
    
    .v3-hero h1 {
        font-size: 1.8rem;
    }
    
    .v3-section {
        padding: 50px 0;
    }
    
    .v3-grid {
        grid-template-columns: 1fr;
    }
    
    .v3-head {
        margin-bottom: 25px;
    }
    
    .v3-head h2,
    .v3-head h3 {
        font-size: 1.6rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ========================================
   SECTION STYLING
======================================== */

.v3-section {
    padding: 70px 0;
    animation: fadeInUp 0.8s ease;
}

.v3-section--panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(226, 242, 254, 0.5) 100%);
    padding: 70px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.v3-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.v3-btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow-md);
}

.v3-btn--primary:hover {
    background: linear-gradient(135deg, var(--primary-600), #0891b2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.v3-btn--secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.v3-btn--secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ========================================
   STEPS STYLING
======================================== */

.v3-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.v3-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.v3-step:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.v3-step::before {
    content: '';
    min-width: 0;
}

@supports (counter-reset: step 0) {
    .v3-steps {
        counter-reset: step 0;
    }
    
    .v3-step::before {
        counter-increment: step;
        content: counter(step);
        width: 36px;
        height: 36px;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: white;
        border-radius: 50%;
        font-weight: 700;
        font-size: 0.95rem;
    }
}

.v3-step:nth-child(1)::before {
    content: '1';
}

.v3-step:nth-child(2)::before {
    content: '2';
}

.v3-step:nth-child(3)::before {
    content: '3';
}

.v3-step:nth-child(4)::before {
    content: '4';
}

.v3-step:nth-child(5)::before {
    content: '5';
}

/* ========================================
   PLAN & PRICING
======================================== */

.v3-plan--accent {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.v3-plan--accent .v3-plan__title {
    color: var(--primary);
}

.v3-plan--accent .v3-tag {
    background: var(--primary-light);
    color: var(--primary);
}

.v3-plan__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.v3-plan__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.v3-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.v3-tag--accent {
    background: var(--primary-light);
    color: var(--primary);
}

.v3-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v3-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.v3-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.v3-plan--accent .v3-list li::before {
    background: var(--primary-light);
    color: var(--primary);
}
