/* =========================================================
   HELLOCOMP 3.0 FINISH – FOOTER / PATIČKA
   Scope: pouze #footer
   Vychází ze šablony Merkur: newsletter je přesunutý JS do .newsletter,
   kontakt má přesunuté logo do .contact-box, mobilní footer je accordion.
   ========================================================= */

/* ===== ZÁKLAD FOOTERU ===== */
#footer.footer,
#footer.newsletter-active {
    position: relative;
    margin-top: 118px !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(36, 79, 136, 0.06), transparent 34%),
        linear-gradient(180deg, #f7f9fc 0%, #edf3f9 100%) !important;
    border-top: 1px solid #e3e8ef;
    color: #24242e;
    font-family: "Nunito Sans", sans-serif;
}

#footer.footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(36, 79, 136, 0), rgba(36, 79, 136, 0.24), rgba(36, 79, 136, 0));
    pointer-events: none;
}

#footer .footer-rows {
    position: relative;
}

/* =========================================================
   NEWSLETTER – necháváme logiku šablony, jen ladíme vzhled
   ========================================================= */

#footer .newsletter,
#footer .custom-footer__newsletter.extended.newsletter {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 46px !important;
    margin: -72px auto 54px !important;
    padding: 34px 46px !important;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 50%, rgba(0, 114, 198, 0.18), transparent 35%),
        linear-gradient(135deg, #101218 0%, #17243a 58%, #244f88 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 42px rgba(20, 43, 73, 0.16);
}

/* decentní technický pattern místo loga/emoji – bez rizika čtverců */
#footer .newsletter::before,
#footer .custom-footer__newsletter.extended.newsletter::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.24;
    pointer-events: none;
}

#footer .newsletter::after,
#footer .custom-footer__newsletter.extended.newsletter::after {
    content: "";
    position: absolute;
    right: -72px;
    top: 50%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 64%);
    transform: translateY(-50%);
    pointer-events: none;
}

#footer .newsletter-header,
#footer .newsletter form,
#footer #formNewsletterWidget {
    position: relative;
    z-index: 1;
}

#footer .newsletter .newsletter-header,
#footer .custom-footer__newsletter .newsletter-header {
    flex: 0 0 430px !important;
    width: 430px !important;
    max-width: 430px !important;
    min-width: 0 !important;
    float: none !important;
    text-align: left !important;
}

#footer .newsletter h3,
#footer .newsletter h4,
#footer .custom-footer__newsletter .topic,
#footer .newsletter-header .pageElement__heading {
    display: block !important;
    width: auto !important;
    max-width: 430px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 25px !important;
    line-height: 1.28 !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

#footer .newsletter h3 br,
#footer .newsletter h4 br,
#footer .newsletter-header .pageElement__heading br {
    display: none;
}

#footer .newsletter h3::after,
#footer .newsletter h4::after,
#footer .newsletter-header .pageElement__heading::after {
    content: "";
    display: block !important;
    width: 96px;
    height: 2px;
    margin-top: 15px;
    background: linear-gradient(90deg, #0072c6, rgba(0, 114, 198, 0));
    border-radius: 999px;
}

#footer .newsletter form,
#footer .custom-footer__newsletter #formNewsletterWidget {
    flex: 1 1 620px !important;
    width: auto !important;
    max-width: 680px !important;
    min-width: 360px !important;
    float: none !important;
}

#footer #formNewsletterWidget.compact-form,
#footer #formNewsletterWidget fieldset {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

#footer #formNewsletterWidget .validator-msg-holder {
    display: block !important;
    width: 100% !important;
}

#footer #formNewsletterWidget input[type="email"].form-control {
    width: 100% !important;
    height: 56px !important;
    padding: 0 176px 0 54px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #15171d !important;
    font-size: 15px !important;
    line-height: 56px !important;
    box-shadow: none !important;
}

#footer #formNewsletterWidget input[type="email"].form-control::placeholder {
    color: rgba(21, 23, 29, 0.42) !important;
}

/* obálka z ikonového fontu šablony – tohle šablona používá nativně */
#footer #formNewsletterWidget .validator-msg-holder::before {
    content: "\e910";
    position: absolute;
    left: 21px;
    top: 18px;
    z-index: 2;
    font-family: ikony;
    font-size: 17px;
    line-height: 1;
    color: rgba(21, 23, 29, 0.42);
    pointer-events: none;
}

