/* =========================================================
   PAROLEK SHOP – 404 PAGE V1
   Wrapper: #parolek-404-page-v1
   ========================================================= */

#parolek-404-page-v1 {
    --p404-teal: #12b8b5;
    --p404-teal-dark: #0ca6a3;
    --p404-black: #202020;
    --p404-text: #696969;
    --p404-soft: #f6f6f6;
    --p404-border: #dddddd;
    --p404-white: #ffffff;

    width: 100%;
    max-width: 1200px;

    margin: 28px auto 40px;

    font-family: inherit;
    color: var(--p404-black);

    box-sizing: border-box;
}

#parolek-404-page-v1 *,
#parolek-404-page-v1 *::before,
#parolek-404-page-v1 *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

#parolek-404-page-v1 .p404-hero {
    display: grid;
    grid-template-columns: 46% 54%;

    min-height: 560px;

    overflow: hidden;

    background: var(--p404-soft);

    border-radius: 16px;
}


/* =========================================================
   LEVÁ ČÁST
   ========================================================= */

#parolek-404-page-v1 .p404-hero__content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 54px 48px;
}

#parolek-404-page-v1 .p404-eyebrow {
    margin-bottom: 14px;

    color: var(--p404-black);

    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;

    letter-spacing: 0.045em;
}

#parolek-404-page-v1 .p404-code {
    margin-bottom: 8px;

    color: var(--p404-teal);

    font-size: clamp(100px, 10vw, 150px);
    line-height: 0.9;
    font-weight: 800;

    letter-spacing: -0.055em;
}

#parolek-404-page-v1 .p404-title {
    margin: 12px 0 18px;

    color: var(--p404-black);

    font-size: 40px;
    line-height: 1.08;
    font-weight: 800;
}

#parolek-404-page-v1 .p404-text {
    max-width: 500px;

    margin: 0;

    color: var(--p404-text);

    font-size: 16px;
    line-height: 1.55;
}


/* =========================================================
   TLAČÍTKA
   ========================================================= */

#parolek-404-page-v1 .p404-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}

#parolek-404-page-v1 .p404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 23px;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;

    text-decoration: none !important;

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

#parolek-404-page-v1 .p404-btn:hover {
    transform: translateY(-1px);
}

#parolek-404-page-v1 .p404-btn--primary {
    gap: 10px;

    background: var(--p404-teal);

    border-color: var(--p404-teal);

    color: #ffffff !important;
}

#parolek-404-page-v1 .p404-btn--primary:hover {
    background: var(--p404-teal-dark);

    border-color: var(--p404-teal-dark);
}

#parolek-404-page-v1 .p404-btn--secondary {
    gap: 12px;

    background: #ffffff;

    border-color: var(--p404-teal);

    color: var(--p404-teal) !important;
}

#parolek-404-page-v1 .p404-btn--secondary:hover {
    background: var(--p404-teal);

    color: #ffffff !important;
}

#parolek-404-page-v1 .p404-btn__arrow {
    font-size: 19px;
    line-height: 1;
}


/* =========================================================
   HOME IKONA – ČISTĚ CSS
   ========================================================= */

#parolek-404-page-v1 .p404-btn__home {
    position: relative;

    width: 15px;
    height: 13px;

    margin-top: 3px;

    background: currentColor;

    border-radius: 1px;
}

#parolek-404-page-v1 .p404-btn__home::before {
    content: "";

    position: absolute;

    left: 1px;
    top: -6px;

    width: 11px;
    height: 11px;

    border-left: 3px solid currentColor;
    border-top: 3px solid currentColor;

    transform: rotate(45deg);
}

#parolek-404-page-v1 .p404-btn__home::after {
    content: "";

    position: absolute;

    left: 6px;
    bottom: 0;

    width: 4px;
    height: 7px;

    background: var(--p404-teal);
}

#parolek-404-page-v1 .p404-btn--primary:hover .p404-btn__home::after {
    background: var(--p404-teal-dark);
}


