.hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    padding-top: 74px; /* компенсація navbar */
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    /* Ken Burns: повільний zoom + легкий pan */
    animation: heroBgKenBurns 18s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform;
}

@keyframes heroBgKenBurns {
    0%   { transform: scale(1)    translateX(0)     translateY(0); }
    33%  { transform: scale(1.06) translateX(-1%)   translateY(-0.5%); }
    66%  { transform: scale(1.04) translateX(0.8%)  translateY(-1%); }
    100% { transform: scale(1.08) translateX(-0.5%) translateY(0.5%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 22, 24, 0.80) 0%,
        rgba(36, 27, 0, 0.65) 50%,
        rgba(20, 22, 24, 0.80) 100%
    );
    z-index: 1;
    animation: heroOverlayBreath 8s ease-in-out infinite alternate;
}

@keyframes heroOverlayBreath {
    0%   { opacity: 1; }
    100% { opacity: .88; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--pub-nav-text, #fff5c3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--pub-nav-text, #fff5c3);
    font-weight: 500;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 0 auto 1.25rem;
    max-width: 760px;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 700;
    color: #f8e8a5;
    background: rgba(255, 204, 0, .12);
    border: 1px solid rgba(255, 204, 0, .26);
    border-radius: 999px;
    padding: .35rem .7rem;
    white-space: nowrap;
}

.hero-trust-row i {
    color: var(--pub-cta, #ffcc00);
    font-size: .78rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    font-size: 1.35rem;
    padding: 1rem 2.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(255,179,0,.35);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pub-cta, #ffcc00) 0%, var(--pub-cta-dark, #ffb300) 100%);
    color: var(--pub-cta-text, #1a1200);
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    letter-spacing: .02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    position: relative;
    overflow: hidden;
}
/* shimmer sweep */
.hero-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}
.hero-btn:hover::after { transform: translateX(100%); }

.hero-btn:hover {
    color: var(--pub-cta-text, #1a1200);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(255,179,0,.5);
    filter: brightness(1.06);
}
.hero-btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(255,179,0,.3); filter: none; }
.hero-btn:focus-visible { outline: 2px solid var(--pub-cta-dark, #ffb300); outline-offset: 3px; }

.hero-btn-call {
    display: none;
}

.hero-detail-share-bottom {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 3rem;
    margin-bottom: 0.5em;
    justify-content: center;
}
.hero-detail-share-bottom .share-icon {
    color: var(--pub-cta, #ffcc00);
    margin: 0;
    transition: color 0.18s, transform 0.18s;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}
.hero-detail-share-bottom .share-icon:hover {
    color: #fff;
    transform: scale(1.2);
    text-decoration: none;
}

/* === Адаптивність === */
@media (max-width: 1200px) {

    .hero,
    .hero-bg {
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        left: 50%;
        right: 50%;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 100svh;
        border-radius: 0 0 12px 12px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }

    .hero-btn {
        font-size: 1.15rem;
        padding: 0.85rem 2rem;
    }
    .hero-detail-share-bottom {
        gap: .8rem;
        margin-top: 2rem;
    }

    .hero-trust-row {
        margin-bottom: 1rem;
    }
}

@media (max-width: 800px) {
    .hero-content {
        padding: 1.2rem 1rem;
    }
    .hero-btn-signup {
        display: none !important;
    }
    .hero-btn-call {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .hero-content p {
        font-size: .95rem;
    }
    .hero-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1.6rem;
    }

    .hero-trust-row {
        gap: .45rem;
    }

    .hero-trust-row span {
        font-size: .74rem;
        padding: .3rem .6rem;
    }
}