/* ===== Общие стили ===== */
body {
    background: linear-gradient(180deg, #0b1d3a, #0b2a5b);
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Hero секция ===== */
.hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-primary {
    color: #4b8aff;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #d3d9e2;
}

.hero-buttons .btn {
    background-color: #4b8aff;
    color: #fff;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.hero-buttons .btn:hover {
    background-color: #3376ff;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ===== Галерея из 4 фото ===== */
.hero-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 380px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* адаптивность */
@media (max-width: 768px) {
    .hero-image-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        margin: 0 auto;
    }
}


.hero-image-placeholder {
    background: rgba(255, 255, 255, 0.06);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.placeholder-text {
    font-size: 22px;
    font-weight: 600;
}

.placeholder-subtext {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== Преимущества ===== */
.advantages {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: #c5c9d4;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-description {
    color: #cbd1de;
    line-height: 1.5;
}

/* ===== Форма ===== */
.form-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #0d2048, #0e316b);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px #4b8aff;
}

.btn-full {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    background-color: #4b8aff;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-full:hover {
    background-color: #3679ff;
    transform: translateY(-2px);
}

.required {
    color: #ff7575;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-title {
        font-size: 38px;
    }
    .form-wrapper {
        padding: 25px;
    }
}
/* ============================================
   VACANCIES SECTION STYLES
   ============================================ */

.vacancies {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Vacancy Card */
.vacancy-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vacancy-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.vacancy-header {
    margin-bottom: 15px;
}

.vacancy-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.vacancy-location {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
    gap: 6px;
}

.icon-location::before {
    content: "📍";
}

/* Vacancy Meta Information */
.vacancy-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.vacancy-type {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.vacancy-salary {
    background-color: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Vacancy Description */
.vacancy-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1;
}

/* Vacancy Button */
.vacancy-view-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* No Vacancies Message */
.no-vacancies-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    padding: 40px 20px;
}

/* ============================================
   VACANCY MODAL STYLES
   ============================================ */

.vacancy-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.vacancy-modal-content h2 {
    color: #1a3a52;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 15px;
}

.vacancy-modal-meta {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.vacancy-modal-meta p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #333;
}

.vacancy-modal-meta strong {
    color: #1a3a52;
}

.vacancy-modal-section {
    margin-bottom: 30px;
}

.vacancy-modal-section h3 {
    color: #1a3a52;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-left: 4px solid #1976d2;
    padding-left: 15px;
}

.vacancy-modal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.vacancy-modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vacancy-modal-section li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.vacancy-modal-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1976d2;
    font-weight: bold;
    font-size: 1.1rem;
}

.vacancy-modal-footer {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
    color: #1976d2;
    font-size: 0.95rem;
}

.vacancy-modal-footer strong {
    color: #1a3a52;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .vacancies {
        padding: 60px 0;
    }
    
    .vacancies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vacancy-title {
        font-size: 1.1rem;
    }
    
    .vacancy-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .vacancy-modal-section h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .vacancies {
        padding: 40px 0;
    }
    
    .vacancy-card {
        padding: 20px;
    }
    
    .vacancy-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .vacancy-type,
    .vacancy-salary {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   MODAL OVERLAY STYLES (General)
   ============================================ */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 90%;
    }
}
