@layer reset, init, layout, design, components;

@import url(normalize.css) layer(reset);
@import url(components.css) layer(components);

@layer reset {
    @import url(https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&display=swap);

    :root {
        --primary: #5D385F;
        --pink: #e4b9e5;
        --text: #444444;
        --lightgray: #ebebeb;
        --black: #000000;
        --light: #FFFFFF;
        --link: #428bca;

        --bar-height: 6em;
        --desktop-column: 1200px;
        --transition-time: 0.2s;
        --border-radius: 1rem;
    }
}

@layer init {
    html {
        font-family: "OpenSans", sans-serif;
        scroll-behavior: smooth;
        scroll-padding-top: 4rem;
        color: var(--text);
    }

    .img-responsive {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    figure, menu, .heading {
        margin: 0;
        padding: 0;
    }

    p {
        line-height: 1.45em;
    }

    .heading {
        display: inline-block;
        font-weight: bold;
        margin: 0;
        color: var(--primary);
    }

    p.heading {
        display: block;
    }

    .heading--h1 {
        font-size: 3rem;
        margin: 0;
        margin-bottom: 1rem;
    }

    .heading--h2 {
        font-size: 2rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .heading--h3 {
        font-size: 1.25rem;
    }
    .page--service .heading--h3 {
        margin-top: 1rem;
    }

    .heading--background {
        background-color: var(--primary);
        color: var(--light);
        padding: 0.25em 0.5em;
    }

    .img--rounded {
        border-radius: var(--border-radius);
    }

    .link {
        display: block;
        color: var(--link);
    }

    .top-indent--1 {
        margin-top: 1rem;
    }
    .bot-indent--1 {
        margin-bottom: 1rem;
    }
    .text--center {
        text-align: center;
    }
    .background--full {
        position: relative;
    }
    .background--full::before {
        content: '';
        display: block;
        position: absolute;
        width: var(--viewport-width);
        height: 100%;
        z-index: -1;
        top: 0;
        left: calc(-1 *((var(--viewport-width) - 100%) / 2));
    }
    .background--light::before {
        background-color: rgba(228, 185, 229, 0.25);
    }
    .benefit-list-item {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .benefit-list-item__icon {
        display: block;
        height: 3rem;
        aspect-ratio: 1;
    }
    .benefit-list-item__icon img {
        object-fit: contain;
    }
    .list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .list__item {
        padding-left: 0.5em;
    }
    .list__item::marker {
        font-weight: bold;
        color: var(--primary);
        font-size: 1.15em;
        padding-right: 1em;
    }


}

@layer design {
    .page__header {
        position: relative;
        height: 45vh;
    }
    .page__header::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 50%;
        background-image: linear-gradient(-180deg, rgba(182, 157, 181, 0) 0%, var(--primary) 100%);
    }
    .page--service .page__header {
        background-image: url("../images/ordinace-kliniky-crop-2560w.webp");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    .page__nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 2 * 1em);
        background-color: var(--primary);
        text-align: center;
        position: fixed;
        z-index: 2;
        padding: 1em;
    }

    @media screen and (min-width: 1440px) {
        .page__nav {
            width: calc(100% - 2 * 4em);
            padding-left: 4em;
            padding-right: 4em;
        }
    }
    .page__logo {
        width: auto;
        max-height: 2em;
    }
    .page__intro {
        position: relative;
        top: 60%;
        max-width: var(--desktop-column);
        margin: 0 auto;

    }
    .menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        list-style-type: none;
        text-align: left;
        gap: 1em;
        padding: 2em 2em;
    }
    .menu__item a {
        display: inline-block;
        text-decoration: underline;
        color: var(--pink);
        transition: 0.15s linear;
    }
    .menu__item a:hover {
        color: var(--light);
        text-decoration: underline;
        transition: 0.15s linear;
    }
    @media screen and (min-width: 1020px) {
        .menu {
            display: flex;
            flex-direction: row;
            padding: 0;
            justify-content: flex-end;
            align-items: center;
            gap: 1.5em;
        }
        .menu__item a {
            text-decoration: none;
        }

    }

    .page__body {
        display: flex;
        flex-direction: column;
        position: relative;
        margin-top: -3rem;
        z-index: 1;
    }

    .page__body > section, .page__body .section {
        padding: 1rem 0;
    }

    @media screen and (min-width: 768px){
        .page__body > section {
            padding: 3rem 0;
        }
        .page--service .page__body .section {
            padding: 1rem 0;
        }
    }

    .page__body, .page__footer {
        padding: 0 1em;
    }

    @media screen and (min-width: 1200px) {
        .page__body, .page__footer {
            padding: 0;
        }
    }

    .hero {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
        opacity: .5;
    }
    .hero__video {
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .page__perex strong, .page__perex, .no-bold strong, .no-bold b {
        font-weight: normal;
    }
    .page--service .page__content {
        margin-bottom: 2rem;
    }

    .service-list {
        display: grid;
        gap: 3em;
        margin-top: 3rem;
    }

    .service-price-table {
        margin-top: 1rem;
    }
    .service-price-table .table {
        margin-top: 1rem;
    }
    .service-price-table .table td:nth-child(2n) {
        background-color: rgba(93, 56, 95,0.1);
        text-align: right;
    }
    .service-price-table .table .table__header th:nth-child(2n) {
        text-align: right;
    }

    .service-item {
        display: flex;
        flex-direction: column;
        border: 1px solid var(--lightgray);
        border-radius: var(--border-radius);
        padding: 1.15em;
    }

    #proktologie-esthe {
        margin: 2rem 0;
    }

    .service-item__content {
        font-size: 0.9em;
    }

    .service-item a {
        text-decoration: none;
        color: var(--primary);
    }
    .service-item--priority {
        background: linear-gradient(to left, #5d385f, rgba(93, 56, 95, 0.75)), url("/assets/images/klinika-ordinace-900w.webp");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        color: var(--light);
        padding: 3em;
    }
    .service-item--priority .heading {
        color: var(--light);
    }
    .service-item--priority a {
        color: inherit;
    }

    .benefit-list {
        display: grid;
        gap: 1em;
        margin-top: 2rem;
    }

    @media screen and (min-width: 768px) {
        .service-list {
            grid-template-columns: repeat(2, 1fr);
        }
        .service-item--priority {
            gap: 1em;
            text-align: center;
            padding: 4em !important;
        }
        .service-item--priority .btn {
            color: var(--light);
            transition: var(--transition-time) linear;
        }
        .service-item {
            padding: 2em;
        }
        .service-item--2h {
            grid-column: span 2;
        }
        .benefit-list {
            grid-template-columns: repeat(2, 1fr);
            row-gap: 3rem;
            column-gap: 6rem;
            margin-top: 4rem;
        }
    }

    .page__footer .heading {
        margin-bottom: 0.5em;
    }

    .rezervace {
        padding: 1em !important;
        box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.3);
        -webkit-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.3);
        border-radius: 1rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    @media screen and (min-width: 1200px) {
        .rezervace {
            margin-top: 4rem;
            margin-bottom: 3rem;
        }

    }

    .brand-intro {
        background-color: var(--primary);
        border-radius: var(--border-radius);
        padding: 2rem !important;
        order: 1;
    }

    .list--zivotopis {
        font-size: 0.9em;
        gap: 0.5rem;
        padding-left: 0;
    }

    .list--zivotopis b {
        display: inline-block;
        width: 110px;
        flex-shrink: 0;
    }
    @media screen and (min-width: 768px) {
        .list--zivotopis b {
            width: 150px;
        }
    }

    .list--zivotopis .list__item {
        display: flex;
        gap: 1rem;
    }

    .list--zivotopis p {
        margin: 0;
    }

    .lekar {
        align-items: center;
    }

    .lekar-profile {
        position: relative;
        height: 75%;
    }
    @media screen and (max-width: 960px){
        .lekar-profile {
            width: 75%;
            margin-bottom: 3rem;
        }
    }

    .lekar-profile__photo {
        object-fit: contain;
    }

    .lekar-profile__description {
        font-size: 0;
    }

    .lekar-profile::after {
        content: "";
        background-image: url("../images/vlna.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        display: block;
        width: 100%;
        height: 2rem;
        position: absolute;
        bottom: -1.25rem;
    }

    .brand-item {
        display: flex;
        flex-direction: column;
        gap: 1em;
        text-align: center;
        text-decoration: none;
        position: relative;
        color: var(--light);
    }

    .brand-item::before {
        content: '';
        background-image: linear-gradient(-180deg, rgba(106, 67, 107, 0) 0%, var(--primary) 70%);
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        height: 100%;
        width: 100%;
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 15px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-time) linear;
    }
    .brand-item:hover::before {
        opacity: 1;
    }

    .brand-item__icon {
        height: 4rem;
        padding: 1rem 0;
    }

    .brand-item__icon > img {
        height: 100%;
    }

    .brand-item__num {
        font-size: 1.5em;
    }
    .brand-item__desc {
        font-size: 0.9em;
    }
    .brand-item__desc i {
        display: block;
        font-weight: lighter;
        font-size: 0.9em;
        margin-top: 1em;
    }

}

