@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes hero-cards-enter {
    from {
        opacity: 0;
        transform: translateY(64px);
    }
    to {
        opacity: 1;
        transform: translateY(64px);
    }
}

@keyframes hero-scroll-bounce {
    0%, 100% { opacity: 0.5; transform: rotate(45deg) translate(0, 0); }
    50%       { opacity: 1;   transform: rotate(45deg) translate(4px, 4px); }
}

@keyframes hero-progress-fill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes hero-arrow-pulse {
    0%, 100% { opacity: 0.3; transform: translateY(-50%); }
    50%      { opacity: 0.6; transform: translateY(-50%); }
}


.hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    overflow: visible;
    background: var(--c-white);
    margin-bottom: var(--s-12);
    -webkit-user-select: none;
    user-select: none;
}

.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transition: opacity 0.6s ease;
}

.hero__poster--hidden {
    opacity: 0;
    pointer-events: none;
}

.hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0;
}

.hero__video--active {
    opacity: 1;
    z-index: 1;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 72px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.hero__arrow:hover { color: rgba(255, 255, 255, 0.9); }

.hero__arrow svg {
    width: 12px;
    height: 40px;
}

.hero__arrow--prev { left: var(--s-6); }
.hero__arrow--next { right: var(--s-6); }

.hero__progress {
    position: absolute;
    bottom: var(--s-8);
    left: var(--s-8);
    z-index: 5;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.hero__progress-track {
    width: 48px;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 2px;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__progress-track:hover { width: 64px; }

.hero__progress-track--active { width: 64px; }

.hero__progress-fill {
    position: absolute;
    inset: 0;
    background: var(--c-accent);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 0;
    background:
        linear-gradient(
            to right,
            rgba(8, 10, 16, 0.52) 0%,
            rgba(8, 10, 16, 0.22) 38%,
            transparent 62%
        ),
        linear-gradient(
            to top,
            rgba(8, 10, 16, 0.28) 0%,
            transparent 35%
        );
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: inherit;
    padding-top: 80px;
    padding-bottom: 56px;
}

.hero__text {
    flex: 0 0 52%;
    max-width: 52%;
    padding-bottom: var(--s-12);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0 0 0 14px;
    background: transparent;
    border: none;
    border-left: 2px solid var(--c-accent);
    border-radius: 0;
    font-size: 11px;
    font-weight: var(--w-bold);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--s-5);
    opacity: 0;
}

.hero__title {
    display: block;
    margin: 0 0 var(--s-5) 0;
    opacity: 0;
    line-height: 1;
}

.hero__logo {
    display: block;
    width: clamp(220px, 40vw, 520px);
    height: auto;
    color: var(--c-white);
}

.hero__subtitle {
    font-size: clamp(var(--t-24), 2.6vw, var(--t-32));
    font-weight: var(--w-black);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    color: rgba(255, 255, 255, 0.90);
    margin: 0 0 var(--s-4) 0;
    max-width: 480px;
    min-height: 2.6em;
    opacity: 0;
}

.hero__sub-line {
    display: block;
    min-height: 1.3em;
    line-height: 1.3;
}

.hero__word-clip {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.3em;
}

.hero__word {
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__word--up {
    transform: translateY(-110%);
}

.hero__word--below {
    transform: translateY(110%);
}

.hero__sub-line--accent {
    color: var(--c-accent);
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    flex-wrap: wrap;
    font-size: var(--t-14);
    font-weight: var(--w-bold);
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 var(--s-6) 0;
    opacity: 0;
}

.hero__meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.30);
    flex-shrink: 0;
}

.hero__actions {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    opacity: 0;
}

.hero .hero__actions .btn--primary {
    background: var(--c-accent);
    color: var(--c-black);
    border-color: var(--c-accent);
    padding: 14px 32px;
    font-size: var(--t-14);
}

.hero .hero__actions .btn--primary:hover {
    background: var(--c-accent-h);
    border-color: var(--c-accent-h);
    box-shadow: 0 8px 32px rgba(252, 225, 22, 0.45);
    transform: translateY(-1px);
}

.hero .hero__actions .btn--outline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 32px;
    font-size: var(--t-14);
}

.hero .hero__actions .btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.40);
    box-shadow: none;
    transform: translateY(-1px);
}

.hero__scroll {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-emph) var(--ease);
}

.hero__scroll-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.38);
    border-bottom: 2px solid rgba(255, 255, 255, 0.38);
    animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.hero__cards {
    position: absolute;
    right: var(--s-16);
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: var(--s-3);
    opacity: 0;
    transform: translateY(64px);
}

.hero-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.20),
        0 2px 8px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition:
        box-shadow var(--dur-std) var(--ease),
        transform var(--dur-std) cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.hero-card:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
}

.hero-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 148px;
    background: var(--c-surface);
    position: relative;
    overflow: hidden;
}

.hero-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 90%, rgba(252, 225, 22, 0.12) 0%, transparent 65%);
    opacity: 0;
    transition: opacity var(--dur-std) var(--ease);
    pointer-events: none;
}

.hero-card:hover .hero-card__visual::after {
    opacity: 1;
}

.hero-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--dur-emph) cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card:hover .hero-card__visual img {
    transform: scale(1.07) translateY(-3px);
}

