body {
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 14px;
    line-height: 1.45;
}

:root {
    --white: #FFFFFF;
    --dark: #383730;
    --gold: #C1A063;
    --red: #673434;
    --light-gold: #f2f1ee;
}

.container {
    max-width: 936px;
}


@font-face {
    font-family: 'Open Sans';
    src: url('./fonts/OpenSans-Light.eot');
    src: url('./fonts/OpenSans-Light.eot?#iefix') format('embedded-opentype'),
        url('./fonts/OpenSans-Light.woff2') format('woff2'),
        url('./fonts/OpenSans-Light.woff') format('woff'),
        url('./fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Noto Serif Display';
    src: url('./fonts/NotoSerifDisplay-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: 'Noto Serif Display';
    src: url('./fonts/NotoSerifDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: 'Noto Serif Display';
    src: url('./fonts/NotoSerifDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
 	font-display: swap;
}

@font-face {
    font-family: 'Noto Serif Display';
    src: url('./fonts/NotoSerifDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
	font-display: swap;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif Display';
}

h1 {
    font-size: 60px;
    font-weight: 400;
}

h2 {
    font-size: 45px;
    font-weight: 400;
}

h3 {
    font-size: 30px;
    font-weight: 400;
}

.medium {
    font-size: 16px;
    line-height: 1.2;
}

.big {
    font-size: 18px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    margin-bottom: 15px;
}

p:last-child {
    margin-bottom: 0;
}

.nowrap{
    white-space: nowrap;
}

/* Header */

header {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    width: 100%;
    padding-top: 23px;
}

.menu {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: flex-end;
    margin-bottom: 0;
}

.menu a {
    color: #fff;
    font-weight: 300;
    position: relative;
}

.menu a:after {
    content: '';
    width: 0%;
    height: 1px;
    position: absolute;
    bottom: -5px;
    left: 0;
    display: block;
    background: var(--white);
    transition: all .5s;
}

.menu a:hover:after {
    width: 100%;
}

/* HERO */

#home {
    padding-top: 162px;
    padding-bottom: 90px;
    position: relative;
    color: #fff;
    overflow: hidden;
    min-height: 680px;
    background-image: url('./images/slider_01.jpg');
    background-position: right center;
    background-size: cover;
}

#home .slider-carousel-images, #home .slider-carousel-images-mobile {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

#home>.container {
    position: relative;
    z-index: 5;
}

#home>.container h1 {
    margin-bottom: 20px;
}

#home>.container p {
    font-weight: 300;
}

#home .specjalizacje {
    margin-top: 171px;
    font-weight: 300;
}

#home .specjalizacje .top-specjalizacje {
    padding-bottom: 15px;
    position: relative;
}

#home .specjalizacje .top-specjalizacje:after {
    content: '';
    display: block;
    position: absolute;
    left: -76px;
    width: calc(100% + 152px);
    height: 1px;
    background: var(--white);
    bottom: 0;
}

#home .specjalizacje .bottom-specjalizacje {
    padding-top: 14px;
}

#home .specjalizacje .bottom-specjalizacje ul {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

#home .specjalizacje .bottom-specjalizacje ul li a {
    color: #fff;
    position: relative;
}

#home .specjalizacje .bottom-specjalizacje ul li a:after {
    content: '';
    width: 0%;
    height: 1px;
    position: absolute;
    bottom: -5px;
    left: 0;
    display: block;
    background: var(--white);
    transition: all .5s;
}

#home .specjalizacje .bottom-specjalizacje ul li a:hover:after {
    width: 100%;
}

#home .slider-carousel-images .slick-list, #home .slider-carousel-images .slick-track{
    height:100%;
}

#home .slider-carousel-images .slick-list img{
    object-fit: cover;
    object-position: bottom right;
}

/* O NAS */

#o-nas {
    padding-top: 71px;
    padding-bottom: 0px;
}

#o-nas .intro-text {
    max-width: 405px;
    margin-bottom: 17px;
}

#o-nas .intro-heading {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gold);
}

