/* Tmavé pozadí, světlý text. Modrá je vzorek barva-nova.png: #003466. */

:root {
    color-scheme: dark;
    --pozadi: #000000;
    --text: #f4f7fb;
    --tlumeny: #c5cde0;
    --modra: #003466;
    --panel: #1a1a1a;
    --linka: #d5dced;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--pozadi);
    overflow-x: clip;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
    background: var(--pozadi);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", "Liberation Sans", Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

.stranka {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.35rem 1.5rem 0;
}

.hlavicka {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem 1.75rem;
}

.znacka {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.jmeno {
    color: #ffffff;
    font-size: clamp(2.6rem, 5.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
}

.inic {
    color: var(--modra);
}

.kredo,
.kredo * {
    border: 0;
    outline: 0;
    background: none;
    background-color: transparent;
    box-shadow: none;
}

.kredo {
    margin: 0.15rem 0 0;
    padding: 0;
    min-height: 1.4em;
}

.kredo-text {
    display: inline-block;
    overflow: hidden;
    width: 0;
    max-width: 17.5ch;
    padding: 0;
    color: #f4f7fb;
    font-family: ui-monospace, "Cascadia Mono", "Liberation Mono", monospace;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    animation: kredo-pis 7s steps(17, end) infinite;
}

@keyframes kredo-pis {
    0% { width: 0; }
    42% { width: 17.5ch; }
    68% { width: 17.5ch; }
    100% { width: 0; }
}

.menu-stav,
.menu-stit {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-tlacitko {
    display: none;
}

nav {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 0;
    margin-left: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.45rem 1.05rem;
    border: 0;
    border-right: 1px solid #333333;
    border-radius: 0;
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
}

nav a:last-child {
    border-right: 0;
}

nav a[aria-current="page"] {
    border-right-color: #333333;
    background: #003466;
    color: #ffffff;
}

.ikona {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.hero {
    padding: 2.5rem 0 0;
}

.blok {
    margin-top: 2.75rem;
}

h1 {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(2.7rem, 5.4vw, 4.4rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.veta {
    max-width: 38rem;
    margin: 1.35rem 0 0;
    color: var(--tlumeny);
    font-size: 1.15rem;
}

.o-mne {
    display: block;
}

.o-mne-kicker {
    margin: 0;
    color: var(--tlumeny);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blok h2.o-mne-titul {
    margin: 0.35rem 0 0.9rem;
    max-width: none;
    color: var(--modra);
    font-weight: 700;
}

.o-mne-text p {
    max-width: 38rem;
    margin: 0;
}

.o-mne-text p + p {
    margin-top: 0.7rem;
}

.fajfky {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.fajfky li {
    position: relative;
    padding-left: 1.45rem;
}

.fajfky li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--modra);
    font-weight: 700;
}

.umim-nadpis {
    margin: 1.75rem 0 0.7rem;
    color: inherit;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
}

.o-mne-text strong {
    color: inherit;
    font-weight: 700;
}

.akce {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.9rem;
}

a.primarni,
a.druha,
button.odeslat,
button.cookies-prijmout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-sizing: border-box;
    height: 3.15rem;
    min-height: 3.15rem;
    padding: 0 1.35rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

a.primarni,
button.odeslat,
button.cookies-prijmout {
    border: 0;
    background: #003466;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

a.druha::after {
    content: "→";
    font-size: 1.15rem;
    line-height: 1;
}

a.druha {
    border: 1px solid #d5dced;
    background: transparent;
    color: #f4f7fb;
}

.pasmo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "pred okno dalsi"
        "tecky tecky tecky";
    align-items: center;
    column-gap: 0.85rem;
    margin: 0.4rem auto 2.6rem;
}

.pasmo-okno {
    --pasmo-mezera: 0.9rem;
    --pasmo-pocet: 3;
    grid-area: okno;
    display: flex;
    align-items: flex-start;
    gap: var(--pasmo-mezera);
    min-width: 0;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.pasmo-slide {
    display: flex;
    flex: 0 0 calc((100% - (var(--pasmo-pocet) - 1) * var(--pasmo-mezera)) / var(--pasmo-pocet));
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
}

.pasmo-slide.je-aktivni {
    height: auto;
    overflow: visible;
}

.pasmo .nahled {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: none;
    box-shadow: none;
    background: var(--pozadi);
    cursor: pointer;
}

.pasmo .nahled:hover,
.pasmo .nahled:focus,
.pasmo .nahled:focus-visible,
.pasmo .nahled:active {
    border: 0;
    outline: none;
    box-shadow: none;
    background: var(--pozadi);
}

.pasmo .nahled img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.pasmo-slide figcaption {
    max-width: 100%;
    min-height: 4.4rem;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

.pasmo-ovladani {
    display: contents;
}

.pasmo-sipka {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 3.7rem;
    height: 3.7rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--modra);
    color: #ffffff;
    box-shadow: none;
    transform: translateY(-2.55rem);
    cursor: pointer;
}

.pasmo-sipka:hover,
.pasmo-sipka:focus,
.pasmo-sipka:focus-visible,
.pasmo-sipka:active {
    border: 0;
    outline: none;
    outline-offset: 0;
    box-shadow: none;
    background: var(--modra);
    color: #ffffff;
}

.pasmo-sipka[data-smer="-1"] {
    grid-area: pred;
}

.pasmo-sipka[data-smer="1"] {
    grid-area: dalsi;
}

.pasmo-sipka svg {
    display: block;
    width: 1.9rem;
    height: 1.9rem;
}

.pasmo-tecky {
    grid-area: tecky;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    max-width: none;
    margin-top: 0.35rem;
}

.pasmo-tecka {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.pasmo-tecka:hover,
.pasmo-tecka:focus,
.pasmo-tecka:focus-visible,
.pasmo-tecka:active {
    border: 0;
    outline: none;
    outline-offset: 0;
    box-shadow: none;
    background: transparent;
}

.pasmo-tecka::before {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--modra);
    box-shadow: none;
    opacity: 1;
}

.pasmo-tecka.je-aktivni::before {
    width: 1.15rem;
    height: 1.15rem;
    opacity: 1;
}

figcaption {
    margin-top: 0.4rem;
    color: var(--tlumeny);
    font-size: 0.95rem;
    line-height: 1.45;
}

.nazev {
    display: block;
    color: var(--text);
}

#kontakt {
    max-width: 36rem;
    padding-top: 1rem;
}

.blok h2 {
    margin: 0 0 1.1rem;
    max-width: 18ch;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.formular {
    position: relative;
    margin-top: 1.25rem;
}

.pole {
    display: block;
    margin: 0 0 1rem;
}

.pole span {
    display: block;
    margin-bottom: 0.3rem;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.65rem 0.7rem;
    border: 1px solid #2c3858;
    border-radius: 4px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    appearance: none;
}

textarea {
    min-height: 8.5rem;
    resize: vertical;
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus,
textarea:focus-visible {
    border-color: #2c3858;
}

::placeholder {
    color: var(--tlumeny);
    opacity: 1;
}

button.odeslat {
    margin-top: 0.25rem;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    appearance: none;
}

.zpet {
    margin: 0.15rem 0 1.6rem;
}

.zpet a {
    color: #f4f7fb;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.poptavka {
    max-width: 640px;
    margin-top: 1.75rem;
}

.poptavka h1 {
    color: #ffffff;
}

.poptavka input[type="text"],
.poptavka input[type="email"],
.poptavka input[type="tel"],
.poptavka textarea {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: text;
}

.poptavka .volba input {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 1.15rem;
    max-height: 1.15rem;
    margin: 0.2rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: auto;
    cursor: pointer;
}

.poptavka .pole {
    margin-bottom: 1.35rem;
}

.poptavka .skupina {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 1.85rem;
}

.poptavka .skupina .pole {
    align-self: stretch;
    width: 100%;
    margin-top: 0.7rem;
    margin-bottom: 0;
}

.skupina {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
    min-width: 0;
}

.skupina legend {
    margin-bottom: 0.15rem;
    padding: 0;
}

.volba {
    display: flex;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    gap: 0.65rem;
    margin: 0;
    line-height: 1.4;
}

.poptavka button.odeslat {
    margin-top: 0.35rem;
    min-height: 3.5rem;
    height: auto;
    padding: 0.9rem 1.9rem;
    border: 0;
    outline: none;
    background: #003466;
    color: #ffffff;
    font-size: 1.2rem;
}

.volba input {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 1.15rem;
    margin: 0.2rem 0 0;
    padding: 0;
    flex: 0 0 auto;
    accent-color: #003466;
    appearance: auto;
}

.vyzva {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 2.75rem calc(50% - 50vw) 0;
    padding: 2.6rem max(1.5rem, calc(50vw - 36rem + 1.5rem));
    background: #003466;
    color: #ffffff;
    text-align: left;
}

.vyzva-mozaika {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.vyzva-obsah {
    position: relative;
    z-index: 1;
    max-width: 28rem;
}

.vyzva h2 {
    margin: 0 0 0.7rem;
    max-width: 16em;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
}

.vyzva p {
    margin: 0 0 1.25rem;
    color: #ffffff;
}

.vyzva-napsat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0 1.35rem;
    border-radius: 10px;
    background: #000000;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.paticka {
    width: 100vw;
    margin: 0 0 0 calc(50% - 50vw);
    padding: 1.75rem max(1.5rem, calc(50vw - 36rem + 1.5rem)) 4.5rem;
    background: var(--pozadi);
    color: var(--text);
}

.paticka-sloupce {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.paticka-nazev {
    margin: 0 0 0.55rem;
    font-weight: 700;
}

.paticka ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.paticka li + li {
    margin-top: 0.3rem;
}

.paticka a {
    color: var(--text);
    text-decoration: none;
}

.paticka-rok {
    margin: 1.4rem 0 0;
    color: var(--tlumeny);
}

.cookies {
    position: fixed;
    z-index: 15;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.55rem 1rem;
    background: var(--pozadi);
    border-top: 1px solid var(--modra);
}

.cookies[hidden] {
    display: none;
}

.cookies p {
    flex: 1 1 16rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookies-prijmout {
    flex: 0 0 auto;
    font: inherit;
    font-weight: 600;
}

body:has(.cookies:not([hidden])) {
    padding-bottom: 4.75rem;
}

a:link,
a:visited {
    color: inherit;
}

#kontakt a[href="zakazka.php"]:hover,
#kontakt a[href="zakazka.php"]:active {
    color: #003466;
}

nav a:link,
nav a:visited {
    color: #ffffff;
}

nav a[aria-current="page"]:link,
nav a[aria-current="page"]:visited {
    color: #ffffff;
}

.vyzva-napsat:link,
.vyzva-napsat:visited {
    color: #ffffff;
}

.primarni:link,
.primarni:visited,
button.odeslat {
    color: #ffffff;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--modra);
    outline-offset: 3px;
}

.stav {
    margin: 0 0 1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
}

.vyskok {
    position: fixed;
    z-index: 40;
    top: 1.15rem;
    left: 50%;
    width: min(34rem, calc(100% - 2rem));
    margin: 0;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: #0f6b32;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -160%);
    transition: transform 0.45s ease;
}

.vyskok.je-videt {
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .vyskok {
        transition: none;
    }

    .pasmo-okno {
        scroll-behavior: auto;
    }
}

.mimo {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.2rem 4.6rem 1.4rem;
    background: rgba(5, 8, 16, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox figure {
    margin: 0;
    max-width: min(72rem, 100%);
}

.lightbox-obraz {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 8.5rem);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid var(--modra);
}

.lightbox-popis {
    margin: 0.6rem 0 0;
    color: var(--text);
    text-align: center;
}

.lightbox-zavrit,
.lightbox-predchozi,
.lightbox-dalsi {
    position: absolute;
    z-index: 2;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(100deg, #1a5688 0%, #003466 52%, #002244 100%);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lightbox-zavrit {
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.85rem;
    font-size: 1rem;
}

.lightbox-zavrit span {
    color: var(--modra);
    font-size: 1.85rem;
    line-height: 1;
}

.lightbox-predchozi,
.lightbox-dalsi {
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-predchozi,
.lightbox-dalsi {
    top: 50%;
    width: 3rem;
    height: 3.4rem;
    padding: 0;
    transform: translateY(-50%);
}

.lightbox-predchozi {
    left: 0.7rem;
}

.lightbox-dalsi {
    right: 0.7rem;
}

body.lightbox-otevreny {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .kredo-text {
        width: auto;
        animation: none;
    }
}

@media (max-width: 800px) {
    .stranka {
        padding: 1rem 1rem 0;
    }

    .vyzva {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .paticka {
        padding-right: 1rem;
        padding-left: 1rem;
        text-align: center;
    }

    .paticka-sloupce {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 1.75rem;
    }

    h1 {
        max-width: 14ch;
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .jmeno {
        font-size: 2.35rem;
    }

    .pasmo-okno {
        --pasmo-pocet: 2;
        --pasmo-mezera: 0.7rem;
    }

    .pasmo-sipka {
        width: 3rem;
        height: 3rem;
    }

    .pasmo-sipka svg {
        width: 1.55rem;
        height: 1.55rem;
    }

    .fajfky {
        grid-template-columns: 1fr;
    }

    .hlavicka {
        align-items: center;
    }

    .znacka {
        flex: 1 1 auto;
        min-width: 0;
    }

    .menu-tlacitko {
        display: none;
    }

    nav {
        display: flex;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0.85rem 0 0;
    }

    nav a {
        justify-content: flex-start;
        min-height: 2.75rem;
        padding: 0.55rem 0.95rem;
        border-right: 0;
        border-bottom: 1px solid #333333;
    }

    nav a:last-child {
        border-bottom: 0;
    }

    .formular {
        padding: 1.15rem 1rem 1.2rem;
        border: 1px solid var(--modra);
        border-radius: 12px;
        background: var(--panel);
    }

    button.odeslat {
        width: 100%;
        border-radius: 10px;
    }

    .lightbox {
        padding: 4.25rem 0.6rem 5.2rem;
    }

    .lightbox figure {
        width: min(100%, 72rem);
    }

    .lightbox-obraz {
        max-height: calc(100vh - 11rem);
    }

    .lightbox-predchozi,
    .lightbox-dalsi {
        top: auto;
        bottom: 0.65rem;
        width: 3.5rem;
        height: 3.5rem;
        transform: none;
    }

    .lightbox-predchozi {
        left: 0.65rem;
    }

    .lightbox-dalsi {
        right: 0.65rem;
    }

    .lightbox-zavrit {
        min-height: 3rem;
    }
}

@media (max-width: 560px) {
    .pasmo-okno {
        --pasmo-pocet: 1;
    }
}

@media (hover: hover) and (pointer: fine) {
    nav a:hover {
        border-color: #333333;
        background: #262626;
        color: #ffffff;
    }

    nav a[aria-current="page"]:hover {
        border-color: #333333;
        background: #002848;
        color: #ffffff;
    }

    a.primarni:hover,
    button.odeslat:hover,
    button.cookies-prijmout:hover {
        background: #124a7a;
        color: #ffffff;
    }

    .lightbox-predchozi:hover,
    .lightbox-dalsi:hover,
    .lightbox-zavrit:hover {
        background: #124a7a;
        color: #ffffff;
    }

    .lightbox-zavrit:hover span {
        color: #ffffff;
    }

    a.druha:hover {
        border-color: #003466;
        color: #ffffff;
        background: transparent;
    }

    .vyzva-napsat:hover {
        background: var(--panel);
        color: #ffffff;
    }

    .paticka a:hover {
        color: #ffffff;
    }

    .nahled:hover,
    .nahled:focus,
    .nahled:focus-visible,
    .nahled:active {
        border: 0;
        outline: none;
        outline-offset: 0;
        box-shadow: none;
    }

}

@media (min-width: 801px) {
    label.menu-tlacitko {
        display: none;
    }

    .hlavicka {
        flex-wrap: nowrap;
        align-items: center;
    }

    .hlavicka nav {
        display: flex;
        flex-flow: row nowrap;
        margin-left: auto;
    }
}
