:root {
    --white: #f5f5f5;
    --black: #575757;
}


@media only screen and (min-width: 900px) {
    :root {
        --line-height: 1.5vw;
        --small-font: 1vw;
        --letter-spacing: 0.2vw;

        --big-font: 2vw;
        --bold: 600;
    }
}

@media only screen and (max-width: 900px) {
    :root {
        --line-height: 4.3vw;
        --small-font: 3.3vw;
        --letter-spacing: 0.6vw;

        --big-font: 4.5vw;
        --bold: 600;
    }
}

@media only screen and (max-width: 900px) and (orientation: landscape) {
    :root {
        --line-height: 2.5vw;
        --small-font: 1.5vw;
        --letter-spacing: 0.2vw;

        --big-font: 2vw;
        --bold: 600;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -khtml-user-select: none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
}

a {
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
    text-decoration: none !important;
}

a:visited {
    text-decoration: none !important;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    width: 100vw;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    color: var(--black);
    font-family: 'Montserrat', sans-serif;

    background-color: var(--white);
}

section {
    width: 100vw;
    min-height: 80vh;
    overflow-x: hidden;
}

@media only screen and (min-width: 1400px) {
    section {
        padding: 0 calc(100vw/10);
    }
}

@media only screen and (max-width: 1400px) {
    section {
        padding: 0 calc(100vw/100);
    }
}

.nav {
    position: fixed;
    left: 0;
    z-index: 100;
    width: 100vw;
    padding: 35px calc(100vw/14);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 1s ease-in-out;

    pointer-events: none;
}

.mobile {
    align-items: center;
}

.navbtn {
    z-index: 101;
    width: 30px;
    height: 30px;
    margin: 10px;

    display: none;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;
    pointer-events: all;
}

.navbtn span {
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.navbtn span:nth-child(3) {
    transform: translateX(-20%);
}

.navbtn:active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbtn:active span:nth-child(2) {
    transform: translateX(-100%);
}

.navbtn:active span:nth-child(3) {
    transform: translate(0,-7px) rotate(-45deg);
}

.open .navbtn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.open .navbtn span:nth-child(2) {
    transform: translateX(-100%);
}

.open .navbtn span:nth-child(3) {
    transform: translate(0,-7px) rotate(-45deg);
}

.mobile .navbtn {
    display: flex;
    align-self: flex-end;
}

.navbtn span {
    width: 100%;
    height: 1px;
    background-color: var(--white);
    margin: 3px 0 3px 0;
}

.dark span {
    background-color: var(--black);
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    pointer-events: all;
}

.mobile .menu {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    width: 100vw;
    height: 100vh;

    transform: translateY(-100%);
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.open .menu {
    transform: translateY(0);
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background-filter: blur(25px);
}

.open .navbtn span {
    background-color: var(--white);
}

.mobile .menubtn {
    display: flex;
    flex-direction: column;
}

.menu span {
    margin: 10px;
    font-weight: 300;
    font-size: 0.7em;
    letter-spacing: 0.16em;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.menu span:hover {
    transform: translateY(-2px);
}

.menu span:active {
    transform: translateY(0);
}

#lang {
    display: flex;
    flex-direction: row;
}

.lang {
    width: 25px;
    height: 25px;
    margin: 10px;
    border: 1px solid var(--white);
    text-align: center;
    line-height: 25px;
    font-weight: 500;
    font-size: 0.7em;
    transition: transform 0.5s ease-in-out;
}

.mobile .lang {
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.lang:hover {
    transform: translateY(-1px);
}

.lang:active {
    transform: translateY(0);
}

#pl:checked + .lang,
#ru:checked + .lang {
    background-color: rgba(255, 255, 255, 0.5)
}

#pl:not(:checked) + .lang,
#ru:not(:checked) + .lang {
    background-color: transparent;
}






.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding-top: calc(100vh/10);
    min-height: 100vh;

    background-image: url('../images/city.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #232323;
    transition: opacity 1.5s ease-in 0.6s;
}

.unveiled::before {
    opacity: 0;
}

.logo {
    width: calc(100vh/3);
    height: calc(100vh/3);
    position: relative;
    background-image: url('../images/logowhite.png');
    background-size: cover;
    background-position: center;
    margin-bottom: 1em;
    overflow: hidden;
}

.logo > div { 
    background-color: var(--white);
}

.logo > div:nth-child(1) {
    width: 100%;
    height: 2px;
    transform: translateX(-101%);
    transition: transform 0.9s linear 0.5s;
}

.unveiled > .logo > div:nth-child(1) {
    transform: translateX(0);
}

.logo > div:nth-child(2) {
    position: absolute;
    right: 0;
    height: 100%;
    width: 2px;
    transform: translateY(-101%);
    transition: transform 0.9s linear 0.5s;
}

.unveiled > .logo > div:nth-child(2) {
    transform: translateY(0);
}

.logo > div:nth-child(3) {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform: translateX(101%);
    transition: transform 0.9s linear 0.5s;
}

.unveiled > .logo > div:nth-child(3) {
    transform: translateX(0);
}

.logo > div:nth-child(4) {
    height: 100%;
    width: 2px;
    transform: translateY(101%);
    transition: transform 0.9s linear 0.5s;
}

.unveiled > .logo > div:nth-child(4) {
    transform: translateY(0);
}

.text {
    font-size: 4vh;
    font-weight: 200;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text > .uppertext {
    opacity: 0;
    transform: translateX(-10%);
    transition: opacity 1.2s ease-in 0.7s, transform 1s ease-out 0.4s;
}

.unveiled > .text > .uppertext {
    transform: translateX(0);
    opacity: 1;
}

.text > .lowertext {
    opacity: 0;
    transform: translateX(10%);
    transition: opacity 1.2s ease-in 0.7s, transform 1s ease-out 0.4s;
}

.unveiled > .text > .lowertext {
    transform: translateX(0);
    opacity: 1;
}

.text > div::before {
    content: '';
    width: 40vw;
    height: 1px;
    background-color: var(--white);
    position: absolute;
    left: -40vw;
    transition: transform 0.7s cubic-bezier(.11,.28,0,.42) 0.3s;
}

.unveiled > .text > div::before {
    transform: translateX(100%)
}

.text > div::after {
    content: '';
    width: 40vw;
    height: 1px;
    background-color: var(--white);
    position: absolute;
    right: -40vw;
    transition: transform 0.7s cubic-bezier(.11,.28,0,.42) 0.3s;
}

.unveiled > .text > div::after {
    transform: translateX(-100%)
}





#logo {
    width: 100px;
    height: 100px;
    position: relative;
    overflow: hidden;
    margin: 0 10px;
}

#logo > div:nth-child(1) {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/logoblack.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: transform 0.5s linear,
                opacity 0.5s linear;
    transition-delay: 1s;
}

.header-hidden #logo > div:nth-child(1) {
    transform: translateY(-15px) !important;
    opacity: 0 !important;
    
}

