/* PAGE-CARGO.CSS */

.cargo-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #00060E;
    overflow: hidden;
}

.cargo-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cargo-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cargo-hero__content {
    position: absolute;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin-left: clamp(20px, 4vw, 60px);
    bottom: 40px;
}

.cargo-hero__title {
    text-align: left;
    max-width: 100%;
    margin-bottom: clamp(20px, 3vw, 40px);
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.cargo-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 489px;
    height: 89px;
    font-family: 'Seenonim';
        font-size: clamp(16px, 22px, 33px);
    letter-spacing: 0.08em;
    color: #ffffff;
    border-radius: 10px;
    border: 1px solid #ffffff;
    background: #00253A;
    box-shadow: 0 0 10.7px #48AFC4;
    transition: transform 0.3s ease;
    text-transform: uppercase;
    line-height: 1;
    padding-top: 10px;
}

.cargo-hero__button:hover {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .cargo-hero {
        text-align: center;
        justify-content: center;
    }

    .cargo-hero__title {
        max-width: 90%;
        text-align: center;
        margin: 0 auto clamp(20px, 3vw, 40px);
    }

    .cargo-hero__button {
        width: clamp(200px, 60vw, 320px);
        height: clamp(55px, 12vw, 70px);
        font-size: 20px;
        margin: 0 auto;
    }
}

/* ================================================================
   DIRECTIONS SECTION
   ================================================================ */

.cargo-directions {
    position: relative;
    width: 100%;
    background: #00060E;
    overflow: hidden;
}


/* ---- СУБМАРИНА НА ВЕСЬ ЭКРАН ---- */

.cargo-directions__bg-submarine {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -60px;
}

.cargo-directions__bg-submarine img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Оверлей с заголовками поверх субмарины */
.cargo-directions__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}

.cargo-directions__overlay-inner {
    width: 100%;
    max-width: 1780px;
    padding: clamp(60px, 8vw, 120px) clamp(20px, 4vw, 60px) clamp(40px, 6vw, 80px);
    margin: 0 auto;
}

.cargo-directions__title {
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.cargo-directions__title--left {
    text-align: left;
    font-size: 70px;
}
.cargo-directions__title--right {
    text-align: right;
    margin-top: clamp(8px, 1vw, 12px);
    font-size: 70px;
}
@media (max-width: 1400px) {
.cargo-directions__title--left, .cargo-directions__title--right {
   
    font-size: 50px;
}
}

/* ---- ТЕКСТ МЕЖДУ КАРТИНКАМИ ---- */

.cargo-directions__text-wrapper {
    position: relative;
    max-width: 1400px;
    margin: calc(-1 * clamp(40px, 6vw, 80px)) auto calc(-1 * clamp(40px, 6vw, 80px));
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
    z-index: 2;
    text-align: center;
}

/* Градиентная «растушёвка» на всю ширину экрана */
.cargo-directions__text-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;

    background: linear-gradient(
        to bottom,
        rgba(0, 6, 14, 0) 0%,
        #000101 40%,
        #000101 60%,
        rgba(0, 6, 14, 0) 100%
    );
}

.cargo-directions__text {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: #cccccc;
    font-size: 21px;
}

/* ---- ОСЬМИНОГ НА ВЕСЬ ЭКРАН ---- */

.cargo-directions__bg-octopus {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.cargo-directions__bg-octopus img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ---- СТРАНЫ ПО НИЗУ КАРТИНКИ ---- */

.cargo-directions__countries {
    position: absolute;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    padding: 0 clamp(20px, 4vw, 60px);
}

.cargo-directions__countries-list {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 80px);
    flex-wrap: wrap;
}

.cargo-directions__country {
    font-family: 'Seenonim', Arial, sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    padding-bottom: 4px;
    position: relative;
}

.cargo-directions__country::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    margin: 0 auto;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cargo-directions__country:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ---------- АДАПТИВ ---------- */

