:root {
    --krystof-yellow: #f7df41;
    --krystof-blue: #1f6fd1;
    --krystof-red: #d82f2f;
    --krystof-ink: #202124;
    --krystof-text: #3f4147;
    --krystof-line: rgba(32, 33, 36, 0.12);
    --krystof-paper: rgba(255, 255, 255, 0.94);
    --krystof-shadow: 0 16px 40px rgba(32, 33, 36, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--krystof-yellow);
    background-size: cover;
    color: var(--krystof-text);
    font-family: "Open Sans", Arial, sans-serif;
    min-height: 100vh;
}

body::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(247, 223, 65, 0.72) 64%, rgba(247, 223, 65, 0.88));
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

a {
    color: #185eb3;
    text-underline-offset: 3px;
}

a:hover {
    color: #0f4f9d;
}

#header {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(32, 33, 36, 0.08);
    height: auto;
    min-height: 74px;
}

#header-text {
    align-items: center;
    display: flex;
    gap: 22px;
    height: auto;
    justify-content: space-between;
    max-width: 1180px;
    min-height: 74px;
    padding: 8px 0;
}

#header-text img {
    display: block;
    height: auto;
    margin: 0;
    max-height: 58px;
    max-width: 280px;
}

#header-text ul {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    float: none;
    gap: 6px;
    height: auto;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

#header-text li,
#header-text ul li {
    display: block;
    height: auto;
}

#header-text ul li a {
    border: 0;
    border-radius: 6px;
    color: var(--krystof-ink);
    float: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 13px;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#header-text ul li a:hover {
    background: var(--krystof-blue);
    color: #fff;
    transform: translateY(-1px);
}

#home,
#content,
.front-layout {
    background: transparent;
}

#home {
    margin-top: clamp(330px, 42vw, 520px);
    padding: 0 0 24px;
}

#content {
    padding: 0 0 42px;
}

#content[style] {
    margin-top: clamp(330px, 42vw, 520px) !important;
}

#home-text,
#content-text,
#partneri-text {
    max-width: 1180px;
    width: min(92%, 1180px);
}

.front-layout #home-text,
.front-layout #content-text {
    width: 100%;
}

.front-layout {
    align-items: flex-start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    margin: 0 auto;
    max-width: 1180px;
    padding-top: 30px;
    width: min(92%, 1180px);
}

.front-main {
    min-width: 0;
}

#content-right.front-reservations {
    margin-top: clamp(330px, 42vw, 520px);
    position: sticky;
    top: 92px;
}

#home-start {
    align-items: stretch;
    display: grid;
    float: none;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
}

.home-blok,
.content-left,
#content-right {
    background: var(--krystof-paper);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    box-shadow: var(--krystof-shadow);
}

.home-blok {
    display: flex;
    flex-direction: column;
    float: none;
    height: auto;
    margin: 0;
    min-height: 100%;
    overflow: hidden;
    padding: 0;
    width: auto;
}

.home-blok a {
    display: block;
}

.home-blok img,
.content-img img {
    display: block;
    object-fit: cover;
}

.home-blok img {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
}

.homeprvni {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    margin: 0;
    overflow: visible;
    padding: 20px;
}

.homeprvni > a:first-child {
    display: block;
    flex: 0 0 auto;
    margin: -20px -20px 18px;
}

.home-blok h2,
.content-left h1,
.content-left h2 {
    color: var(--krystof-ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
}

.home-blok h2 {
    display: -webkit-box;
    font-size: 21px;
    min-height: 51px;
    margin: 0 0 10px;
    overflow: hidden;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-blok p {
    color: #555a64;
    display: -webkit-box;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-height: 96px;
    overflow: hidden;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-blok > div:last-child {
    padding: 0 20px 20px;
}

.home-blok > div:last-child p {
    display: block;
    margin: 0;
    max-height: none;
    overflow: visible;
    text-align: left;
}

.vice {
    background: var(--krystof-red);
    border: 0;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    min-width: 92px;
    padding: 10px 14px;
    text-decoration: none;
}

.vice:hover {
    background: #b92525;
    color: #fff;
    text-decoration: none;
}

#content-text {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    text-align: left;
}

#content:not([style]) #content-text {
    display: block;
}

.news-list {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
}

#content-right {
    flex: 0 0 330px;
    float: none;
    margin: 0;
    min-height: 0;
    order: 2;
    overflow: hidden;
    width: auto;
}

