/* ==========================================================================
   Webové služby + reference (stránka /webove-reference)
   ========================================================================== */

html { scroll-behavior: smooth; }

.ws {
    max-width: 1480px;
    margin: 0 auto !important;
    font-family: 'Duru Sans', sans-serif;
    color: #454545;
}

.ws section {
    margin-bottom: 55px;
}

.ws section:last-child {
    margin-bottom: 15px;
}

#content .ws p {
    margin-bottom: 0;
    line-height: 27px;
}

/* --- tlačítka ------------------------------------------------------------ */

.ws-btn {
    display: inline-block;
    font-family: Oswald, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 15px;
    line-height: 1;
    padding: 16px 32px;
    margin: 8px 6px 0;
    border: 2px solid #ea5546;
    border-radius: 3px;
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-btn--primary {
    background-color: #ea5546;
    color: #fff !important;
}

.ws-btn--primary:hover {
    background-color: #d33d2e;
    border-color: #d33d2e;
    color: #fff !important;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}

/* --- hlavička sekce ------------------------------------------------------ */

.ws-head {
    text-align: center;
    margin-bottom: 35px;
}

#content .ws-head h2 {
    font-family: Oswald, sans-serif;
    font-size: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3a3a3a;
    margin: 0 0 14px;
}

.ws-head:after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 18px auto 0;
    background-color: #ea5546;
}

.ws-head--tight {
    margin-bottom: 22px;
}

#content .ws-head p {
    max-width: 720px;
    margin: 0 auto;
    color: #6b6b6b;
    font-size: 16px;
}

/* --- hero ---------------------------------------------------------------- */

.ws-hero {
    position: relative;
    padding: 20px 30px 45px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.ws-hero__eyebrow {
    display: inline-block;
    position: relative;
    font-family: Oswald, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ea5546;
    padding: 0 22px;
    margin-bottom: 22px;
}

.ws-hero__eyebrow:before,
.ws-hero__eyebrow:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 16px;
    height: 1px;
    background-color: rgba(234, 85, 70, .5);
}

.ws-hero__eyebrow:before {
    left: -8px;
}

.ws-hero__eyebrow:after {
    right: -8px;
}

#content .ws-hero h1 {
    font-family: Oswald, sans-serif;
    font-size: 48px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #333;
    margin: 0 0 22px;
}

#content .ws-hero h1 em {
    font-style: normal;
    color: #ea5546;
}

#content .ws-hero__lead {
    max-width: 720px;
    margin: 0 auto !important;
    font-size: 18px;
    line-height: 32px !important;
    color: #5c5c5c;
}

.ws-hero__actions {
    margin-top: 34px;
}

.ws-facts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 42px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

.ws-facts li {
    list-style: none;
    padding: 4px 22px;
    font-size: 15px;
    color: #5c5c5c;
    border-left: 1px solid rgba(0, 0, 0, .09);
}

.ws-facts li:first-child {
    border-left: 0;
}

.ws-facts li i {
    margin-right: 9px;
    font-size: 13px;
    color: #ea5546;
}

/* --- služby -------------------------------------------------------------- */

.ws-grid {
    display: -ms-grid;
    display: grid;
    /* 6 karet: pevné 3 sloupce = 3 + 3, ne rozbité 4 + 2 */
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 22px;
}

.ws-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 32px 28px;
    text-align: center;
    border-bottom: 3px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-card:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    border-bottom-color: #ea5546;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}

.ws-card__icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgba(234, 85, 70, .1);
    color: #ea5546;
    font-size: 24px;
}

.ws-card:hover .ws-card__icon {
    background-color: #ea5546;
    color: #fff;
}

#content .ws-card h3 {
    font-family: Oswald, sans-serif;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #3a3a3a;
    margin: 0 0 12px;
}

#content .ws-card p {
    font-size: 15px;
    line-height: 25px;
    color: #6b6b6b;
}

/* --- postup spolupráce --------------------------------------------------- */

.ws-steps {
    display: -ms-grid;
    display: grid;
    /* 4 kroky: jeden řádek, jinak 2 + 2 – nikdy 3 + 1 */
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.ws-step {
    position: relative;
    background-color: rgba(255, 255, 255, .92);
    border-radius: 4px;
    border-left: 3px solid #ea5546;
    padding: 26px 24px 26px 26px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}

.ws-step__number {
    font-family: Oswald, sans-serif;
    font-size: 42px;
    line-height: 1;
    color: rgba(234, 85, 70, .25);
    margin-bottom: 10px;
}

#content .ws-step h3 {
    font-family: Oswald, sans-serif;
    text-align: left;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #3a3a3a;
    margin: 0 0 10px;
}

#content .ws-step p {
    font-size: 15px;
    line-height: 24px;
    color: #6b6b6b;
}