@media (max-width: 767px) {
    .cargo-directions__overlay-inner {
        padding-top: clamp(40px, 6vw, 80px);
        padding-bottom: clamp(20px, 3vw, 40px);
        text-align: center;
    }

    .cargo-directions__title--left,
    .cargo-directions__title--right {
        text-align: center;
    }

    /* На мобильном страны лучше не клеить к самому низу картинки */
    .cargo-directions__countries {
        position: static;
        transform: none;
        margin-top: clamp(20px, 3vw, 40px);
        padding: 0 clamp(20px, 4vw, 60px);
    }

    .cargo-directions__bg-octopus {
        margin-bottom: 0;
    }
}

/* ================================================================
   CHAIN SECTION — Цепочка перевозки
   ================================================================ */

.cargo-chain {
    position: relative;
    width: 100%;
    padding: clamp(60px, 8vw, 120px) 0;
    background: linear-gradient(180deg, #000106 0%, #000000 100%);
    overflow: hidden;
}

.cargo-chain__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    position: relative;
    z-index: 2;
}

/* Заголовок + линия */
.cargo-chain__title {
    text-align: center;
    margin-bottom: clamp(12px, 2vw, 20px);
}

.cargo-chain__divider {
    width: clamp(120px, 20vw, 220px);
    height: 1px;
    margin: 0 auto clamp(40px, 6vw, 80px);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Основная сетка: 2 колонки + 25% зазор */
.cargo-chain__grid {
    display: grid;
    grid-template-columns: 1fr 35% 1fr;
    grid-auto-rows: auto;
    row-gap: 25px;
}

/* Карточки */
.cargo-chain__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    padding: clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
}

/* Раскладка по сетке */
.cargo-chain__card--1 {
    grid-column: 1;
    grid-row: 1;
}

.cargo-chain__card--2 {
    grid-column: 3;
    grid-row: 1;
}

.cargo-chain__card--3 {
    grid-column: 1;
    grid-row: 2;
}

.cargo-chain__card--4 {
    grid-column: 3;
    grid-row: 2;
}

/* Внутренний flex1 — заголовок + текст */
.cargo-chain__card-main {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 20px);
}

.cargo-chain__card-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.cargo-chain__card-text {
    color: #cccccc;
}

/* Flex2 — цифра */
.cargo-chain__card-index {
    margin-top: 70px;
    margin-bottom: -30px;
    font-family: 'Archaica', Georgia, serif;
    font-size: clamp(3rem, 6vw, 7.5rem);
    line-height: 1;
    opacity: 0.15;
}

/* Медуза под сеткой (absolute) */
.cargo-chain__jellyfish {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -2%);
    width: clamp(240px, 26vw, 480px);
    aspect-ratio: 3 / 4;
    pointer-events: none;
    z-index: 1;
}

.cargo-chain__jellyfish canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Пузыри (absolute сверху) */
.cargo-chain__bubble {
    position: absolute;
    width: clamp(44px, 14vw, 100px);
    pointer-events: none;
    z-index: 3;
}

.cargo-chain__bubble img {
    width: 100%;
    height: auto;
}

.cargo-chain__bubble--1 {
    top: 10%;
    left: 48%;
}

.cargo-chain__bubble--2 {
    top: 18%;
    right: 34%;
}

.cargo-chain__bubble--3 {
    top: 45%;
    left: 22%;
}

/* ====================== ADAPTIVE ====================== */

@media (max-width: 1023px) {
    .cargo-chain__grid {
        column-gap: clamp(20px, 3vw, 40px);
    }

    .cargo-chain__jellyfish {
        top: 42%;
                width: clamp(160px, 76vw, 350px);
    }
}

