* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #281100;
}

/* ===== TOP BAR ===== */

.top-bar {
    background: #00264d;
    color: white;
    font-size: 13px;
}

.top-content {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 8px 0;
}

/* ===== HEADER ===== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(72, 52, 38, 0.8);
}

.container {
    width: 100%;
    margin: 0 auto;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    margin-left: 10em;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.logo a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    color: white;
}

/* ===== NAV ===== */

.nav {
    margin-left: 30em;
    list-style: none;
    display: flex;
    gap: 50px;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    font-weight: bold;
}

/* underline animation */

.nav-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-item:hover a::after {
    width: 100%;
}

/* ===== LANGUAGE SWITCH ===== */

.lang-switch {
    display: flex;
    gap: 6px;
    margin-right: 10em;
}

.lang {
    padding: 6px 10px;
    font-size: 13px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang:hover {
    background: white;
    color: #003366;
}

.lang.active {
    background: white;
    color: #003366;
    font-weight: 600;
}

/* ===== MEGA MENU ===== */

.mega-menu {
    background: #34261c;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mega-menu.open {
    max-height: 400px;
}

/* контейнер меню */

.mega-content {
    padding: 30px 0;
    margin-left: 15em;
}

/* секции */

.mega-section {
    display: none;
}

.mega-section.active {
    display: block;
}

/* колонка со ссылками */

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-weight: bold;
}

/* заголовок */

.mega-column h4 {
    font-size: 13px;
    text-transform: uppercase;
    color:white;
    margin-bottom: 10px;
}

/* ссылки */

.mega-column a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.mega-column a:hover {
    color: #f4a222;
}

/* ===== MAIN ===== */

.main-first-img {
    margin: -80px 0 0 0;
    position: relative;
}

