/* --- Zmienne globalne --- */
:root {
    --gold: #D4AF37;            
    --gold-light: #f3cb53;    
    --bg-main: #0F1626;         
    --nav-footer-bg: #1A1D24;   
    --gold-accent: #b08d24;     
    --text-soft: #A0A5B5;       
    --white: #ffffff;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-soft);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- STATYCZNE TŁO PEŁNOEKRANOWE --- */
.fleet-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(15, 22, 38, 0.8) 0%, rgba(15, 22, 38, 0.8) 100%),
                url('assets/img/tlo_glowne.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- NAWIGACJA --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-footer-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo { height: 45px; width: auto; object-fit: contain; }
.nav-menu-wrapper { display: flex; align-items: center; gap: 35px; }
.nav-menu { display: flex; list-style: none; gap: 32px; }

.nav-link {
    text-decoration: none;
    color: var(--gold);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--gold-light); transition: var(--transition);
}

.nav-link:hover, .nav-link.active-page { color: var(--white); text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); }
.nav-link:hover::after, .nav-link.active-page::after { width: 100%; }

.btn-elis-nav {
    background-color: transparent; color: var(--gold); border: 2px solid var(--gold);
    padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 700;
    text-decoration: none; display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.btn-elis-nav:hover { background-color: var(--gold); color: var(--nav-footer-bg); box-shadow: 0 0 15px rgba(214, 175, 55, 0.4); }
.hamburger { display: none; cursor: pointer; background: none; border: none; font-size: 24px; color: var(--gold); }

/* --- Główny kontener --- */
main.main-content {
    flex: 1; padding-top: 160px; padding-bottom: 100px; opacity: 1; transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
main.main-content.fade-out { opacity: 0; transform: translateY(10px); }

.page-view { display: none; }
.page-view.active { display: block; }
.content-section { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Nagłówki sekcji --- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-subtitle { color: var(--gold); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; display: inline-block; margin-bottom: 12px; }
.section-title { font-size: 46px; font-weight: 700; letter-spacing: -1px; margin-bottom: 18px; color: var(--white); }
.section-description { color: var(--text-soft); font-size: 17px; line-height: 1.6; }

/* --- HERO BLOCK --- */
.hero-block { text-align: center; max-width: 950px; margin: 20px auto 70px auto; }
.hero-title { font-size: 46px; font-weight: 700; line-height: 1.35; letter-spacing: -1px; color: var(--white); margin-bottom: 35px; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }
.hero-buttons { display: flex; justify-content: center; gap: 16px; }

.btn-primary-cta { background-color: var(--gold); color: var(--nav-footer-bg); border: none; padding: 14px 32px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-primary-cta:hover { background-color: var(--gold-light); box-shadow: 0 10px 25px rgba(214, 175, 55, 0.4); transform: translateY(-2px); }
.btn-secondary-cta { background-color: transparent; color: var(--white); border: 2px solid var(--nav-footer-bg); padding: 12px 32px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-secondary-cta:hover { border-color: var(--gold); background-color: rgba(214, 175, 55, 0.05); transform: translateY(-2px); }

/* --- UKŁAD LIQUID GLASS --- */
.liquid-glass {
    background: rgba(26, 29, 36, 0.70) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.12), 0 20px 45px rgba(0, 0, 0, 0.55) !important;
}

.about-brand-section { border-radius: 24px; padding: 50px; margin-bottom: 70px; }
.brand-text-pane h2 { font-size: 36px; font-weight: 700; letter-spacing: -1px; margin-bottom: 24px; color: var(--white); }
.brand-text-pane p { font-size: 16px; line-height: 1.7; color: var(--text-soft); margin-bottom: 20px; }
.brand-pagination { font-size: 14px; font-weight: 700; color: var(--gold); margin-top: 10px; letter-spacing: 1px; }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.about-box { padding: 40px 30px; border-radius: 18px; transition: var(--transition); }
.about-box:hover { transform: translateY(-5px); border-color: var(--gold) !important; box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2), 0 20px 45px rgba(214, 175, 55, 0.15) !important; }
.about-box i { font-size: 36px; color: var(--gold); margin-bottom: 20px; }
.about-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--white); }
.about-box p { color: var(--text-soft); font-size: 15px; line-height: 1.6; }

/* --- AKTUALNOŚCI --- */
.news-wrapper-layout { display: flex; flex-direction: column; gap: 35px; }
.news-card.news-hero-featured { width: 100%; display: grid !important; grid-template-columns: 1.2fr 1fr; border-radius: 24px; overflow: hidden; isolation: isolate; cursor: pointer; padding: 0 !important; transition: var(--transition); }
.news-hero-cover-box { width: 100%; height: 100%; min-height: 380px; position: relative; overflow: hidden; background-color: #05080f; }
.news-hero-img-render { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.news-card.news-hero-featured:hover .news-hero-img-render { transform: scale(1.03); }
.news-badge-latest { position: absolute; top: 25px; left: 25px; background-color: var(--gold); color: var(--nav-footer-bg); padding: 6px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 5; }
.news-hero-content-box { padding: 45px; display: flex; flex-direction: column; justify-content: center; }
.news-hero-featured h3 { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 14px; line-height: 1.4; }
.news-hero-featured p.news-excerpt { font-size: 14px; line-height: 1.7; color: var(--text-soft); margin-bottom: 24px; }
.news-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.news-regular-box { border-radius: 20px; overflow: hidden; cursor: pointer; padding: 0 !important; display: flex; flex-direction: column; transition: var(--transition); }
.news-card-thumb-header { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; position: relative; background-color: #05080f; }
.news-grid-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.news-regular-box:hover .news-grid-card-img { transform: scale(1.03); }
.news-regular-content-inner { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.news-regular-box h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.4; }
.news-regular-box p.news-excerpt { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin-bottom: 22px; }
.news-date { color: var(--gold); font-size: 12px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.news-hidden-body { display: none; }
.news-read-more-btn { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); border-color: var(--gold) !important; box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2), 0 20px 50px rgba(214, 175, 55, 0.12) !important; }
.news-card:hover .news-read-more-btn { color: var(--white); }

/* --- MODAL PODGLĄDU 16:9 --- */
.news-modal-card { max-width: 780px !important; background-color: #0b0e14 !important; border: 1px solid rgba(255, 255, 255, 0.1); padding: 0 !important; overflow: hidden; }
.news-modal-banner-viewport { width: 100%; aspect-ratio: 16 / 9; position: relative; background-color: #000; overflow: hidden; }
.news-modal-banner-viewport img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.news-modal-banner-overlay-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to top, #0b0e14, transparent); }
.news-modal-wrapper-box { padding: 35px 40px 40px 40px; position: relative; z-index: 2; }
.news-modal-date-badge { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.news-modal-card h2 { color: var(--white); font-size: 24px; font-weight: 700; margin-top: 6px; margin-bottom: 20px; line-height: 1.35; }
.news-modal-content-text { max-height: 35vh; overflow-y: auto; padding-right: 14px; }
.news-modal-content-text::-webkit-scrollbar { width: 5px; }
.news-modal-content-text::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.news-modal-content-text::-webkit-scrollbar-thumb { background: #1A1D24; border-radius: 10px; }
.news-modal-lead { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.95); line-height: 1.7; margin-bottom: 16px; border-left: 3px solid var(--gold); padding-left: 14px; }
.news-modal-content-text p { font-size: 14px; line-height: 1.7; color: var(--text-soft); margin-bottom: 14px; }

/* --- KARIERA I PANEL WAKATÓW --- */
.recruitment-header { text-align: center; margin-bottom: 45px; padding-top: 20px; }
.recruitment-header h2 { font-size: 36px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.recruitment-lead { font-size: 16px; color: var(--text-soft); }
.jobs-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 24px !important; }
.job-card { border-radius: 20px; padding: 35px 30px; position: relative; display: flex; flex-direction: column; transition: var(--transition); }
.job-card:hover { border-color: var(--gold) !important; box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2), 0 20px 45px rgba(214, 175, 55, 0.15) !important; transform: translateY(-4px); }
.job-status-badge { position: absolute; top: 30px; right: 30px; background-color: rgba(214, 175, 55, 0.15); color: var(--gold-light); padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.job-card h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 16px; max-width: 70%; }
.job-card p { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin-bottom: 24px; }
.job-details-trigger { margin-top: auto; text-decoration: none; color: var(--gold); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: var(--transition); cursor: pointer; }
.job-details-trigger:hover { color: var(--white); }

/* FORMULARZE I MODALE APLIKACJI KARIERY */
.job-modal-card { max-width: 1040px !important; width: 95%; background-color: #0c1017 !important; border: 1px solid rgba(255, 255, 255, 0.1); max-height: 90vh; overflow-y: auto !important; }
.job-modal-card::-webkit-scrollbar { width: 6px; }
.job-modal-card::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.job-modal-card::-webkit-scrollbar-thumb { background: #1A1D24; border-radius: 10px; }
.job-modal-pane { display: none; padding: 40px; }
.job-modal-pane.active-pane-view { display: block; animation: fadeInPane 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes fadeInPane { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.job-modal-header { margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 16px; }
.job-modal-header h2 { color: var(--white); font-size: 28px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.job-modal-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.job-spec-pane { background: rgba(255, 255, 255, 0.02); padding: 26px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.04); }
.job-spec-pane h4 { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 18px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.job-modal-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.job-modal-list li { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); position: relative; padding-left: 24px; }
.job-modal-list li::before { content: '➔'; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 12px; }
.form-asymmetric-split-container { display: grid; grid-template-columns: 1.1fr 1.3fr; gap: 35px; align-items: stretch; }
.form-left-inputs-column { display: flex; flex-direction: column; gap: 18px; }
.form-group-row-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; }
.form-input-box { display: flex; flex-direction: column; gap: 8px; }
.flex-grow-textarea { display: flex; flex-direction: column; flex-grow: 1; }
.flex-grow-textarea textarea { flex-grow: 1; min-height: 160px; resize: none; }
.form-input-box label, .dlc-main-label { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.form-input-box input, .form-input-box textarea { background-color: #121620; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 12px 16px; color: var(--white); font-size: 14px; transition: var(--transition); }
.form-input-box input:focus, .form-input-box textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 12px rgba(214, 175, 55, 0.15); }
.form-right-dlc-column { display: flex; flex-direction: column; gap: 12px; }
.dlc-matrix-grid-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dlc-grid-item input[type="checkbox"] { display: none; }
.dlc-card-content-box { background-color: #121620; border: 2px solid rgba(255, 255, 255, 0.04); border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; padding-bottom: 10px; text-align: center; transition: var(--transition); }
.dlc-thumb-img { width: 100%; height: 85px; object-fit: cover; border-bottom: 1px solid rgba(255, 255, 255, 0.06); transition: var(--transition); }
.dlc-card-title { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-top: 8px; transition: var(--transition); }
.dlc-indicator-dot { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; border-radius: 50%; background-color: rgba(0, 0, 0, 0.6); border: 2px solid rgba(255, 255, 255, 0.2); z-index: 2; transition: var(--transition); }
.dlc-grid-item input[type="checkbox"]:checked + .dlc-card-content-box { border-color: var(--gold); background-color: rgba(214, 175, 55, 0.04); }
.dlc-grid-item input[type="checkbox"]:checked + .dlc-card-content-box .dlc-indicator-dot { background-color: var(--gold); border-color: var(--white); box-shadow: 0 0 8px var(--gold); }

/* SEKJA ZGÓD PRAWNYCH W FORMULARZU */
.form-legal-consents-block {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consent-row-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.consent-row-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom-display {
    height: 18px;
    width: 18px;
    background-color: #121620;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: var(--transition);
}

.consent-row-item:hover input[type="checkbox"] ~ .checkbox-custom-display {
    border-color: var(--gold);
}

.consent-row-item input[type="checkbox"]:checked ~ .checkbox-custom-display {
    background-color: var(--gold);
    border-color: var(--gold);
}

.checkbox-custom-display::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--nav-footer-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-row-item input[type="checkbox"]:checked ~ .checkbox-custom-display::after {
    display: block;
}

.consent-text-label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
}

.consent-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px dashed rgba(214, 175, 55, 0.4);
}

.consent-link:hover {
    color: var(--white);
    border-bottom-style: solid;
}

.required-star {
    color: #ff4d4d;
    font-weight: bold;
}

/* --- POPRAWIONE PREMIUM PRZYCISKI W INTERFEJSIE KARIERY --- */
.job-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-careers-action {
    background-color: var(--gold);
    color: var(--nav-footer-bg);
    border: none;
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-careers-action:hover {
    background-color: var(--gold-light);
    box-shadow: 0 6px 20px rgba(214, 175, 55, 0.3);
    transform: translateY(-1px);
}

.btn-careers-action i {
    transition: transform 0.25s ease;
}

.btn-careers-action:hover i {
    transform: translateX(4px);
}

.btn-careers-back {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-careers-back:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(214, 175, 55, 0.03);
}

.btn-careers-back i {
    transition: transform 0.25s ease;
}

.btn-careers-back:hover i {
    transform: translateX(-4px);
}

/* --- FLOTA I FILTRY --- */
.fleet-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn { background-color: var(--nav-footer-bg); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--white); padding: 10px 24px; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background-color: var(--gold); border-color: var(--gold); color: var(--nav-footer-bg); font-weight: 700; box-shadow: 0 8px 20px rgba(214, 175, 55, 0.3); }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.fleet-card { border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: var(--transition); }
.card-image-box { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; }
.card-image-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.card-content { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.fleet-card h3 { font-size: 24px !important; font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: -0.5px; transition: var(--transition); }
.fleet-card:hover h3 { color: var(--gold-light); }
.fleet-card:hover { border-color: var(--gold) !important; box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.6) !important; transform: translateY(-8px); }

.vehicle-specs-compact { margin-top: auto; display: flex; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; font-size: 13px; color: var(--text-soft); font-weight: 500; }
.vehicle-specs-compact i { margin-right: 4px; color: var(--gold); }
.vehicle-specs-compact div:last-child { color: var(--gold-light); font-weight: 600; letter-spacing: 0.5px; }

/* --- PERFEKCYJNY PANORAMICZNY BANER MULTIMEDIALNY 16:9 DLA 1920x1080 --- */
.modal-card.fleet-grid-panoramic-modal {
    max-width: 1160px !important;
    width: 95%;
    max-height: 90vh; 
    background-color: #0b0f19 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden; 
}

.modal-two-columns-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; 
    width: 100%;
    align-items: stretch;
}

.modal-gallery-side-block {
    display: flex;
    flex-direction: column;
    background-color: #060910;
    padding: 24px;
    gap: 16px;
    justify-content: center;
}

.matrix-main-hero {
    width: 100%;
    aspect-ratio: 16 / 9 !important; 
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.matrix-main-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matrix-bottom-split {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.matrix-sub-item {
    width: 100%;
    aspect-ratio: 16 / 9 !important; 
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.matrix-sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-fleet-details-interior {
    padding: 35px 35px 35px 15px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 20px;
}

.modal-fleet-brand-header .vehicle-class { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }

.modal-fleet-brand-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-top: 2px;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.modal-fleet-brand-header .modal-description {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-soft);
}

.modal-specs-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.specs-block-section h4 {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(214, 175, 55, 0.15);
    padding-bottom: 4px;
}

.modal-specs-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-soft);
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
}

.spec-item:last-child { border-bottom: none; padding-bottom: 0; }
.spec-label { display: flex; align-items: center; gap: 8px; }
.spec-item strong { color: var(--white); font-weight: 600; }

.spec-item strong.text-plate-value {
    color: var(--gold-light);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(214, 175, 55, 0.05);
    padding: 1px 8px;
    border-radius: 4px;
    border: 1px solid rgba(214, 175, 55, 0.15);
}

.spec-item i { color: var(--gold); width: 16px; text-align: center; }

/* --- KONTAKT --- */
.contact-grid { display: flex; justify-content: center; width: 100%; padding: 20px 0; }
.contact-info { padding: 40px; border-radius: 18px; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 500px; }
.info-item { color: var(--white); display: flex; align-items: center; gap: 15px; font-size: 16px; font-weight: 600; }
.info-item i { color: var(--gold); width: 24px; }

/* Modale bazowe */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 22, 38, 0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-overlay.active { opacity: 1; pointer-events: auto; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.modal-card { background-color: var(--bg-main); width: 100%; max-width: 900px; border-radius: 24px; overflow: hidden; position: relative; border: 1px solid var(--nav-footer-bg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7); transform: scale(0.9) translateY(20px); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-overlay.active .modal-card { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--white); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2000; transition: var(--transition); }
.modal-close:hover { background-color: var(--gold); color: var(--nav-footer-bg); transform: rotate(90deg); }

/* --- STOPKA --- */
footer { background-color: var(--nav-footer-bg); padding: 50px 20px 30px 20px; border-top: 4px solid var(--gold); margin-top: auto; box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6); }
.footer-centered-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 25px; }
.footer-logo-box { width: 100%; max-width: 220px; margin-bottom: 5px; }
.footer-logo-img { width: 100%; height: auto; object-fit: contain; }
.centered-socials { display: flex; justify-content: center; gap: 20px; }
.social-icon { width: 44px; height: 44px; border-radius: 12px; background-color: rgba(255, 255, 255, 0.02); color: var(--gold); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.05); }
.social-icon:hover { background-color: var(--gold); color: var(--nav-footer-bg); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(214, 175, 55, 0.35); }
.footer-legal-link-box { margin-top: 10px; }
.rules-trigger { color: var(--gold); text-decoration: none; font-size: 15px; font-weight: 600; padding: 5px 15px; transition: var(--transition); }
.rules-trigger:hover { color: var(--white); border-bottom: 1px solid var(--gold-light); }
.footer-bottom { max-width: 1200px; margin: 30px auto 0 auto; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; font-size: 13px; color: rgba(160, 165, 181, 0.4); }

/* --- RESPONSIVE MEDIA QUERIES (ADAPTACJA MOBILNA) --- */
@media (max-width: 950px) {
    .nav-container { padding: 15px 20px; }
    .nav-menu-wrapper { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background: var(--nav-footer-bg); flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 50px; gap: 40px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-menu-wrapper.active { left: 0; }
    .nav-menu { flex-direction: column; align-items: center; gap: 30px; }
    .hamburger { display: block; }
    .btn-elis-nav { width: 80%; justify-content: center; padding: 12px; }
    
    .news-card.news-hero-featured { display: flex !important; flex-direction: column; }
    .news-hero-cover-box { width: 100%; aspect-ratio: 16 / 9; min-height: auto; }
    .news-hero-content-box { padding: 30px; }
    
    .news-sub-grid { grid-template-columns: 1fr; gap: 24px; }
    .jobs-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    
    .modal-card.fleet-grid-panoramic-modal { max-height: 94vh; overflow-y: auto; }
    .modal-two-columns-layout { grid-template-columns: 1fr; }
    
    .modal-gallery-side-block { padding: 16px; }
    .matrix-main-hero { aspect-ratio: 16 / 9 !important; }
    .matrix-bottom-split { gap: 12px; }
    .matrix-sub-item { aspect-ratio: 16 / 9 !important; }
    
    .modal-fleet-details-interior { padding: 20px; gap: 20px; }
    .modal-specs-box { grid-template-columns: 1fr; gap: 20px; }
    .modal-specs-grid-layout { padding: 14px 18px; }

    .form-asymmetric-split-container { display: flex; flex-direction: column; gap: 30px; }
    .form-group-row-inner { grid-template-columns: 1fr; }
    .dlc-matrix-grid-compact { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
    .dlc-thumb-img { height: 75px; }
    
    .job-modal-pane { padding: 25px; }
    .job-modal-card { max-height: 92vh; }
    .job-modal-footer-form { flex-direction: column; gap: 12px; align-items: stretch; }
    .btn-careers-back, .btn-careers-action { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .dlc-matrix-grid-compact { grid-template-columns: repeat(2, 1fr); }
    .news-modal-card h2 { font-size: 20px; }
    .news-modal-wrapper-box { padding: 20px; }
    .news-hero-content-box h3 { font-size: 20px; }
}

@media (max-width: 900px) { .hero-title { font-size: 34px; } .about-brand-section { padding: 30px; } }