#footer #formNewsletterWidget .btn,
#footer #formNewsletterWidget button[type="submit"] {
    position: absolute !important;
    right: 5px !important;
    top: 5px !important;
    width: 148px !important;
    min-width: 148px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: linear-gradient(90deg, #003366 0%, #0072c6 100%) !important;
    color: #ffffff !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 46px !important;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    box-shadow: none !important;
}

#footer #formNewsletterWidget .btn::before,
#footer #formNewsletterWidget button[type="submit"]::before {
    display: none !important;
}

#footer #formNewsletterWidget .btn:hover,
#footer #formNewsletterWidget button[type="submit"]:hover {
    background: linear-gradient(90deg, #0072c6 0%, #2f8fda 100%) !important;
}

#footer #formNewsletterWidget br {
    display: none !important;
}

#footer #formNewsletterWidget .consents {
    display: block !important;
    margin: 11px 0 0 !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

#footer #formNewsletterWidget .consents label {
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.76) !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

#footer #formNewsletterWidget .consents label::before,
#footer #formNewsletterWidget .consents label::after {
    display: none !important;
}

#footer #formNewsletterWidget .consents a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* =========================================================
   FOOTER SLOUPCE – čistě, bez karet a bez spodního loga
   ========================================================= */

#footer .custom-footer.elements-5,
#footer .custom-footer {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.12fr) minmax(185px, 0.9fr) minmax(250px, 1fr) minmax(165px, 0.75fr);
    gap: 42px !important;
    padding: 0 0 54px !important;
    border: 0 !important;
}

#footer .custom-footer.elements-5 > div,
#footer .custom-footer > div,
#footer .custom-footer__contact,
#footer .custom-footer__banner16,
#footer .custom-footer__banner10,
#footer .custom-footer__banner7 {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#footer .custom-footer .banner,
#footer .custom-footer .banner-wrapper,
#footer .custom-footer .banner-wrapper > span {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
}

#footer .custom-footer .pageElement__heading,
#footer .custom-footer h3,
#footer .custom-footer h4 {
    position: relative;
    margin: 0 0 22px !important;
    padding: 0 0 14px !important;
    color: #20242d !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

#footer .custom-footer .pageElement__heading::after,
#footer .custom-footer h3::after,
#footer .custom-footer h4::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    top: auto !important;
    display: block !important;
    width: 58px !important;
    height: 2px !important;
    margin: 0 !important;
    border: 0 !important;
    background: linear-gradient(90deg, #244f88, rgba(36, 79, 136, 0)) !important;
    border-radius: 999px;
    transform: none !important;
}

#footer .contact-box {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
    text-align: left !important;
}

#footer .contact-box::before,
#footer .contact-box .site-name,
#footer .contact-box .site-name img {
    display: none !important;
}

#footer .contact-box ul,
#footer .custom-footer ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#footer .contact-box li,
#footer .custom-footer .banner li,
#footer .custom-footer ul li {
    position: relative;
    margin: 0 0 13px !important;
    color: #3f4652 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

#footer .custom-footer .banner li,
#footer .custom-footer > div:not(.contact) ul li {
    padding-left: 17px !important;
}

#footer .custom-footer .banner li::before,
#footer .custom-footer > div:not(.contact) ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.74em !important;
    display: block !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50%;
    background: #244f88 !important;
    transform: translateY(-50%);
}

#footer .contact-box li {
    padding-left: 0 !important;
}

#footer .contact-box li::before {
    display: none !important;
}

#footer .contact-box li > span {
    display: inline-block;
    position: relative;
    padding-left: 32px !important;
    color: #244f88 !important;
    font-weight: 400 !important;
}

#footer .contact-box li > span::before {
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    color: #244f88;
    font-size: 18px;
    text-align: center;
    transform: translateY(-50%);
}

#footer .contact-box a,
#footer .custom-footer .banner a,
#footer .custom-footer ul a {
    color: #3f4652 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

#footer .contact-box a {
    color: #244f88 !important;
}

#footer .contact-box a:hover,
#footer .custom-footer .banner a:hover,
#footer .custom-footer ul a:hover {
    color: #244f88 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* ===== SPODNÍ ŘÁDEK ===== */
#footer .footer-bottom {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 28px !important;
    border-top: 1px solid #d9e5f3 !important;
    color: #4a515d;
    font-size: 13px;
}

#footer .footer-bottom .copyright {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2;
}

#footer #signature {
    order: 1;
    margin: 0 !important;
    opacity: 0.7;
    transition: opacity 0.18s ease;
}

#footer #signature:hover {
    opacity: 1;
}