.main-first-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.main-hero-img-content {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-overlay {
    position: relative;
    display: inline-block;
}

.text-overlay::before {
    content: "";
    position: absolute;
    top: 25%;
    left: -15%;
    width: 50%;
    height: 100%;
    border: 3px solid #949494;
    box-sizing: border-box;
    z-index: -1; 
}

.main-hero-title-h1 {
    margin-top: 2em;
    font-size: 72px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #f4a222;
}

.main-hero-title-h2 {
    font-size: 53px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
}

.main-title {
    width: 75%;
}

.main-text {
    width: 80%;
    color: white;
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 2em;
    margin-left: 4em;
    margin-bottom: 0;
}

.main-text-list {
    width: 80%;
    color: white;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 0;
    margin-left: 5em;
    margin-bottom: 0;
}

.main-grid {
    margin-top: 2em;
    margin-bottom: 2em;
    display: grid;
    grid-template-columns: 50% 45%;
    align-items: start;
}

.main-left {
    margin-top: 6em;
}

.main-right {
    overflow: hidden;
    display: flex;
    gap: 40px;
}

.main-right-img {
    margin-top: 60px;
    width: 40%;
    height: 60%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.1s linear;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.main-large-img {
    margin: 6em 0 0 0;
    position: relative;
}

.main-img {
    width: 100%;
    height: auto;
}

.main-second-grid {
    margin-top: 2em;
    margin-bottom: 2em;
    display: grid;
    gap: 20px;
    grid-template-columns: 55% 40%;
    align-items: start;
}

.main-second-left {
    display: flex;
    margin-top: 1em;
    margin-left: 4em;
    gap: 20px;
}

.main-page-title {
    margin-top: 10px;
    margin-left: 2em;
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: #f4a222;
}

.main-smaller-title {
    padding: 25px 45px 0 25px;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: #f4a222;
}

.bordered {
    border: #f9f9f9 1px solid;
}

.small {
    padding: 0 45px 40px 0;
    font-size: 14px;
}

.fullscreen {
    height: auto;
    width: 100%;
    object-fit: cover;
}

.main-large-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.main-large-img-content {
    position: absolute;
    z-index: 1;
    background: #281100;
    width: 100%;
    height: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 90%;
    height: 90%;
}

.grid-item {
    background-color: #444442;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 
        -4px -4px 4px rgba(255, 255, 255, 0.3),
        6px 6px 12px rgba(255, 255, 255, 0.8);
}

.grid-item-img {
    width: 60px;
    height: 60px;
    margin-right: 50px;
    margin-bottom: 30px;
    flex-shrink: 0;
    border-radius: 50%;
}

.icon {
    width: 150%;
    height: auto;
}

.grid-item-img-bigger {
    width: 60px;
    height: 60px;
    margin-left: -10px;
    margin-right: 60px;
    margin-bottom: 30px;
    flex-shrink: 0;
    border-radius: 50%;
}

.icon-bigger {
    width: 200%;
    height: auto;
}

.grid-item-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-item-title {
    margin: 0 0 10px 0;
    font-size: 36px;
    color: #f4a222;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.grid-item-subtitle {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.grid-item-text {
    font-size: 18px;
    color: #fff;
    margin-top: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.final {
    margin-bottom: 2em;
}

/* ===== VESSEL CALLS ===== */

.table {
    display: flex;
    justify-content: center;
    align-items: center;  
}

.schedule-table {
    width: 90%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #281100;
    color: white;
    font-size: 22px;
}

.schedule-table th,
.schedule-table td {
    border: 5px solid #f4a222;
    padding: 12px;
    text-align: left;
}

.schedule-table th {
    background: #281100;
    color: white;
}

.reports {
    margin-top: 40px;
}

.report-year {
    margin-left: 6em;
    margin-right: 6em;
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 3px solid #f4a222;
}

.report-year h1 {
    color: #f4a222;
    font-size: 36px;
    margin-left: 2em;
    margin-bottom: 0.75em;
}

.report-text {
    font-size: 16px;
    margin-left: 2em;
}

/* ===== FILE LINKS ===== */

.file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.file-link:hover {
    color: #f4a222;
}

/* ===== HSE ===== */

.hse-title {
    width: 65%;
}

.hse-grid {
    margin-top: 2em;
    display: grid;
    grid-template-columns: 55% 40%;
    gap: 40px;
    align-items: start;
}

.hse-text {
    width: 58%;
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 2em;
    margin-left: 4em;
    margin-bottom: 2em;
}

.hse-files {
    margin-left: 5em;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.file-icon {
    color: #f4a222;
}

.file-text {
    color: white;
    font-size: 14px;
    margin-bottom: 0.25em;
}

.file-text:hover {
    color: #f4a222;
}

.hse-right {
    overflow: hidden;
}

.hse-img {
    margin-top: 60px;
    width: 90%;
    height: 110%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.1s linear;
    height: auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.hse-map {
    margin-top: 2em;
    display: flex;
    justify-content: center;
    align-items: center;  
}

.evacuation-map {
    margin-top: 3em;
    width: 65%;
    height: auto;
}

/* ===== SERVICES AND TARIFFS ===== */

.page-title {
    margin-top: 60px;
    margin-left: 2em;
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    color: #f4a222;
}

.service-container {
    margin: 25px 0 0 0;
    background: #483426;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-container-text {
    font-size: 26px;
    font-weight: bold;
    color: #f4a222;
    text-transform: uppercase;
    margin: 0;
    padding: 20px 0 10px 50px;
}

.service-content .file-icon {
    margin-left: 50px;
}

.service-container-large-img {
    margin: 25px 0 0 0;
}

.service-and-tariffs-img {
    width: 100%;
    height: auto;
    border-bottom: #f4a222 25px solid;
}

.service-container-img {
    margin: 5px 0 5px 100px;
    width: 320px;
    height: auto;
}

.dropdown-list {
    list-style: disc;
    padding-left: 70px;
    padding-bottom: 20px;
    margin: 0;

    color: #fff;
    font-size: 14px;
    font-weight: bold;

    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transition: all 0.4s ease;
}

.dropdown-list.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 10px;
}

.toggle-btn {
    cursor: pointer;
}

.arrow-group {
    transform-origin: 24px 24px;
    transition: transform 0.3s ease;
}

.toggle-btn.rotate .arrow-group {
    transform: rotate(180deg);
}

.group-title {
    grid-row: span 2;
    display: flex;
    align-items: center;
}

.tariffs-grid {
    margin-top: 3em;
    margin-bottom: 3em;
    display: grid;
    grid-template-columns: 45% 45%;
    row-gap: 40px;
    column-gap: 10em;
    align-items: center;
}

.left {
    margin-left: 6em;
    color: #f4a222;
    font-size: 34px;
    font-weight: bold;
}

.right {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    column-gap: 20px;
}

.arrow {
    color: #f4a222;
    font-size: 32px;
    margin-bottom: 0.25em;
}

.tariffs-and-rules-text {
    margin: 0;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

/* ===== CONTACT US ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 0;
    align-items: start;
}

.contact-left {
    margin-top: 4em;
}

.contact-text {
    width: 80%;
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 2em;
    margin-left: 4em;
    margin-bottom: 2em;
}

.contacts {
    display: flex;
    flex-direction: column;
    margin-top: 5em;
}

.contact {
    margin-top: 5px;
}

.contact-subtext {
    width: 80%;
    text-decoration: none;
    display: flex;
    gap: 10px;
    color: white;
    font-size: 14px;
    line-height: 1.6;
    margin-left: 5em;
    margin-bottom: 2em;
}

.contact-subtext:hover {
    color:#f4a222
}

.contact-img {
    margin-top: 3em;
    width: 90%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.1s linear;
    height: auto;
    display: block;
}

@media (max-width: 1700px) {
    .nav {
        margin-left: 25em;
    }
}

@media (max-width: 1580px) {
    .nav {
        margin-left: 20em;
    }

    .logo {
        margin-left: 6em;
    }

    .lang-switch {
        margin-right: 6em;
    }

    .tariffs-grid {
        column-gap: 8em;
    }

    .main-large-img-content {
        height: 60%;
    }
}

@media (max-width: 1450px) {
    .nav {
        margin-left: 10em;
        gap: 40px;
    }   

    .logo {
        margin-left: 4em;
    }

    .lang-switch {
        margin-right: 4em;
    }

    .contact-left {
        margin-top: 0;
    }
}

@media (max-width: 1350px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-large-img-content {
        height: 80%;
    }

    .main-hero-img-content {
        top: 30%;
    }

    .main-left {
        margin-top: 2em;
    }
}

@media (max-width: 1250px) {
    .nav {
        margin-left: 8em;
        gap: 20px;
    }

    .page-title {
        font-size: 26px;
    }

    .main-second-grid {
        display: block;
    }

    .main-second-left {
        margin-right: 4em;
    }

    .main-second-right {
        position: relative;
        left: 50%;
        transform: translate(-50%, 0);

        text-align: center;
        max-width: 600px; 
        margin-top: 4em;
        padding: 30px 30px 30px 0;
        border: 1px #f9f9f9 solid;
    }

    .hse-text {
        font-size: 12px;
    }

    .main-text {
        font-size: 12px;
    }

    .hse-files {
        margin-left: 3em;
    }

    .tariffs-grid {
        column-gap: 6em;
    }

    .contact-text {
        font-size: 12px;
    }

    .contact-subtext {
        font-size: 11px;
    }
}

@media (max-width: 1050px) {

    .main-large-img-content {
        height: 100%;
    }
}