html {
    scroll-behavior: smooth;
    --fospol-sticky-header-height: 90px;
}

.fospol-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    color: #171717;
}

.fospol-site > main {
    flex: 1 0 auto;
}

.fospol-site #o-spolecnosti,
.fospol-site #sluzby,
.fospol-site #kontakty {
    scroll-margin-top: var(--fospol-sticky-header-height, 90px);
}

.fospol-site .fospol-header:not(.sticky) {
    height: 150px;
}

/* Anchor offsets must match the final sticky size, including the first scroll. */
.fospol-site .fospol-header.sticky {
    height: var(--fospol-sticky-header-height, 90px);
}

.fospol-site .fospol-header .row > .logo {
    height: 100%;
    align-self: flex-start !important;
}

.fospol-site .fospol-header .header_logo {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    width: 120px;
    height: 120px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: width 350ms ease, height 350ms ease, top 350ms ease;
}

.fospol-site .fospol-header .logo_image {
    width: 120px !important;
    max-width: 120px !important;
    height: 120px;
    object-fit: contain;
    border-radius: 0 !important;
    transform: none;
    transition: width 350ms ease, max-width 350ms ease, height 350ms ease;
}

.fospol-site .fospol-header.sticky .header_logo {
    top: 5px;
    width: 80px;
    height: 80px;
}

.fospol-site .fospol-header.sticky .logo_image {
    width: 80px !important;
    max-width: 80px !important;
    height: 80px;
}

@media (min-width: 1100px) {
    .fospol-site .fospol-header .header_menu > ul {
        display: flex;
        align-items: center;
        column-gap: 30px;
    }

    .fospol-site .fospol-header .header_menu > ul > li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.fospol-site .fospol-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 80px;
    background-position: center;
}

.fospol-site .fospol-hero .row {
    min-height: 380px;
}

.fospol-site .fospol-hero h1 {
    margin: 0 0 28px;
    color: #fff;
}

.fospol-site .fospol-hero-copy {
    max-width: 980px;
    margin: 0 auto;
}

.fospol-site .fospol-hero-copy p {
    display: block;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 22px;
    line-height: 165%;
    font-weight: 400;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.fospol-contacts {
    padding: 96px 0;
    background: #f5f5f5;
}

.fospol-contacts h2 {
    margin-bottom: 30px !important;
}

.fospol-contacts .ktn {
    max-width: 650px !important;
    padding-top: 48px;
}

.fospol-contacts .fospol-contact-row {
    margin-bottom: 48px;
    padding: 0 !important;
    border: 0;
}

.fospol-contacts .fospol-contact-row:last-child {
    margin-bottom: 0;
}

.fospol-contacts .name,
.fospol-contacts .contact {
    flex: 1;
}

.fospol-contacts .name h3 {
    margin: 0 0 10px !important;
}

.fospol-contacts .name p {
    margin: 0;
}

.fospol-contacts .contact {
    display: block;
}

.fospol-contacts .fospol-contact-line {
    margin: 0;
}

.fospol-contacts p.phone-number.fospol-contact-line {
    margin: 16px 0;
}

.fospol-contacts .contact i {
    width: 36px;
    padding-right: 14px;
    color: #e30613;
}

.fospol-footer {
    margin-top: 0 !important;
    background: #151515 !important;
}

.fospol-site .fospol-legal-content {
    padding-bottom: 80px;
}

.fospol-footer .fospol-footer-main {
    padding-top: 72px !important;
    padding-bottom: 56px !important;
}

.fospol-footer-logo {
    display: inline-flex;
    align-items: center;
    width: 112px;
    max-width: 112px;
    margin-bottom: 28px;
    padding: 6px;
    border-radius: 5px;
    background: #fff;
}

.fospol-footer-logo img {
    display: block;
    width: 100%;
    max-width: 100px;
    height: auto;
}

.fospol-footer-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 17px;
}

.fospol-footer-line i {
    width: 38px;
    padding-top: 3px;
    color: #e30613;
    font-size: 21px;
}

.fospol-footer-line p {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.5;
}

.fospol-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fospol-footer .copyright p {
    margin: 0;
    font-size: 14px !important;
}

.fospol-footer .copyright a {
    color: #fff;
}

@media (max-width: 1099px) {
    .fospol-site .fospol-header:not(.sticky) {
        height: 130px;
    }

    .fospol-site .fospol-header .header_logo {
        width: 100px;
        height: 100px;
    }

    .fospol-site .fospol-header .logo_image {
        width: 100px !important;
        max-width: 100px !important;
        height: 100px;
    }

    .fospol-site .fospol-header .header_menu {
        top: 100%;
    }

    .fospol-site .fospol-hero {
        min-height: 560px;
        padding-top: 130px;
        padding-bottom: 64px;
    }

}

@media (max-width: 767px) {
    .fospol-site .fospol-header:not(.sticky) {
        height: 110px;
    }

    .fospol-site .fospol-legal-content {
        padding-bottom: 56px;
    }

    .fospol-site .fospol-header .header_logo {
        width: 80px;
        height: 80px;
    }

    .fospol-site .fospol-header .logo_image {
        width: 80px !important;
        max-width: 80px !important;
        height: 80px;
    }

    .fospol-site .fospol-hero {
        min-height: 520px;
        padding-top: 120px;
        padding-bottom: 52px;
        background-position: 64% center;
    }

    .fospol-site .fospol-hero .row {
        min-height: 0;
    }

    .fospol-site .fospol-hero-copy p {
        font-size: 20px;
        line-height: 155%;
    }

    .fospol-contacts {
        padding: 64px 0;
    }

    .fospol-contacts h2 {
        margin-bottom: 30px !important;
        text-align: left;
    }

    .fospol-contacts .fospol-contact-row {
        margin-bottom: 48px;
        padding: 0 !important;
    }

    .fospol-contacts .name {
        padding-right: 0;
    }

    .fospol-contacts .contact {
        margin-top: 25px;
    }

    .fospol-footer .fospol-footer-main {
        padding-top: 54px !important;
        padding-bottom: 34px !important;
    }

    .fospol-footer-logo {
        width: 112px;
        max-width: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fospol-site .fospol-header .header_logo,
    .fospol-site .fospol-header .logo_image {
        transition: none;
    }

}
