/* =========================================
   1. RESET & VARIABLES
   ========================================= */

   @font-face {
    font-family: 'Fixel';
    src: url('fonts/FixelDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel';
    src: url('fonts/FixelDisplay-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel';
    src: url('fonts/FixelDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel';
    src: url('fonts/FixelDisplay-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #3b82f6;
    --accent: #fbbf24;
    --bg-main: #020204;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    
    --font-head: 'Fixel', sans-serif;
    --font-body: 'Fixel', sans-serif;
    
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; height: auto; display: block; object-fit: cover; }
ul { list-style: none; }
button { font-family: inherit; }

/* =========================================
   2. GLOBAL BACKGROUND (OPTIMIZED)
   ========================================= */
.global-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -5; pointer-events: none; overflow: hidden;
}

.noise {
    position: absolute; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
}

/* Оптимізація продуктивності: зменшено радіус блюру та додано will-change */
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); /* Зменшено зі 150px для продуктивності */
    will-change: transform; /* Виносимо в окремий шар GPU */
    animation: float 25s infinite alternate ease-in-out;
    opacity: 0.15;
}

.blob-1 { width: 70vw; height: 70vw; background: var(--primary); top: -30%; left: -20%; }
.blob-2 { width: 60vw; height: 60vw; background: var(--accent); bottom: -20%; right: -20%; animation-delay: -5s; opacity: 0.1; }
.blob-3 { width: 50vw; height: 50vw; background: #1e40af; top: 40%; left: 20%; animation-delay: -10s; opacity: 0.1; }

@keyframes float {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.05); }
}

/* =========================================
   3. PRELOADER
   ========================================= */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out;
}
.loader-content { text-align: center; }
.loader-title { font-family: var(--font-head); font-weight: 700; letter-spacing: 4px; display: block; margin-bottom: 20px; }
.loader-track { width: 200px; height: 2px; background: rgba(255,255,255,0.1); overflow: hidden; margin: 0 auto; }
.loader-bar { width: 0%; height: 100%; background: var(--primary); animation: loading 1.5s ease-in-out forwards; }
@keyframes loading { to { width: 100%; } }

/* =========================================
   4. UI WIDGETS
   ========================================= */
.lang-container {
    position: fixed; top: 42px; right: 40px; z-index: 1001;
    font-size: 0.85rem; font-weight: 700; color: white;
    --lang-full-width: 180px;
    --lang-compact-width: 128px;
    transition: top 0.4s ease, right 0.4s ease;
}

/* Видима кнопка */
.lang-selected {
    display: flex; align-items: center; gap: 10px;
    width: var(--lang-full-width);
    min-height: 38px;
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px; border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    transition:
        width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.lang-selected:hover, .lang-container.active .lang-selected {
    background: rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.3);
}

.lang-selected img {
    width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
    flex: 0 0 20px;
}

#current-lang-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 11ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.lang-container.label-changing #current-lang-name {
    opacity: 0;
    transform: translateY(5px);
}

.lang-arrow {
    flex: 0 0 auto;
    font-size: 0.7rem;
    transition: transform 0.3s;
}
.lang-container.active .lang-arrow { transform: rotate(180deg); }

/* Випадаючий список (прихований) */
.lang-list {
    position: absolute; top: 100%; right: 0; width: var(--lang-full-width);
    background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    padding: 5px; margin-top: 10px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    list-style: none;
}

/* Відкритий список */
.lang-container.active .lang-list {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* Елемент списку */
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 15px; border-radius: 8px;
    cursor: pointer; transition: 0.2s; color: #ccc;
}

.lang-option:hover { background: rgba(255,255,255,0.1); color: white; }
.lang-option img { width: 20px; height: 20px; border-radius: 50%; }