/* --- technologie --------------------------------------------------------- */

.ws-stack {
    background-color: rgba(255, 255, 255, .92);
    border-radius: 4px;
    padding: 34px 30px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.ws-tags {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 5px;
}

.ws-tag {
    font-family: Oswald, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4d4d4d;
    background-color: #f3f3f3;
    border: 1px solid #e3e3e3;
    border-radius: 20px;
    padding: 9px 18px;
    margin: 6px;
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-tag:hover {
    background-color: #ea5546;
    border-color: #ea5546;
    color: #fff;
}

/* --- reference ----------------------------------------------------------- */

.ws-refs {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    grid-gap: 24px;
}

.ws-ref {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-ref:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.ws-ref__media {
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #2c2c2c;
    height: 235px;
}

#content .ws-ref__media img {
    display: block;
    width: 100%;
    height: 235px !important;
    max-height: none !important;
    margin: 0;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: top center;
    object-position: top center;
    -webkit-transition: .45s;
    transition: .45s;
}

.ws-ref:hover .ws-ref__media img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

.ws-ref__media:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(28, 28, 28, .45);
    opacity: 0;
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-ref:hover .ws-ref__media:after {
    opacity: 1;
}

.ws-ref__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    -webkit-transform: scale(.75);
    transform: scale(.75);
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-ref__zoom i {
    display: block;
    line-height: 1;
}

.ws-ref:hover .ws-ref__zoom {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* lightGallery – popisek náhledu */
.lg-sub-html h4 {
    font-family: Oswald, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 6px;
}

.lg-sub-html p {
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.ws-ref__body {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 24px 26px 26px;
}

#content .ws-ref__body h3 {
    font-family: Oswald, sans-serif;
    text-align: left;
    font-size: 21px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #3a3a3a;
    margin: 0 0 12px;
}

#content .ws-ref__body p {
    font-size: 15px;
    line-height: 25px;
    color: #6b6b6b;
}

.ws-ref__footer {
    margin-top: auto;
    padding-top: 20px;
}

.ws-ref__link {
    font-family: Oswald, sans-serif;
    font-size: 14px;
    letter-spacing: .5px;
    color: #ea5546 !important;
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-ref__link:hover {
    color: #d33d2e !important;
    padding-left: 3px;
}

.ws-ref__link i {
    font-size: 12px;
    margin-left: 5px;
}

.ws-ref__badge {
    display: inline-block;
    font-family: Oswald, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8d8d8d;
    background-color: #f3f3f3;
    border-radius: 3px;
    padding: 6px 12px;
}

/* --- závěrečné CTA ------------------------------------------------------- */

.ws-cta {
    text-align: center;
    padding: 50px 40px;
    border-radius: 4px;
    background: #ea5546;
    background: -webkit-linear-gradient(315deg, #ea5546 0%, #cf3a2b 100%);
    background: linear-gradient(135deg, #ea5546 0%, #cf3a2b 100%);
    box-shadow: 0 14px 34px rgba(207, 58, 43, .3);
}

#content .ws-cta h2 {
    font-family: Oswald, sans-serif;
    font-size: 30px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 16px;
}

#content .ws-cta p {
    max-width: 640px;
    margin: 0 auto !important;
    font-size: 17px;
    line-height: 29px !important;
    color: rgba(255, 255, 255, .92);
}

.ws-cta__mail {
    display: inline-block;
    margin-top: 28px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255, 255, 255, .45);
    font-family: Oswald, sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff !important;
    -webkit-transition: .25s;
    transition: .25s;
}

.ws-cta__mail i {
    font-size: 20px;
}

.ws-cta__mail:hover {
    border-bottom-color: #fff;
    color: #fff !important;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* --- responzivita -------------------------------------------------------- */

@media screen and (max-width: 1500px) {
    .ws-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1380px) {
    .ws-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .ws-hero {
        padding: 10px 5px 35px;
    }

    #content .ws-hero h1 {
        font-size: 30px;
    }

    #content .ws-hero__lead {
        font-size: 16px;
        line-height: 28px !important;
    }

    .ws-cta {
        padding: 40px 25px;
    }

    #content .ws-cta h2,
    #content .ws-head h2 {
        font-size: 24px;
    }

    .ws-cta__mail {
        font-size: 19px;
    }

    .ws-cta__mail i {
        display: none;
    }

    .ws-btn {
        display: block;
        margin: 10px 0 0;
    }
}

@media screen and (max-width: 620px) {
    .ws-facts li {
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        padding: 11px 0;
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, .09);
    }

    .ws-facts li:first-child {
        border-top: 0;
    }

    .ws-grid,
    .ws-steps,
    .ws-refs {
        grid-template-columns: 1fr;
    }
}