@media (max-width: 767px) {
    .cargo-chain {
        padding-top: clamp(40px, 6vw, 80px);
        padding-bottom: clamp(40px, 6vw, 80px);
    }

    .cargo-chain__grid {
        display: flex;
        flex-direction: column;
        row-gap: clamp(20px, 3vw, 40px);
    }

    .cargo-chain__card {
        max-width: 67%;
    }

    /* Чередование: левая / правая */
    .cargo-chain__card:nth-child(odd) {
        align-self: flex-start;
    }

    .cargo-chain__card:nth-child(even) {
        align-self: flex-end;
    }

    .cargo-chain__jellyfish {
        position: absolute;
        top: 55%;
        width: clamp(150px, 40vw, 200px);
        opacity: 0.9;
        left: 80%;
    }

    .cargo-chain__bubble--1,
    .cargo-chain__bubble--2,
    .cargo-chain__bubble--3 {
        width: clamp(18px, 36vw, 108px);
    }
    .cargo-chain__bubble--1 {
    top: 15%;
    left: 70%;
}
.cargo-chain__bubble--2 {
    top: 38%;
    right: 74%;
}
.cargo-chain__bubble--3 {
    top: 81%;
    left: 13%;
}
.cargo-types__card {
    position: relative; /* важно: чтобы абсолютный текст позиционировался от карточки */
    overflow: visible;  /* даёт тексту выйти за пределы */
}



}

@keyframes jellyGlow {
    0% { opacity: 0.65; transform: translate(-50%, -45%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -45%) scale(1.05); }
    100% { opacity: 0.65; transform: translate(-50%, -45%) scale(1); }
}

.cargo-chain__jellyfish::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -45%);
    background: radial-gradient(
        circle,
        rgba(255, 0, 120, 0.5),
        rgba(120, 0, 200, 0.28) 45%,
        rgba(0,0,0,0) 80%
    );
    filter: blur(55px);
    pointer-events: none;
    z-index: 0;
    animation: jellyGlow 4s ease-in-out infinite;
}

/* ================================================================
   CABINET SECTION — Информация в личном кабинете
   ================================================================ */

.cargo-cabinet {
    position: relative;
    width: 100%;
    padding: clamp(60px, 8vw, 120px) 0;
    background-color: #00060e;
    overflow: hidden;
}

/* Текстовый контейнер — как обычно, ограниченный max-width */
.cargo-cabinet__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.cargo-cabinet__content {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 40px);
}

.cargo-cabinet__title {
    margin: 0;
    text-transform: uppercase;
}

.cargo-cabinet__text {
    color: #cccccc;
}

/* Кнопка: те же стили, что у предыдущей, но немного компактнее */
.btn--cabinet {
    margin-top: clamp(20px, 3vw, 40px);
    font-size: 18px;
    padding-inline: 40px;
    padding-block: 16px;
}

/* -----------------------------------------------------------------
   Фоновая часть с картинками на всю ширину экрана
   ----------------------------------------------------------------- */

.cargo-cabinet__visual {
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

/* общий стиль обёртки картинок */
.cargo-cabinet__image {
    position: absolute;
}

/* кораллы + ноутбук — справа, на всю высоту секции */
.cargo-cabinet__image--corals {
    top: 0;
    right: 0;
    bottom: 0;
}

.cargo-cabinet__image--corals img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
}

/* скат — слева, поверх */
.cargo-cabinet__image--ray {
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
    transform: translateX(-5%);
}

.cargo-cabinet__image--ray img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
}

/* чтобы текст был поверх картинок */
.cargo-cabinet__inner {
    position: relative;
    z-index: 2;
}

/* ====================== ADAPTIVE ====================== */

@media (max-width: 1023px) {
    .cargo-cabinet {
        padding: clamp(40px, 6vw, 80px) 0;
    }

    .cargo-cabinet__content {
        max-width: 420px;
    }

    .cargo-cabinet__image--ray {
        transform: translateX(-10%);
    }
}

