@font-face {
    font-family: "Nadpis";
    src: url("fonts/MoonTime-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Canva-Sans-Regular';
    src: url('fonts/Canva-Sans-Regular.ttf.woff') format('woff'),
    url('fonts/Canva-Sans-Regular.ttf.svg#Canva-Sans-Regular') format('svg'),
    url('fonts/Canva-Sans-Regular.ttf.eot'),
    url('fonts/Canva-Sans-Regular.ttf.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: Canva-Sans-Regular;
}

body {
    margin: 0;
    line-height: 1.7;
}

body.menu-open {
    overflow: hidden;
}

/* Úvodní obrazovka */
.intro-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Header */
header {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(16px, 4vh, 48px) 24px clamp(12px, 3vh, 32px);
    text-align: center;
}

.header-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 28px);
    margin-bottom: clamp(12px, 3vh, 28px);
}

.header-title h1 {
    margin: 0;
    font-family: Nadpis;
    font-size: clamp(2.4rem, 8vw, 5.8rem);
    line-height: 1;
    font-weight: 400;
}

.header-img {
    width: clamp(44px, 9vw, 80px);
    height: auto;
    object-fit: contain;
}

/* Navigace */
.main-nav {
    position: relative;

    max-width: 760px;
    margin: 0 auto;
    padding: 12px 20px;

    background-color: #eadcf8;
    border-radius: 999px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-links a {
    color: #4b2c63;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;

    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    background-color: #d7bff0;
    color: #2f1742;
    transform: translateY(-1px);
}

.nav-links a:active {
    transform: translateY(0);
}

.menu-toggle {
    display: none;
}

/* Hlavní obsah */
main {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 24px 64px;
}

section {
    margin: 0 auto 32px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(223, 199, 242, 0.65);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(77, 51, 89, 0.09);
    scroll-margin-top: 24px;
}

/* Hero sekce */
.hero-section {
    text-align: center;
    max-width: 980px;
    width: calc(100% - 48px);
    margin: 0 auto 32px;
    padding: clamp(16px, 3vh, 32px);
}

.hero-photo {
    width: min(760px, 100%);
    margin: 0 auto clamp(12px, 2.5vh, 28px);
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 18px 45px rgba(77, 51, 89, 0.14);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: clamp(180px, 36vh, 420px);
    object-fit: cover;
}

.hero-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.2vh, 1.2rem);
    line-height: 1.55;
    color: #3d3244;
}

section:first-child {
    text-align: center;
    padding-top: 42px;
}

section:first-child p:first-child {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    color: #3d3244;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.2;
    font-weight: 400;
    color: #4b2c63;
    text-align: center;
}

p {
    margin: 0 0 18px;
    font-size: 1.06rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Mapy */
.mapa {
    margin: 26px auto;
    overflow: hidden;
    max-width: 720px;
    border-radius: 22px;
    border: 1px solid #e4d4ec;
    box-shadow: 0 12px 28px rgba(77, 51, 89, 0.12);
    background: #f3edf7;
}

.mapa iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

/* Odkazy */
a {
    color: #6b3f86;
}

section a {
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

section a:hover {
    color: #3f2354;
}

/* Řada fotek */
.photo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.photo-row img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(77, 51, 89, 0.12);
}

.zoomable {
    cursor: zoom-in;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;

    padding: 24px;
    background: rgba(35, 22, 43, 0.82);

    justify-content: center;
    align-items: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: inline-block;
    max-width: min(980px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
}

.lightbox-content img {
    display: block;

    width: auto;
    height: auto;

    max-width: min(980px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);

    object-fit: contain;

    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10000;

    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);
    color: #3a2f3f;

    font-size: 32px;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
    background: #ffffff;
    transform: scale(1.05);
}

/* Kontakt */
#kontakt p:nth-of-type(2),
#kontakt p:nth-of-type(3) {
    background: #f4eaf9;
    border: 1px solid #e2c9f0;
    border-radius: 18px;
    padding: 14px 18px;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

/* Střední displeje */
@media (max-width: 880px) {
    .photo-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .photo-row img {
        height: auto;
    }
}

/* Mobilní zobrazení */
@media (max-width: 700px) {
    header {
        padding: 32px 16px 24px;
    }

    .header-title {
        gap: 12px;
    }

    .header-title h1 {
        font-size: 2.4rem;
    }

    .header-img {
        width: 54px;
    }

    .main-nav {
        width: calc(100vw - 28px);
        padding: 12px 56px 12px 16px;
        border-radius: 24px;
        min-height: 52px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);

        align-items: center;
        justify-content: center;

        width: 36px;
        height: 36px;

        border: 1px solid #dfc7f2;
        border-radius: 50%;
        background-color: #f5ecfb;
        color: #4b2c63;

        font-size: 1.45rem;
        line-height: 1;
        cursor: pointer;
        z-index: 10001;

        box-shadow: 0 8px 20px rgba(95, 55, 125, 0.12);
    }

    .menu-toggle:hover {
        background-color: #d7bff0;
    }

    .nav-links {
        display: none;
    }

    .main-nav.is-open .nav-links {
        display: flex;

        position: fixed;
        inset: 0;
        z-index: 10000;

        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 22px;

        padding: 32px;

        background: rgba(35, 22, 43, 0.82);
        backdrop-filter: blur(8px);
    }

    .main-nav.is-open .menu-toggle {
        position: fixed;
        top: 24px;
        right: 24px;
        transform: none;

        width: 44px;
        height: 44px;

        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: #3a2f3f;

        font-size: 32px;
        line-height: 1;

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .main-nav.is-open .menu-toggle:hover {
        background: #ffffff;
        transform: scale(1.05);
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-width: 180px;
        padding: 10px 20px;

        color: #ffffff;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 999px;

        font-size: 1.35rem;
        font-weight: 700;
        text-decoration: none;
        text-align: center;

        transition:
                border-color 0.2s ease,
                background-color 0.2s ease,
                transform 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a:active {
        border-color: rgba(255, 255, 255, 0.85);
        background-color: rgba(255, 255, 255, 0.10);
        transform: translateY(-1px);
        outline: none;
    }

    main {
        padding: 12px 14px 48px;
    }

    section {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .hero-section {
        width: calc(100% - 28px);
        padding: 18px;
        border-radius: 22px;
    }

    .hero-photo {
        border-radius: 22px;
    }

    .hero-photo img {
        height: 280px;
    }

    .mapa iframe {
        height: 260px;
    }

    .lightbox {
        padding: 14px;
    }

    .lightbox-content {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }

    .lightbox-content img {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
        border-radius: 18px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 26px;
    }
}

/* Nízké displeje */
@media (max-height: 760px) {
    header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header-title {
        margin-bottom: 12px;
    }

    .header-title h1 {
        font-size: clamp(2rem, 7vw, 4.2rem);
    }

    .header-img {
        width: clamp(38px, 7vw, 62px);
    }

    .main-nav {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.92rem;
    }

    .hero-section {
        padding: 14px 18px;
    }

    .hero-photo {
        width: min(500px, 100%);
    }

    .hero-photo img {
        height: clamp(140px, 30vh, 280px);
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.45;
    }
}

/* Velmi nízké displeje */
@media (max-height: 600px) {
    .hero-photo {
        width: min(300px, 100%);
    }

    .hero-photo img {
        height: 120px;
    }

    .header-title h1 {
        font-size: 2.2rem;
    }

    .header-img {
        width: 38px;
    }

    .hero-text {
        font-size: 0.95rem;
        line-height: 1.35;
    }
}