@layer layout {
    .page__header { grid-area: page-header; }
    .page__body { grid-area: page-content; }
    .page__footer { grid-area: page-footer; }

    @media screen and (min-width: 960px) {
        .page {
            display: grid;
            grid-template-columns: 1fr minmax(auto, 1200px) 1fr;
            grid-template-areas:
            "page-header page-header page-header"
            ". page-content ."
            "page-footer page-footer page-footer";
            column-gap: 3em;
        }
    }

    .page__footer {
        display: flex;
        flex-direction: column;
        margin-top: 2rem;
        font-size: 0.9em;
        padding: 1em !important;
        text-align: center;
        background-color: var(--primary);
        color: var(--light);
    }

    .page__footer a {
        color: inherit;
    }

    .page__footer .page__logo {
        margin: 0 auto;
    }

    .brand-intro {
        display: grid;
        gap: 3em;
        margin-bottom: 2rem !important;
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel {
        overflow: hidden;
    }


    @media screen and (min-width: 960px) {
        .page__footer {
            flex-direction: row;
            justify-content: space-evenly;
        }
        .section--1-2-col {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 2em;
        }
        .section--2-col {
            display: grid;
            grid-template-columns: repeat(2, 50%);
            gap: 2em;
        }
        .brand-intro {
            grid-template-columns: repeat(4, 1fr) !important;
            order: unset !important;
        }
    }

    @media screen and (min-width: 1200px) {
        .rezervace {
            padding: 3em !important;
        }
        /* Wrapper */
        .wrapper-d50 {
            width: 50%;
            margin: 0 auto;
        }
    }

    #konzultace {
        position: relative;
    }

    .kontakt-list {
        padding: 2rem !important;
        margin-bottom: 2rem;
        text-align: center;
        box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.3);
        -webkit-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.3);
        border-radius: 1rem;
        background-color: var(--light);

    }

    @media screen and (min-width: 1200px) {
        .kontakt-list {
            position: absolute;
            width: 12rem;
            bottom: 6rem;
            left: 1rem;
        }
    }

    .kontakt-list__icon {
        display: block;
        margin-bottom: 2em;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .contact-container__caption {
        font-size: 0.9em;
    }

    .kontakt-list .link {
        text-decoration: none;
        margin-bottom: 0.5em;
        color: var(--primary);
        transition: all var(--transition-time) linear;
    }

    .kontakt-list .link:hover {
        text-decoration: underline;
        transition: all var(--transition-time) linear;
    }
}