#logo > div:nth-child(n+2) {
    position: absolute;
    background-color: var(--black);
    transition: transform 0.9s linear 0.5s;
}

#logo > div:nth-child(2),
#logo > div:nth-child(4) {
    width: 100%;
    height: 1px;
}

#logo > div:nth-child(3),
#logo > div:nth-child(5) {
    height: 100%;
    width: 1px;
}

#logo > div:nth-child(2) {
    top: 0;
}

#logo > div:nth-child(3) {
    right: 0;
}

#logo > div:nth-child(4) {
    bottom: 0;
}

#logo > div:nth-child(5) {
    left: 0;
}

.header-hidden #logo > div:nth-child(2) {
    transform: translateX(-101%);
}

.header-hidden #logo > div:nth-child(3) {
    transform: translateY(-101%);
}

.header-hidden #logo > div:nth-child(4) {
    transform: translateX(101%);
}

.header-hidden #logo > div:nth-child(5) {
    transform: translateY(101%);
}

.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-absolute {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100%;
}

.header-relative {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-relative span {
    width: max-content;
    white-space: nowrap;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.7s cubic-bezier(.11,.28,0,.42) 0.3s,
                opacity 0.4s ease-in-out 0.3s;
}

.header-hidden .header-relative > div > span {
    transform: translateY(-25px);
    opacity: 0 !important;
}

.header-relative > div {
    position: relative;
    display: flex;
    align-items: center;
    width:  max-content;
    height: 100%;
}

.header-relative > div::before,
.header-relative > div::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100vw;
    height: 1px;
    background-color: var(--black);
    opacity: 1;
    transition: transform 0.7s cubic-bezier(.11,.28,0,.42) 0.3s,
                opacity 0.4s ease-in-out 0.3s;
}

