/* ==================================================
   ZÁKLADNÉ NASTAVENIE
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: rgb(250, 244, 232);
    color: #222222;
}

body.modal-otvoreny {
    overflow: hidden;
}


/* ==================================================
   HLAVNÝ OBSAH STRÁNKY
================================================== */

.cakajuce-sny-stranka {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    padding: 130px 0 110px;
}


/* ==================================================
   HLAVIČKA
================================================== */

.cakajuce-sny-hlavicka {
    max-width: none;
    margin-bottom: 0 0 80px;
}

.cakajuce-sny-spat {
    position: fixed;
    z-index: 100;

    top: 35px;
    left: 35px;

    display: inline-flex;
    align-items: center;

    padding: 13px 20px;

    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50px;

    background: rgb(250, 244, 232);
    color: #222222;

    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(10px);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cakajuce-sny-spat:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);
}
.cakajuce-sny-hlavicka h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
}

.cakajuce-sny-uvod {
    max-width: none;
    margin: 28px 0 0;
    font-size: 1.15rem;
    line-height: 1.75;
    opacity: 0.72;
}


/* ==================================================
   ZOZNAM SNOV
================================================== */

.cakajuce-sny-zoznam-sekcia {
    width: 100%;
}

#cakajuceSnyZoznam {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}


/* ==================================================
   JEDEN SEN
================================================== */

.cakajuci-sen {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 32px 12px;

    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);

    background: transparent;
    color: inherit;

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        padding 0.35s ease,
        background 0.35s ease;
}

.cakajuci-sen:hover {
    padding-left: 28px;
    padding-right: 28px;

    background: rgba(0, 0, 0, 0.035);
}

.cakajuci-sen-nazov {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

.cakajuci-sen-sipka {
    flex-shrink: 0;

    margin-left: 30px;

    font-size: 1.8rem;

    transition: transform 0.3s ease;
}

.cakajuci-sen:hover .cakajuci-sen-sipka {
    transform: translateX(8px);
}


/* ==================================================
   PRÁZDNY ZOZNAM
================================================== */

.cakajuce-sny-prazdne {
    margin: 0;
    padding: 45px 10px;

    font-size: 1.05rem;

    opacity: 0.65;
}


/* ==================================================
   MODÁLNE POZADIE
================================================== */

.sen-modal {
    position: fixed;
    z-index: 9999;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.72);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.sen-modal.je-otvoreny {
    opacity: 1;
    visibility: visible;
}


/* ==================================================
   MODÁLNE OKNO
================================================== */

.sen-modal-okno {
    position: relative;

    width: min(850px, 100%);
    max-height: calc(100vh - 80px);

    overflow-y: auto;

    padding: 65px 70px;

    border-radius: 24px;

    background: rgb(250, 244, 232);

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(25px) scale(0.98);

    transition: transform 0.35s ease;
}

.sen-modal.je-otvoreny .sen-modal-okno {
    transform: translateY(0) scale(1);
}


/* ==================================================
   ZATVORENIE MODALU
================================================== */

.sen-modal-zavriet {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    padding: 0;

    border: 0;

    background: transparent;
    color: inherit;

    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.sen-modal-zavriet:hover {
    transform: rotate(90deg);
    opacity: 0.6;
}


/* ==================================================
   OBSAH MODALU
================================================== */

.sen-modal-nadpis {
    max-width: 700px;

    margin: 0 60px 40px 0;

    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.sen-modal-text {
    font-size: 1.08rem;
    line-height: 1.8;
}

.sen-modal-text p {
    margin: 0 0 25px;
}


/* ==================================================
   AKO MÔŽETE POMÔCŤ
================================================== */

.sen-modal-pomoc {
    margin-top: 45px;
    padding-top: 35px;

    border-top: 1px solid rgba(0, 0, 0, 0.15);

    font-size: 1.05rem;
    line-height: 1.75;
}

.sen-modal-pomoc h3 {
    margin: 0 0 18px;

    font-size: 1.35rem;
}

.sen-modal-pomoc p {
    margin: 0;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .cakajuce-sny-stranka {
        width: min(100% - 50px, 1200px);
    }

    .sen-modal-okno {
        padding: 60px 45px;
    }

}


/* ==================================================
   MOBIL
================================================== */

@media (max-width: 600px) {

    .cakajuce-sny-stranka {
        width: calc(100% - 30px);
        padding: 95px 0 70px;
    }

    .cakajuce-sny-hlavicka {
        margin-bottom: 55px;
    }

    .cakajuce-sny-spat {
    top: 15px;
    left: 15px;

    padding: 10px 15px;

    font-size: 0.85rem;
}

    .cakajuce-sny-uvod {
        font-size: 1rem;
    }

    .cakajuci-sen {
        padding: 24px 5px;
    }

    .cakajuci-sen:hover {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cakajuci-sen-sipka {
        margin-left: 15px;
    }

    .sen-modal {
        padding: 12px;
    }

    .sen-modal-okno {
        max-height: calc(100vh - 24px);

        padding: 60px 25px 35px;

        border-radius: 18px;
    }

    .sen-modal-zavriet {
        top: 12px;
        right: 14px;
    }

    .sen-modal-nadpis {
        margin: 0 35px 30px 0;
    }

    .sen-modal-text {
        font-size: 1rem;
        line-height: 1.7;
    }

}

/* ==================================================
   KONTAKT - CHCEM POMÔCŤ
================================================== */

.sen-modal-kontakt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.sen-modal-kontakt-tlacidlo {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 15px 24px;

    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 50px;

    background: rgb(250, 244, 232);
    color: #222222;

    text-decoration: none;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sen-modal-kontakt-tlacidlo:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.sen-modal-kontakt-tlacidlo span {
    transition: transform 0.25s ease;
}

.sen-modal-kontakt-tlacidlo:hover span {
    transform: translateX(5px);
}