#body.is-homepage .kontent_1 > .grde-home-calendar,
#body.is-homepage .kontent_1 > .grde-home-story {
    box-sizing: border-box;
    width: min(1390px, calc(100vw - 48px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    color: #f4f7fa;
    font-family: 'Quicksand', Arial, sans-serif;
}

#body.is-homepage .grde-home-calendar { margin-top: 28px; }
.grde-home-calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}
.grde-home-calendar__head > div { display: flex; align-items: center; gap: 16px; min-width: 0; }
.grde-home-calendar__icon {
    display: grid;
    flex: none;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ff9200;
    font-size: 30px;
}
.grde-home-calendar__icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#body.is-homepage .grde-home-calendar__head h2 {
    margin: 0;
    color: #fff;
    font-family: 'Cal Sans', sans-serif;
    font-size: clamp(25px, 2.2vw, 36px);
    line-height: 1.05;
    white-space: nowrap;
}
.grde-home-calendar__head p {
    margin: 0 0 0 12px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,.32);
    color: #c6ced4;
    font-size: 14px;
    font-style: italic;
}
.grde-home-calendar__head > a {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 10px 17px;
    border: 1px solid #ed8b00;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.grde-home-calendar__head > a:hover,
.grde-home-calendar__head > a:focus-visible { background: #ed8b00; color: #111a20; }
.grde-home-calendar__mobile-link { display: none; }
.grde-home-calendar__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grde-home-calendar--count-2 .grde-home-calendar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grde-home-calendar--count-1 .grde-home-calendar__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.grde-home-calendar__slot { min-width: 0; height: 244px; }
.grde-home-event {
    position: relative;
    display: grid;
    grid-template-columns: 47% minmax(0,1fr);
    grid-template-rows: minmax(0,1fr) 38px;
    box-sizing: border-box;
    height: 244px;
    overflow: hidden;
    border: 1px solid rgba(103,139,158,.26);
    border-radius: 17px;
    background: linear-gradient(135deg,#17242d,#101a20);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    transition: opacity .35s ease, transform .35s ease;
}
.grde-home-event.is-leaving { opacity: 0; transform: translateY(8px); }
.grde-home-event.is-entering { opacity: 0; transform: translateY(-8px); }
.grde-home-event__image { grid-row: 1; grid-column: 1; display: block; overflow: hidden; }
.grde-home-event__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grde-home-event__date {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    display: grid;
    min-width: 57px;
    padding: 5px 7px;
    border: 1px solid #f19a00;
    border-radius: 10px;
    background: #101921;
    color: #fff;
    text-align: center;
    line-height: 1.05;
}
.grde-home-event__date strong { font-size: 18px; }
.grde-home-event__date small { margin-top: 4px; font-size: 9px; font-weight: 900; }
.grde-home-event__content { grid-row: 1; grid-column: 2; min-width: 0; overflow: hidden; padding: 12px 14px 6px; }
.grde-home-event__content h3 { margin: 0 0 7px; font-family: 'Cal Sans',sans-serif; font-size: clamp(16px,1.25vw,20px); line-height: 1.13; }
.grde-home-event__content h3 a { color: #f7f9fb; text-decoration: none; }
.grde-home-event__content h3 a:hover { color: #ff9a06; }
.grde-home-event__category { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border: 1px solid #e89000; border-radius: 99px; color: #fff; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.grde-home-event__content p { display: -webkit-box; overflow: hidden; margin: 0; color: #bec9d0; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.grde-home-event__foot { grid-row: 2; grid-column: 1/-1; display: flex; box-sizing: border-box; align-items: center; gap: 12px; min-height: 0; padding: 5px 12px; border-top: 1px solid rgba(255,255,255,.13); color: #d6e0e6; font-size: 11px; font-weight: 700; }
.grde-home-event__foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grde-home-event__foot a { margin-left: auto; color: #ff9200; font-size: 20px; line-height: 1; text-decoration: none; }

#body.is-homepage .kontent_1 > .grde-home-story {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0,1fr) 44%;
    align-items: center;
    min-height: 195px;
    margin-top: 30px;
    margin-bottom: 32px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: transparent;
}
.grde-home-story__copy { position: relative; z-index: 2; min-width: 0; padding: 28px 32px; border: 0; background: transparent; text-align: left; }
.grde-home-story__eyebrow { display: block; margin-bottom: 8px; color: #00aeff; font-size: 14px; font-weight: 900; letter-spacing: .04em; }
#body.is-homepage .grde-home-story h2 { margin: 0 0 12px; color: #fff; font-family: 'Cal Sans',sans-serif; font-size: clamp(25px,2.4vw,37px); line-height: 1.1; text-align: left; }
.grde-home-story h2::after { display: block; width: 70px; height: 3px; margin-top: 13px; background: #ff9800; content: ''; }
.grde-home-story p { max-width: 750px; margin: 0; color: #d2d9dd; font-size: 15px; line-height: 1.5; }
.grde-home-story__photos { position: absolute; z-index: 0; inset: 0 0 0 48%; overflow: hidden; }
.grde-home-story__photos::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,#111 0%,rgba(17,17,17,.35) 45%,transparent 100%); content: ''; pointer-events: none; }
.grde-home-story__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0; transition: opacity 1.2s ease, filter .55s ease; }
#body.is-homepage .grde-home-story__photos img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.grde-home-story__photos img.is-active { opacity: .75; }
.grde-home-story:hover .grde-home-story__photos img.is-active,
.grde-home-story:focus-within .grde-home-story__photos img.is-active { filter: grayscale(0); }

/* Původní úvodní věta je v obsahu i mimo úvodní blok. Po přesunu panelů už není jeho přímým sourozencem. */
#body.is-homepage .kontent_1 > .grde-home-story + div:not([class]),
#body.is-homepage .kontent_1 > .grde-home-calendar + div:not([class]) { display: none; }

@media (max-width: 1100px) {
    .grde-home-calendar__head > div { flex-wrap: wrap; }
    .grde-home-calendar__head p { flex-basis: 100%; margin-left: 58px; padding-left: 0; border: 0; }
    .grde-home-calendar__grid { gap: 11px; }
    .grde-home-event { grid-template-columns: 42% minmax(0,1fr); }
}
@media (max-width: 800px) {
    .grde-home-calendar__grid,
    .grde-home-calendar--count-2 .grde-home-calendar__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grde-home-calendar__slot:nth-child(n+3) { display: none; }
    .grde-home-calendar__slot,
    .grde-home-event { height: 328px; }
    .grde-home-event { grid-template-columns: minmax(0,1fr); grid-template-rows: 105px minmax(0,1fr) 38px; }
    .grde-home-event__image { grid-row: 1; grid-column: 1; }
    .grde-home-event__content { grid-row: 2; grid-column: 1; padding: 9px 11px; }
    #body.is-homepage .grde-home-calendar .grde-home-event__content h3 { display: -webkit-box; overflow: hidden; font-size: 16px !important; line-height: 1.16; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    #body.is-homepage .grde-home-calendar .grde-home-event__content p { display: -webkit-box !important; font-size: 11px; line-height: 1.3; -webkit-line-clamp: 3 !important; }
    .grde-home-event__foot { grid-row: 3; grid-column: 1; gap: 5px; padding: 4px 8px; }
    .grde-home-event__foot span:nth-of-type(n+2) { display: none; }
    .grde-home-calendar__head { align-items: flex-start; flex-direction: column; }
    .grde-home-calendar__head p,
    .grde-home-calendar__head > a { display: none; }
    .grde-home-calendar__mobile-link { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 18px auto 0; padding: 10px 17px; border: 1px solid #ed8b00; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
    .grde-home-calendar__mobile-link:hover,
    .grde-home-calendar__mobile-link:focus-visible { background: #ed8b00; color: #111a20; }
    #body.is-homepage .kontent_1 > .grde-home-story { display: block; min-height: 0; height: auto; }
    .grde-home-story__copy { width: 60%; box-sizing: border-box; padding: 18px 12px 22px; }
    .grde-home-story__photos { position: absolute; inset: 0 0 0 auto; width: 90%; height: auto; opacity: 1; }
    .grde-home-story__photos::before { display: block; background: linear-gradient(90deg,#111 0%,rgba(17,17,17,.96) 27%,rgba(17,17,17,.75) 58%,rgba(17,17,17,.12) 100%); }
}
@media (max-width: 520px) {
    #body.is-homepage .kontent_1 > .grde-home-calendar { width: calc(100vw - 24px); }
    #body.is-homepage .kontent_1 > .grde-home-story { width: 100%; }
    .grde-home-calendar__head > div { gap: 8px; }
    .grde-home-calendar__head h2 { white-space: normal; }
    .grde-home-calendar__head p { margin-left: 0; }
    .grde-home-event__content { padding: 9px 8px; }
    #body.is-homepage .grde-home-calendar .grde-home-event__content h3 { font-size: 14px !important; line-height: 1.16; }
    .grde-home-event__category { font-size: 9px; margin-bottom: 4px; }
    .grde-home-event__foot { gap: 7px; font-size: 10px; }
    .grde-home-story__copy { width: 60%; padding: 16px 8px 20px; }
    .grde-home-story__photos { height: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .grde-home-event, .grde-home-story__photos img { transition: none; }
}