.header-relative > div::before {
    left: 0;
    transform: translateX(-100%);
}

.header-relative > div::after {
    right: 0;
    transform: translateX(100%);
}

.header-hidden .header-relative > div::before {
    opacity: 0 !important;
    transform: translateX(-150%);
}

.header-hidden .header-relative > div::after {
    opacity: 0 !important;
    transform: translateX(150%);
}

@media only screen and (min-width: 1400px) {
    .header {
        height: 200px; 
    }
    
    .header-relative {
        padding: 0 calc(100vw/10);
        justify-content: flex-start;
        font-size: var(--big-font);
        font-weight: var(--bold);
        letter-spacing: 0.12em;
    }

    .services .header-relative {
        padding: 0 calc(100vw/3);
        justify-content: flex-end;
    }

    .contact .header-relative {
        justify-content: center;
    }

    .header-relative span {
        padding: 0 30px;
    }

    #logo {
        margin: 0 30px;
    }
}

@media only screen and (max-width: 1400px) {
    .header {
        height: 100px; 
    }
    
    .header-relative { 
        padding: 0 calc(100vw/100);
        justify-content: center;
        font-size: var(--big-font);
        font-weight: var(--bold);
        letter-spacing: 0.08em;
    }

    .header-relative span {
        padding: 0 15px;
    }

    #logo {
        margin: 0 14px;
    }
} 

.btn {
    width: max-content;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15);
    background: var(--white);
    font-weight: 600;
    transition: all 0.5s ease-in-out;
}

.btn:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);;
}

.box {
    display: flex;
    flex-direction: column;

    opacity: 1;
    transform: translateY(0);

    transition: transform 0.7s ease-in-out,
                opacity 0.3s ease-in-out;
}

.box-hidden {
    opacity: 0;
    transform: translateY(-15px);
}

.kinga {
    position: relative;
    flex: 1 50%;
}

.kinga::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

#pen  {
    width: 100vw;
    height: calc(100vh/4);
    background-image: url('../images/pen.jpg');
    background-position: bottom;
    background-size: cover;
    opacity: 1;
    transition: transform 0.7s ease-in-out,
                opacity 0.3s ease-in-out;
    transition-delay: 0.3s;
}

.pen {
    opacity: 0 !important;
    transform: translateY(-15px);
}

#phone  {
    width: 100vw;
    height: calc(100vh/4);
    background-image: url('../images/phone.jpg');
    background-position: bottom;
    background-size: cover;
    opacity: 1;
    transition: transform 0.7s ease-in-out,
                opacity 0.3s ease-in-out;
    transition-delay: 0.3s;
}

.phone {
    opacity: 0 !important;
    transform: translateY(-15px);
}







/* ABOUT */

@media only screen and (min-width: 1400px) {
    .content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-content: center;
    }

    .about .content {
        flex-wrap: wrap;
    }

    .box.kinga::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        width: 100vw;
        height: 75%;
        background: rgba(2, 40, 89, 0.075);
        /* background: rgba(2, 40, 89, 0.175); */
        z-index: -1;
        transform: translateX(100%);
        transition: all 1.5s cubic-bezier(.2,.52,.47,1.35);
        transition-delay: 0.7s;
    }
    
    .box.kinga:not(.box-hidden)::before {
        transform: translateX(0);
    }

    .abouttext .box:nth-child(3) {
        position: absolute;
        bottom: 10px;
    }

    .box {
        line-height: var(--line-height);
        font-size: var(--small-font);
        letter-spacing: var(--letter-spacing);
    }

    .box span {
        padding: 20px;
    }

    .oncall a {
        margin-left: 25%;
        justify-self: center;
    }

    .services .btn {
        margin: auto auto 0 auto;
        align-self: center;
    }

    .kinga img {
        object-fit: contain;
        height: 80vh;
    }

    .readmore {
        padding: 20px;
    }

    .abouttext > .box:nth-child(1),
    .abouttext > .box:nth-child(2) {
        height: 100%;
        justify-content: center;
    }

    .abouttext > .box:nth-child(1) > div:last-child,
    .abouttext > .box:nth-child(2) > div:last-child {
        margin-bottom: 100px;
    }

    .abouttext > .box > div {
        margin-top: 40px;
    }
}

