@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Russo+One&display=swap');

/* ===========================
   Цвета
   =========================== */
:root {
    --bg-dark: #03040a;
    --gold-1: #FFD700;
    --gold-2: #FFDC00;
    --gold-3: #FFF36B;
    --orange-1: #FF4500;
    --orange-2: #FF6A00;
    --glow-gold-strong: rgba(255,215,0,0.98);
    --glow-gold-mid: rgba(255,220,80,0.30);
    --glow-or-mid: rgba(255,90,40,0.30);
    --shadow-dark: rgba(0,0,0,0.72);
}

/* ===========================
   Базовые стили
   =========================== */
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
    background: var(--bg-dark);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    padding-top: 84px;
}

/* ===========================
   HEADER
   =========================== */
.header {
    position: fixed;
    width: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px) saturate(120%);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 14px 60px rgba(0,0,0,0.7);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.header-title-container {
    margin-right: auto;
}

/* ===========================
   TITLE
   =========================== */
.header-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(22px, 5vw, 42px);
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(90deg, #ff6a00, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(255,165,0,0.7), 0 0 12px rgba(255,120,0,0.6), 0 0 20px rgba(255,90,0,0.5);
    position: relative;
}

.header-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6a00, #ffcc00);
    border-radius: 2px;
}

.header-title .wide-part {
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2), var(--gold-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px var(--glow-gold-strong), 0 0 12px var(--glow-gold-mid), 0 0 28px rgba(255,200,80,0.14), 0 8px 30px var(--shadow-dark);
}

.header-title .avto-part {
    padding-left: 8px;
    background: linear-gradient(90deg, var(--orange-1), var(--orange-2), var(--gold-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px var(--glow-or-mid), 0 0 12px rgba(255,120,40,0.30), 0 0 22px var(--glow-gold-mid), 0 8px 26px var(--shadow-dark);
}

/* ===========================
   BUTTONS
   =========================== */
.header-buttons {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.submit-application-button {
    background: linear-gradient(135deg, #c31432 0%, #f00000 100%);
    color: white;
    padding: clamp(0.4em, 1.5vw, 0.8em) clamp(1em, 5vw, 2em);
    border-radius: 30px;
    font-size: clamp(10px, 3vw, 16px);
    font-weight: 600;
    border: 2px solid #ff6a00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
    min-width: 80px;
    max-width: 100%;
    white-space: normal; /* перенос текста на маленьких экранах */
    height: auto;
}

/* Hover эффект */
.submit-application-button:hover {
    background: linear-gradient(135deg, #c31432 0%, #f00000 100%);
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

/* ===========================
   Menu Button
   =========================== */
.app-menu-button {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.app-menu-button svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.app-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-menu-button:hover svg {
    transform: scale(1.1);
}

/* ===========================
   Mobile Menu
   =========================== */
.modal-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background-color: #0a192f;
    transition: transform 0.4s ease-in-out;
    z-index: 2000;
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-menu.open {
    transform: translateX(-100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
}

.modal-menu a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    color: #ccd6f6;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.modal-menu a:hover {
    color: #ff4d4d;
    padding-left: 15px;
}

.modal-close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #ccd6f6;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-button:hover {
    color: #ff4d4d;
}

/* ===========================
   Media Queries
   =========================== */
@media (max-width: 992px) {
    .header-title { font-size: 28px; }
    .app-menu-button { width: 45px; height: 45px; }
    .app-menu-button svg { width: 26px; height: 26px; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .header { height: 70px; padding: 0 20px; }
    .header-title { font-size: 24px; letter-spacing: 3px; }
    .app-menu-button { width: 40px; height: 40px; }
    .app-menu-button svg { width: 24px; height: 24px; }
    .submit-application-button { font-size: clamp(12px, 2.5vw, 14px); }
    .app-menu-button:hover svg { transform: none; }
    .submit-application-button:hover { letter-spacing: 1.5px; box-shadow: none; }
}

@media (max-width: 650px) {
    .header-title { font-size: 22px; letter-spacing: 2px; }
    .header-title .avto-part { font-size: 0.9em; }
}

@media (max-width: 576px) {
    body { padding-top: 60px; }
    .header { height: 60px; padding: 0 15px; }
    .header-title { font-size: 20px; letter-spacing: 1.5px; }
    .app-menu-button { width: 36px; height: 36px; }
    .app-menu-button svg { width: 22px; height: 22px; }
    .header-title .wide-part, .header-title .avto-part { animation: none; }
    .header-title::after { height: 2px; bottom: -7px; }
    .header-container { gap: 8px; }
}

@media (max-width: 480px) {
    .header-title { font-size: 18px; letter-spacing: 1px; }
    .app-menu-button { width: 34px; height: 34px; }
    .app-menu-button svg { width: 20px; height: 20px; }
    .header-title .avto-part { font-size: 0.85em; }
}

@media (max-width: 400px) {
    .header-title .wide-part, .header-title .avto-part {
        font-size: 20px;
        letter-spacing: 0.5px;
        max-width: none;
        overflow: visible;
        white-space: nowrap;
    }
    .header-title-container { min-width: 120px; }
}

@media (max-width: 360px) {
    .header-title .wide-part, .header-title .avto-part { font-size: 13px; letter-spacing: 0; }
    .app-menu-button { width: 30px; height: 30px; }
    .app-menu-button svg { width: 16px; height: 16px; }
    .header-container { gap: 5px; }
}
