/* =========================
   FIVE OCEANS MARINE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #07192E;
    color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================
   NAVBAR
========================= */

nav {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;

    padding: 0 80px;

    background: rgba(7, 25, 46, 0.65);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 1000;

    transition: 0.4s ease;
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    height: 150px;
    width: auto;

    object-fit: contain;

    transition: 0.3s ease;
}


/* =========================
   NAV LINKS
========================= */

.nav-links {
    display: flex;
    align-items: center;

    gap: 40px;

    list-style: none;

    margin-left: auto;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-size: 15px;

    letter-spacing: 0.8px;

    color: rgba(255, 255, 255, 0.85);

    white-space: nowrap;

    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #3EA8FF;
}


/* =========================
   REQUEST SERVICE BUTTON
========================= */

.nav-button {
    display: inline-block;

    padding: 11px 23px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.25);

    color: white !important;

    font-weight: 500;

    backdrop-filter: blur(10px);

    transition: 0.3s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.20);

    border-color: rgba(255, 255, 255, 0.45);

    transform: translateY(-2px);
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-menu-btn {
    display: none;

    width: 32px;
    height: 30px;

    flex-direction: column;
    justify-content: center;

    gap: 6px;

    cursor: pointer;

    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;

    width: 28px;
    height: 2px;

    background: white;

    border-radius: 2px;

    transition: 0.3s ease;
}


/* =========================
   MEGA MENU
========================= */

.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: fixed;

    top: 90px;
    left: 0;

    width: 100vw;
    height: 320px;

    padding: 35px 8%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    background: rgba(255, 255, 255, 0.97);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-20px);

    transition: 0.35s ease;

    z-index: 9999;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================
   MEGA MENU LEFT
========================= */

.menu-left {
    width: 350px;

    display: flex;

    flex-direction: column;

    gap: 4px;
}

.menu-item {
    background: none;

    border: none;

    text-align: left;

    font-size: 24px;

    font-weight: 600;

    color: #1d1d1f;

    cursor: pointer;

    padding: 8px 0;

    transition: 0.3s ease;
}

.menu-item:hover {
    color: #0071E3;

    transform: translateX(8px);
}

.menu-item.active {
    color: #0071E3;
}


/* =========================
   MEGA MENU RIGHT
========================= */

.menu-right {
    width: 650px;
}

#menu-title {
    color: #111;

    font-size: 38px;

    margin-bottom: 15px;
}

#menu-description {
    color: #555;

    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 25px;
}

#menu-links {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

#menu-links a {
    background: #f5f5f7;

    color: #111;

    padding: 14px 18px;

    border-radius: 14px;

    font-size: 15px;

    transition: 0.3s ease;
}

#menu-links a:hover {
    background: #0071E3;

    color: white;
}


/* =========================
   HERO
========================= */

.hero {
    height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 0 40px;

    position: relative;

    overflow: hidden;
}

.hero-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(5, 18, 34, 0.55),
            rgba(5, 18, 34, 0.75)
        );

    z-index: -1;
}

.hero-content {
    width: 100%;
    max-width: 900px;

    position: relative;

    z-index: 2;
}

.hero h1 {
    font-size: 72px;

    font-weight: 700;

    line-height: 1.1;

    margin-bottom: 30px;
}

.hero p {
    font-size: 24px;

    color: #d4dce8;

    margin-bottom: 50px;
}


/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 20px;
}

.button {
    display: inline-block;

    padding: 18px 45px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.35);

    color: white;

    border-radius: 50px;

    font-size: 17px;

    backdrop-filter: blur(10px);

    transition: 0.35s ease;
}

.button:hover {
    background: white;

    color: #07192E;

    transform: translateY(-3px);
}

.request-btn {
    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.35);
}


/* =========================
   ABOUT US
========================= */

.about-section {
    padding: 130px 8%;

    background: white;

    color: #111;
}

.about-content {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 75px;

    align-items: center;
}

.about-text {
    max-width: 520px;
}

.about-label {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3px;

    color: #0071E3;
}

.about-text h2 {
    margin: 0 0 25px;

    font-size: clamp(40px, 4.5vw, 58px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    color: #111;
}

.about-text p {
    margin-bottom: 18px;

    font-size: 17px;

    line-height: 1.75;

    color: #555;
}


/* =========================
   ABOUT IMAGE
========================= */

.about-image {
    position: relative;

    width: 100%;
    height: 440px;

    overflow: hidden;

    border-radius: 24px;

    background: #102C49;

    border: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.about-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 25, 46, 0) 45%,
            rgba(7, 25, 46, 0.65) 100%
        );

    pointer-events: none;
}

.about-image-info {
    position: absolute;

    left: 25px;
    bottom: 23px;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 5px;
}

.about-image-info strong {
    font-size: 13px;

    letter-spacing: 2px;

    color: white;
}

.about-image-info span {
    font-size: 13px;

    color: #D7E1EB;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 160px 8%;

    background: #07192E;
}

.services h2 {
    font-size: 55px;

    margin-bottom: 70px;

    text-align: center;
}

.cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 35px;
}

.card {
    background: #102744;

    border-radius: 20px;

    padding: 45px;

    border: 1px solid rgba(255, 255, 255, 0.05);

    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-12px);

    background: #15365E;
}

.card h3 {
    font-size: 28px;

    margin-bottom: 25px;
}

.card p {
    line-height: 2;

    color: #d2d8df;
}


/* =========================
   SERVICE LINKS
========================= */

.card p a {
    color: inherit;

    text-decoration: none;

    display: inline-block;

    position: relative;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.card p a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -3px;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width 0.25s ease;
}