/* Стан при скролі */
.lang-container.scrolled { top: 24px; right: 24px; }
.lang-container.scrolled .lang-selected { padding: 6px 14px; background: rgba(0,0,0,0.6); }
.lang-container.scrolled:not(.active) .lang-selected {
    width: var(--lang-compact-width);
}
.lang-container.scrolled:not(.active) #current-lang-name {
    flex: 0 1 5ch;
    max-width: 5ch;
}
.lang-container.active .lang-selected {
    width: var(--lang-full-width);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Адаптивність (як ми домовлялися) */
@media (max-width: 1150px) {
    .lang-container { top: 34px; right: 60px; }
    .lang-container.scrolled { top: 20px; right: 50px; }
}

/* Volume Control */
.volume-control-wrapper {
    position: absolute; top: 100px; left: 40px; z-index: 20;
    display: flex; align-items: center; gap: 10px;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px; border-radius: 50px; transition: 0.3s ease;
}
.volume-control-wrapper:hover { background: rgba(0, 0, 0, 0.7); border-color: rgba(255, 255, 255, 0.3); }

.vol-icon { background: transparent; border: none; color: white; font-size: 1.1rem; cursor: pointer; width: 25px; display: flex; justify-content: center; align-items: center; }

#volume-slider {
    -webkit-appearance: none; width: 0px; height: 4px;
    background: rgba(255, 255, 255, 0.2); border-radius: 2px;
    outline: none; opacity: 0; transition: 0.4s ease; cursor: pointer;
}
.volume-control-wrapper:hover #volume-slider { width: 100px; opacity: 1; margin-right: 5px; }
#volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); cursor: pointer; }

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 30px 0; transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled { padding: 15px 0; }
.navbar.scrolled .nav-inner {
    background: rgba(10, 10, 12, 0.6); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50px;
    padding: 10px 30px; max-width: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nav-logo { height: 60px; width: auto; transition: height 0.4s ease; }
.navbar.scrolled .nav-logo { height: 40px; }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: #ccc; letter-spacing: 1px; }
.nav-menu a:hover { color: white; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.btn-hub {
    border: 1px solid rgba(255,255,255,0.2); padding: 8px 20px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.05);
}
.btn-hub:hover { background: white; color: black; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger span { width: 25px; height: 2px; background: white; }

/* Дозволяємо меню стискатися, якщо місця мало */
.nav-menu { 
    display: flex; 
    gap: 30px; 
    flex-shrink: 1; /* Дозволяє стискатися */
    flex-wrap: nowrap; /* Забороняємо перенос на новий рядок */
    white-space: nowrap; /* Текст не переноситься */
}

/* Якщо екран дуже вузький, зменшуємо відступи між посиланнями */
@media (max-width: 1100px) {
    .nav-menu { gap: 15px; }
    .nav-menu a { font-size: 0.75rem; }
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero { 
    height: 100vh; position: relative; 
    display: flex; align-items: center; justify-content: center; text-align: center; 
    z-index: 1; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 280px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 44%),
        linear-gradient(to bottom, transparent 0%, rgba(2,2,4,0.18) 48%, var(--bg-main) 100%);
    z-index: 0; pointer-events: none;
}
.video-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.v-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, var(--bg-main) 100%);
    z-index: -1; opacity: 0.8;
}

