/* =========================================
   Block: Hero
   ========================================= */

.hero {
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero__inner {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.js-hero-text,
.js-hero-media {
    will-change: transform, opacity, filter;
}

.hero__heading {
    font-size: clamp(36px, 6.5vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.hero__subheading {
    font-size: clamp(18px, 4vw, 56px);
    font-weight: 100;
    line-height: 1.25;
    color: var(--color-text);
    padding-left: 28px;
}

.hero__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 460px;
}

.hero__description strong {
    font-size: 1.35em;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* --- Buttons (global) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    border: none;
    align-self: flex-start;
    min-height: 48px; /* tap target */
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* --- Media --- */
.hero__media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.hero__media img {
    width: 100%;
    max-height: calc(100vh - var(--header-height) - 80px);
    max-height: calc(100svh - var(--header-height) - 80px);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
}

/* --- Globe --- */
.hero__globe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: calc(100svh - var(--header-height) - 60px);
    max-height: calc(100vh  - var(--header-height) - 60px);
}

.hero__globe-wrap::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 28px;
    background: radial-gradient(ellipse, rgba(84,187,144,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero__globe {
    display: block;
    width: 100%;
    height: 100%;
}

/* =========================================
   Adaptive: Tablet 769–900px
   Две колонки, достаточно места для обеих
   ========================================= */
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 0;
        padding: 56px 0 56px;
    }

    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: center;
    }

    .hero__globe-wrap {
        width: 100%;
        max-height: min(50vw, 420px);
        aspect-ratio: 1 / 1;
    }

    .hero__media img {
        max-height: 300px;
        max-width: 100%;
    }
}

/* =========================================
   Adaptive: Mobile ≤ 768px
   Один столбец: текст сверху, космос снизу
   ========================================= */
@media (max-width: 768px) {
    .hero {
        padding: 48px 0 0;   /* низ берёт на себя глобус-блок */
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero__globe-wrap {
        width: 100%;
        max-width: 100%;
        max-height: none;
        aspect-ratio: 3 / 2;
        margin: 0;
        order: 1;
        border-radius: 20px 20px 0 0;  /* примыкает к низу секции */
        overflow: hidden;
        background: radial-gradient(
            ellipse at 52% 38%,
            #0d2035 0%,
            #070f1e 55%,
            #030810 100%
        );
    }

    .hero__globe-wrap::after { display: none; }

    .hero__subheading { padding-left: 0; }

    .hero__description { max-width: 100%; font-size: 14px; }
}

/* =========================================
   Adaptive: Mobile ≤ 480px
   ========================================= */
@media (max-width: 480px) {
    .hero { padding-top: 36px; }

    .hero__inner { gap: 28px; }

    .hero__globe-wrap { aspect-ratio: 4 / 3; }
}
