
        /* -----------------------------------------------------------
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ----------------------------------------------------------- */
:root {
    --primary-blue: #2c4e7a;
    --dark-blue: #1e3552;
    --accent-gold: #f1c40f;
    --white: #ffffff;
    --light-bg: #f4f7f9;
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(44, 78, 122, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* Расстояние между картинкой и текстом */
    text-decoration: none;
}

.header-logo-img {
    height: 45px; /* Настройте высоту под ваш дизайн */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: --primary-blue; /* Или ваш основной цвет */
    letter-spacing: -0.5px;
}

.logo-text span {
    color: #ffcc00; /* Цвет акцента для слова JOB */
}

/* Подсветка активного языка */
.lang-btn.active {
    font-weight: bold;
    border-bottom: 2px solid #ffcc00;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -----------------------------------------------------------
   2. КОМПОНЕНТЫ (КНОПКИ)
   ----------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(44, 78, 122, 0.3);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 78, 122, 0.4);
}

/* -----------------------------------------------------------
   3. ГРАМОТНЫЙ АДАПТИВНЫЙ HEADER
   ----------------------------------------------------------- */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo span { color: var(--accent-gold); margin-left: 2px; }

.nav-menu ul { display: flex; gap: 30px; }
.nav-menu a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

.header-action { display: flex; align-items: center; }

.lang-switcher {
    display: flex;
    background: #f0f2f5;
    padding: 3px;
    border-radius: 30px;
    margin-right: 15px;
    gap: 4px;
}

.lang-btn {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 30px;
    color: var(--text-gray);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: 0.3s;
}

/* -----------------------------------------------------------
   4. СЕКЦИИ (HERO, FILTERS, VACANCIES)
   ----------------------------------------------------------- */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-bottom: -80px;
}

.video-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}
.video-background video {
    min-width: 100%; min-height: 100%;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30, 53, 82, 0.8) 0%, rgba(44, 78, 122, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px; padding: 0 20px; z-index: 1;
    animation: fadeInUp 1s ease-out;
}
.hero h1 { font-size: 60px; font-weight: 800; margin-bottom: 20px; letter-spacing: -2px; line-height: 1.1; }
.hero p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }

/* Фильтры */
.filters-section { position: relative; z-index: 10; }
.filters-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 15px;
    align-items: end;
    animation: scaleIn 0.8s ease-out 0.3s both;
}

.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-gray); letter-spacing: 1px; padding-left: 5px; }

.filter-group select, .filter-group input {
    width: 100%; padding: 15px 20px; border-radius: 12px; border: 2px solid #f0f0f0;
    background-color: #fbfbfb; font-family: inherit; font-size: 15px; font-weight: 600;
    color: var(--text-dark); transition: var(--transition);
}
.filter-group select { appearance: none; background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%232c4e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>'); background-repeat: no-repeat; background-position: right 15px center; background-size: 14px; }

.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--primary-blue); background-color: var(--white); box-shadow: 0 0 0 4px rgba(44, 78, 122, 0.1); }

/* Вакансии */
.vacancies { padding: 40px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 42px; font-weight: 800; color: var(--primary-blue); margin-bottom: 10px; letter-spacing: -1px; }

.vacancy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(365px, 1fr)); gap: 35px; }

.vacancy-card-sq {
    background-color: var(--white); border-radius: 25px; overflow: hidden; position: relative;
    aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); transition: var(--transition);
    cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px; color: var(--white); z-index: 1; transform-style: preserve-3d; perspective: 1000px;
}

.card-sq-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.card-sq-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%); z-index: -1; transition: var(--transition); }

.card-sq-flags { position: absolute; top: 25px; right: 25px; display: flex; gap: 8px; }
.sq-flag { width: 35px; height: 25px; border-radius: 2px; object-fit: cover; border: 2px solid rgba(255,255,255,0.8); }

.card-sq-title { font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; text-transform: uppercase; }

.card-sq-details { font-size: 14px; opacity: 0; max-height: 0; overflow: hidden; transition: var(--transition); margin-bottom: 20px; }
.card-sq-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.sq-price { font-size: 28px; font-weight: 800; color: var(--accent-gold); }

.vacancy-card-sq:hover { transform: translateY(-10px) rotateX(5deg); }
.vacancy-card-sq:hover .card-sq-bg { transform: scale(1.1); }
.vacancy-card-sq:hover .card-sq-details { opacity: 1; max-height: 100px; }

/* -----------------------------------------------------------
   5. МОДАЛЬНОЕ ОКНО И ФОРМЫ
   ----------------------------------------------------------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px); display: none; justify-content: center;
    align-items: center; z-index: 2000; padding: 20px; animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--primary-blue); width: 100%; max-width: 800px;
    border-radius: 24px; position: relative; overflow: hidden;
    border: 1px solid var(--glass-border); color: aliceblue;
}

.modal-close {
    position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.1);
    border: none; color: white; font-size: 30px; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; z-index: 10;
}

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-info, .modal-form-side { padding: 40px; }
.modal-form-side { background: #1e293b; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 14px; margin-bottom: 8px; color: #94a3b8; }
.input-group input {
    width: 100%; padding: 12px 16px; background: #0f172a;
    border: 1px solid var(--glass-border); border-radius: 12px; color: white;
}

/* -----------------------------------------------------------
   6. АНИМАЦИИ ПОЯВЛЕНИЯ (SCROLL REVEAL)
   ----------------------------------------------------------- */