.hero-content { z-index: 2; padding: 0 20px; max-width: 900px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 30px;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(5px);
}
.pulse { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }
.hero-title { font-family: var(--font-head); font-size: 4.5rem; line-height: 1; font-weight: 700; margin-bottom: 25px; }
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}
.hero-desc { font-size: 1.1rem; color: #ccc; max-width: 600px; margin: 0 auto 40px; }
.hero-btns { display: flex; justify-content: center; gap: 20px; }
.btn-primary { background: var(--primary); padding: 15px 40px; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.btn-primary:hover { box-shadow: 0 0 30px rgba(59,130,246,0.4); transform: translateY(-3px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); padding: 15px 40px; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.btn-outline:hover { background: white; color: black; }

/* =========================================
   7. SECTIONS & CONTENT
   ========================================= */
.section { padding: 100px 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sub-text { color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.title-center { text-align: center; font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 60px; }

/* About */
.split-box { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.text-content h2 { font-family: var(--font-head); font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
.text-content p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.stats-mini { display: flex; gap: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.stat strong { font-family: var(--font-head); font-size: 2rem; display: block; line-height: 1; }
.stat span { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.image-content img { border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

/* Grid 3 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.glass-card {
    background: rgba(20, 20, 25, 0.5); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); padding: 40px 30px; border-radius: 16px; 
    transition: 0.2s ease-out;
}
.glass-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15); }
.icon-glow { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; filter: drop-shadow(0 0 15px rgba(59,130,246,0.3)); }

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.partner-box {
    position: relative;
    flex: 0 1 calc((100% - 72px) / 4);
    max-width: 270px;
    min-width: 220px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.72), rgba(11, 11, 15, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 14px 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
}
.partner-box:hover { transform: translateY(-7px); border-color: rgba(59,130,246,0.58); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(59,130,246,0.12); background: linear-gradient(180deg, rgba(28, 28, 35, 0.82), rgba(12, 12, 16, 0.98)); }
.partner-box .icon-wrap,
.partner-logo-wrap {
    width: 100%;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    z-index: 2;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.partner-box .icon-wrap { font-size: 2.8rem; color: rgba(255,255,255,0.42); }
.partner-box:hover .icon-wrap,
.partner-box:hover .partner-logo-wrap { transform: translateY(-2px) scale(1.04); border-color: rgba(59,130,246,0.35); background: rgba(59,130,246,0.1); }
.partner-box:hover .icon-wrap { color: white; text-shadow: 0 0 20px rgba(59, 130, 246, 0.6); }
.partner-logo,
.partner-box img {
    width: 100%;
    max-width: 142px;
    height: 96px;
    object-fit: contain;
    z-index: 2;
}
.partner-logo-wrap .partner-logo,
.partner-logo-wrap img {
    margin: auto;
}
.partner-box h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; color: white; margin-bottom: 8px; z-index: 2; overflow-wrap: anywhere; }
.partner-box p { font-size: 0.72rem; color: var(--primary); font-weight: 800; letter-spacing: 1px; opacity: 0.82; z-index: 2; transition: 0.3s; }
.partner-box:hover p { opacity: 1; color: white; }
.glow-effect {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.22) 0%, transparent 58%);
    opacity: 0; transition: 0.4s; z-index: 1;
}
.partner-box:hover .glow-effect { opacity: 1; }

.glass-card,
.partner-box,
.convoy-card,
.member-card,
.g-item,
.media-hub-card {
    contain: paint;
}

.glass-card img,
.partner-box img,
.convoy-card img,
.member-card img,
.g-item img,
.media-hub-card img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.partner-logo-wrap,
.c-cover,
.g-item {
    overflow: hidden;
}

/* Convoys */
.convoys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    justify-content: center;
    gap: 30px;
}
.convoy-card {
    width: 100%;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.92), rgba(12, 12, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}
.convoy-card:hover { transform: translateY(-7px); border-color: rgba(59,130,246,0.6); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59,130,246,0.12); }
.c-cover { height: 190px; width: 100%; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.c-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(18,18,20,0.86)); }
.c-date {
    position: absolute; top: 15px; left: 15px; min-width: 58px; background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14); padding: 8px 12px;
    border-radius: 10px; text-align: center; z-index: 2;
}
.c-date .day { display: block; font-size: 1.2rem; font-weight: 700; color: white; line-height: 1; }
.c-date .month { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.c-server {
    position: absolute; top: 15px; right: 15px; background: rgba(59, 130, 246, 0.2);
    color: #fff; font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: 50px;
    z-index: 2; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(59, 130, 246, 0.4);
}
.c-server.promods { background: rgba(234, 179, 8, 0.2); border-color: rgba(234, 179, 8, 0.4); }
.c-server.event { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
.dot-live { width: 6px; height: 6px; background: white; border-radius: 50%; box-shadow: 0 0 8px white; }
.c-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.c-body h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.28; margin-bottom: 20px; color: white; }
.c-route {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); padding: 12px 15px; border-radius: 10px;
}
.c-route .city { font-weight: 700; font-size: 0.88rem; color: #ddd; min-width: 0; overflow-wrap: anywhere; }
.route-line { flex: 1; height: 1px; background: #444; margin: 0 15px; position: relative; display: flex; justify-content: center; align-items: center; }
.route-line i { color: var(--primary); font-size: 0.8rem; background: #121214; padding: 0 5px; }
.c-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 25px; font-size: 0.85rem; color: var(--text-muted); }
.btn-event { margin-top: auto; display: block; text-align: center; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.8); color: #dbeafe; padding: 12px; border-radius: 10px; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; }
.btn-event:hover { background: var(--primary); color: white; box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3); }

/* Team */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}
.member-card {
    flex: 0 1 calc((100% - 90px) / 4);
    max-width: 275px;
    min-width: 230px;
    min-height: 245px;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.72), rgba(11, 11, 15, 0.94));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 30px 22px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.14), transparent 42%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.member-card:hover { transform: translateY(-7px); background: rgba(255, 255, 255, 0.05); border-color: rgba(255,255,255,0.14); box-shadow: 0 18px 45px rgba(0,0,0,0.38); }
.member-card:hover::before { opacity: 1; }
.img-box { position: relative; width: 108px; height: 108px; margin: 0 auto 22px; z-index: 1; border-radius: 50%; }
.img-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.12); box-shadow: 0 15px 30px rgba(0,0,0,0.35); background: #0b0b0f; }
.rank-icon {
    position: absolute; bottom: 2px; right: 2px; width: 34px; height: 34px; background: #111;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem;
    border: 3px solid var(--bg-main);
    box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
.m-info { position: relative; z-index: 1; }
.m-info h3 { font-family: var(--font-head); font-size: 1rem; line-height: 1.2; margin-bottom: 8px; color: white; overflow-wrap: anywhere; }
.role { font-size: 0.72rem; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; line-height: 1.45; display: block; margin-bottom: 12px; }
.socials-mini { display: flex; justify-content: center; gap: 10px; }
.socials-mini a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1rem; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.socials-mini a:hover { color: white; border-color: rgba(59,130,246,0.5); background: rgba(59,130,246,0.18); }
/* Ranks */
.rank-ceo { border-top: 3px solid var(--accent); }
.rank-ceo .rank-icon { background: var(--accent); color: black; }
.rank-ceo .role { color: var(--accent); }
.rank-manager { border-top: 3px solid var(--primary); }
.rank-manager .rank-icon { background: var(--primary); color: white; }
.rank-manager .role { color: var(--primary); }
.rank-driver { border-top: 3px solid #333; }
.hidden-slot { display: none; opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hidden-slot.visible { opacity: 1; transform: translateY(0); }
.btn-expand {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white;
    padding: 12px 30px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
    font-size: 0.8rem; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-expand:hover { background: white; color: black; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    grid-auto-rows: 235px;
}
.g-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: #050507;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 44px rgba(0,0,0,0.28);
    isolation: isolate;
}
.g-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 34%), radial-gradient(circle at 20% 0%, rgba(59,130,246,0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease, opacity 0.3s ease, filter 0.3s ease; opacity: 0.88; }
.convoy-card > img,
.media-hub-card > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.g-item:hover img { transform: scale(1.08); opacity: 1; filter: saturate(1.12) contrast(1.04); }
.g-item:hover::before { opacity: 1; }
.g-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.55), transparent);
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}
.g-item:hover .g-overlay { transform: translateY(0); opacity: 1; }
.g-overlay h4 { font-family: var(--font-head); font-size: 1rem; line-height: 1.2; color: white; margin-bottom: 5px; }
.g-overlay span { font-size: 0.72rem; color: #bfdbfe; font-weight: 800; letter-spacing: 1px; }
.large { grid-column: span 2; grid-row: span 2; }
.wide { grid-column: span 2; }

/* Media hub */
.media-hub-section {
    padding-top: 20px;
}
.media-hub-grid {
    display: none;
}
.media-team-banner {
    position: relative;
    display: block;
    min-height: 390px;
    padding: 44px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        linear-gradient(90deg, rgba(2,2,4,0.94), rgba(2,2,4,0.72) 46%, rgba(2,2,4,0.22)),
        linear-gradient(to top, rgba(2,2,4,0.86), transparent 58%),
        url('/logo.png') center / cover no-repeat;
    box-shadow: 0 24px 70px rgba(0,0,0,0.42);
    contain: paint;
}
.media-team-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 12%, rgba(59,130,246,0.2), transparent 34%);
    pointer-events: none;
    z-index: 0;
}
.media-team-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0;
}
.media-team-copy > h2,
.media-team-copy > p,
.media-team-copy > a {
    display: none;
}
.media-team-clean-copy h2 {
    font-family: var(--font-head);
    font-size: clamp(1.65rem, 3.4vw, 2.75rem);
    line-height: 1.12;
    max-width: 680px;
    margin-bottom: 18px;
}
.media-team-clean-copy p {
    color: #e4e4e7;
    max-width: 700px;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 26px;
}
.media-team-points {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 820px;
    margin: 0 0 30px;
}
.media-team-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    color: #f4f4f5;
    font-size: 0.92rem;
    font-weight: 700;
}
.media-team-points i {
    color: var(--primary);
    font-size: 1rem;
}
.media-team-question {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    border-left: 0;
    background: transparent;
}
.media-team-question h3 {
    font-family: var(--font-head);
    font-size: clamp(0.95rem, 1.6vw, 1.18rem);
    line-height: 1.2;
}
.media-team-preview {
    display: none;
}
.fleet-redirect {
    position: relative;
    margin-top: 34px;
    min-height: 180px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 34px 38px;
    color: inherit;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        radial-gradient(circle at 8% 0%, rgba(251,191,36,0.18), transparent 34%),
        linear-gradient(135deg, rgba(18,18,24,0.94), rgba(8,8,12,0.98));
    box-shadow: 0 18px 45px rgba(0,0,0,0.26);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.fleet-redirect::before {
    content: 'FLEET';
    position: absolute;
    right: 24px;
    bottom: -22px;
    color: rgba(255,255,255,0.035);
    font-family: var(--font-head);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}
.fleet-redirect:hover {
    transform: translateY(-5px);
    border-color: rgba(251,191,36,0.42);
    box-shadow: 0 24px 60px rgba(0,0,0,0.46);
}
.fleet-redirect > * {
    position: relative;
    z-index: 1;
}
.fleet-redirect h2 {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 3vw, 2.25rem);
    line-height: 1.1;
}
.fleet-redirect > div > h2,
.fleet-link-text {
    display: none;
}
.fleet-clean-copy h2 {
    display: block;
    margin-bottom: 10px;
}
.fleet-clean-copy p {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}
.fleet-meta {
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.fleet-meta span {
    display: inline-flex;
    flex-direction: column;
    min-width: 112px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.fleet-meta strong {
    color: #fff;
    font-size: 0.88rem;
    margin-bottom: 2px;
}
.fleet-clean-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(251,191,36,0.16);
    border: 1px solid rgba(251,191,36,0.38);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.fleet-redirect:hover .fleet-clean-link {
    background: rgba(251,191,36,0.26);
    border-color: rgba(251,191,36,0.62);
}
.media-hub-card {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        radial-gradient(circle at 15% 0%, rgba(59,130,246,0.2), transparent 38%),
        linear-gradient(135deg, rgba(22,22,28,0.86), rgba(8,8,12,0.98));
    padding: 38px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.media-hub-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59,130,246,0.58);
    box-shadow: 0 24px 60px rgba(0,0,0,0.48);
}
.media-hub-card h2 {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    line-height: 1.08;
    margin-bottom: 16px;
}
.media-hub-card p {
    max-width: 660px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.media-hub-card .btn-primary,
.media-hub-card .btn-outline {
    align-self: flex-start;
    display: inline-flex;
}
.fleet-card {
    color: inherit;
    background:
        radial-gradient(circle at 80% 0%, rgba(251,191,36,0.18), transparent 42%),
        linear-gradient(135deg, rgba(22,22,28,0.86), rgba(8,8,12,0.98));
}

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(5px);
    justify-content: center; align-items: center; flex-direction: column;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { opacity: 1; }
.modal-content { max-width: 90%; max-height: 80vh; border: 1px solid #333; box-shadow: 0 0 50px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s ease; }
.modal.show .modal-content { transform: scale(1); }
#modal-caption-text { margin-top: 20px; color: #ccc; font-family: var(--font-head); font-size: 1.1rem; text-align: center; }
.close-modal { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--primary); transform: rotate(90deg); }

/* Footer */
.footer {
    position: relative;
    min-height: 520px;
    padding-top: 82px;
    overflow: hidden;
    border-top: 0;
    background:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
        rgba(2,2,4,0.22);
    background-size: 72px 72px, 72px 72px, auto;
}
.footer::before {
    content: none;
}
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 16%, rgba(59,130,246,0.08), transparent 32%),
        radial-gradient(circle at 72% 10%, rgba(251,191,36,0.045), transparent 28%);
    pointer-events: none;
    z-index: 1;
}
.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(150px, 0.8fr));
    gap: 54px;
    margin-bottom: 48px;
}
.brand .logo {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-head);
    font-size: 1rem;
    color: #d4d4d8;
    letter-spacing: 1px;
}
.brand .logo::after {
    content: '.';
    display: block;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 6px;
}
.f-col p {
    max-width: 380px;
    color: #9ca3af;
    line-height: 1.65;
}
.f-col h4 {
    margin-bottom: 22px;
    color: #f4f4f5;
    font-size: 0.88rem;
    font-weight: 800;
}
.f-col a {
    display: block;
    color: #9ca3af;
    margin-bottom: 12px;
    font-size: 0.92rem;
    transition: color 0.25s ease, transform 0.25s ease;
}
.f-col a:hover {
    color: white;
    transform: translateX(4px);
}
.recruiting {
    color: #aeb6c5;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    margin-bottom: 22px;
}
.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
}
.email {
    color: #9ca3af;
}
.socials {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}
.socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.socials a:hover {
    color: white;
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.5);
    background: rgba(59,130,246,0.14);
}
.giant-text-container {
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 0.78;
    margin: 10px auto -18px;
    overflow: hidden;
}
.giant-text {
    position: relative;
    font-family: var(--font-head);
    height: clamp(7rem, 17vw, 13rem);
    font-weight: 800;
    color: rgba(255,255,255,0.025);
    -webkit-text-stroke: 1px rgba(255,255,255,0.055);
    user-select: none;
}
.giant-text span {
    position: absolute;
    top: 0;
    font-size: clamp(4.5rem, 17vw, 13rem);
    line-height: 1;
}
.giant-text span:nth-child(1) {
    left: 32%;
    transform: translateX(-50%);
}
.giant-text span:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
}
.giant-text span:nth-child(3) {
    left: 67%;
    transform: translateX(-50%);
}
.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 20px;
    text-align: center;
    color: #5f6673;
    font-size: 0.78rem;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Mobile */