/* =========================================================
   FOTO
   ========================================================= */

#parolek-404-page-v1 .p404-hero__media {
    position: relative;

    min-height: 560px;

    overflow: hidden;
}

#parolek-404-page-v1 .p404-hero__media img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    min-height: 560px;

    object-fit: cover !important;
    object-position: center center;
}


/* jemné propojení levé části s fotkou */

#parolek-404-page-v1 .p404-hero__media::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: 0;
    bottom: 0;
    left: 0;

    width: 100px;

    background: linear-gradient(
        90deg,
        var(--p404-soft) 0%,
        rgba(246, 246, 246, 0.72) 32%,
        rgba(246, 246, 246, 0) 100%
    );

    pointer-events: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    #parolek-404-page-v1 {
        padding-left: 16px;
        padding-right: 16px;
    }

    #parolek-404-page-v1 .p404-hero {
        grid-template-columns: 48% 52%;

        min-height: 500px;
    }

    #parolek-404-page-v1 .p404-hero__content {
        padding: 40px 34px;
    }

    #parolek-404-page-v1 .p404-code {
        font-size: 110px;
    }

    #parolek-404-page-v1 .p404-title {
        font-size: 34px;
    }

    #parolek-404-page-v1 .p404-text {
        font-size: 15px;
    }

    #parolek-404-page-v1 .p404-hero__media {
        min-height: 500px;
    }

    #parolek-404-page-v1 .p404-hero__media img {
        min-height: 500px;
    }

}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 767px) {

    #parolek-404-page-v1 {
        width: 100%;

        margin-top: 16px;
        margin-bottom: 24px;

        padding: 0 14px;
    }

    #parolek-404-page-v1 .p404-hero {
        display: flex;
        flex-direction: column;

        min-height: 0;

        border-radius: 12px;
    }

    #parolek-404-page-v1 .p404-hero__content {
        order: 1;

        padding: 30px 24px 28px;
    }

    #parolek-404-page-v1 .p404-eyebrow {
        margin-bottom: 10px;

        font-size: 12px;
    }

    #parolek-404-page-v1 .p404-code {
        margin-bottom: 5px;

        font-size: 92px;
        line-height: 0.92;
    }

    #parolek-404-page-v1 .p404-title {
        margin-top: 9px;
        margin-bottom: 15px;

        font-size: 30px;
        line-height: 1.08;
    }

    #parolek-404-page-v1 .p404-title br {
        display: none;
    }

    #parolek-404-page-v1 .p404-text {
        font-size: 15px;
        line-height: 1.55;
    }

    #parolek-404-page-v1 .p404-actions {
        display: grid;
        grid-template-columns: 1fr;

        width: 100%;

        gap: 10px;

        margin-top: 23px;
    }

    #parolek-404-page-v1 .p404-btn {
        width: 100%;

        min-height: 50px;
    }

    #parolek-404-page-v1 .p404-hero__media {
        order: 2;

        width: 100%;
        min-height: 0;
    }

    #parolek-404-page-v1 .p404-hero__media img {
        width: 100% !important;
        height: auto !important;

        min-height: 0;

        aspect-ratio: 1 / 1;

        object-fit: cover !important;

        /*
         * Na mobilu necháváme hlavní dění uprostřed.
         * Podle finální fotky můžeme ještě doladit.
         */
        object-position: center center;
    }

    #parolek-404-page-v1 .p404-hero__media::before {
        display: none;
    }

}


/* =========================================================
   MALÉ MOBILY
   ========================================================= */

@media (max-width: 420px) {

    #parolek-404-page-v1 {
        padding-left: 10px;
        padding-right: 10px;
    }

    #parolek-404-page-v1 .p404-hero__content {
        padding: 27px 20px 24px;
    }

    #parolek-404-page-v1 .p404-code {
        font-size: 82px;
    }

    #parolek-404-page-v1 .p404-title {
        font-size: 28px;
    }

}

body.id-404 article.pageArticleDetail > header {
    display: none !important;
}