#footer .footer-bottom a {
    color: #244f88 !important;
    text-decoration: none !important;
}

#footer .footer-bottom a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 991px) {
    #footer.footer,
    #footer.newsletter-active {
        margin-top: 104px !important;
    }

    #footer .newsletter,
    #footer .custom-footer__newsletter.extended.newsletter {
        display: block !important;
        margin: -60px auto 46px !important;
        padding: 30px 26px !important;
    }

    #footer .newsletter .newsletter-header,
    #footer .custom-footer__newsletter .newsletter-header,
    #footer .newsletter form,
    #footer .custom-footer__newsletter #formNewsletterWidget {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
    }

    #footer .newsletter .newsletter-header,
    #footer .custom-footer__newsletter .newsletter-header {
        margin-bottom: 22px !important;
    }

    #footer .newsletter h3,
    #footer .newsletter h4,
    #footer .custom-footer__newsletter .topic,
    #footer .newsletter-header .pageElement__heading {
        max-width: 560px !important;
    }

    #footer .custom-footer.elements-5,
    #footer .custom-footer {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px 34px !important;
        padding-bottom: 48px !important;
    }
}

/* =========================================================
   MOBIL – respektuje accordion ze šablony
   ========================================================= */
@media (max-width: 767px) {
    #footer.footer,
    #footer.newsletter-active {
        margin-top: 84px !important;
    }

    #footer .newsletter,
    #footer .custom-footer__newsletter.extended.newsletter {
        display: block !important;
        margin: -52px auto 34px !important;
        padding: 24px 18px !important;
        border-radius: 12px;
    }

    #footer .newsletter h3,
    #footer .newsletter h4,
    #footer .custom-footer__newsletter .topic,
    #footer .newsletter-header .pageElement__heading {
        max-width: 100% !important;
        font-size: 21px !important;
    }

    #footer #formNewsletterWidget input[type="email"].form-control {
        height: 52px !important;
        padding: 0 16px 0 50px !important;
        line-height: 52px !important;
    }

    #footer #formNewsletterWidget .validator-msg-holder::before {
        left: 18px;
        top: 16px;
        font-size: 17px;
    }

    #footer #formNewsletterWidget .btn,
    #footer #formNewsletterWidget button[type="submit"] {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
        line-height: 52px !important;
    }

    #footer #formNewsletterWidget .consents {
        margin-top: 12px !important;
        font-size: 12px !important;
    }

    #footer .custom-footer.elements-5,
    #footer .custom-footer {
        display: block !important;
        padding: 0 12px 38px !important;
    }

    #footer .custom-footer > div,
    #footer .custom-footer.elements-5 > div,
    #footer .custom-footer__contact,
    #footer .custom-footer__banner16,
    #footer .custom-footer__banner10,
    #footer .custom-footer__banner7 {
        border-bottom: 1px solid #d9e5f3 !important;
        padding: 0 !important;
    }

    #footer .custom-footer .pageElement__heading,
    #footer .custom-footer h3,
    #footer .custom-footer h4,
    #footer .custom-footer > div:not(.contact) h3,
    #footer .custom-footer > div:not(.contact) h4 {
        position: relative;
        margin: 0 !important;
        padding: 16px 28px 16px 0 !important;
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    #footer .custom-footer .pageElement__heading::after,
    #footer .custom-footer h3::after,
    #footer .custom-footer h4::after {
        display: none !important;
    }

    #footer .custom-footer > div.click-able:not(.contact) h3::after,
    #footer .custom-footer > div.click-able:not(.contact) h4::after {
        content: "\e904" !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        background: none !important;
        font-family: ikony;
        font-size: 10px;
        color: #244f88;
        transform: translateY(-50%) rotate(270deg) !important;
    }

    #footer .custom-footer > div.click-able:not(.contact).otevreno h3::after,
    #footer .custom-footer > div.click-able:not(.contact).otevreno h4::after {
        transform: translateY(-50%) rotate(90deg) !important;
    }

    #footer .custom-footer > div:not(.contact) ul {
        padding: 0 0 12px !important;
    }

    #footer .custom-footer > div.contact {
        padding-bottom: 18px !important;
    }

    #footer .contact-box {
        margin: 0 !important;
        text-align: left !important;
    }

    #footer .footer-bottom {
        display: block !important;
        padding: 20px 12px 24px !important;
        text-align: left;
    }

    #footer .footer-bottom .copyright {
        display: block !important;
        margin: 13px 0 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    #footer #signature {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        margin-top: 0 !important;
    }
}