@media only screen and (max-width: 1400px) {
    .content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
    }

    .about .content {
        flex-direction: column-reverse;
    }

    .box {
        line-height: var(--line-height);
        font-size: var(--small-font);
        letter-spacing: var(--letter-spacing);

        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .box span {
        padding: 10px;
        align-self: flex-start;
    }

    .contact > .content > .box span {
        align-self: center;
    }

    .kinga img {
        object-fit: contain;
        width: 100%;
    }

    .abouttext > .box:first-child > div:first-child, 
    .abouttext > .box:nth-child(2) > div:first-child {
        margin-top: 0;
    }

    .abouttext > .box > div {
        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: center;
        
        margin: 30px 0 0 0;
    }

    .abouttext > .box > div > span {
        width: 100%;
        text-align: center;
    }

    .abouttext {
        padding-bottom: 100px;
    }

    .abouttext > .box:not(.box-hidden) > span {
        transform: translateY(0);
    }

    .abouttext > .box > span {
        position: absolute;
        align-self: center;
        padding: 0;
        width: 200px;
        height: 110%;
        top: 5%;

        background: rgba(2, 40, 89, 0.075);
        z-index: -1;
        transform: translateY(50%);
        transition: transform 1.5s cubic-bezier(.2,.52,.47,1.35);
        transition-delay: 0.7s;
    }

    .readmore {
        padding-top: 30px;
    }
}

.about {
    position: relative;
}