#o-nas .nasz-zespol {
    margin-top: 47px;
}

#o-nas h2 {
    margin-bottom: 16px;
}

/* ZESPÓŁ */

.team {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 95px;
    min-height: 640px;
}

.member {
    width: calc(19% - 22px);
    padding: 0px;
    border-radius: 0px;
    transition: all 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.member:nth-child(3),
.member:nth-child(4),
.member:nth-child(5) {
    align-items: flex-end;
}

.member img {
    width: 100%;
    border-radius: 0px;
    transition: transform 0.5s ease;
}

.member .description {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.6s ease;
    font-size: 12px;
    margin-top: 31px;
    display: inline-block;
    width: 310%;
}

.member .description span {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 300;
    display: inline-block;
    width: 100%;
    margin-bottom: 9px;
    line-height:1.15;
}

.member.active {
    width: 24%;
    transform: translatey(-50px);
}

.member.active img {
    transform: scale(1.05);
}

.member.active .description {
    max-height: 1000px;
    opacity: 1;
}

.member_mail {
  	display: block;
  	margin-bottom: 10px;
}

.changed-specialisations>div {
    display: none;
}

.changed-specialisations>div.open {
    display: flex;
}

/*SPECJALIZACJE */

#specjalizacje {
    padding-bottom: 120px;
}

#specjalizacje h2 {
    margin-bottom: 16px;
}

#specjalizacje .col-12>ul {
    margin-bottom: 60px;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 41px;
    border-top: 1px solid var(--gold);
}

#specjalizacje .col-12>ul li a {
    color: var(--dark);
    font-size: 16px;
    font-weight: 300;
}

#specjalizacje ul li a.active {
    color: var(--gold);
}

.changed-specialisations h3 {
    color: var(--gold);
    max-width: 200px;
}

/* MEDIA */

#media {
    background-color: var(--light-gold);
    padding-top: 58px;
    padding-bottom: 71px;
}

#media .media-top {
    margin-bottom: 51px;
}

#media .media-top h2 {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gold);
}

#media .media-bottom a>span {
    position: relative;
    display:inline-block;
}

#media .media-bottom a span.image:after {
    content: '';
    width: 52px;
    height: 52px;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    background-image: url(./images/play_button.svg);
    background-size: 52px;
}

#media .media-bottom .col-12 {
    margin-bottom: 26px;
}

#media .media-bottom a h4 {
    font-family: 'Open Sans';
    font-size: 16px;
    font-weight: 300;
    margin-top: 13px;
    color: var(--dark);
}

#media .media-bottom a p {
    color: var(--red);
}

#media .media-bottom {
    position: relative;
    overflow: hidden;
    max-height: 240px;
    transition: all .8s;
}

#media .media-bottom.active {
    max-height: 1230px;
}

#media .media-bottom a>span img {
    aspect-ratio: 16/9;
    object-fit: cover;
    position:relative;
}

#media .arrow {
    text-align: center;
    margin-top: 30px;
    cursor: pointer;
    margin-bottom: 0;
}

#media .arrow img {
    transition: all .5s;
}

#media .arrow.active img {
    transform: rotate(180deg);
}


/* KONTAKT */

#kontakt {
    padding-top: 120px;
    padding-bottom: 100px;
}

#kontakt .container>.row:first-child h2 {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gold);
}

#kontakt .container>.row:first-child h3 {
    max-width: 388px;
    margin-left: auto;
}

#kontakt .container .row:last-child .col-md-4:not(.pt-4){
    position:relative;
}

#kontakt .container .row:last-child .col-md-4:not(.pt-4):after{
    content:'';
    width:31px;
    height:31px;
    background-color: #fff;
    background-image: url('./images/logo_symbol.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size:25px;
    border-radius:50%;
    display:block;
    position:absolute;
    left: 32%;
    top: 10%;
}

/* FOOTER */

footer {
    padding-bottom: 33px;
    overflow: hidden;
}

footer hr {
    opacity: 1;
    width: calc(100% + 150px);
    margin-left: -75px;
}

