:root {
    --yj-brand: #4ea2b2;
    --yj-action: #397d8a;
    --yj-action-hover: #2d6974;
    --yj-deep: #255d67;
}

.yj-front-hero {
    position: relative;
    display: grid;
    min-height: clamp(580px, 66vw, 760px);
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: var(--yj-deep);
}

.yj-front-hero__media,
.yj-front-hero__overlay {
    position: absolute;
    inset: 0;
}

.yj-front-hero__media {
    z-index: -2;
}

.yj-front-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.yj-front-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--yj-hero-position-desktop, center 62%);
    transform: scale(1.002);
}

.yj-front-hero__overlay {
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(37, 93, 103, 0.96) 0%,
            rgba(37, 93, 103, 0.83) 38%,
            rgba(78, 162, 178, 0.28) 72%,
            rgba(78, 162, 178, 0.05) 100%
        ),
        linear-gradient(0deg, rgba(37, 93, 103, 0.25), rgba(37, 93, 103, 0));
}

.yj-front-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: clamp(76px, 9vw, 124px);
    padding-bottom: clamp(88px, 10vw, 140px);
}

.yj-front-hero__kicker {
    margin: 0 0 16px;
    color: #d7eef2;
    font-size: clamp(0.78rem, 1.3vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-wrap: balance;
}

.yj-front-hero__title {
    max-width: 900px;
    margin: 0 0 24px;
    padding: 0;
    color: #fff;
    border: 0;
    font-size: clamp(2.8rem, 5.2vw, 5rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-shadow: 0 3px 24px rgba(21, 57, 63, 0.18);
    word-break: keep-all;
}

.yj-front-hero__title::after,
.yj-front-hero__title::before {
    display: none;
}

.yj-front-hero__title-line {
    display: block;
    white-space: nowrap;
}

.yj-front-hero__copy {
    max-width: 720px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(0.98rem, 1.6vw, 1.1rem);
    font-weight: 600;
    line-height: 1.9;
    text-wrap: pretty;
}

.yj-front-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.yj-front-hero__button {
    display: inline-flex;
    min-width: 220px;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.yj-front-hero__button:hover,
.yj-front-hero__button:focus-visible {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(21, 57, 63, 0.24);
}

.yj-front-hero__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.yj-front-hero__button--search {
    color: var(--yj-deep);
    background: rgba(255, 255, 255, 0.97);
    border-color: #fff;
}

.yj-front-hero__button--search:hover,
.yj-front-hero__button--search:focus-visible {
    color: var(--yj-deep);
    background: #fff;
}

.yj-front-hero__button--appraisal {
    color: #fff;
    background: var(--yj-action);
    border-color: var(--yj-action);
}

.yj-front-hero__button--appraisal:hover,
.yj-front-hero__button--appraisal:focus-visible {
    color: #fff;
    background: var(--yj-action-hover);
    border-color: var(--yj-action-hover);
}

@media (max-width: 991px) {
    .yj-front-hero {
        min-height: auto;
        align-items: start;
    }

    .yj-front-hero__overlay {
        background:
            linear-gradient(90deg, rgba(37, 93, 103, 0.94), rgba(57, 125, 138, 0.48)),
            linear-gradient(0deg, rgba(37, 93, 103, 0.7), rgba(37, 93, 103, 0.08));
    }

    .yj-front-hero__inner {
        padding-top: clamp(56px, 8vw, 80px);
        padding-bottom: clamp(56px, 8vw, 80px);
    }

    .yj-front-hero__copy {
        max-width: 640px;
    }
}

@media (max-width: 576px) {
    .yj-front-hero {
        min-height: auto;
        align-items: start;
    }

    .yj-front-hero__media img {
        object-position: var(--yj-hero-position-mobile, center center);
    }

    .yj-front-hero__inner {
        padding-top: clamp(42px, 10vw, 56px);
        padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    }

    .yj-front-hero__kicker {
        margin-bottom: 12px;
        font-size: 0.76rem;
        line-height: 1.7;
        letter-spacing: 0.08em;
    }

    .yj-front-hero__title {
        margin-bottom: 20px;
        font-size: clamp(1.75rem, 8.6vw, 3rem);
        line-height: 1.28;
        letter-spacing: 0.015em;
    }

    .yj-front-hero__copy {
        margin-bottom: 24px;
        font-size: 0.92rem;
        line-height: 1.68;
    }

    .yj-front-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .yj-front-hero__button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 12px 22px;
    }
}

@supports (height: 100svh) {
    @media (max-width: 576px) {
        .yj-front-hero {
            min-height: auto;
        }
    }
}

@media (max-width: 380px) {
    .yj-front-hero {
        min-height: auto;
    }

    .yj-front-hero__inner {
        padding-top: 36px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }

    .yj-front-hero__title {
        font-size: clamp(1.72rem, 8.6vw, 2rem);
    }

    .yj-front-hero__copy {
        font-size: 0.9rem;
    }

    .yj-front-hero__button {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yj-front-hero__button {
        transition: none;
    }
}
