* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E63946;
    --primary-dark: #D62828;
    --text-dark: #2C2C2C;
    --text-light: #666;
    --bg-light: #F8F8F8;
    --border: #E0E0E0;
    --white: #FFFFFF;
    --pad-x: 1rem; /* boční odsazení obsahu */
}

html {
    scroll-behavior: smooth;
}

/* Nad 1440px roste celý design proporcionálně s viewportem (1rem = 16px @ 1440px).
   Všechny rozměry v rem tak drží poměry z Figmy i na velkých monitorech. */
@media (min-width: 1440px) {
    html {
        font-size: 1.1111vw;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

body.menu-open {
    overflow: hidden;
}

/* Viditelnost podle zařízení:
   .skrytpc  / .mobilimg = jen na mobilu (na desktopu skryté)
   .skrytmobil / .pconly = jen na desktopu (na mobilu skryté) */
.skrytmobil,
.pconly {
    display: none !important;
}

/* HEADER & NAVIGATION */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--pad-x);
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lang-selector {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-selector:hover {
    color: var(--primary);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo img,
.mobile-menu-logo img {
    height: 3.75rem;
    width: auto;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DESKTOP MENU */
.desktop-menu {
    display: none;
    gap: 1rem;
    align-items: center;
}

.desktop-menu-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--text-dark);
    padding: 0.6rem 1.2rem;
    background: transparent;
    cursor: pointer;
    border-radius: 50px;
    display: inline-block;
}

.desktop-menu-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-rez-link {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary);
}

.btn-rez-link:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.header-right {
    display: contents; /* na mobilu se EN/burger rozloží kolem loga */
}

.lang-selector {
    order: -1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* INSTAGRAM IKONA (na mobilu skrytá dle designu) */
.ig-link {
    display: none;
    align-items: center;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.ig-link:hover {
    color: var(--primary);
}

.ig-link svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary);
    z-index: 200;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mobile-menu-btn {
    padding: 1rem;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--white);
    color: var(--primary);
}

.mobile-menu-btn.primary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.mobile-menu-btn.primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0;
}

.mobile-menu-info {
    color: var(--white);
}

.mobile-menu-info-section {
    margin-bottom: 1.5rem;
}

.mobile-menu-info-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-menu-info-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.95;
}

.mobile-menu-info-section a {
    color: var(--white);
    text-decoration: none;
}

.mobile-menu-info-section a:hover {
    opacity: 0.8;
}