@media (max-width: 767px) {
    .cargo-cabinet__content {
        max-width: 100%;
    }

    .cargo-cabinet__title {
        font-size: clamp(26px, 6vw, 32px);
    }

    .btn--cabinet {
        font-size: 16px;
        padding-inline: 32px;
        padding-block: 14px;
    }

    /* на мобиле можно слегка ослабить вылеты */
    .cargo-cabinet__image--corals img,
    .cargo-cabinet__image--ray img {
        width: 130%;
        height: 100%;
        object-fit: cover;
    }

    .cargo-cabinet__image--ray {
        transform: translateX(-15%);
    }
    .cargo-directions__text {
    font-size: 17px;
    margin-top: 50px;
}
}

/* =========================================================================
   BUTTON — базовый стиль, используется в нескольких секциях
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-family: "Archaica", sans-serif;
    font-weight: 400;
    /*border-radius: 10px;*/
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}

/* Основной вариант кнопки — как в первом блоке */
.btn--primary {
    background: #00253A;
    border: 1px solid #48AFC4;
    color: #FFFFFF;
    min-height: 60px;
    box-shadow:
        0 0 18px rgba(72, 175, 196, 0.45),
        inset 0 0 16px rgba(72, 175, 196, 0.35);
}

/* Ховер */
.btn--primary:hover {
    box-shadow:
        0 0 28px rgba(72, 175, 196, 0.6),
        inset 0 0 22px rgba(72, 175, 196, 0.5);
    transform: translateY(-2px);
}

/* Актив */
.btn--primary:active {
    transform: translateY(0);
    box-shadow:
        0 0 14px rgba(72, 175, 196, 0.35),
        inset 0 0 12px rgba(72, 175, 196, 0.25);
}

/* =========================================================================
   Вариант кнопки для блока "Личный кабинет"
   (тот же стиль, просто уменьшенные отступы и размер шрифта)
   ========================================================================= */

.btn--cabinet {
    font-size: 18px;
    padding: 16px 42px;
}

@media (max-width: 767px) {
    .btn--cabinet {
        font-size: 16px;
        padding: 14px 32px;
    }
}

/* ================================================================
   TYPES SECTION — Выбрать перевозку
   ================================================================ */

/* первая карточка */
.cargo-types__card:nth-child(1) {
    flex: 0 0 34%;
}

/* вторая карточка */
.cargo-types__card:nth-child(2) {
    flex: 0 0 28%;
}

/* третья карточка */
.cargo-types__card:nth-child(3) {
    flex: 0 0 34%;
}

.cargo-types {
    position: relative;
    width: 100%;
    padding: clamp(60px, 8vw, 50px) 0;
    background-color: transparent;
}