@media (max-width: 900px) {
    .nav-menu, .btn-hub { display: none; }
    .burger { display: flex; }
    .nav-menu.active {
        display: flex; flex-direction: column; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: #020204; justify-content: center; align-items: center; z-index: 100; text-align: center;
        padding-bottom: 230px;
    }
    .lang-container {
        display: none;
        top: 112px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 1002;
        --lang-full-width: min(270px, calc(100vw - 48px));
        --lang-compact-width: min(270px, calc(100vw - 48px));
    }
    body.mobile-menu-open .lang-container {
        display: block;
        top: auto;
        bottom: max(24px, env(safe-area-inset-bottom));
    }
    body.mobile-menu-open .lang-container::before {
        content: attr(data-mobile-label);
        display: block;
        margin-bottom: 10px;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 1.4px;
        text-align: center;
        text-transform: uppercase;
    }
    body.mobile-menu-open .lang-container .lang-selected,
    body.mobile-menu-open .lang-container.scrolled:not(.active) .lang-selected {
        display: none;
    }
    body.mobile-menu-open .lang-container.scrolled:not(.active) #current-lang-name {
        flex: 1 1 auto;
        max-width: 16ch;
    }
    body.mobile-menu-open .lang-list {
        position: static;
        width: var(--lang-full-width);
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        max-height: 34vh;
        overflow-y: auto;
        margin-top: 0;
        padding: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(10, 10, 12, 0.92);
        border-color: rgba(255,255,255,0.12);
        box-shadow: 0 16px 45px rgba(0,0,0,0.45);
    }
    body.mobile-menu-open .lang-option {
        justify-content: center;
        min-height: 42px;
        padding: 9px 12px;
        border: 1px solid transparent;
        background: rgba(255,255,255,0.03);
    }
    body.mobile-menu-open .lang-option.active {
        color: #fff;
        border-color: rgba(59,130,246,0.55);
        background: rgba(59,130,246,0.18);
    }
    .hero-title { font-size: 3rem; }
    .split-box, .grid-3 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .large, .wide { grid-column: span 2; grid-row: auto; height: 250px; }
    .g-overlay { transform: translateY(0); opacity: 1; padding: 18px; }
    .partner-box { flex-basis: 100%; max-width: 360px; width: 100%; margin: 0 auto; }
    .member-card { flex-basis: 100%; max-width: 360px; width: 100%; margin: 0 auto; }
    .media-team-banner { min-height: 430px; padding: 28px; }
    .media-team-copy { padding: 0; }
    .media-team-points { grid-template-columns: 1fr; }
    .media-team-question { display: flex; flex-direction: column; align-items: stretch; }
    .media-team-question .btn-primary { width: 100%; justify-content: center; text-align: center; }
    .fleet-redirect { grid-template-columns: 1fr; align-items: flex-start; padding: 26px; }
    .fleet-meta { justify-content: flex-start; }
    .fleet-meta span { min-width: calc(50% - 5px); }
    .fleet-clean-link { width: 100%; justify-content: space-between; }
    .footer { min-height: auto; padding-top: 58px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .giant-text { font-size: 18vw; }
    .volume-control-wrapper { top: 90px; left: 20px; }
}