.card p a:hover {
    color: #3EA8FF;

    transform: translateX(3px);
}

.card p a:hover::after {
    width: 100%;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: 160px 8%;

    text-align: center;

    background: #F2F6FA;

    color: #07192E;

    border-top: 1px solid #E1E8EF;
}

.contact h2 {
    font-size: 55px;

    margin-bottom: 28px;

    letter-spacing: -1.5px;
}

.contact p {
    max-width: 800px;

    margin: 0 auto 40px;

    font-size: 18px;

    line-height: 1.7;

    color: #536273;
}

.contact .button {
    display: inline-block;

    padding: 16px 36px;

    background: #07192E;

    color: white;

    border: 1px solid #07192E;

    border-radius: 50px;

    transition: 0.35s ease;
}

.contact .button:hover {
    background: #15365E;

    border-color: #15365E;

    color: white;

    transform: translateY(-3px);
}


/* =========================
   LEGAL BOX
========================= */

.legal-box {
    margin-top: 30px;

    padding: 25px;

    background: #f5f7fa;

    border-radius: 15px;

    border: 1px solid #ddd;
}

.legal-box label {
    display: flex;

    gap: 12px;

    align-items: flex-start;

    font-size: 14px;

    line-height: 1.6;

    color: #555;

    margin-bottom: 15px;
}

.legal-box input {
    margin-top: 5px;

    width: 18px;
    height: 18px;
}


/* =========================
   FADE UP ANIMATION
========================= */

.fade-up {
    opacity: 0;

    transform: translateY(100px);

    transition: 1.2s ease;
}

.fade-up.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    nav {
        padding: 0 40px;
    }

    .nav-links {
        gap: 25px;
    }

    .mega-menu {
        display: none;
    }

    .hero h1 {
        font-size: 60px;
    }

    .about-content {
        gap: 45px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    /* =====================
       NAV
    ===================== */

    nav {
        height: 90px;

        padding: 0 25px;
    }

    .logo img {
        height: 120px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /*
       MOBILE NAVIGATION
    */

    .nav-links {
        position: fixed;

        top: 90px;
        left: 0;

        width: 100%;
        height: calc(100vh - 90px);

        margin: 0;

        padding: 60px 25px;

        background: rgba(7, 25, 46, 0.97);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: flex-start;

        gap: 30px;

        transform: translateX(100%);

        transition: transform 0.4s ease;

        z-index: 1050;

        overflow-y: auto;
    }

    /*
       OPEN MENU
    */

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        display: block;

        width: auto;
    }

    .nav-links a {
        font-size: 24px;

        color: white;
    }

    .nav-links a:hover {
        color: #3EA8FF;
    }

    /*
       REQUEST SERVICE
    */

    .nav-links .nav-button {
        font-size: 18px;

        padding: 13px 28px;
    }

    /*
       MEGA MENU OFF
    */

    .mega-menu {
        display: none !important;
    }


    /* =====================
       HERO
    ===================== */

    .hero {
        padding: 0 25px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 20px;

        margin-bottom: 35px;
    }

    .hero-buttons {
        flex-direction: column;

        gap: 15px;
    }

    /*
       Убираем Request Service
       из HERO на телефоне,
       чтобы не было второй кнопки.
    */

    .hero .request-btn {
        display: none;
    }


    /* =====================
       ABOUT
    ===================== */

    .about-section {
        padding: 90px 6%;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-text {
        max-width: none;
    }

    .about-text h2 {
        font-size: 42px;
    }

    .about-text p {
        font-size: 16px;
    }

    .about-image {
        height: 360px;
    }


    /* =====================
       SERVICES
    ===================== */

    .services {
        padding: 100px 6%;
    }

    .services h2 {
        font-size: 42px;

        margin-bottom: 50px;
    }

    .cards {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .card {
        padding: 35px;
    }


    /* =====================
       CONTACT
    ===================== */

    .contact {
        padding: 100px 6%;
    }

    .contact h2 {
        font-size: 42px;
    }

    .contact p {
        font-size: 17px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 500px) {

    nav {
        padding: 0 20px;
    }

    .logo img {
        height: 110px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .about-section {
        padding: 70px 6%;
    }

    .about-text h2 {
        font-size: 36px;
    }

    .about-image {
        height: 300px;

        border-radius: 20px;
    }

    .services h2 {
        font-size: 36px;
    }

    .contact h2 {
        font-size: 36px;
    }

    .nav-links a {
        font-size: 22px;
    }
}


/* =========================
   MOBILE SERVICE LINKS
========================= */

@media (max-width: 768px) {

    .card p a {
        padding-right: 18px;
    }

    .card p a::before {
        content: "→";

        position: absolute;

        right: 0;

        opacity: 0.65;

        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .card p a:active::before {
        transform: translateX(4px);

        opacity: 1;
    }
}
/* =========================
   MOBILE FIX
========================= */

@media (max-width: 900px) {

    /* Три полоски правее */
    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
        margin-right: 5px;
    }

    /* Убираем вторую кнопку Request Service в HERO */
    .hero .request-btn {
        display: none;
    }

    /* Открытое мобильное меню */
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;

        width: 100%;
        height: calc(100vh - 90px);

        background: rgba(7, 25, 46, 0.97);

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 30px;

        padding: 0;
        margin: 0;

        transform: translateX(100%);
        transition: transform 0.4s ease;

        z-index: 1050;
    }

    /* Когда меню открыто — пункты строго по центру */
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        display: block;
        margin: 0;
    }

    .nav-links a {
        font-size: 24px;
        color: white;
    }

    .nav-links .nav-button {
        font-size: 18px;
        padding: 13px 28px;
    }
}