.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Анимация появления модального окна */
.modal-overlay {
    animation: fadeIn 0.3s ease;
}

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

.modal {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: translateY(-20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}
/* Заголовок модального окна */
.modal-heading-group {
    width: 100%;
}

.modal-heading-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 32px 32px 16px 32px;
}

.modal-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 40px;
    color: #222;
    flex: 1;
    font-variation-settings: 'wdth' 100;
}

.close-button {
    width: 32px;
    padding: 4px 0 0 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.close-icon {
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
}

.close-icon-svg {
    display: block;
    width: 100%;
    height: 100%;
    padding: 20.87% 20.74% 20.74% 20.87%;
}

/* Контент модального окна */
.modal-content {
    width: 100%;
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #222;
    padding: 0 32px;
    margin-bottom: 24px;
    font-variation-settings: 'wdth' 100;
}

.about-ship {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 780px;
    padding: 0 32px 32px 32px;
    overflow: hidden;
}

/* Стили для контейнера фото */
.photo-container {
    height: 440px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #BBBBBB;
}

/* Стили для фото судна */
.ship-photo {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

/* Контейнер характеристик и файла */
.features-container {
    display: flex;
    gap: 32px;
    align-items: center;
    width: 100%;
}

/* Список характеристик */
.features-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    overflow: hidden;
}

.feature {
    flex: 1;
    min-width: 161px;
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #686868;
    margin-bottom: 4px;
    font-variation-settings: 'wdth' 100;
}

.feature-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #222;
    font-variation-settings: 'wdth' 100;
}

/* Ссылка на файл */
.file-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 214px;
    flex-shrink: 0;
    cursor: pointer;
}

.file-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
}

.file-icon {
    width: 60px;
    height: 60px;
    position: relative;
    overflow: hidden; /* Скрываем всё, что выходит за границы */
    border-radius: 4px; /* Опционально, для скругления углов */
}

.file-icon-svg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* или contain, в зависимости от нужного эффекта */
}

.file-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #222;
    font-variation-settings: 'wdth' 100;
}

.file-size {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #808080;
    font-variation-settings: 'wdth' 100;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-heading-content {
        padding: 24px 24px 12px 24px;
    }

    .modal-title {
        font-size: 24px;
        line-height: 32px;
    }

    .modal-subtitle,
    .about-ship {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-ship {
        padding-bottom: 24px;
    }

    .photo-placeholder {
        height: 300px;
    }

    .features-container {
        flex-direction: column;
        gap: 24px;
    }

    .file-link {
        width: 100%;
    }

    .feature {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .modal-heading-content {
        padding: 16px 16px 8px 16px;
    }

    .modal-title {
        font-size: 20px;
        line-height: 28px;
    }

    .modal-subtitle,
    .about-ship {
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-ship {
        padding-bottom: 16px;
    }

    .photo-placeholder {
        height: 200px;
    }

    .features-list {
        gap: 12px;
    }

    .feature {
        min-width: 100%;
    }
}

/* ==================== */
/* МОДАЛЬНЫЕ ОКНА ДЛЯ МОБИЛЬНЫХ */
/* ==================== */

@media (max-width: 768px) {
    /* Контакты модалка */
    .contacts-overlay {
        padding: 10px !important;
    }
    
    .contacts-modal {
        width: 95% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .contacts-modal-header {
        padding: 15px 20px !important;
    }
    
    .contacts-modal-title {
        font-size: 20px !important;
    }
    
    .contacts-modal-close {
        font-size: 24px !important;
        width: 30px !important;
        height: 30px !important;
    }
    
    .contacts-modal-body {
        padding: 20px !important;
    }
    
    .contact-modal-item {
        margin-bottom: 15px !important;
    }
    
    .contact-modal-item.phone {
        font-size: 18px !important;
    }
    
    .contact-icon-img {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Форма вакансии */
    #requestOverlay .modal {
        width: 95% !important;
        max-width: 500px !important;
        margin: 10px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .tabs-group {
        flex-direction: column !important;
    }
    
    .tab {
        width: 100% !important;
        margin-bottom: 5px !important;
    }
    
    .fields-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .contacts-modal {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .contacts-modal-header {
        padding: 15px !important;
    }
    
    .contacts-modal-body {
        padding: 15px !important;
    }
    
    #requestOverlay .modal {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .modal-header {
        padding: 15px 15px 10px 15px !important;
    }
    
    .modal-content {
        padding: 0 15px 15px 15px !important;
    }
}