body {
    font-family: 'Open Sans', sans-serif;
    color: #656d78;
    font-size: 16px;
    font-weight: 400;
}

a.link {
    color: #00d8ff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
}

a.link:after {
    content: "";
    display: inline-block;
    height: 2px;
    width: 100%;
    background: blue;
    background: -webkit-gradient(linear, left top, right top, from(#00d8ff), color-stop(1%, #00d8ff), to(#119dff));
    background: linear-gradient(to right, #00d8ff 0%, #00d8ff 1%, #119dff 100%);
    margin-top: 8px;
}

.grandient {
    color: #119dff;
    display: block;
    position: relative;
    -webkit-text-fill-color: transparent;
    background: -webkit-gradient(linear, left top, right top, from(#00d8ff), color-stop(1%, #00d8ff), to(#119dff));
    background: -o-gradient(linear, left top, right top, from(#00d8ff), color-stop(1%, #00d8ff), to(#119dff));
    -webkit-background-clip: text;
}

.grandient.red {
    background-image: -webkit-gradient(linear, left top, right top, from(#ff61a4), color-stop(1%, #ff61a4), to(#ff5373));
}

strong {
    font-weight: 600;
}

h1 {
    color: #434a54;
    font-size: 28px;
    font-weight: 400;
    line-height: 33px;
    text-transform: uppercase;
}

h2 {
    color: #434a54;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0;
}

h3 {
    color: #434a54;
    font-size: 18px;
    font-weight: 600;
}

section {
    padding: 40px 0;
}

/* OTHER ELEMENTS */

.logo {
    margin-bottom: 30px;
}

.top-header {
    z-index: 999;
    position: relative;
}

.phone {
    font-size: 18px;
    font-weight: 400;
    margin-top: 6px;
}

.phone.blue {
    color: #02578e;
}

.phone.red {
    color: #434a54;
}

.hero-image {
    background: #fbfcfd url("../img/hero-image.png") top right no-repeat;
    background-size: contain;
}

.hero-image .subtitle {
    color: #00d8ff;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
}

.about-text strong {
    display: block;
    color: #434a54;
    text-transform: uppercase;
}

.sluzby-ordinace {
    background: #efeff0 url("../img/sluzby-ordinace.png") top left no-repeat;
    -webkit-box-shadow: 0 21px 29px rgba(93, 96, 99, 0.22);
    box-shadow: 0 21px 29px rgba(93, 96, 99, 0.22);
    background-size: contain;
}

.sluzby-ordinace h2,
.sluzby-optiky h2 {
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 40px;
}

.sluzby-optiky {
    background: #efeff0 url("../img/sluzby-optika.png") top right no-repeat;
    -webkit-box-shadow: 0 21px 29px rgba(93, 96, 99, 0.22);
    box-shadow: 0 21px 29px rgba(93, 96, 99, 0.22);
    background-size: contain;
}

.card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.ordinace-card .number,
.optika-card .number {
    position: absolute;
    color: red;
    font-size: 130px;
    z-index: 5;
    text-align: center;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    color: #f6f7fb;
    opacity: 0.8;
}

.ordinace-card p,
.optika-card .text {
    z-index: 10;
    max-width: 100%;
}

.ordinace-card .card,
.optika-card .card {
    color: #656d78;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    -webkit-box-shadow: 0 11px 57px rgba(40, 40, 40, 0.11);
    box-shadow: 0 11px 57px rgba(40, 40, 40, 0.11);
    border-radius: 2px;
    background-color: #ffffff;
    padding: 40px;
    max-height: 300px;
    margin-bottom: 40px;
    position: relative;
    min-height: 175px;
}

.optika-card .card {
    min-height: 190px;
}



.ordinace-card .card:before {
    width: 100%;
    height: 11px;
    border-radius: 2px;
    background-color: #ffffff;
    background-image: -webkit-gradient(linear, left top, right top, from(#78e2ff), color-stop(1%, #78e2ff), to(#41b0fe));
    background-image: linear-gradient(to right, #78e2ff 0%, #78e2ff 1%, #41b0fe 100%);
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.optika-card .card:before {
    width: 10px;
    height: 100%;
    border-radius: 2px;
    background-color: #ffffff;
    background-image: -webkit-gradient(linear, left bottom, left top, from(#ffa9cd), color-stop(1%, #ffa9cd), to(#fe6686));
    background-image: linear-gradient(to top, #ffa9cd 0%, #ffa9cd 1%, #fe6686 100%);
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.optika-card strong {
    text-transform: uppercase;
}

.contact .ramecek {
    border: 1px solid #41b0fe;
    padding: 0 10px 10px 10px;
    font-size: 17px;
    margin-bottom: 15px;
    background: #fff;
}

section.link {
    padding-top: 0;
    text-align: center;
}


footer {
    text-align: center;
    margin-bottom: 40px;
}


@media (min-width: 768px) {
    p {
        font-size: 18px;
    }
    h1 {
        margin-top: 130px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        margin: 5px 0;
    }
    a.link {
        font-size: 28px;
    }
    .skew {
        -webkit-transform: skewY(-3deg);
        transform: skewY(-3deg);
    }
    .skew .inner {
        -webkit-transform: skewY(3deg);
        transform: skewY(3deg);
    }
    .small-skew {
        -webkit-transform: skewY(-2deg);
        transform: skewY(-2deg);
    }

    .small-skew .inner {
        -webkit-transform: skewY(2deg);
        transform: skewY(2deg);
    }
    .logo-right {
        float: right;
    }
    .hero-image:before {
        background: #fff;
        height: 100px;
        width: 100%;
        display: block;
        content: "";
        -webkit-transform: skewY(3deg);
        transform: skewY(3deg);
        position: absolute;
        top: -55px;
    }
    .hero-image .subtitle {
        margin-bottom: 80px;
    }
    .about-text strong {
        font-size: 18px;
        margin: 20px 0;
    }
    .sluzby-optiky:before,
    .sluzby-ordinace:before {
        background: #fff;
        height: 70px;
        width: 100%;
        display: block;
        content: "";
        -webkit-transform: skewY(2deg);
        transform: skewY(2deg);
        position: absolute;
        top: -35px;
    }
    .sluzby-ordinace h2,
    .sluzby-optiky h2 {
        font-size: 45px;
        margin-top: 90px;
        margin-bottom: 80px;
    }
    .sluzby-ordinace h2 {
        text-align: right;
    }
    .contact {
        padding-top: 100px;
    }
    .about {
        padding-top: 20px;
    }
    .contact .ramecek {
        min-height: 130px;
        font-size: 17px;
        padding-top: 10px;
        margin-bottom: 0;
    }
    .ordinace-card {padding-top: 120px !important}
}

@media (min-width: 1200px) {
    body,
    p {
        font-size: 30px;
    }
    .ordinace-card p {
        font-size: 40px;
    }
    a.link {
        font-size: 48px;
        line-height: 32px;
        letter-spacing: 2.4px;
    }
    h1 {
        font-size: 80px;
        line-height: 100px;
        margin-top: 185px;
        margin-bottom: 52px;
        padding-bottom: 52px;
        border-bottom: 2px solid #00d8ff;
    }

    h2 {
        font-size: 48px;
        line-height: 40px;
        margin-top: 0;
        margin-bottom: 60px;
    }

    h3 {
        font-size: 30px;
        line-height: 40px;
    }
    section {
        padding: 150px 0;
    }
    .top-header {
        padding: 90px 0 30px;
    }
    .logo {
        margin-bottom: 0;
    }
    .phone {
        font-size: 18px;
    }
    .phone strong {
        font-size: 24px;
    }

    .hero-image {
        margin-bottom: 70px;
        background-size: auto;
    }
    .hero-image .subtitle {
        font-size: 55px;
        margin-bottom: 205px;
    }
    .about-text {
        border-left: 2px solid #00d8ff;
        padding: 30px 0 30px 66px;
    }
    .about-text strong {
        margin-top: 76px;
        margin-bottom: 41px;
        font-size: 27px;
        line-height: 32px;
    }
    .sluzby-ordinace,
    .sluzby-optiky {
        background-size: auto;
    }

    .sluzby-ordinace h2,
    .sluzby-optiky h2 {
        font-size: 85px;
        line-height: 100px;
        margin-top: 160px;
        margin-bottom: 135px;
    }
     .sluzby-optiky h2 {
            font-size: 55px;
    line-height: 70px;
        margin-top: 160px;
        margin-bottom: 135px;
    }
    .ordinace-card .number,
    .optika-card .number {
        font-size: 340px;
        top: -97px;
    }
    .ordinace-card {
        padding-bottom: 150px;
        position: relative;
        z-index: 10;
        margin-top: 50px;
    }
    .ordinace-card .card,
    .optika-card .card {
        font-size: 40px;
        line-height: 50px;
        padding: 126px 40px;
        max-height: 300px;
        margin-bottom: 40px;
    }
    .optika-card .small {
        font-size: 24px;
    }
    .contact {
        background: #ffff;
        margin-top: -40px;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .contact .ramecek {
        padding: 10px;
        min-height: 205px;
        font-size: 28px;
    }
    footer {
        margin-bottom: 150px;
    }
}

@media screen and (max-width: 768px) {.contact {padding-bottom: 0px !important}}
@media screen and (max-width: 480px) {.hero-image {background-size: cover !important; background-position-x: 45% !important;}}
@media screen and (max-width: 480px) {.hero-image h1 {width: 50% !important;} .hero-image .subtitle {width: 50% !important;}}
@media screen and (max-width: 479px) {.sluzby-ordinace {background: #efeff0 url("../img/sluzby-ordinace-max-479px.jpg") top right no-repeat !important; background-size: contain !important;}}
@media screen and (min-width: 480px) and (max-width: 768px) {.sluzby-ordinace {background: #efeff0 url("../img/sluzby-ordinace-min-480px.jpg") top right no-repeat !important; background-size: contain !important;}}
@media screen and (max-width: 767px) {.sluzby-ordinace .grandient {width: 50%}}
@media screen and (max-width: 767px) {.sluzby-optiky .grandient {width: 60%}}
@media screen and (max-width: 480px) {.sluzby-optiky {background: #efeff0 url("../img/sluzby-optika-druha-mobil.jpg") no-repeat !important; background-position-x: -75% !important; background-position-y: 10% !important; background-size: 120% !important;}}