/*
 * HANSCRAFT – Katalog newsletter v5
 * Produkční soubory:
 * /user/documents/upload/bio-digital/newsletter-katalog.css
 * /user/documents/upload/bio-digital/newsletter-katalog.js
 *
 * Desktop vrstvy:
 * /user/documents/upload/newsletter_layer1_ultrawide1.png
 *
 * Mobilní obrázek:
 * /user/documents/upload/newsletter_hanscraft_26.png
 */

/* =========================================================
   POZICE CELÉ SEKCE
   ========================================================= */

.hc-newsletter-section {
    --hc-section-pull-up: -54px;

    position: relative !important;

    margin-top: var(--hc-section-pull-up) !important;
    margin-bottom: 42px !important;
    padding-top: 0 !important;
}

.hc-newsletter-section .banners-content,
.hc-newsletter-section .body-banners {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================================================
   BANNER
   ========================================================= */

.hc-newsletter-banner {
    --hc-blue: #006ea8;
    --hc-blue-dark: #005987;
    --hc-blue-soft: #eaf5fa;
    --hc-ink: #17232a;
    --hc-copy: #4d5b63;
    --hc-line: #d7e0e4;
    --hc-field: #f7fafb;

    --hc-desktop-image:
        url("/user/documents/upload/newsletter_layer1_ultrawide1.png");
    --hc-mobile-image:
        url("/user/documents/upload/newsletter_hanscraft_26.png");

    position: relative !important;

    min-height: 510px !important;
    overflow: hidden !important;

    background: #171c20 !important;
}

.hc-newsletter-banner > span {
    position: relative !important;
    z-index: 2 !important;

    display: block !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Pozadí se vkládá jako skutečný IMG prvek.
 * Na displejích užších než 2048 px zůstává v nativní šířce,
 * takže se zbytečně nezmenšuje a znovu nerozmazává.
 */
.hc-newsletter-bg-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;

    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;

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

    pointer-events: none !important;

    image-rendering: auto;

    filter:
        contrast(1.015)
        saturate(1.015);

    transform: none !important;
    backface-visibility: hidden;
}

/* Lehounké tónování bez mléčného překrytí. */
.hc-newsletter-banner .hc-newsletter-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(9, 14, 17, 0.02) 0%,
            rgba(9, 14, 17, 0.00) 50%,
            rgba(9, 14, 17, 0.13) 100%
        );
}

/* =========================================================
   HLAVNÍ KONTEJNER
   ========================================================= */

.hc-catalog-newsletter,
.hc-catalog-newsletter * {
    box-sizing: border-box;
}

.hc-catalog-newsletter {
    position: relative !important;
    z-index: 3 !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-height: 510px !important;
    margin: 0 !important;

    padding-top: 18px !important;
    padding-right: 24px !important;
    padding-bottom: 18px !important;

    /*
     * Zarovnání přibližně na hranu obsahového gridu 1440 px.
     * Na 2048px monitoru posune kartu přibližně o 80 px doleva
     * proti předchozí verzi.
     */
    padding-left:
        max(18px, calc((100vw - 1440px) / 2 + 10px)) !important;
}

#katalog {
    scroll-margin-top: 90px;
}

/* =========================================================
   FORMULÁŘOVÁ KARTA
   ========================================================= */

.hc-catalog-newsletter > .hc-newsletter-form {
    position: relative !important;
    z-index: 5 !important;

    width: min(585px, 100%) !important;
    max-width: 585px !important;
    margin: 0 !important;
}

.hc-catalog-newsletter .ec-v-form-holder {
    width: 100% !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    padding: 22px 24px 18px !important;

    overflow: visible !important;

    border: 1px solid rgba(0, 73, 111, 0.14) !important;
    border-top: 4px solid var(--hc-blue) !important;
    border-radius: 6px !important;

    background: rgba(255, 255, 255, 0.96) !important;

    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.20),
        0 4px 12px rgba(0, 0, 0, 0.08) !important;

    transition:
        box-shadow 0.3s ease !important;

    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.hc-catalog-newsletter form,
