/* ================================================================
   PIONEER LOGISTIC — PAGE-HOME.CSS
   Стили главной страницы
   ================================================================ */


/* ================================================================
   HERO SECTION — ДВА ЭКРАНА
   ================================================================ */
.hero {
    position: relative;
    width: 100%;
    overflow: visible;
    background: #00060E;
}

/* ===== ПЕРВЫЙ ЭКРАН: Осьминог + Заголовок ===== */
.hero__screen-1 {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 0;
    background-color: #00060E;
    pointer-events: none;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__title {
    position: absolute;
    z-index: 1;
    color: #ffffff;
    text-align: right;
    max-width: 60%;
    right: 13%;
    bottom: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

/* ===== ВТОРОЙ ЭКРАН: CTA Zone ===== */
.hero__screen-2 {
    position: relative;
    min-height: 50vh;
    width: 100%;
    padding-top: clamp(150px, 18vw, 350px);
}

.hero__cta {
    position: relative;
    width: 100%;
    min-height: 50vh;
    padding: clamp(20px, 3vw, 40px);
    padding-right: clamp(60px, 6vw, 120px);
}

.hero__cta-image {
    position: relative;
    width: clamp(300px, 65vw, 1280px);
    margin-left: -5%;
}

.hero__cta-image img {
    width: 100%;
    height: auto;
}

.hero__button {
    position: absolute;
    top: 21%;
    left: calc(5% + clamp(160px, 20vw, 390px));
    width: clamp(280px, 28vw, 590px);
    transition: transform 0.3s ease;
}

.hero__button:hover {
    transform: scale(1.05);
    opacity: 1;
}

.hero__button img {
    width: 100%;
    height: auto;
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ===== */
.hero__anglerfish {
    position: absolute;
    right: clamp(80px, 10vw, 180px);
    top: 5%;
    width: clamp(180px, 40vw, 810px);
    pointer-events: none;
}

.hero__anglerfish img {
    width: 100%;
    height: auto;
}

.hero__fish {
    position: absolute;
    right: clamp(100px, 12vw, 240px);
    top: 70%;
    width: clamp(80px, 26vw, 530px);
    pointer-events: none;
}

.hero__fish img {
    width: 100%;
    height: auto;
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #00060E 0%, #000000 50%, #00060d 100%);
    padding: 0;
    overflow: visible;
}

.services__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== SERVICE ITEM ===== */
.services__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.services__item:last-of-type {
    margin-bottom: 0;
}

/* Обратный порядок (для ЖД) */
.services__item--reverse {
    grid-template-columns: 1fr 1fr;
}

.services__item--reverse .services__bubble {
    order: 2;
}

.services__item--reverse .services__content {
    order: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 100px;
}

/* Контентный блок */
.services__content {
    padding: clamp(20px, 3vw, 40px) 0;
}

.services__title {
    color: #ffffff;
    margin-bottom: clamp(20px, 3vw, 40px);
}

h2.services__title.rail {
    max-width: 100%;
}

.services__text {
    color: #cccccc;
    max-width: 500px;
}

.services__item--reverse .services__text {
    margin-left: 0;
}

h2.services__title.rail {
    max-width: 70%;
}

/* ===== ИЗОБРАЖЕНИЕ В ПУЗЫРЕ ===== */
.services__bubble {
    width: clamp(180px, 25vw, 470px);
    flex-shrink: 0;
}

.services__bubble img {
    width: 100%;
    height: auto;
}

/* ===== ДЕКОРАТИВНЫЕ ПУЗЫРИ ===== */
.services__bubbles-decor {
    position: absolute;
    width: clamp(60px, 8vw, 150px);
    pointer-events: none;
}

.services__bubbles-decor:first-of-type {
    margin: 17% auto 0 -17%;
}

.services__bubbles-decor.second-bubble {
    top: 50%;
    margin: 8% auto 0 -17%;
}

.services__bubbles-decor img {
    width: 100%;
    height: auto;
}


/* ================================================================
   RESPONSIVE — LARGE DESKTOP (min-width: 1920px)
   ================================================================ */
@media (min-width: 1920px) {
    .hero__title {
        right: 15%;
    }
    
    .hero__button {
        left: calc(9% + 400px);
    }
    
    .services__container {
        max-width: 1400px;
    }
}

/* ================================================================
   RESPONSIVE — LAPTOP (max-width: 1439px)
   ================================================================ */
@media (max-width: 1439px) {
    .hero__title {
        max-width: 55%;
        right: 20%;
    }
    
    .hero__button {
        width: clamp(250px, 30vw, 450px);
                left: calc(5% + clamp(180px, 38vw, 340px));
    }
    
    .hero__anglerfish {
        width: clamp(160px, 35vw, 600px);
        right: clamp(60px, 8vw, 140px);
    }
    
    .hero__fish {
        width: clamp(70px, 22vw, 400px);
        right: clamp(80px, 10vw, 180px);
    }
    
    .services__bubble {
        width: clamp(160px, 28vw, 380px);
    }
    
    .services__bubbles-decor {
        left: clamp(-60px, -5vw, -30px);
        width: clamp(50px, 7vw, 120px);
    }
}

/* ================================================================
   RESPONSIVE — TABLET (max-width: 1023px)
   ================================================================ */
@media (max-width: 1023px) {
    /* Hero */
    .hero__screen-2 {
        padding-top: clamp(100px, 15vw, 200px);
    }
    
    .hero__title {
        max-width: 65%;
        right: 8%;
    }
    
    .hero__cta {
        padding-right: clamp(50px, 5vw, 80px);
    }
    
    .hero__cta-image {
        width: clamp(280px, 70vw, 600px);
    }
    
    .hero__button {
        width: clamp(200px, 35vw, 350px);
        left: calc(5% + clamp(100px, 18vw, 200px));
        top: 18%;
    }
    
    .hero__anglerfish {
        width: clamp(140px, 40vw, 390px);
        right: clamp(50px, 7vw, 100px);
        top: 8%;
    }
    
    .hero__fish {
        width: clamp(60px, 18vw, 200px);
        right: clamp(60px, 8vw, 120px);
        top: 65%;
    }
    
    /* Services */
    .services__item {
        gap: clamp(20px, 3vw, 40px);
    }
    
    .services__bubble {
        width: clamp(150px, 30vw, 280px);
    }
    
    .services__text {
        max-width: 420px;
    }
    
    .services__bubbles-decor {
        display: none;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ================================================================ */
@media (max-width: 767px) {
    /* Header */

    
    /* Hero Screen 1 */
    .hero__screen-1 {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero__title {
        max-width: 85%;
        right: auto;
        left: 40%;
        transform: translateX(-50%);
        text-align: left;
    }
    
    /* Hero Screen 2 */
    .hero__screen-2 {
        min-height: auto;
        padding-top: clamp(80px, 12vw, 150px);
        padding-bottom: clamp(40px, 6vw, 80px);
    }
    
    .hero__cta {
        min-height: auto;
        padding: clamp(20px, 3vw, 40px);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero__cta-image {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        margin-left: -5%;
    }
    
    .hero__button {
                position: relative;
        top: auto;
        left: auto;
        display: block;
        width: clamp(180px, 50vw, 220px);
        margin: clamp(-240px, -50vw, -180px) auto 0;
        left: calc(5% + clamp(-130px, -22vw, 200px));
    }
    
    .hero__anglerfish {
        right: 2%;
        top: 2%;
        width: clamp(100px, 70vw, 310px);
    }
    
    .hero__fish {
        right: 5%;
        top: auto;
        bottom: -30%;
                width: clamp(60px, 40vw, 210px);
    }
    
    /* Services */
    .services {
        padding: clamp(40px, 6vw, 80px) 0;
    }
    
    .services__item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: clamp(40px, 6vw, 80px);
    }
    
    .services__item--reverse {
        flex-direction: column;
    }
    
    .services__item--reverse .services__bubble {
        order: 0;
    }
    
    .services__item--reverse .services__content {
        order: 0;
        text-align: center;
                margin-left: 0;
    }
    
    .services__bubble {
        width: clamp(160px, 55vw, 280px);
        margin-bottom: clamp(20px, 3vw, 40px);
    }
    
    .services__content {
        text-align: center;
        padding: 0;
    }
    
    .services__text {
        max-width: 100%;
        margin: 0 auto;
        max-width: 420px;
    }
    
    .services__item--reverse .services__text {
        margin: 0 auto;
    }
    
    h2.services__title.rail {
        max-width: 100%;
    }
    h2.services__title, .services__text {
    text-align: left;
}
.services__container {
    max-width: 80%;
}
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (max-width: 479px)
   ================================================================ */
@media (max-width: 479px) {
    .header__logo {
        width: 150px;
        margin: clamp(8px, 11vw, 22px);
    }
    
    .header__menu {
                top: clamp(8px, 5vw, 19px);
        right: clamp(8px, 1vw, 12px);
        font-size: 1rem;
        padding: 6px 10px;
    }
    
    .hero__screen-1 {
        min-height: 450px;
    }
    
    .hero__title {
        max-width: 95%;
        left: 20px;
        transform: none;
                font-size: 2.5rem;
    }
    
    .hero__cta-image {
        width: 95%;
    }
    
    .hero__button {
        width: clamp(150px, 55vw, 220px);
        left: calc(5% + clamp(-130px, 4vw, 200px));
    }
    
    .hero__anglerfish {
                width: clamp(80px, 78vw, 210px);
        top: -19%;
    }
    
    .hero__fish {
        width: clamp(50px, 18vw, 90px);
    }
    
    .services__bubble {
        width: clamp(140px, 60vw, 220px);
    }
    .hero__bg {
    min-width: 900px;
        transform: translateX(-50vw);
}
}

/* ================================================================
   RESPONSIVE — ULTRA-WIDE (min-width: 2560px)
   ================================================================ */
@media (min-width: 2560px) {
    .hero__title {
        right: 18%;
        max-width: 50%;
    }
    
    .hero__cta-image {
        width: min(65vw, 1600px);
    }
    
    .hero__button {
        left: calc(5% + 500px);
        width: min(30vw, 700px);
    }
    
    .hero__anglerfish {
        width: min(38vw, 950px);
        right: min(12vw, 250px);
    }
    
    .hero__fish {
        width: min(24vw, 600px);
        right: min(14vw, 300px);
    }
    
    .services__container {
        max-width: 1600px;
    }
    
    .services__bubble {
        width: min(22vw, 550px);
    }
}