.hero-card__body {
    padding: var(--s-3) var(--s-3) var(--s-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    background: var(--c-white);
    border-top: 1px solid var(--c-border);
    position: relative;
}

.hero-card__body::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 44px;
    height: 2px;
    background: var(--c-accent);
    border-radius: 0 0 2px 2px;
    transition: transform var(--dur-std) cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card:hover .hero-card__body::before {
    transform: translateX(-50%) scaleX(1);
}

.hero-card__name {
    font-size: 11px;
    font-weight: var(--w-bold);
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.hero-card__en {
    font-size: 10px;
    font-weight: var(--w-bold);
    color: var(--c-subtle);
    letter-spacing: 0.03em;
}

.hero-card__price {
    font-size: var(--t-16);
    font-weight: var(--w-black);
    color: var(--c-black);
    letter-spacing: var(--ls-tight);
    margin-top: 3px;
}

.hero-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: var(--w-bold);
    color: var(--c-black);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    padding: 6px 14px;
    margin-top: var(--s-2);
    white-space: nowrap;
    transition:
        background var(--dur-micro) var(--ease),
        color var(--dur-micro) var(--ease),
        border-color var(--dur-micro) var(--ease);
}

.hero-card:hover .hero-card__cta {
    background: var(--c-accent);
    color: var(--c-black);
    border-color: var(--c-accent);
}

.hero--ready .hero__badge {
    animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
}

.hero--ready .hero__title {
    animation: hero-rise 0.80s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero--ready .hero__subtitle {
    animation: hero-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both;
}

.hero--ready .hero__meta {
    animation: hero-rise 0.70s cubic-bezier(0.22, 1, 0.36, 1) 0.54s both;
}

.hero--ready .hero__actions {
    animation: hero-rise 0.70s cubic-bezier(0.22, 1, 0.36, 1) 0.66s both;
}

.hero--ready .hero__scroll {
    animation: hero-fade 0.80s ease 1.20s both;
}

.hero--ready .hero__cards {
    animation: hero-cards-enter 0.90s cubic-bezier(0.22, 1, 0.36, 1) 0.50s both;
}

.hero--seen .hero__badge,
.hero--seen .hero__title,
.hero--seen .hero__subtitle,
.hero--seen .hero__meta,
.hero--seen .hero__actions,
.hero--seen .hero__scroll {
    opacity: 1;
    transform: none;
    animation: none;
}

.hero--seen .hero__cards {
    opacity: 1;
    transform: translateY(64px);
    animation: none;
}

@media (max-width: 1280px) {
    .hero__cards {
        grid-template-columns: repeat(3, 180px);
        right: var(--s-10);
    }
}

@media (max-width: 1100px) {
    .hero__text {
        flex: 0 0 58%;
        max-width: 58%;
    }

    .hero__cards {
        grid-template-columns: repeat(3, 164px);
        right: var(--s-8);
    }

    .hero-card__visual {
        height: 130px;
    }
}

@media (max-width: 960px) {
    .hero {
        min-height: auto;
    }

    .hero__slider {
        inset: 0;
    }

    .hero__overlay {
        inset: 0;
        background:
            linear-gradient(
                to bottom,
                rgba(8, 10, 16, 0.10) 0%,
                rgba(8, 10, 16, 0.35) 100%
            );
    }

    .hero__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        min-height: clamp(500px, 72svh, 680px);
        padding-top: 96px;
        padding-bottom: 48px;
    }

    .hero__text {
        flex: none;
        max-width: 100%;
        padding-bottom: var(--s-5);
    }

    .hero__subtitle {
        max-width: none;
    }

    .hero__cards {
        position: relative;
        right: auto;
        bottom: auto;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        transform: translateY(36px) !important;
        animation: none !important;
        opacity: 1 !important;
    }

    .hero__scroll {
        display: none;
    }

    .hero__arrow--prev { left: var(--s-3); }
    .hero__arrow--next { right: var(--s-3); }
    .hero__arrow { height: 56px; }
    .hero__arrow svg { height: 32px; }

    .hero__progress {
        bottom: var(--s-5);
        left: var(--s-5);
    }
}

@media (max-width: 768px) {
    .hero__subtitle {
        font-size: var(--t-24);
    }

    .hero__cards {
        gap: var(--s-2);
    }

    .hero-card__visual {
        height: 114px;
        padding: var(--s-2);
    }

    .hero-card__body {
        padding: var(--s-2) var(--s-2) var(--s-3);
    }
}

@media (max-width: 480px) {
    .hero__slider {
        inset: 0;
    }

    .hero__overlay {
        inset: 0;
    }

    .hero__inner {
        padding-top: 88px;
        padding-bottom: 40px;
    }

    .hero__badge {
        margin-bottom: var(--s-4);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__cards {
        grid-template-columns: 1fr;
        gap: var(--s-2);
        transform: translateY(28px) !important;
    }

    .hero-card {
        flex-direction: row;
        align-items: center;
    }

    .hero-card__visual {
        width: 96px;
        height: auto;
        flex-shrink: 0;
        min-height: 80px;
        padding: var(--s-1);
    }

    .hero-card__body {
        padding: var(--s-2) var(--s-3);
        align-items: flex-start;
        text-align: left;
        border-top: none;
        border-left: 1px solid var(--c-border);
    }

    .hero-card__body::before {
        display: none;
    }

    .hero__arrow { display: none; }

    .hero__progress {
        bottom: var(--s-3);
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 8px;
    }

    .hero__progress-track { width: 36px; height: 3px; }
    .hero__progress-track--active { width: 48px; }
    .hero__progress-track:hover { width: 48px; }
}