@media (min-width: 1699px) {
    #home {
        min-height: 850px;
    }
}

@media (max-width: 1199px) {
    .member .description {
        width: 200%;
    }
}

@media (min-width: 768px) {
    .member .mobile-img {
        display: none;
    }
    .slider-carousel-images-mobile {
        display:none !important;
    }
}

@media (max-width: 767px) {
    .slider-carousel-images {
        display:none !important;
    }
    .row>* {
        padding-right: 40px;
        padding-left: 40px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 35px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 20px;
    }

    .big {
        font-size: 14px;
    }

    #home {
        min-height: 0px;
        aspect-ratio: 1/2.14;
        background-image: url('./images/mobile_slider_01.jpg');
        background-position: center bottom;
        padding-top: 134px;
    }

    #home>.container p {
        max-width: 270px;
    }

    #o-nas {
        padding-top: 39px;
    }

    #o-nas .intro-text {
        margin-bottom: 37px;
    }

    #o-nas .nasz-zespol {
        margin-top: 68px;
    }

    .member .description {
        width: 100%;
    }

    .member.active img,
    .member.active {
        transform: none
    }

    .member img {
        padding-right: 36px;
    }

    .member .desktop-img {
        display: none;
    }

    .team .slick-list {
        padding-right: 70%;
        margin-right: -60%;
    }

    .team {
        margin-top: 39px;
        margin-bottom: 66px;
    }

    .team-outer {
        overflow: hidden;
    }

    #specjalizacje {
        padding-bottom: 76px;
    }

    #specjalizacje h2 {
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid var(--gold);
    }

    .changed-specialisations {
        margin-top: 22px;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .changed-specialisations>div {
        display: block;
        padding-right: 0px;
    }

    .changed-specialisations>div img {
        padding-right: 18px;
    }

    .changed-specialisations>div h3 {
        margin-bottom: 12px;
    }

    .changed-specialisations>div img {
        margin-bottom: 15px;
    }

    .changed-specialisations br {
        display: none;
    }

    .changed-specialisations h3 {
        max-width: 100%;
    }

    .changed-specialisations .slick-list {
        padding-right: 70%;
        margin-right: -60%;
    }

    .changed-specialisations .col-md-8>p {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transition: all .5s;
    }

    .changed-specialisations>div h3 {
        opacity: 0;
        visibility: hidden;
        transition: all .5s;
    }

    .changed-specialisations .slick-slide.slick-active .col-md-8>p {
        opacity: 1;
        visibility: visible;
        max-height: 700px;
    }

    .changed-specialisations .slick-slide.slick-active h3 {
        opacity: 1;
        visibility: visible;
    }

    #specjalizacje {
        overflow: hidden;
    }

    .changed-specialisations .slick-slide {
        margin: 0 !important;
    }

    .changed-specialisations .col-12 {
        padding: 0 18px 0 0 !important;
        margin: 0 !important;
    }

    #media .arrow {
        display: none !important;
    }

    #media .media-bottom {
        max-height: 3000px;
        padding-left: 40px;
        padding-right: 40px;
        margin-bottom: 0;
        padding-bottom: 30px;
    }

    #media .media-bottom .slick-dots {
        bottom: 0;
        left: 0;
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        list-style: none;
    }

    #media .media-bottom .slick-dots li {
        width: 15px;
        height: 2px;
        background: var(--dark);
        opacity: 0.5;
        transition: all .5s;
        border-radius: 3px;
    }

    #media .media-bottom .slick-dots li button {
        display: none;
    }

    #media .media-bottom .slick-dots li.slick-active {
        opacity: 1;
        height: 3px;
    }

    #kontakt .row:last-child>.col-12:first-child {
        order: 3;
        margin-top: 43px;
    }

    #kontakt {
        padding-top: 52px;
        padding-bottom: 73px;
    }

    footer hr {
        width: 100%;
        margin-left: 0;
    }

    #kontakt .container>.row:first-child h3 {
        max-width: 258px;
    }
}