:root {
    --primary-color: #8A2BE2; /* Фиолетовый */
    --secondary-color: #00BFFF; /* Бирюзовый */
    --dark-bg: #0a0a1a;
    --light-text: #f0f0f0;
    --dark-text: #333;
    --card-bg: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

/* --- Header & Navigation --- */
header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    /* Убедитесь, что у вас есть изображение header-bg.jpg в корне проекта */
    background-image: url('header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--dark-bg);
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--primary-color);
}

header .subtitle {
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--secondary-color);
}

nav {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 100;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

.lang-switcher {
    display: flex;
}
.lang-switcher button {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--light-text);
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.lang-switcher button.active {
    background: var(--secondary-color);
    color: var(--dark-bg);
}
.lang-switcher button:first-child {
    border-radius: 5px 0 0 5px;
}
.lang-switcher button:last-child {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

/* --- Sections --- */
section {
    padding: 6rem 2rem;
    text-align: center;
}

section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: transform 0.4s, box-shadow 0.4s;
    backdrop-filter: blur(5px);
    text-align: left;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
}

.card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    display: block;
    text-align: center;
}
.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

/* --- Stats Section --- */
#stats {
    background: var(--dark-bg);
    padding: 4rem 2rem;
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item {
    margin: 1rem;
    text-align: center;
}
.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.stat-text {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* --- Jobs Section --- */
#jobs {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* === НОВЫЕ СТИЛИ ДЛЯ СПИСКОВ ВАКАНСИЙ === */
#jobs .card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#jobs .card ul li {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху иконки и текста */
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.6;
}

#jobs .card ul li i {
    color: var(--secondary-color);
    font-size: 1.1rem; /* Оптимальный размер иконки */
    width: 25px;       /* Фиксированная ширина для иконки */
    margin-right: 1rem; /* Отступ справа от иконки */
    margin-top: 0.2rem;   /* Легкая коррекция для идеального выравнивания по вертикали */
    flex-shrink: 0;     /* Запрещаем иконке сжиматься */
    text-align: center;
}
/* ========================================= */


.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 3rem;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--secondary-color);
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}
.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.faq-question::after {
    content: '\f078'; /* FontAwesome angle-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}
.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

/* --- Footer --- */
footer {
    background: #0a0a1a;
    color: var(--light-text);
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}
.footer-contact a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    header .subtitle { font-size: 1.2rem; }
    nav .nav-container { flex-direction: column; gap: 1rem; }
    section { padding: 4rem 1rem; }
    section h2 { font-size: 2.2rem; }
    .card { padding: 2rem 1.5rem; }
}