/*
Theme Name: Manual Starter
Theme URI: https://example.com/manual-starter
Author: Your Name
Author URI: https://example.com
Description: Minimal empty starter theme for manual development.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manual-starter
*/
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:100,200,300,regular,500,600,700,800,900);
@import url(https://fonts.googleapis.com/css?family=Montserrat:regular,700&display=swap);

/* ------------------------------
   GLOBAL RESET
------------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto Slab";
}

a {
    text-decoration: none;
}

h2, h3 {
    font-family: "Bicubik";
}

/* ------------------------------
   HEADER
------------------------------ */
.site-header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    border-bottom: 1px solid #283673;
}

body.page-template-new_flot.page-template-new_flot-php .site-header,
body.page-template-sailors.page-template-sailors-php .site-header,
body.page-template-seafarers-php .site-header,
body.page-template-new-contacts-php .site-header {
    position: relative;
}

body.page-template-new_flot.page-template-new_flot-php h3.ship-name {
    font-size: 26px;
    color: #124B85;
}

body.page-template-new_flot.page-template-new_flot-php .btn-link {
    font-size: 17px;
    color: #000000bf;
}

.header-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 50px;
}

.header-logo img {
    height: 55px;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-basis: 60%;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    flex-grow: 3;
    justify-content: space-evenly;
}

.header-menu a {
    color: #283673;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
}

.header-menu a:hover {
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 60px;
}

.header-lang a {
    margin-left: 10px;
    font-size: 16px;
    color: #0a0a0a;
}

.header-btn {
    padding: 17px 27px;
    border: 2px solid #283673;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #283673;
}

.header-btn:hover {
    background: #2b3990;
    color: #fff;
}

/* ------------------------------
   BURGER
------------------------------ */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 250;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
}

/* ------------------------------
   MOBILE NAV
------------------------------ */
.mobile-only { display: none; }

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero {
    width: 100%;
    height: 100vh;
    background: url('/wp-content/uploads/2025/08/hero-bg.png') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero .hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-150px);
}

.hero h1 {
    font-size: 44px;
    font-family: "Montserrat";
    color: #25313D;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 27px;
    font-family: "Montserrat";
    color: #3a3a3a;
    margin-top: 0;
    text-transform: uppercase;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media(max-width: 1024px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .burger { display: flex; }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        padding: 80px 40px;
        flex-direction: column;
        gap: 40px;
        transition: 0.3s;
        z-index: 200;
    }

    .header-nav.open {
        right: 0;
    }

    .header-menu {
        flex-direction: column;
        gap: 25px;
    }
}

/* ------------------------------
   ABOUT COMPANY
------------------------------ */
.about-company {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    max-width: 1500px;
    margin: 120px auto;
    padding: 0 40px;
}

.about-title {
    font-size: 32px;
    letter-spacing: 3px;
    font-weight: 400;
    margin: 0 0 20px;
    font-family: "Bicubik";
    text-transform: uppercase;
}

.about-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px;
    font-family: "TrebuchetMS";
}

.about-left {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 18px;
    color: #283673;
    font-weight: 300;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.about-img.tall {
    grid-row: span 2;
    height: 100%;
}

@media (max-width: 1024px) {
    .about-company {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-img.tall {
        grid-row: span 1;
        height: auto;
    }
}

@media (max-width: 600px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------
   FLEET SECTION
------------------------------ */
.fleet {
    max-width: 78.625rem;
    margin: 120px auto 80px;
    padding: 0 20px;
}

.fleet__title {
    font-size: 32px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 50px;
    font-family: "Bicubik";
}

.fleet__ship {
    margin-bottom: 90px;
    position: relative;
    padding: 0 55px;
}

.fleet__ship-name {
    color: #2a3070;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
    font-family: "Bicubik";
}

.fleet-slider {
    position: relative;
    overflow: hidden;
}

.fleet-track {
    display: flex;
    gap: 5.5rem;
    transition: transform .3s ease;
}

.fleet-slide {
    flex: 0 0 calc((100% - 3 * 2rem) / 4);
    min-width: 260px;
}

.fleet-slide img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
}

.fleet-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #1a2a5e;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #1a2a5e;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.fleet-arrow:hover {
    background: #1a2a5e;
    color: #ffffff;
}

.fleet-arrow.prev {
    left: 5px;
}

.fleet-arrow.next {
    right: 5px;
}

/* ------------------------------
   LIGHTBOX
------------------------------ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 1rem;
}

.lightbox.show {
    display: flex;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 0.3rem 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 2rem; top: 50%; transform: translateY(-50%); }

/* ------------------------------
   PARTNERS
------------------------------ */
.partners {
    width: 100%;
    padding: 1rem 0 4rem;
}

.partners__container {
    max-width: 78.625rem;
    margin: 0 auto;
    text-align: center;
}

.partners__title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    font-family: "Bicubik";
}

.partners__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partners__logos img {
    max-height: 90px;
    width: 20%;
    object-fit: contain;
    display: block;
    opacity: 0.9;
    transition: opacity .2s ease;
}