section {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}
section.reveal { opacity: 1; transform: translateY(0); }

/* Эффект лесенки для карточек */
.vacancy-grid .vacancy-card-sq { opacity: 0; transform: scale(0.9); transition: all 0.6s ease-out; }
section.reveal .vacancy-grid .vacancy-card-sq { opacity: 1; transform: scale(1); }
section.reveal .vacancy-card-sq:nth-child(1) { transition-delay: 0.1s; }
section.reveal .vacancy-card-sq:nth-child(2) { transition-delay: 0.2s; }
section.reveal .vacancy-card-sq:nth-child(3) { transition-delay: 0.3s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* -----------------------------------------------------------
   7. ФИНАЛЬНЫЙ АДАПТИВ
   ----------------------------------------------------------- */
@media (min-width: 992px) {
    .filters-container { grid-template-columns: 1fr 1fr 1.2fr 1fr auto; padding: 35px; }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed; top: 80px; left: -100%; width: 100%;
        height: calc(100vh - 80px); background: white;
        flex-direction: column; align-items: center; padding-top: 50px;
        transition: 0.4s; z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; gap: 40px; }
    .menu-toggle { display: flex; order: 3; }
    .header-action { display: none; }
    
    .hero h1 { font-size: 44px; }
    .filters-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .vacancy-grid { grid-template-columns: 1fr; }
    .modal-grid { grid-template-columns: 1fr; }
    .header-action { display: flex; } /* Языки возвращаем для мобилки */
    .btn-apply { display: none; } /* Скрываем большую кнопку в шапке */
}
/* -----------------------------------------------------------
   СЕКЦИЯ ФОРМЫ (APPLICATION)
   ----------------------------------------------------------- */
.application {
    padding: 100px 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

.application .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-text h2 { font-size: 42px; font-weight: 800; margin-bottom: 25px; }
.app-benefits { margin-top: 30px; }
.app-benefits li { margin-bottom: 12px; font-weight: 600; display: flex; gap: 10px; }
.app-benefits li span { color: var(--accent-gold); }

.app-form-wrapper {
    background: var(--white);
    padding: 45px;
    border-radius: 30px;
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }

.app-form h3 { text-align: center; margin-bottom: 30px; color: var(--primary-blue); }

.btn-submit { width: 100%; margin-top: 20px; font-size: 16px; }

/* -----------------------------------------------------------
   ФУТЕР (FOOTER)
   ----------------------------------------------------------- */
.main-footer {
    padding: 80px 0 30px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p { margin-top: 20px; color: var(--text-gray); max-width: 300px; }
.footer-info h4, .footer-social h4 { 
    color: var(--primary-blue); 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    font-size: 14px; 
    letter-spacing: 1px;
}

.footer-phone {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.social-links { display: flex; gap: 15px; }
.social-links a {
    padding: 8px 15px;
    background: #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}
.social-links a:hover { background: var(--accent-gold); color: var(--dark-blue); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: var(--text-gray);
}

/* -----------------------------------------------------------
   АДАПТИВ ДЛЯ НОВЫХ БЛОКОВ
   ----------------------------------------------------------- */
@media (max-width: 992px) {
    .application .container { grid-template-columns: 1fr; text-align: center; }
    .app-benefits { display: inline-block; text-align: left; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-links { justify-content: center; }
}
/* -----------------------------------------------------------
   6. ФОРМА ЗАЯВКИ (APPLICATION) - ПОД ВАШ HTML
   ----------------------------------------------------------- */
.app-form-wrapper {
    background-color: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
    max-width: 600px; /* Чтобы форма не растягивалась слишком сильно */
    margin: 0 auto;
}

.app-form h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 35px;
    color: var(--primary-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 120px 1fr; /* Фиксированная ширина для меток */
    align-items: center;
    gap: 15px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    text-align: right;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    background-color: #fbfbfb;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(44, 78, 122, 0.1);
}

.btn-apply {
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
    padding: 18px;
}

/* -----------------------------------------------------------
   7. ПОДВАЛ (FOOTER) - ПОД ВАШ HTML
   ----------------------------------------------------------- */
#contacts {
    padding: 80px 0 60px;
    background-color: var(--white);
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-contacts h4 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contacts p {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-phone {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 20px 45px;
    border-radius: 50px;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(44, 78, 122, 0.2);
    transition: var(--transition);
}

.footer-phone:hover {
    background-color: var(--dark-blue);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(44, 78, 122, 0.3);
    color: var(--white);
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links p {
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Контейнер для ссылок соцсетей */
.social-links a {
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.social-links a:hover {
    color: var(--dark-blue);
}

.social-links a:hover::after {
    width: 100%;
}

/* -----------------------------------------------------------
   АДАПТИВНОСТЬ ДЛЯ ЭТИХ БЛОКОВ
   ----------------------------------------------------------- */
@media (max-width: 768px) {
    .app-form-wrapper {
        padding: 30px 20px;
    }

    .form-group {
        grid-template-columns: 1fr; /* На мобилках метка над полем */
        gap: 8px;
    }

    .form-group label {
        text-align: left;
        padding-left: 5px;
    }

    .footer-phone {
        font-size: 20px;
        padding: 15px 30px;
    }

    .social-links {
        flex-direction: row; /* На мобилках выстраиваем соцсети в ряд */
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .social-links p {
        width: 100%; /* Заголовок соцсетей на всю ширину */
    }
}