/* HERO SECTION */
.hero {
    padding: 2rem var(--pad-x);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Na mobilu se obsah hero řadí dle designu: nadpis, foto, info, tlačítko */
.hero-left {
    display: contents;
}

.hero-location { order: 1; }
.hero-title { order: 2; }
.hero .carousel { order: 3; }
.hero-info-grid { order: 4; }
.btnrez { order: 5; }

.hero-location {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-container {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-slide {
    min-width: calc(100% - 2.5rem); /* mobil: vykukuje kousek další fotky */
    width: calc(100% - 2.5rem);
}

.carousel-image {
    width: 100%;
    height: 475px;
    object-fit: cover;
    display: block;
}

.carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--white);
}

/* HERO INFO BOXY */
.hero-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-info-box {
    padding: 0;
    background-color: var(--white);
}

.hero-info-box h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hero-info-box p {
    font-size: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: 500;
}

.hero-info-box p:not(:last-child) {
    margin-bottom: 0.3rem;
}

/* BUTTON */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* CONTENT SECTIONS */
.section {
    padding: 2rem var(--pad-x);
    clear: both;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 0.9rem;
    color: #000 !important;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-image {
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.section-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #000;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* SPLIT SEKCE (text vlevo, média vpravo) */
.ssplit {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eyebrow {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.eyebrow-dark {
    color: var(--text-dark);
}

.ssplit-body {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #111;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.ssplit-text .btn,
.ssplit-text .btn-outline {
    width: auto;
    padding: 0.85rem 2.5rem;
    margin-bottom: 0;
}

.ssplit-photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: top; /* ořez kotvit nahoru, ať se neřežou hlavy */
    display: block;
    aspect-ratio: 308 / 350; /* mobil: stejný poměr jako ostatní fotky */
}

/* FOTO SLIDER (smyčka bez ovládacích prvků) */
.pslider {
    overflow: hidden;
    border-radius: 8px;
}

.pslider-track {
    display: flex;
    gap: 1rem;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.pslider-track:active {
    cursor: grabbing;
}

.pslide {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 308 / 350;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* NÁŠ PŘÍBĚH */
.pribeh-intro {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pribeh-highlight {
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Mobilní pořadí intro sekce příběhu: eyebrow, intro, portrét, odstavec */
.pribeh-s1 .ssplit-text {
    display: contents;
}

.pribeh-s1 .eyebrow { order: 1; }
.pribeh-s1 .pribeh-intro { order: 2; margin-bottom: 0; }
.pribeh-s1 .pribeh-photo-portrait { order: 3; }
.pribeh-s1 .section-text { order: 4; }

.pribeh-photo-m {
    aspect-ratio: 9 / 10;
}

.pribeh-photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.pribeh-photo-portrait {
    aspect-ratio: 631 / 789;
}

.pribeh-photo-landscape {
    aspect-ratio: 630 / 422;
}

.pribeh-photo-tall {
    aspect-ratio: 523 / 600;
}

.pribeh-grid4 {
    display: none; /* na mobilu je místo gridu jedna fotka */
}

.pribeh-grid4-item {
    width: 100%;
    aspect-ratio: 308 / 350;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Na mobilu je kohout před sekcí Technika (na desktopu naopak) */
.poradi-technika-kohout {
    display: flex;
    flex-direction: column;
}

.poradi-technika-kohout .kohout {
    order: -1;
}

/* KOHOUT */
.kohout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.kohout-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.kohout-img {
    width: 10rem;
    height: auto;
    align-self: flex-end;
}

/* ILLUSTRATION */
.illustration {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 2rem auto;
    display: block;
}

/* ČERVENÝ PRUH NAD PATIČKOU */
.bandimg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* FOOTER */
.footer {
    background-color: var(--bg-light);
    padding: 2rem var(--pad-x);
    text-align: left;
    border-top: 2px solid #000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-section {
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.footer-section p {
    font-size: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* PROVOZOVATEL (právní údaje v patičce) */
.footer-legal {
    grid-column: 1 / -1;
    clear: both;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.footer-legal p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.1rem;
}

/* ZÁVĚREČNÁ SEKCE (Počet míst + kontakty) */
.pckontakty {
    display: none;
}

/* RESPONSIVE DESKTOP */
@media (min-width: 768px) {
    :root {
        --pad-x: 5rem; /* 80px @ 1440, nad 1440 škáluje s rem */
    }

    /* mobilní prvky pryč, desktopové zobrazit */
    .skrytpc,
    .mobilimg {
        display: none !important;
    }

    .skrytmobil {
        display: inline-block !important;
    }

    .pconly {
        display: block !important;
    }

    .header {
        padding: 1.5rem var(--pad-x);
        gap: 2rem;
    }

    .desktop-menu {
        display: flex;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .lang-selector {
        order: 0;
    }

    .ig-link {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    /* HERO: text vlevo, foto vpravo, info boxy zarovnané dolů */
    .hero {
        padding: 3rem var(--pad-x) 4rem;
        display: grid;
        grid-template-columns: 1fr 1.28fr;
        gap: 6rem;
        align-items: stretch;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
    }

    .hero-location {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .eyebrow {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 2rem;
        max-width: 30rem;
    }

    .hero-info-grid {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 2.5rem;
        margin-top: auto;   /* přitlačí boxy ke spodní hraně hero */
        margin-bottom: 0;
    }

    .hero-info-box h3 {
        font-size: 0.85rem;
        font-weight: 700;
    }

    .hero-info-box p {
        font-size: 0.8125rem;
    }

    .carousel {
        margin-bottom: 0;
    }

    .carousel-container {
        gap: 0;
    }

    .carousel-slide {
        min-width: 100%;
        width: 100%;
    }

    .carousel-image {
        height: auto;
        aspect-ratio: 632 / 640;
    }

    /* DNES card */
    .dnes {
        margin-left: var(--pad-x);
        margin-right: var(--pad-x);
        clear: both;
        background-color: #fafafa;
        border: 1px solid #dadada;
        border-radius: 8px;
        padding: 2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        row-gap: 0;
        align-items: center;
    }

    .dnes .eyebrow {
        grid-column: 1;
        margin-top: 0;
        margin-bottom: 0.25rem; /* odstavec hned pod titulkem */
        align-self: end;
    }

    .dnes .texttady {
        margin-bottom: 0;
    }

    .dnes .btnmini {
        margin-top: 2rem;
    }

    .dnes .texttady {
        grid-column: 1;
        max-width: 30rem;
    }

    .dnes > div {
        grid-column: 2;
        grid-row: 1 / 4;
        text-align: center;
        margin: 0;
    }

    .dnes .illustration {
        max-width: 24rem;
        margin: 0 auto;
    }

    .dnes .btnmini {
        grid-column: 1;
        width: auto;
        display: inline-block;
        justify-self: start; /* nesmí se roztahovat přes celý sloupec */
    }

    /* SPLIT SEKCE */
    .ssplit {
        display: grid;
        grid-template-columns: 0.83fr 1fr;
        gap: 7.75rem;
        align-items: start;
    }

    .ssplit-text {
        max-width: 33rem;
    }

    .ssplit-body {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    /* slider: 2 fotky vedle sebe */
    .pslide {
        width: calc(50% - 0.5rem);
    }

    .ssplit-photo {
        aspect-ratio: 632 / 461; /* desktop dle Figmy */
    }

    /* PŘÍBĚH: split 50/50 s úzkou mezerou dle Figmy */
    .ssplit-50 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .ssplit-50 .ssplit-text {
        max-width: 35rem;
    }

    .ssplit-inset {
        padding: 6.5rem 0 0 6.5rem;
    }

    .ssplit-inset .section-text {
        max-width: 26rem;
    }

    .pribeh-intro {
        font-size: 1.75rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .pribeh-highlight {
        font-size: 1.75rem;
        line-height: 1.4;
        max-width: 40rem;
        margin-bottom: 2rem;
    }

    /* užší textové bloky dle Figmy */
    .text-mid {
        max-width: 33rem;
    }

    .text-narrow {
        max-width: 25rem;
    }

    .pribeh-photo-tall {
        width: 83%;
        justify-self: end;
    }

    .pribeh-grid4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .pribeh-s1 .ssplit-text {
        display: block; /* desktop: normální split layout */
    }

    .pribeh-s1 .pribeh-intro {
        margin-bottom: 2rem;
    }

    .poradi-technika-kohout {
        display: block; /* desktop: přirozené pořadí Technika -> Kohout */
    }

    /* KOHOUT: text vlevo, malá ilustrace vpravo */
    .kohout {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4rem;
        align-items: start;
    }

    .kohout-title {
        font-size: 2rem;
        max-width: 31.5rem;
    }

    .kohout-img {
        width: 15.5rem;
        align-self: auto;
        margin-right: 1.5rem;
    }

    /* OBECNÉ SEKCE */
    .section {
        padding: 2.75rem var(--pad-x);
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .section-text {
        font-size: 1rem;
        max-width: 50rem;
        margin-bottom: 2rem;
    }

    .section-image {
        margin: 2rem 0;
        max-height: 31.25rem;
        object-fit: cover;
    }

    .illustration {
        max-width: 25rem;
        margin: 2rem auto;
    }

    .btn {
        display: inline-block;
        width: auto;
        padding: 0.85rem 2.5rem;
        font-size: 1rem;
    }

    /* ZÁVĚREČNÁ SEKCE: text vlevo, kontakty vpravo */
    .kontaktypcleft {
        float: left;
        width: 45%;
    }

    .kontaktypcleft .section-text {
        max-width: 25rem;
    }

    .pckontakty {
        display: flex;
        float: right;
        gap: 2.5rem;
        justify-content: flex-end;
    }

    .pckontakty .footer-section h3 {
        font-size: 0.85rem;
    }

    .pckontakty .footer-section p {
        font-size: 0.8125rem;
    }
}

/* IMAGE PLACEHOLDER */
.placeholder {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    border-radius: 8px;
}