#content:not([style]) #content-right {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    width: 100%;
}

.content-left {
    flex: 1 1 0;
    float: none;
    margin: 0;
    min-height: 0;
    order: 1;
    overflow: hidden;
    padding: 26px;
    width: auto;
}

#content:not([style]) .content-left {
    display: grid;
    gap: 18px;
    grid-template-areas:
        "media"
        "title"
        "body"
        "meta";
    grid-template-rows: auto auto minmax(130px, 1fr) auto;
    max-width: none;
    padding: 0;
    width: 100%;
}

#content:not([style]) .news-text {
    display: -webkit-box;
    grid-area: body;
    line-height: 1.68;
    margin: 0;
    max-height: 134px;
    overflow: hidden;
    padding: 0 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

#content:not([style]) .news-gallery {
    display: none;
}

.content-img {
    border-radius: 8px;
    float: right;
    margin: 0 0 18px 24px;
    max-width: 360px;
    overflow: hidden;
    width: 42%;
}

#content:not([style]) .content-img {
    border-radius: 0;
    float: none;
    grid-area: media;
    margin: 0;
    max-width: none;
    width: 100%;
}

.content-img img {
    width: 100%;
}

#content:not([style]) .content-img img,
#content:not([style]) .content-img iframe {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto !important;
    margin: 0 !important;
    object-fit: cover;
    width: 100% !important;
}

.content-nadpis {
    float: none;
    width: auto;
}

#content:not([style]) .content-nadpis {
    grid-area: title;
    padding: 0 24px;
}

.content-left h1,
.content-left h2 {
    font-size: 30px;
    margin: 0 0 18px;
    text-align: left;
}

#content:not([style]) .content-left h2 {
    display: -webkit-box;
    font-size: 20px;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.content-left p {
    line-height: 1.72;
}

.content-body {
    line-height: 1.72;
}

.content-body iframe[src*="mapy"],
.content-body iframe[src*="api.mapy"],
.content-body iframe[src*="frame.mapy"] {
    display: none !important;
}

.paticka {
    border-top: 1px solid var(--krystof-line);
    color: #6c717b;
    margin: 22px 0 0;
    padding-top: 14px;
}

#content:not([style]) .paticka {
    grid-area: meta;
    margin: 0 24px 24px;
    padding: 14px 0 0;
}

.malaGal {
    border-radius: 6px;
    height: 82px;
    object-fit: cover;
    width: 120px;
}

#formular {
    padding: 18px 0;
}

#formular h2 {
    color: var(--krystof-ink);
    font-size: 22px;
    font-weight: 800;
    margin: 0 18px 16px;
}

#formular input,
#formular textarea {
    border: 1px solid #d6dae2;
    border-radius: 6px;
    color: var(--krystof-text);
    font-family: inherit;
    padding: 10px 11px;
    width: 100%;
}

#formular .tabulka form {
    margin: 0;
    width: 100%;
}

#formular .tabulka form input,
#formular .tabulka form textarea,
#formular .tabulka form .odeslatRezervaci {
    display: block;
    margin: 8px 0 0;
    max-width: 100%;
    width: 100%;
}

#formular .odeslatRezervaci {
    background: var(--krystof-blue);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
}

.reservation-open {
    background: transparent;
    border: 0;
    color: green;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
    white-space: nowrap;
}

.reservation-open:hover {
    text-decoration: underline;
}

.tabulka {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

#formular .tabulka {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    table-layout: fixed;
    width: 100% !important;
}

.tabulka th,
.tabulka td {
    border-bottom: 1px solid #e6e8ee;
    padding: 10px 8px;
}

