:root {
    --blue: #5AA8EE; /* Основной фон сайта */
    --dark-glass: rgba(0,20,38,1); /* Темные плашки для контраста */
    --white: #ffffff;
    --text-color: #ffffff;
    --max-width: 1200px;
    --radius: 12px;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    --border-glass: rgba(255, 255, 255, 0.15);
    --font-main: 'Roboto', sans-serif;
    --section-gap: 35px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--blue);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.glass-card {
    background: var(--dark-glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid var(--border-glass);
    text-align: center; 
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--white);
}

.center { text-align: center; }
.center-text { text-align: center; margin: 0 auto 20px; max-width: 800px; }

/* HEADER */
.header {
    background-color: rgba(0,20,38,1); 
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img { height: 50px; margin-right: 15px; }
.logo-text h1 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 0; }
.tagline { font-size: 0.75rem; color: #ddd; margin: 0; }

/* Навигация */
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 500;
}
.nav-btn:hover, .nav-btn.active { color: var(--white); font-weight: bold; }

.contact-us-btn {
    background-color: var(--blue);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
}
.contact-us-btn:hover { background-color: #eee; }

/* Язык и мобильное меню */
.header-right { display: flex; align-items: center; gap: 15px; }
.lang-switcher select {
    background: rgba(0,20,38,1);
    color: var(--white);
    border: 1px solid var(--border-glass);
    padding: 5px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}
.lang-switcher option { background: #5AA8EE; color: white; }

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* MAIN CONTENT */
main { 
    flex: 1; 
    padding-top: 35px; 
    padding-bottom: 0;
}
.page-section { 
    display: none; 
    animation: fadeIn 0.5s ease-in-out; 
    padding-bottom: var(--section-gap);
}
.page-section.active { 
    display: block; 
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-title {
    color: var(--white);
    font-size: 2.5rem;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sub-title {
    color: var(--white);
    font-size: 2.5rem;
    margin: 50px 0 30px;
    font-weight: 700;
}

/* About */
.about-hero { display: flex; gap: 30px; align-items: center; flex-direction: column; } 
@media (min-width: 768px) {
    .about-hero { flex-direction: row; text-align: left; }
}

.about-text { flex: 1; }
.highlight-text { font-size: 1.2rem; font-weight: 500; margin-bottom: 15px; color: #8ad2ff; }
.about-img { flex: 1; max-width: 100%; }
.about-img img { width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card h4 { color: #8ad2ff; margin-bottom: 10px; font-size: 1.2rem; }

.team-img-wrapper img { width: 100%; border-radius: 8px; max-height: 400px; object-fit: cover; margin-top: 20px;}

/* Вакансии */
.cat-title {
    background: rgba(0,20,38,1);
    border-bottom: 2px solid var(--white);
    padding: 10px 0;
    margin: 50px 0 30px;
    font-size: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.vacancy-card {
    padding: 0; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}
.vacancy-card img { width: 100%; height: 200px; object-fit: cover; }
.vac-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.vacancy-card h4 { color: #8ad2ff; margin-bottom: 10px; font-size: 1.2rem; }
.vac-desc { margin-bottom: 10px; font-style: italic; color: #ddd; }
.vacancy-card ul { padding-left: 0; list-style: none; font-size: 0.95rem; color: #eee; }
.vacancy-card ul li { margin-bottom: 5px; }

/* Контакты */
.contacts-wrapper { display: flex; gap: 30px; flex-wrap: wrap; }
.contact-info { flex: 2.0; min-width: 400px; display: flex; flex-direction: column; justify-content: center; }
.map-container { flex: 2.0; min-width: 400px; padding: 0; overflow: hidden; height: 400px; }
.contact-person h3 { color: #8ad2ff; margin-bottom: 5px; }
.contact-person a { color: var(--white); text-decoration: underline; }
.divider { height: 1px; background: var(--border-glass); margin: 20px 0; }

/* FOOTER */
.footer { 
    background-color: rgba(0,20,38,1); 
    padding: 40px 0 20px; 
    margin-top: auto; 
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.footer-left {
    display: flex;
    gap: 40px;
    text-align: left;
}
.f-person { display: flex; flex-direction: column; }
.f-person strong { color: #8ad2ff; font-size: 1.1rem; }
.f-person a { color: #ddd; text-decoration: none; font-size: 0.9rem; margin-top: 2px;}

.footer-right {
    text-align: right;
}
.socials-box span { display: block; margin-bottom: 10px; color: #ccc; }
.social-icons { display: flex; gap: 15px; justify-content: flex-end; }
.social-icons img { width: 40px; transition: transform 0.3s; }
.social-icons img:hover { transform: scale(1.1); }

.line { height: 1px; background: rgba(0,20,38,1); margin: 20px 0; }
.footer-bottom p { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* MODAL */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}
.modal-content { width: 90%; max-width: 500px; text-align: left; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #8ad2ff; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: rgba(0,20,38,1); border: 1px solid #555;
    color: var(--white); border-radius: 8px; outline: none;
}
.modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-send { background: var(--white); color: var(--blue); border: none; padding: 10px 25px; border-radius: 8px; cursor: pointer; font-weight: bold; }
.btn-cancel { background: transparent; border: 1px solid #aaa; color: #ccc; padding: 10px 25px; border-radius: 8px; cursor: pointer; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .burger-menu { display: flex; }
    
    .nav-menu {
        display: none; width: 100%; flex-direction: column; 
        background: #001426; padding: 20px; position: absolute; top: 100%; left: 0;
        border-bottom: 1px solid var(--blue);
    }
    .nav-menu.active { display: flex; }

    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-left { flex-direction: column; gap: 20px; text-align: center; }
    .footer-right { text-align: center; }
    .social-icons { justify-content: center; }
    
    .map-container { height: 300px; }
}

#about .about-text p {
    text-align: center;
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
}

#about .about-hero {
    flex-direction: column;
    text-align: center;
}
@media (min-width: 768px) {
    #about .about-hero {
        flex-direction: row; 
        text-align: left;
    }
    #about .about-text {
        text-align: center;
    }
}

/* UPD перенос */
.contact-info {
    flex: 2;
    min-width: 420px;
}

.contact-person p {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .contacts-wrapper {
        flex-direction: column;
    }
    .contact-info {
        min-width: 100%;
    }
    .contact-person p {
        white-space: normal;
    }
}