.homepage-history-section {
    width: min(calc(100% - 80px), 1380px);
    margin-inline: auto;
    padding: 62px 0 92px;
}

.homepage-history-banner {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    min-height: 430px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    background: #062f62;
    box-shadow: 0 24px 58px rgba(3,31,65,.16);
}

.homepage-history-visual {
    position: relative;
    display: block;
    min-height: 430px;
    overflow: hidden;
    background: #dbe3ec;
}

.homepage-history-visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 68%, rgba(6,47,98,.18));
    content: "";
    pointer-events: none;
}

.homepage-history-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}

.homepage-history-visual:hover img { transform: scale(1.025); }

.homepage-history-copy {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(44px, 5vw, 78px);
}

.homepage-history-kicker {
    margin-bottom: 14px;
    color: #f0cc91;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.homepage-history-copy h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 4.5vw, 4.9rem);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: .98;
    text-wrap: balance;
}

.homepage-history-copy > p {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(.92rem, 1.15vw, 1.05rem);
    line-height: 1.72;
}

.homepage-history-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 25px 0 0;
    padding: 0;
    color: #f0cc91;
    list-style: none;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.homepage-history-facts li { display: flex; align-items: center; }

.homepage-history-facts li:not(:last-child)::after {
    width: 3px;
    height: 3px;
    margin: 0 11px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: .65;
}

.homepage-history-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 24px;
    margin-top: 31px;
}

.homepage-history-primary {
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border-radius: 5px;
    color: #fff;
    background: #cf1234;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease;
}

.homepage-history-primary:hover { color: #fff; background: #e3002b; transform: translateY(-2px); }

.homepage-history-secondary {
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.45);
    text-underline-offset: 5px;
    text-transform: uppercase;
}

.homepage-history-secondary span { margin-left: 5px; }
.homepage-history-secondary:hover { color: #fff; text-decoration-color: #fff; }
.footer-nav a[href$="/historie-paroplavby"] { color: #9a6720; font-weight: 700; }

@media (max-width: 767px) {
    .homepage-history-section { width: calc(100% - 28px); padding: 44px 0 54px; }
    .homepage-history-banner { grid-template-columns: 1fr; min-height: 0; border-radius: 11px; }
    .homepage-history-visual { min-height: 250px; }
    .homepage-history-visual::after { background: linear-gradient(0deg, rgba(6,47,98,.24), transparent 45%); }
    .homepage-history-copy { padding: 38px 24px 36px; }
    .homepage-history-copy h2 { margin-bottom: 17px; font-size: clamp(2.3rem, 9.5vw, 2.65rem); }
    .homepage-history-copy > p { font-size: .88rem; }
    .homepage-history-facts { margin-top: 23px; font-size: .61rem; }
    .homepage-history-actions { align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-history-visual img,
    .homepage-history-primary { transition: none; }
}