#formular .tabulka th,
#formular .tabulka td {
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    white-space: nowrap;
}

#formular p,
#formular form {
    margin-left: 18px;
    margin-right: 18px;
}

#formular .tabulka p,
#formular .tabulka form {
    margin-left: 0;
    margin-right: 0;
}

.tabulka tr {
    background: #fff;
}

.tabulka tr:hover {
    background: #f4f7fb;
}

#partneri {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    padding: 18px 0;
}

#partneri-text {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
    justify-content: center;
}

#partneri-text img {
    filter: grayscale(0.1);
    height: auto;
    margin: 0;
    max-height: 42px;
    max-width: 170px;
    object-fit: contain;
}

.content-left iframe,
.mapy-embed iframe {
    border: 0;
    border-radius: 8px;
    display: block;
    max-width: 100%;
    width: 100% !important;
}

.content-left iframe[src*="mapy"],
.mapy-embed iframe {
    background: #e9edf3;
    height: 430px !important;
}

.contact-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 22px 0;
}

.contact-page {
    max-width: 760px;
}

.contact-page .content-nadpis h1 {
    margin-bottom: 18px;
}

.contact-hero {
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e5ee;
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: 46% 1fr;
    margin-bottom: 22px;
    overflow: hidden;
}

.contact-hero img {
    display: block;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    width: 100%;
}

.contact-hero div {
    align-items: center;
    display: flex;
    padding: 22px;
}