.hc-catalog-newsletter .ec-v-form-step,
.hc-catalog-newsletter .ec-v-form-column {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.hc-catalog-newsletter .ec-v-form-column {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;

    gap: 10px !important;
}

.hc-catalog-newsletter .ec-v-form-text,
.hc-catalog-newsletter .ec-v-form-html,
.hc-catalog-newsletter .ec-v-form-submit,
.hc-catalog-newsletter .ec-v-form-input {
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   ÚVOD
   ========================================================= */

.hc-catalog-newsletter .hc-newsletter-intro {
    flex: 0 0 100% !important;
    width: 100% !important;
}

.hc-catalog-newsletter .newsletter-header {
    width: 100% !important;

    color: var(--hc-ink) !important;
    text-align: left !important;

    font-family: "Open Sans", Arial, sans-serif !important;
}

.hc-catalog-newsletter .hc-newsletter-kicker {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 0 9px !important;
    padding: 5px 9px !important;

    border-radius: 3px !important;

    background: var(--hc-blue-soft) !important;
    color: var(--hc-blue) !important;

    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
}

.hc-catalog-newsletter .newsletter-header h4,
.hc-catalog-newsletter .newsletter-header .topic {
    margin: 0 0 8px !important;

    color: var(--hc-ink) !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: clamp(27px, 1.85vw, 34px) !important;
    line-height: 1.07 !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
}

.hc-catalog-newsletter .hc-newsletter-subline {
    margin: 0 0 6px !important;

    color: #29363e !important;

    font-size: 13px !important;
    line-height: 1.36 !important;
    font-weight: 600 !important;
}

.hc-catalog-newsletter .newsletter-header p {
    max-width: 525px !important;
    margin: 0 !important;

    color: var(--hc-copy) !important;

    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* =========================================================
   POLE
   ========================================================= */

.hc-catalog-newsletter .hc-field-email {
    flex: 0 0 100% !important;
    width: 100% !important;
}

.hc-catalog-newsletter .hc-field-name,
.hc-catalog-newsletter .hc-field-phone {
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
}

.hc-catalog-newsletter .ec-v-forms-label {
    display: none !important;
}

.hc-catalog-newsletter .ec-v-forms-form-control {
    display: block !important;

    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    border: 1px solid var(--hc-line) !important;
    border-radius: 3px !important;
    outline: none !important;

    background: var(--hc-field) !important;
    color: var(--hc-ink) !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;

    box-shadow: none !important;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease !important;
}

.hc-catalog-newsletter .ec-v-forms-form-control::placeholder {
    color: #56656e !important;
    opacity: 1 !important;
}

.hc-catalog-newsletter .ec-v-forms-form-control:hover {
    border-color: #bdcdd4 !important;
    background: #ffffff !important;
}

.hc-catalog-newsletter .ec-v-forms-form-control:focus {
    border-color: var(--hc-blue) !important;
    background: #ffffff !important;

    box-shadow:
        0 0 0 3px rgba(0, 110, 168, 0.12) !important;
}

/* =========================================================
   ZÁJMY
   ========================================================= */

.hc-catalog-newsletter .hc-interest-heading {
    flex: 0 0 100% !important;
    width: 100% !important;
}

.hc-catalog-newsletter .hc-interest-heading h3 {
    margin: 2px 0 0 !important;

    color: var(--hc-ink) !important;
    text-align: left !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

.hc-catalog-newsletter .hc-interest-field {
    position: relative !important;

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

    flex: 1 1 calc(25% - 8px) !important;
    width: auto !important;
    min-width: 110px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 8px 11px 8px 31px !important;

    overflow: hidden !important;

    border: 1px solid var(--hc-line) !important;
    border-radius: 3px !important;

    background: #ffffff !important;
    color: var(--hc-ink) !important;

    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    caret-color: transparent !important;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease !important;
}

.hc-catalog-newsletter .hc-interest-field,
.hc-catalog-newsletter .hc-interest-field * {
    user-select: none !important;
    -webkit-user-select: none !important;
    caret-color: transparent !important;
}

.hc-catalog-newsletter
.hc-interest-field
> input[type="checkbox"] {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;

    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    opacity: 0 !important;
}

.hc-catalog-newsletter .hc-interest-field > label {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;

    display: block !important;

    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    cursor: pointer !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
}

.hc-catalog-newsletter
.hc-interest-field
> label::before,
.hc-catalog-newsletter
.hc-interest-field
> label::after {
    content: none !important;
    display: none !important;
}

.hc-catalog-newsletter .hc-interest-field::before {
    content: "";

    position: absolute;
    left: 11px;
    top: 50%;

    width: 14px;
    height: 14px;

    border: 1px solid #9fb1ba;
    border-radius: 2px;

    background: #ffffff;

    transform: translateY(-50%);
}

.hc-catalog-newsletter .hc-interest-field::after {
    content: "";

    position: absolute;
    left: 16px;
    top: calc(50% - 1px);

    width: 4px;
    height: 8px;

    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;

    transform:
        translateY(-50%)
        rotate(45deg);
}

.hc-catalog-newsletter .hc-interest-field:hover {
    border-color: #9fc8dc !important;
    background: #f5fbfe !important;
}

.hc-catalog-newsletter .hc-interest-field.is-checked {
    border-color: var(--hc-blue) !important;
    background: var(--hc-blue) !important;
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 8px 16px rgba(0, 110, 168, 0.16) !important;
}

.hc-catalog-newsletter .hc-interest-field.is-checked::before {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.16);
}

.hc-catalog-newsletter .hc-interest-field.is-checked::after {
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Focus se zobrazí jen při ovládání klávesnicí. */
.hc-catalog-newsletter
.hc-interest-field:has(input:focus-visible) {
    box-shadow:
        0 0 0 3px rgba(0, 110, 168, 0.14) !important;
}

.hc-catalog-newsletter
.hc-interest-field
.ec-forms-chck-lbl-text {
    position: relative !important;
    z-index: 2 !important;

    width: 100% !important;

    pointer-events: none !important;
}

.hc-catalog-newsletter
.hc-interest-field
.ec-forms-chck-lbl-text p {
    margin: 0 !important;

    color: inherit !important;
    text-align: center !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* =========================================================
   TLAČÍTKO
   ========================================================= */

.hc-catalog-newsletter .hc-submit {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 2px !important;
}

.hc-catalog-newsletter .hc-submit button {
    display: block !important;

    width: 100% !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    border: 1px solid var(--hc-blue) !important;
    border-radius: 3px !important;

    background: var(--hc-blue) !important;
    color: #ffffff !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;

    cursor: pointer !important;

    box-shadow:
        0 8px 18px rgba(0, 110, 168, 0.22) !important;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease !important;
}

.hc-catalog-newsletter .hc-submit button:hover {
    border-color: var(--hc-blue-dark) !important;
    background: var(--hc-blue-dark) !important;

    box-shadow:
        0 10px 22px rgba(0, 89, 135, 0.26) !important;

    transform: translateY(-1px);
}

/* =========================================================
   SOUHLAS
   ========================================================= */

.hc-catalog-newsletter .hc-privacy-text {
    flex: 0 0 100% !important;
    width: 100% !important;
}

.hc-catalog-newsletter .hc-privacy-text p {
    margin: 0 !important;

    color: #68777f !important;
    text-align: left !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

.hc-catalog-newsletter .hc-privacy-text span {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    letter-spacing: normal !important;
}

.hc-catalog-newsletter .hc-privacy-text a {
    color: var(--hc-blue-dark) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

.hc-catalog-newsletter .ec-v-form-error {
    margin-top: 4px !important;

    color: #b93434 !important;

    font-size: 11px !important;
    line-height: 1.3 !important;
}

/* =========================================================
   DĚKOVACÍ KROK
   ========================================================= */

.hc-catalog-newsletter .ec-v-form-step-send {
    padding: 42px 18px !important;
}

.hc-catalog-newsletter
.ec-v-form-step-send
.ec-v-form-spacer {
    display: none !important;
}

.hc-catalog-newsletter .ec-v-form-step-send h2,
.hc-catalog-newsletter .ec-v-form-step-send h2 span {
    color: var(--hc-ink) !important;
}

/* =========================================================
   MENŠÍ DESKTOP 1280–1599
   ========================================================= */

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

@media (max-width: 991px) {
    .hc-newsletter-section {
        --hc-section-pull-up: -22px;
        margin-bottom: 34px !important;
    }

    .hc-newsletter-banner {
        min-height: 500px !important;
    }


    .hc-catalog-newsletter {
        padding:
            18px
            22px !important;
    }

    .hc-catalog-newsletter > .hc-newsletter-form {
        width: min(560px, 74vw) !important;
        max-width: 560px !important;
    }

}

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

@media (max-width: 767px) {
    .hc-newsletter-section {
        --hc-section-pull-up: 0px;
        margin-bottom: 26px !important;
    }

    .hc-newsletter-banner {
        min-height: 0 !important;

        background-color: #eef3f5 !important;
        background-image:
            linear-gradient(
                180deg,
                rgba(5, 13, 17, 0.02) 0,
                rgba(5, 13, 17, 0.10) 135px,
                #eef3f5 218px
            ),
            var(--hc-mobile-image) !important;
        background-repeat: no-repeat !important;
        background-position:
            center top,
            center top !important;
        background-size:
            100% 100%,
            auto 220px !important;
    }

    .hc-newsletter-bg-image,
    .hc-newsletter-bg-overlay {
        display: none !important;
    }

    .hc-catalog-newsletter {
        display: block !important;

        min-height: 0 !important;

        padding: 184px 0 16px !important;
    }

    .hc-catalog-newsletter > .hc-newsletter-form {
        width: 100% !important;
        max-width: none !important;
        margin-top: -18px !important;
    }

    .hc-catalog-newsletter .ec-v-form-holder {
        padding: 21px 16px 16px !important;

        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;

        box-shadow:
            0 15px 36px rgba(19, 45, 57, 0.19) !important;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .hc-catalog-newsletter .newsletter-header h4,
    .hc-catalog-newsletter .newsletter-header .topic {
        font-size: 27px !important;
    }

    .hc-catalog-newsletter .hc-newsletter-subline {
        font-size: 13px !important;
        line-height: 1.38 !important;
    }

    .hc-catalog-newsletter .newsletter-header p {
        max-width: none !important;

        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }

    .hc-catalog-newsletter .hc-field-name,
    .hc-catalog-newsletter .hc-field-phone {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .hc-catalog-newsletter .hc-interest-field {
        flex: 1 1 calc(50% - 5px) !important;
        min-width: 0 !important;
    }

    .hc-catalog-newsletter .hc-privacy-text {
        padding: 0 2px !important;
    }

    .hc-catalog-newsletter .hc-privacy-text p {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        text-align: left !important;

        font-size: 11.5px !important;
        line-height: 1.5 !important;
    }

    .hc-catalog-newsletter .hc-privacy-text span,
    .hc-catalog-newsletter .hc-privacy-text a {
        display: inline !important;
    }
}

/* =========================================================
   VELMI MALÝ MOBIL
   ========================================================= */

@media (max-width: 390px) {
    .hc-catalog-newsletter .ec-v-form-holder {
        padding-right: 13px !important;
        padding-left: 13px !important;
    }

    .hc-catalog-newsletter .hc-interest-field {
        flex-basis: 100% !important;
    }
}
