.seh-hero,
.seh-hero * {
    box-sizing: border-box;
}

.seh-hero {
    --seh-ink: #30231f;
    --seh-copy: #5f4a41;
    --seh-accent: #bf765b;
    --seh-accent-dark: #9e5e48;
    --seh-paper: #f6eee8;
    --seh-paper-rgb: 246, 238, 232;
    position: relative;
    width: 100%;
    min-height: var(--seh-min-height, 700px);
    overflow: hidden;
    isolation: isolate;
    background-color: var(--seh-paper);
    background-image: var(--seh-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: var(--seh-image-x, 28%) center;
    color: var(--seh-ink);
}


.seh-hero--has-max-height {
    min-height: min(var(--seh-min-height, 700px), var(--seh-max-height));
    max-height: var(--seh-max-height);
}

.seh-hero--has-max-height .seh-hero__inner {
    min-height: min(var(--seh-min-height, 700px), var(--seh-max-height));
}

.seh-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(var(--seh-paper-rgb), 0) 0%,
        rgba(var(--seh-paper-rgb), 0.04) 31%,
        rgba(var(--seh-paper-rgb), 0.66) 49%,
        rgba(var(--seh-paper-rgb), 0.94) 65%,
        rgba(var(--seh-paper-rgb), 0.99) 100%
    );
}

.seh-hero__inner {
    width: min(100%, 1680px);
    min-height: var(--seh-min-height, 700px);
    margin-inline: auto;
    padding: calc(var(--seh-safe-top, 90px) + clamp(18px, 2.5vw, 42px)) clamp(24px, 5vw, 88px) clamp(34px, 5vw, 72px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.seh-hero__content {
    width: min(49%, 720px);
    padding-left: clamp(20px, 3vw, 54px);
}

.seh-hero__eyebrow {
    margin-bottom: clamp(12px, 1.6vw, 22px);
    color: var(--seh-accent-dark);
    font-size: clamp(11px, 0.75vw, 14px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.seh-hero__title {
    margin: 0 !important;
    color: var(--seh-ink) !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(58px, 5.3vw, 102px) !important;
    font-weight: 400 !important;
    line-height: 0.92 !important;
    letter-spacing: -0.045em;
}

.seh-hero__subtitle {
    margin-top: clamp(12px, 1.6vw, 22px);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 2vw, 38px);
    font-style: italic;
    line-height: 1.15;
    color: #7b5144;
}

.seh-hero__divider {
    display: grid;
    grid-template-columns: minmax(32px, 92px) 9px minmax(32px, 92px);
    align-items: center;
    gap: 11px;
    width: max-content;
    max-width: 100%;
    margin: clamp(20px, 2vw, 30px) 0;
}

.seh-hero__divider span {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 118, 91, 0.72));
}

.seh-hero__divider span:last-child {
    transform: rotate(180deg);
}

.seh-hero__divider i {
    display: block;
    width: 7px;
    height: 7px;
    border: 1px solid var(--seh-accent);
    transform: rotate(45deg);
}

.seh-hero__description {
    max-width: 650px;
    margin: 0 !important;
    color: var(--seh-copy) !important;
    font-size: clamp(16px, 1.05vw, 20px) !important;
    line-height: 1.65 !important;
}

.seh-hero__benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    margin-top: clamp(22px, 2.5vw, 36px);
}

.seh-benefit {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #4f3b34;
    font-size: clamp(13px, 0.86vw, 16px);
    line-height: 1.35;
}

.seh-benefit__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(191, 118, 91, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
}

.seh-benefit__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--seh-accent-dark);
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.seh-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: clamp(26px, 3vw, 42px);
}

.seh-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border: 1px solid var(--seh-accent);
    border-radius: 3px;
    background: var(--seh-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.seh-hero__button:hover,
.seh-hero__button:focus-visible {
    background: var(--seh-accent-dark);
    border-color: var(--seh-accent-dark);
    transform: translateY(-1px);
}

.seh-hero__secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--seh-ink) !important;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(48, 35, 31, 0.32);
    padding-bottom: 4px;
}

.seh-hero__secondary span {
    transition: transform .2s ease;
}

.seh-hero__secondary:hover span,
.seh-hero__secondary:focus-visible span {
    transform: translateX(3px);
}

@media (max-width: 1180px) {
    .seh-hero__shade {
        background: linear-gradient(90deg, rgba(var(--seh-paper-rgb), 0) 0%, rgba(var(--seh-paper-rgb), 0.18) 26%, rgba(var(--seh-paper-rgb), 0.9) 52%, rgba(var(--seh-paper-rgb), 0.99) 100%);
    }

    .seh-hero__content {
        width: min(57%, 650px);
    }

    .seh-hero__title {
        font-size: clamp(54px, 6.5vw, 76px) !important;
    }
}

