body {
    margin: 0;
    font-family: 'TildaSans', Arial, sans-serif;
}

*, *:before, *:after {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box
}

div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, img, b, u, i, center, table, tr, th, td, video {
    margin: 0;
    padding: 0;
    border: 0
}

h1 {
    font-family: 'TildaSans', Arial, sans-serif;
    font-weight: 600;
    font-size: 36px;
    text-align: center;
}

h2 {
    font-family: 'TildaSans', Arial, sans-serif;
    font-weight: 300;
    font-size: 30px;
    text-align: center;
    line-height: 1.45;
}

h3 {
    font-family: 'TildaSans', Arial, sans-serif;
    font-weight: 300;
    font-size: 24px;
    line-height: 1.55;
    text-align: center;
}

h4 {
    font-family: 'TildaSans', Arial, sans-serif;
    font-weight: 300; 
    text-align: center;
}
.child h1{
    font-weight: 400;
}
.child h2, .child h3, .child h4 {
    font-weight: 300;
}

.child h4 {
    margin: 0 20px;
}

.bg, .intro {
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
}

.filter {
    width: 100%;
    background-image: -webkit-linear-gradient(top, rgba(203, 189, 189, 0.7), rgba(81, 73, 73, 0.7));
}

.top .avatar {
    position: absolute;
    top: -102px;
    right: 0;
    left: 0;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border: 2px solid #fff;
    border-radius: 100px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff
}

.top .author {
    position: relative;
    margin: 0 auto;
    padding-top: 105px;
    text-align: center;
}

.top .author h3 {
    padding: 11px 0 0;
}

.photos {
    padding: 20px;
}

.photos img {
    width: 360px;
    max-width: 100%;
    height: 360px;
    padding: 20px;
    box-sizing: border-box;
}

.content {
    margin: auto;
    font-size: 22px;
    line-height: 1.55;
    font-weight: 300;
    padding: 20px;
}

.center {
    margin: auto;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.space {
    text-align: center;
    font-size: 13px;
    letter-spacing: 2px;
}

.space.huge {
    padding-bottom: 200px
}

.space.large {
    padding-bottom: 90px
}

.space.medium {
    padding-bottom: 60px
}

.space.mini {
    padding-bottom: 30px
}

.contacts a {
    color: black;
    text-decoration: none;
}
/* ----- */
.content {
    max-width: 860px
}

.about .content {
    padding: 0 20px;
}

.about .item {
    background-color: white;
    border-bottom: 1px solid #cccccc;
    color: #635f5f;
}

.about .item .info {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.about .item.opened .info {
    grid-template-rows: 1fr;
}

.about .item .info .hidden {
    padding: 0 30px;
    overflow: hidden;
}

.about .item .title {
    font-weight: 400;
    font-size: 24px;
    line-height: 1.35;
    color: rgb(84, 80, 80);
    cursor: pointer;
    position: relative;
    padding: 25px 30px;
}

.about .item .icon {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 24px;
    height: 24px;
    display: inline-block;
    padding: 8px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: transparent;
    border-radius: 100px;
    transition: background-color 0.35s;
}

.about .item:hover .icon {
    background-color: #eee;
}

.about .item .icon img {
    transition: all ease-in-out 0.3s
}

.about .item.opened .icon img {
    z-index: 1;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.extra {
    padding: 0 10px;
}

.extra .content {
    padding-bottom: 10px;
}
.extra .content ul {
    padding-left: 15px;
    margin: 0;
}

.extra .content ul li {
    margin-bottom: 15px;
}

.content.wide{
    max-width: 1200px;
    padding-left: 0;
    padding-right: 0;
}

.child ul.speciality{
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 18px;
    width: 100%;
}

.child ul.speciality > li{
    display: inline-block;
    width: 100%;
    max-width: 560px;
    margin: 20px;
    padding-left: 50px;
    position: relative;
    box-sizing: border-box;

    list-style: none;
    background-image: url("../img/item.svg");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 30px;
    vertical-align: top;
}

.child ul.speciality > li h3{
    font-weight: 500px;
    text-align: left;
    font-size: 20px;
    font-weight: 500;
}

.gallery {
    padding: 30px;
    text-align: center;
}
.gallery .splide {
    display: inline-block;
    max-width: 100%;
    margin: 10px auto;
    padding: 0 30px;
    box-sizing: border-box;
}
.gallery .splide .splide__arrow--next {
    right: 0em;
}
.gallery .splide .splide__arrow--prev {
    left: 0em;
}

.gallery ul li {
    text-align: center;
}
.gallery img {
    max-height: 840px;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*padding: 20px;*/
    box-sizing: border-box;
}
.splide__slide {
    opacity: 0.5;
}

.splide__slide.is-active {
    opacity: 1;
}
.gallery .splide .splide__track--nav>.splide__list>.splide__slide.is-active {
    border: 3px solid #dbcfcf;
    background: #dbcfcf;
}

@media print {
    body, html {
        min-width: 1200px;
        max-width: 1200px;
        padding: 0;
        margin: 0 auto;
        border: none
    }
}

@media screen and (max-width: 1200px) {
    h1 {
        font-size: 32px
    }

    h2 {
        font-size: 26px
    }

    .space.huge {
        padding-bottom: 175px
    }

    .content {
        font-size: 20px;
        max-width: 700px;
    }

    .about .item .title {
        font-size: 22px;
    }

    .about .item .info .hidden {
        padding: 0 25px;
    }

    .about .item .title {
        padding: 25px;
    }

    .content.wide {
        max-width: 960px;
        padding: 0;
    }

    .child ul.speciality li {
        max-width: 460px;
    }

    .gallery img {
        max-height: 600px;
    }
}
@media screen and (max-width: 640px) {
    h1 {
        font-size: 28px
    }

    h2 {
        font-size: 22px
    }

    .space.huge {
        padding-bottom: 150px
    }

    .content {
        font-size: 18px;
        line-height: 1.45;
    }

    .about .item .title {
        font-size: 21px;
        padding: 20px 40px 20px 20px;
    }

    .about .item .info {
        font-size: 22px;
    }

    .about .item .info .hidden {
        padding: 0 20px;
    }

    .about .item .info ul {
        padding: 0 20px;
    }

    .about .item .icon {
        right: 10px;
    }
    .space.mini {
        padding-bottom: 20px;
    }
    .space.medium {
        padding-bottom: 40px;
    }
    .content.wide {
        max-width: 640px;
        padding: 0;
    }
    .child ul.speciality li{
        max-width: 100%;
    }

    .gallery img {
        max-height: 320px;
    }

    .top .avatar {
        top: -67px;
        width: 120px;
        height: 120px
    }

    .top .author {
        padding-top: 65px
    }

    h3 {
        line-height: 1.45;
    }

    .top .bg {
        height: 200px !important
    }
    .gallery .splide.big {
        padding: 0;
    }
    .gallery {
        padding: 10px;
    }
}