.cargo-types__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.cargo-types__title {
    margin: 0 0 clamp(40px, 6vw, 80px);
    text-align: center;
    text-transform: uppercase;

    background: linear-gradient(90deg, #013040 0%, #02BAC9 48%, #003140 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* ----- список карточек ----- */

.cargo-types__list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    column-gap: 2%;
}

/* ----- карточка ----- */
/* Карточка как ссылка */
a.cargo-types__card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

a.cargo-types__card:hover {
    transform: scale(1.02);
    opacity: 1;
}

a.cargo-types__card:hover .cargo-types__btn::before {
    opacity: 1;
    filter: blur(18px);
}
.cargo-types__card {
    position: relative;
    max-width: none;
    aspect-ratio: 1 / 2.05;
    overflow: hidden;
}


/* вертикальные разделители между карточками (внутренние) */
.cargo-types__card:not(:last-child) {
    border-right: 2px solid rgba(0, 255, 255, 0.25);
}

/* фоновое изображение */

.cargo-types__image {
    position: absolute;
    inset: 0;
}

.cargo-types__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* контент внизу карточки */

.cargo-types__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(20px, 3vw, 40px);
    padding-inline: clamp(18px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.cargo-types__name {
    margin: 0;
    text-transform: uppercase;
}

/* кнопка внутри карточки — на базе общего стиля */

/* базовый btn уже есть — здесь только модификация для блока */
.cargo-types__btn {
    position: relative;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: none;
    font-size: 14px;
        padding: 12px clamp(12px, 15px, 32px);
    overflow: visible;
}

/* стекло/свечения под кнопкой */
.cargo-types__btn::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -18px;
    height: 26px;
    background: linear-gradient(90deg, #013040 0%, #02BAC9 48%, #003140 100%);
    opacity: 0.75;
    filter: blur(14px);
    z-index: -1;
}

/* лёгкий hover: стекло усиливается */
.cargo-types__btn:hover::before {
    opacity: 1;
    filter: blur(18px);
}

/* ====================== ADAPTIVE ====================== */

@media (max-width: 1023px) {
    .cargo-types {
        padding: clamp(40px, 6vw, 80px) 0;
    }

    .cargo-types__card {
        max-width: 320px;
        aspect-ratio: 3 / 4.5;
    }
}

@media (max-width: 767px) {
    .cargo-types__list {
        flex-direction: column;
        row-gap: clamp(20px, 3vw, 40px);
        column-gap: 0;
        align-items: stretch;
    }

    .cargo-types__card {
        max-width: 340px;
        width: 100%;
        margin-inline: 0;
        border-right: none;
    }

    /* чередуем прижатие карточек к левому/правому краю */

    .cargo-types__card:nth-child(1) {
        align-self: flex-start;
    }

    .cargo-types__card:nth-child(2) {
        align-self: flex-end;
    }

    .cargo-types__card:nth-child(3) {
        align-self: flex-start;
    }
    .cargo-directions__bg-submarine {
    margin-top: 140px;
}
.cargo-directions__bg-submarine img {
    transform: translateY(-190px);
}
}
/* ============================================================
   Мобильное поведение заголовка в карточке типов перевозки
   ============================================================ */
@media (max-width: 767px) {

    /* разрешаем вылезать за карточку только на мобиле */
    .cargo-types__card {
        overflow: visible;
    }

  .cargo-types__name.auto, .cargo-types__name.sea {
    position: absolute;
    margin: 0;
    top: 50%;
    transform-origin: center;
    font-family: 'Archaica', Georgia, serif;
    font-size: 64px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}  
.cargo-types__name.auto{
    right: -150px;
    transform: translateY(-260%) rotate(90deg);
}

.cargo-types__name.sea{
    right: -240px;
    transform: translateY(-350%) rotate(90deg);
}
  .cargo-types__name.zhd {
    position: absolute;
    margin: 0;
    top: 50%;
    transform: translateY(-200%) rotate(-90deg);
    transform-origin: center;
    font-family: 'Archaica', Georgia, serif;
    font-size: 64px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
    right: 340px;
}  
.cargo-types__btn.auto{
    width: 350px;
    left: 50px;
}
.cargo-types__btn.zhd{
    width: 350px;
    left: -90px;
}
.cargo-types__btn.sea{
    width: 350px;
    left: 50px;
}
.cargo-directions__bg-submarine img {
    width: 130%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    margin-left: calc(50% - 45%);
    height: 50%;
}
.cargo-directions__overlay {
    align-items: flex-end;
}
a.cargo-types__card {
    width: 80%;
}
}
@media (max-width: 480px) {
    .cargo-types__name {
    font-size: 44px!important;
}
.cargo-types__name.sea {
    right: -160px;
    transform: translateY(-350%) rotate(90deg);
}
.cargo-types__name.auto {
    right: -110px;
    transform: translateY(-260%) rotate(90deg);
}
.cargo-types__name.zhd {
    right: 260px;
}
.cargo-types__btn.zhd {
    left: -40px;
}
.cargo-directions__title--left, .cargo-directions__title--right {
    font-size: 40px;
}
.cargo-directions__bg-octopus {
    margin-bottom: 30px;
}
.cargo-types__btn {
    width: 320px!important;
}
.cargo-hero__button {
    font-size: 14px;
}
}