@media (max-width: 860px) {
    .seh-hero {
        min-height: 650px;
        background-position: 23% center;
    }

    .seh-hero--has-max-height {
        min-height: min(650px, var(--seh-max-height));
    }

    .seh-hero__inner {
        min-height: 650px;
        padding-right: 26px;
        padding-left: 26px;
    }

    .seh-hero--has-max-height .seh-hero__inner {
        min-height: min(650px, var(--seh-max-height));
    }

    .seh-hero__content {
        width: 61%;
        padding-left: 22px;
    }

    .seh-hero__benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .seh-benefit:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 680px) {
    .seh-hero,
    .seh-hero--has-max-height {
        min-height: 0;
        max-height: none;
        padding-top: var(--seh-photo-height-mobile, 340px);
        background-size: auto var(--seh-photo-height-mobile, 340px);
        background-position: var(--seh-image-mobile-x, 32%) 0;
        background-color: var(--seh-paper);
    }

    .seh-hero__shade {
        background: linear-gradient(
            180deg,
            rgba(var(--seh-paper-rgb), 0) 0,
            rgba(var(--seh-paper-rgb), 0.08) calc(var(--seh-photo-height-mobile, 340px) - 95px),
            rgba(var(--seh-paper-rgb), 0.92) calc(var(--seh-photo-height-mobile, 340px) - 15px),
            rgba(var(--seh-paper-rgb), 1) var(--seh-photo-height-mobile, 340px),
            rgba(var(--seh-paper-rgb), 1) 100%
        );
    }

    .seh-hero__inner,
    .seh-hero--has-max-height .seh-hero__inner {
        min-height: 0;
        max-height: none;
        width: 100%;
        padding: 0 22px 44px;
        display: block;
    }

    .seh-hero__content {
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
        padding: 0;
    }

    .seh-hero__eyebrow {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: .14em;
    }

    .seh-hero__title {
        font-size: clamp(52px, 16vw, 72px) !important;
        line-height: .95 !important;
    }

    .seh-hero__subtitle {
        font-size: clamp(22px, 7.5vw, 30px);
    }

    .seh-hero__divider {
        margin: 18px 0;
    }

    .seh-hero__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
    }

    .seh-benefit:nth-child(n) {
        display: flex;
    }

    .seh-benefit {
        align-items: flex-start;
        font-size: 13px;
    }

    .seh-benefit__icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .seh-benefit__icon svg {
        width: 17px;
        height: 17px;
    }

    .seh-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .seh-hero__button {
        width: 100%;
    }

    .seh-hero__secondary {
        align-self: flex-start;
    }
}

@media (max-width: 430px) {
    .seh-hero__benefits {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seh-hero__button,
    .seh-hero__secondary span {
        transition: none;
    }
}

/* Menší měřítko orientačního náhledu v administraci. */
.seh-hero--preview {
    min-height: 520px;
}

.seh-hero--preview .seh-hero__inner {
    min-height: 520px;
}

/*
 * Automaticky kompaktní desktopové rozložení pro bannery s omezenou výškou.
 * Aktivuje se serverovou třídou podle nastavené maximální výšky.
 */
@media (min-width: 681px) {
    .seh-hero--compact .seh-hero__inner {
        padding-top: calc(var(--seh-safe-top, 90px) + clamp(12px, 1.35vw, 22px));
        padding-bottom: clamp(18px, 2vw, 30px);
    }

    .seh-hero--compact .seh-hero__content {
        width: min(50%, 680px);
    }

    .seh-hero--compact .seh-hero__eyebrow {
        margin-bottom: clamp(7px, .75vw, 11px);
        font-size: clamp(10px, .68vw, 13px);
        line-height: 1.3;
    }

    .seh-hero--compact .seh-hero__title {
        font-size: clamp(48px, 4.45vw, 82px) !important;
        line-height: .94 !important;
    }

    .seh-hero--compact .seh-hero__subtitle {
        margin-top: clamp(7px, .8vw, 12px);
        font-size: clamp(21px, 1.65vw, 31px);
        line-height: 1.1;
    }

    .seh-hero--compact .seh-hero__divider {
        grid-template-columns: minmax(28px, 72px) 7px minmax(28px, 72px);
        gap: 9px;
        margin: clamp(11px, 1.1vw, 17px) 0;
    }

    .seh-hero--compact .seh-hero__divider i {
        width: 6px;
        height: 6px;
    }

    .seh-hero--compact .seh-hero__description {
        font-size: clamp(14px, .9vw, 17px) !important;
        line-height: 1.46 !important;
    }

    .seh-hero--compact .seh-hero__benefits {
        gap: 9px 18px;
        margin-top: clamp(13px, 1.35vw, 20px);
    }

    .seh-hero--compact .seh-benefit {
        gap: 9px;
        font-size: clamp(12px, .76vw, 14px);
        line-height: 1.28;
    }

    .seh-hero--compact .seh-benefit__icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .seh-hero--compact .seh-benefit__icon svg {
        width: 17px;
        height: 17px;
    }

    .seh-hero--compact .seh-hero__actions {
        gap: 12px 20px;
        margin-top: clamp(14px, 1.5vw, 22px);
    }

    .seh-hero--compact .seh-hero__button {
        min-height: 46px;
        padding: 11px 23px;
        font-size: 13px;
    }

    .seh-hero--compact .seh-hero__secondary {
        font-size: 14px;
    }

    .seh-hero--extra-compact .seh-hero__inner {
        padding-top: calc(var(--seh-safe-top, 90px) + 10px);
        padding-bottom: 16px;
    }

    .seh-hero--extra-compact .seh-hero__title {
        font-size: clamp(42px, 4vw, 68px) !important;
    }

    .seh-hero--extra-compact .seh-hero__subtitle {
        font-size: clamp(19px, 1.45vw, 27px);
    }

    .seh-hero--extra-compact .seh-hero__description {
        font-size: clamp(13px, .82vw, 15px) !important;
        line-height: 1.38 !important;
    }

    .seh-hero--extra-compact .seh-hero__benefits {
        margin-top: 10px;
        gap: 7px 15px;
    }

    .seh-hero--extra-compact .seh-hero__actions {
        margin-top: 12px;
    }
}