.abouttext {
    width: 100%;
    position: relative;
    display: flex;
    flex: 2 50%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.abouttext > .box > div > span {
    margin: 0;
    padding: 0;
    text-justify: newspaper;
}

.abouttext > .box > div > span:first-child {
    font-weight: bold;
    text-transform: uppercase;
}

._readmore {
    display: none;
}

.readmore {
    flex: 3 100%;
}

.readmore div span {
    text-align: justify;
    text-justify: auto;
}






/* SERVICES */

.services > .content > .box {
    width: 100%;
    overflow: hidden;
    padding-bottom: 5px;
}

.services > .content > .box > .service {
    width: 100%;
}

.services > .content > .box > .service > div:first-child {
    width: 100%;
    font-weight: 600;
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.services > .content > .box > .service > div:first-child > p {
    width: max-content;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4)
}

.services > .content > .box > .open > div:first-child > p {
    color: var(--black);
}

.services > .content > .box > .service > div:last-child {
    width: 70%;
    float: right;
    height: 0;
    overflow: hidden;
    transition: transform 0.3s ease-in;
    position: relative;
    overflow: hidden;
}

.services > .content > .box > .service > div:last-child > p {
    padding: 10px 0 100px 0;
}

@keyframes open {
    0% {
        height: 0;
        opacity: 0;
        transform: translateY(-5px);
    }
    50% {
        height: 100%;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.services > .content > .box > .open > div:last-child {
    height: 100%;
    animation: open 0.5s ease-in 1;
}

@media only screen and (min-width: 1400px) {
    .services > .content > .box > .service > div:first-child > p:hover {
        color: var(--black)
    }
    
    .services > .content > .box > .service > div:first-child::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        left: 0;
        transform: translateX(-100%);
        top: 100%;
        background-color: rgba(0, 0, 0, 0.26);
        transition: transform 0.5s ease-in-out;
    }
    
    .services > .content > .box > .service > div:first-child:hover::before {
        transform: translateX(-95%);
    }

    .services > .content > .box > .open > div:first-child::before,
    .services > .content > .box > .open > div:first-child:hover::before {
        transform: translateX(0);
    }

    .services > .content::before {
        content: '';
        position: absolute;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 50%;
        background: rgba(95, 63, 51, 0.05);
        opacity: 0;
        transform: translateX(-100%);
        transition: all 1.5s cubic-bezier(.2,.52,.47,1.35);
        transition-delay: 0.7s;
    }

    .services > .header:not(.header-hidden) + .content::before {
        transform: translateX(-5%);
        /* transform: translateX(-25%); */
        opacity: 1;
    }
}

@media only screen and (max-width: 1400px) {

    .services > .content > .box > .service {
        width: 90vw;
        margin-bottom: 15px;
    }

    .services > .content > .box > .service > div:first-child {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        letter-spacing: calc(var(--letter-spacing) * 0.6);
        font-size: calc(var(--small-font) * 0.9);
        font-weight: bolder;
    }

    .services > .content > .box > .service > div:last-child {
        width: 100%;
        padding: 10px;
    }

    .services > .content > .box > .service > div:last-child > p {
        padding: 10px 0 50px 0;
        text-align: center;
    }

    .services > .content::before {
        content: '';
        position: absolute;
        align-self: center;
        z-index: -1;
        width: 70vw;
        height: 55%;
        background: rgba(95, 63, 51, 0.05);
        opacity: 0;
        transform: translateY(100%);
        transition: all 1.5s cubic-bezier(.2,.52,.47,1.35);
        transition-delay: 0.7s;
    }

    .services > .header:not(.header-hidden) + .content::before {
        transform: translateY(0);
        opacity: 1;
    }
}






/* ONCALL */

.oncall > .header span::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    font-size: var(--small-font);
}

.oncall > .content::before {
    content: '';
    position: absolute;
    z-index: -1;
    background: rgba(37, 51, 37, 0.075);
    opacity: 0;
    transition: all 1.5s cubic-bezier(.2,.52,.47,1.35);
    transition-delay: 0.7s;
}

@media only screen and (min-width: 1400px) {
    .oncall {
        min-height: 60vh;
    }

    .oncall > .header:not(.header-hidden) + .content::before {
        transform: translateX(10%);
        opacity: 1;
    }

    .oncall > .content::before {
        width: 100vw;
        height: 30vh;
        transform: translateX(100%);
    }
}

@media only screen and (max-width: 1400px) {
    .oncall {
        min-height: 70vh;
    }

    .oncall > .content > .box {
        text-align: center;
    }

    .oncall > .header:not(.header-hidden) + .content::before {
        transform: translateY(0);
        opacity: 1;
    }

    .oncall > .content::before {
        width: 60vw;
        height: 50%;
        transform: translateY(100%);
        align-self: center;
    }
}






/* CONTAT */

.contact {
    margin-top: 50px;
}

.contact > .content::before {
    content: '';
    position: absolute;
    align-self: center;
    z-index: -1;
    width: 40vw;
    height: 70%;
    background: rgba(2, 40, 89, 0.075);
    opacity: 0;
    transform: translateY(100%);
    transition: all 1.5s cubic-bezier(.2,.52,.47,1.35);
    transition-delay: 0.7s;
}

.contact > .header:not(.header-hidden) + .content::before {
    transform: translateY(10%);
    opacity: 1;
}

@media only screen and (min-width: 1400px) {
    .contact > .content::before {
        width: 40vw;
        height: 70%;
    }
}

@media only screen and (max-width: 1400px) {
    .contact > .content::before {
        width: 80vw;
        height: 70%;
    }
}

.contact > .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    padding-top: 50px;
}

.contact > .content > .box {
    align-items: center;
    justify-content: center;
    margin: auto;
}

#map {
    height: 50vh;
    width: 100vw;
    -webkit-filter: grayscale(100%);
       -moz-filter: grayscale(100%);
        -ms-filter: grayscale(100%);
         -o-filter: grayscale(100%);
            filter: grayscale(100%);
}





/* FOOTER */

.footer {
    display: flex;
    flex-flow: row, nowrap;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.45)
}

.footer div {
    background-image: url('../images/dekorialove_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
}

@media only screen and (min-width: 1400px) {
    .footer {
        font-size: 14px;
    }

    .footer div {
        width: 140px;
        height: 15px;
        margin-right: 5px;
    }
}

@media only screen and (max-width: 1400px) {
    .footer {
        font-size: 10px;
    }

    .footer div {
        width: 90px;
        height: 8px;
        margin-right: 5px;
    }
}




/* fontawesome */
.fas {
    margin-right: 5px;
}