.partners__logos img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .partners__logos {
        gap: 2rem;
    }
    .partners__logos img {
        max-height: 40px;
    }
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
    width: 100%;
    background: #283673;
    padding: 4rem 0;
    color: #ffffff;
}

.footer__container {
    max-width: 78.625rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.footer__col {
    flex: 1;
    min-width: 165px;
}

.footer__logo img {
    width: 105px;
}

.footer__line {
    width: 60px;
    height: 2px;
    background: #ffffff;
    margin-bottom: 1rem;
}

.footer__col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    font-family: "Bicubik";
}

.footer__menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__menu li {
    margin-bottom: 0.5rem;
}

.footer__menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.85;
}

.footer__menu a:hover {
    opacity: 1;
}

.footer__col p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer__menu, .footer__address, .footer__contact {
    font-weight: 100;
}

.footer__menu, .footer__logo {
    max-width: 170px;
}

.footer__address p {
    font-style: italic;
}

.footer__address-link span {
    color: grey;
}

@media (max-width: 768px) {
    .footer__container {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
    }
    .footer__col {
        width: 100%;
    }
    .footer__logo img {
        width: 120px;
    }
}

/* ------------------------------
   HEADER LANG
------------------------------ */
.header-lang ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-lang img {
    width: 20px;
    height: auto;
    display: block;
}

li.lang-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ------------------------------
   FLEET PAGE (new-flot.php)
------------------------------ */
.fleet-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 0 120px 0;
    text-align: center;
}

.fleet-title {
    font-family: "Bicubik", sans-serif;
    font-size: 32px;
    margin-bottom: 40px;
}

.fleet-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px 80px;
}

.ship-card {
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ship-image img {
    width: 100%;
    border-radius: 20px;
}

.ship-name {
    margin-top: 20px;
    font-family: "Bicubik", sans-serif;
    font-size: 20px;
}

.ship-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.btn-blue {
    background: #1d4e89;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    font-family: "Bicubik";
    text-decoration: none;
}

.btn-link {
    font-family: "Bicubik";
    text-decoration: none;
    color: #1d4e89;
}

/* ------------------------------
   SHIP GALLERY
------------------------------ */
.ship-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ship-gallery-item {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.ship-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: .25s ease;
}

.ship-gallery-item img:hover {
    transform: scale(1.03);
}

.ship-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.ship-modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.ship-close {
    position: absolute;
    top: 28px;
    right: 38px;
    font-size: 48px;
    color: white;
    cursor: pointer;
}

.ship-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    padding: 12px;
    user-select: none;
}

.ship-arrow-left { left: 40px; }
.ship-arrow-right { right: 40px; }
.ship-arrow:hover { opacity: .6; }

@media(max-width: 900px) {
    .ship-gallery { grid-template-columns: repeat(2,1fr); }
}
@media(max-width: 600px) {
    .ship-gallery { grid-template-columns: repeat(1,1fr); }
}

/* ------------------------------
   SOCIAL FOOTER
------------------------------ */
.social-footer {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.social-footer__item {
    display: flex;
    align-items: center;
}

.social-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-footer__link svg {
    display: block;
}

/* ------------------------------
   CALLBACK MODAL
------------------------------ */
.callback-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.callback-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.callback-modal {
    background: #ffffff;
    width: 90%;
    max-width: 520px;
    padding: 48px 40px 60px;
    border-radius: 27px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    animation: modalFade .25s ease;
}

@keyframes modalFade {
    from { transform: scale(.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.callback-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 36px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.callback-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: "Bicubik";
    text-transform: uppercase;
}

.callback-subtitle {
    text-align: center;
    font-size: 18px;
    opacity: .85;
    margin-bottom: 30px;
}

.callback-input {
    width: 90%;
    padding: 18px 22px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 18px;
    background: #fafafa;
    outline: none;
}

.callback-input::placeholder {
    color: #bcbcbc;
}

.callback-submit {
    width: 100%;
    background: #243573;
    color: #fff;
    font-size: 18px;
    padding: 18px 0;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Bicubik";
}

.callback-submit:hover {
    opacity: .9;
}

.ship-card .ship-image img {
    max-height: 460px;
}

.ship-card h3.ship-name {
    font-size: 26px;
}

.seafarers-wrapper {
    max-width: 78.625rem !important;
}

@media (max-width: 768px) {
    /* 1. Убираем гигантский отступ сверху у секции About */
    .about-company {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
        padding: 0 20px !important;
    }

    /* 2. Исправляем отступы в секции флота, чтобы заголовки не слипались */
    .fleet {
        padding: 20px 0 !important;
    }

    .fleet__title {
        margin-bottom: 30px !important;
    }

    .fleet__ship {
        margin-bottom: 50px !important; /* Расстояние между блоками разных кораблей */
    }

    .fleet__ship-name {
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    /* 3. Центрируем и выравниваем контент About */
    .about-left {
        text-align: center !important;
    }
    
    .about-left p {
        text-align: left !important; /* Текст описания лучше оставить по левому краю для читаемости */
        margin-bottom: 15px !important;
    }

    /* 4. Фикс для партнеров (нижняя карусель) */
    .partners-marquee {
        padding: 20px 0 !important;
        margin-top: 20px !important;
    }
}