.contact-hero p {
    color: var(--krystof-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
}

.contact-section {
    background: #f8fafc;
    border: 1px solid #e0e5ee;
    border-radius: 8px;
    padding: 22px;
}

.contact-section h2 {
    border-bottom: 1px solid #dde3ec;
    font-size: 22px;
    margin: 0 0 18px;
    padding-bottom: 12px;
}

.contact-row {
    border-bottom: 1px solid #e5eaf1;
    display: grid;
    gap: 5px;
    padding: 12px 0;
}

.contact-row:first-of-type {
    padding-top: 0;
}

.contact-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-row span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contact-row strong {
    color: var(--krystof-ink);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.contact-address {
    display: grid;
    gap: 6px;
}

.contact-address strong,
.contact-address span {
    color: var(--krystof-ink);
    display: block;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.45;
}

.contact-transport {
    background: #fff;
    border-left: 4px solid var(--krystof-blue);
    border-radius: 6px;
    margin-top: 22px;
    padding: 15px 16px;
}

.contact-transport h3 {
    color: var(--krystof-ink);
    font-size: 16px;
    margin: 0 0 7px;
}

.contact-transport p {
    margin: 0;
}

.mapy-embed {
    background: #f8fafc;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    margin-top: 22px;
    overflow: hidden;
}

.mapy-embed iframe {
    display: block;
    height: 360px;
    width: 100%;
}

.mapy-embed__link {
    background: #fff;
    border-top: 1px solid #dce3ec;
    color: #185eb3;
    display: flex;
    font-weight: 800;
    justify-content: center;
    padding: 13px 16px;
    text-decoration: none;
}

.mapy-embed__link:hover {
    background: #f4f7fb;
    text-decoration: none;
}

.facebook-link-box {
    border-top: 1px solid #e4e8ef;
    margin: 18px;
    padding-top: 18px;
    text-align: center;
}

.facebook-link-box a {
    background: #1877f2;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    line-height: 1.3;
    padding: 12px 14px;
    text-decoration: none;
}

.facebook-link-box a:hover {
    background: #125fc2;
    color: #fff;
    text-decoration: none;
}

.archive-page #content-text {
    display: block;
}

.archive-heading {
    margin-bottom: 24px;
}

.archive-heading h1 {
    background: var(--krystof-paper);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    box-shadow: var(--krystof-shadow);
    color: var(--krystof-ink);
    font-size: 30px;
    margin: 0;
    padding: 20px 24px;
    text-align: left;
}

.archive-list {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-card {
    background: var(--krystof-paper);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    box-shadow: var(--krystof-shadow);
    overflow: hidden;
}

.archive-card__media {
    display: block;
}

.archive-card__media img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.archive-card__body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.archive-card__body a {
    text-decoration: none;
}

.archive-card__body h2 {
    color: var(--krystof-ink);
    display: -webkit-box;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.archive-card__text {
    color: #555a64;
    display: -webkit-box;
    font-size: 15px;
    line-height: 1.6;
    min-height: 96px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.archive-card__meta {
    border-top: 1px solid var(--krystof-line);
    color: #6c717b;
    font-size: 13px;
    font-style: italic;
    margin: 0;
    padding-top: 12px;
}

.reservation-modal {
    align-items: center;
    background: rgba(18, 24, 38, 0.58);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 2147483000;
}

.reservation-modal.is-open {
    display: flex;
}

.reservation-modal__dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(18, 24, 38, 0.32);
    max-height: calc(100vh - 48px);
    max-width: 560px;
    overflow: auto;
    padding: 26px;
    position: relative;
    width: min(100%, 560px);
}

.reservation-modal__dialog h3 {
    color: var(--krystof-ink);
    font-size: 24px;
    margin: 0 42px 8px 0;
}

.reservation-modal__term {
    color: #5c6370;
    margin: 0 0 18px;
    padding: 0;
    text-align: left;
}

.reservation-modal__close {
    background: #f2f5f9;
    border: 1px solid #dce3ec;
    border-radius: 6px;
    color: var(--krystof-ink);
    cursor: pointer;
    font-size: 28px;
    height: 38px;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
}

.reservation-modal form {
    display: grid;
    gap: 12px;
    margin: 0;
}

.reservation-modal input,
.reservation-modal textarea {
    border: 1px solid #d6dae2;
    border-radius: 6px;
    color: var(--krystof-text);
    font-family: inherit;
    font-size: 16px;
    margin: 0;
    padding: 11px 12px;
    width: 100%;
}

.reservation-modal textarea {
    min-height: 96px;
    resize: vertical;
}

.reservation-modal .odeslatRezervaci {
    background: var(--krystof-blue);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

@media (max-width: 1000px) {
    body {
        background-attachment: scroll;
    }

    #header-text {
        width: min(94%, 1180px);
    }

    #header-text img {
        max-width: 230px;
    }

    #header-text ul li a {
        font-size: 14px;
        padding: 10px 9px;
    }

    #home,
    #content[style] {
        margin-top: 330px !important;
    }

    #home-start {
        grid-template-columns: 1fr;
    }

    .front-layout {
        display: block;
    }

    #content-right.front-reservations {
        margin-top: 22px;
        position: static;
    }

    #content-text {
        display: block;
    }

    #content:not([style]) #content-text {
        display: block;
    }

    .news-list {
        display: grid;
        gap: 22px;
        grid-template-columns: 1fr;
    }

    #content:not([style]) #content-right,
    #content:not([style]) .content-left {
        grid-column: auto;
        grid-row: auto;
    }

    #content-right,
    .content-left {
        margin: 0 0 22px;
        width: 100%;
    }

    .content-img {
        max-width: none;
        width: 100%;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-page {
        max-width: none;
    }

    .contact-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #header {
        position: absolute;
    }

    #header-text {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    #header-text img {
        display: block;
        max-width: 240px;
    }

    #header-text ul {
        justify-content: flex-start;
        width: 100%;
    }

    #header-text ul li a {
        font-size: 13px;
        padding: 9px 10px;
    }

    #home,
    #content[style] {
        margin-top: 260px !important;
        padding-top: 22px;
    }

    #home-text,
    #content-text,
    #partneri-text {
        width: min(94%, 1180px);
    }

    .content-left {
        padding: 18px;
    }

    .content-left h1,
    .content-left h2 {
        font-size: 25px;
    }

    .content-left iframe[src*="mapy"],
    .mapy-embed iframe {
        height: 340px !important;
    }

    .archive-list {
        grid-template-columns: 1fr;
    }
}
