/* === ОСНОВНЫЕ ПЕРЕМЕННЫЕ === */
:root {
    --primary: #0f172a;       /* Темно-синий (основной текст) */
    --accent: #2563eb;        /* Яркий синий (кнопки, ссылки) */
    --accent-hover: #1d4ed8;  /* Темно-синий (ховер) */
    --bg-light: #f8fafc;      /* Светлый фон */
    --white: #ffffff;
    --sidebar-width: 250px;
}

/* === ОБЩИЕ СТИЛИ === */
body {
    font-family: 'Manrope', 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--primary);
    overflow-x: hidden;
}

/* Фон с частицами */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* === НАВИГАЦИЯ === */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary) !important;
    margin: 0 10px;
    transition: 0.2s ease;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Кнопки языков (RU/ID) */
.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lang-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

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

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* === HERO СЕКЦИЯ (ГЛАВНЫЙ ЭКРАН) === */
.hero {
    padding: 140px 0 100px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero p.lead {
    font-size: 1.25rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Блок с флагами (Индонезия - Россия) */
.route-block {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.route-flag {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.route-icon {
    color: var(--accent);
    font-size: 1.2rem;
    animation: pulseArrow 2s infinite;
}

@keyframes pulseArrow {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Кнопки Hero */
.btn-primary-custom {
    background: var(--accent);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

/* Картинка Hero (3D эффект) */
.hero-img-wrap {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    background: #f1f5f9;
    line-height: 0;
}

.hero-img-wrap:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* === ПРЕИМУЩЕСТВА (FEATURES) === */
.card-custom {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    height: 100%;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.card-custom h4 { font-weight: 700; margin-bottom: 15px; }
.card-custom p { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* === О НАС (FOUNDER) === */
.founder-block {
    background: #f8fafc;
    border-radius: 40px;
    padding: 60px 40px;
}

.founder-img {
    border-radius: 24px;
    box-shadow: 20px 20px 0 var(--primary);
    max-width: 100%;
    height: auto;
}

/* === КОНТАКТЫ === */
.contact-section {
    background: var(--primary);
    color: var(--white);
    border-radius: 40px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* === ЛИЧНЫЙ КАБИНЕТ И АДМИНКА (Sidebar) === */
.sidebar {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0; left: 0;
    background: var(--primary);
    color: var(--white);
    padding-top: 80px;
    z-index: 1000;
}

.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 15px 25px;
    transition: 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background: var(--accent);
    color: var(--white);
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 40px;
    margin-top: 60px;
}

/* Статистика в ЛК */
.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent);
}

/* === МОБИЛЬНЫЙ АДАПТИВ === */
@media (max-width: 991px) {
    .hero { text-align: center; padding-top: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-img-wrap { margin-top: 50px; transform: none; }
    .hero-img-wrap:hover { transform: none; }
    
    .route-block { margin: 0 auto 30px auto; }
    .d-flex.gap-3 { justify-content: center; }
    
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .lang-switcher {
        justify-content: center;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .sidebar { width: 100%; height: auto; position: relative; padding-top: 20px; }
    .main-content { margin-left: 0; }
}