@media (max-width: 1150px) and (min-width: 901px) {
    .partner-box { flex-basis: calc((100% - 48px) / 3); }
    .member-card { flex-basis: calc((100% - 60px) / 3); }
}

@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .large, .wide { grid-column: auto; height: auto; }
}

/* =========================================
   FIX: АДАПТИВНІСТЬ ВІДЖЕТА ТА НАВІГАЦІЇ
   ========================================= */

/* 1. Етап: Ноутбуки (коли екран починає звужуватися) */
@media (max-width: 1400px) {
    /* Додаємо внутрішній відступ справа для навігації, 
       щоб контент (кнопки) не доходив до місця, де висить віджет */
    .nav-inner {
        padding-right: 160px; 
    }
}

/* 2. Етап: Маленькі ноутбуки / Планшети */
@media (max-width: 1150px) {
    /* Примусово переводимо віджет у "компактний" режим (тільки прапор і UKR),
       навіть якщо сторінка не проскролена. Це економить місце. */
    .lang-widget {
        padding: 6px 14px;
        background: rgba(0, 0, 0, 0.6); /* Темніший фон для читабельності */
    }
    
    /* Ховаємо довгий текст "Українська" */
    .lang-full { 
        opacity: 0; 
        max-width: 0; 
        margin: 0; 
        display: none; /* Прибираємо з потоку */
    }
    
    /* Показуємо короткий текст "UKR" */
    .lang-short { 
        opacity: 1; 
        max-width: 30px; 
        transform: translateX(0); 
    }

    /* Оскільки віджет став меншим, зменшуємо і "зону безпеки" */
    .nav-inner {
        padding-right: 100px;
    }
    
    /* Трохи зменшуємо шрифт меню, щоб воно довше влазило */
    .nav-menu a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* 3. Етап: Мобільні (вже є в коді, але для певності скидаємо відступи) */
@media (max-width: 900px) {
/* СКИНУТИ ВІДСТУП ДЛЯ МОБІЛЬНИХ */
    .nav-inner {
        padding-right: 20px !important; /* Повертаємо звичайний відступ */
        padding-left: 20px !important;
    }
    /* Віджет на мобільному переміщується трохи інакше (це вже налаштовано в основних стилях) */
}

/* --- КНОПКА ЗАКРИТТЯ МЕНЮ --- */

/* 1. На комп'ютері ховаємо її */
.mobile-close-btn {
    display: none;
}

/* 2. На мобільному показуємо та позиціонуємо */
@media (max-width: 900px) {
    .mobile-close-btn {
        display: block;
        position: absolute; /* Абсолютне позиціонування всередині меню */
        top: 30px;
        right: 30px;
        width: auto; /* Щоб не розтягувалась як інші li */
    }

    #close-menu {
        background: transparent;
        border: none;
        color: white;
        font-size: 2rem; /* Великий розмір іконки */
        cursor: pointer;
        padding: 10px;
        transition: 0.3s;
    }

    #close-menu:hover {
        color: var(--primary);
        transform: rotate(90deg); /* Ефект обертання при натисканні */
    }
}
