@import url('https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css');

@font-face {
    font-family: "Campton Light";
    src: url("../fonts/Campton_Light.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Campton Light";
    src: url("../fonts/Campton_Bold.otf") format("opentype");
    font-weight: bold;
}


* {
    box-sizing: border-box;
}

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

body {
    font-family: "Campton Light";
    background-color: #fbfbfb;
    padding-top: 80px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 3;
    height: 93px;
}

#logo img {
    width: 170px;
}

nav.nav-desktop ul li {
    display: inline-block;
    list-style: none;
    margin-left: 8px;
    font-size: 14px;
    position: relative;
}

nav.nav-desktop ul li .nav-border {
    width: 0;
    height: 1px;
    background-color: #000;
    transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
    transform: translateY(4px);
}

nav.nav-desktop ul li:hover .nav-border {
    width: 100%;
}

nav.nav-desktop ul li a {
    transition: .5s;
}

nav.nav-desktop {
    opacity: 1;
    transition: 2s cubic-bezier(0.19, 1, 0.22, 1);
}

nav.nav-desktop.active {
    opacity: 0;
}

.fx {
    display: flex;
}

.fx-1 {
    flex: 1;
}

.space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.line-height {
    line-height: 20px;
}

.container {
    width: 1116px;
    min-width: 1120px;
    margin: 0 auto;
}

main {
    min-height: calc(100vh - 224px);
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 8px 16px;
    outline: none;
    border: none;
    border-bottom: 1px solid #ddd;
    width: 320px;
    font-size: inherit;
    transition: .5s cubic-bezier(0.075, 0.82, 0.165, 1);
    background-color: transparent;
    width: 100%;
    position: relative;
    z-index: 2;
}

button {
    border: none;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
}

input,
textarea {
    padding: 8px 0;
}

.form-control {
    position: relative;
    margin-bottom: 32px;
}

.form-control label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: gray;
    pointer-events: none;
}

textarea:focus+label,
input:focus+label,
input:valid+label {
    top: 0;
    left: 0;
    font-size: 12px;
    color: #000
}

input:focus,
textarea:focus {
    border-color: #000;
}

#home-slider {
    position: relative;
}

#home-slider-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, .75);
    animation: slide-slow 5s;
    animation-iteration-count: infinite;
}

.page-heading {
    font-weight: bold;
    padding: 32px 0;
    font-size: 28px;
    position: sticky;
    top: 84px;
    z-index: 2;
    background-color: #fbfbfb;
}

@keyframes slide-slow {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

#home-slider img {
    width: 100%;
    margin-top: 16px;
}

.grid {
    display: grid;
    grid-template-columns: 360px 360px 360px;
    gap: 20px;
}

.home-project-img {
    overflow: hidden;
    width: 100%;
}

.home-project img {
    width: 100%;
    filter: grayscale(1);
    transition: 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.home-project img:hover {
    filter: grayscale(0);
    transform: scale(1.12);
}

.home-project h2 {
    font-weight: bold;
    margin-top: 8px;
}

.home-project p {
    margin: 4px 0;
    font-size: 14px;
    opacity: .5;
}

.main {
    transition: 2s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateX(0);
}

.main.active {
    transform: translateX(-50%);
}

#btn-close-project-detail {
    width: 64px;
    cursor: pointer;
    position: absolute;
    top: 24px;
    left: 24px;
    transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: .5;
    transform: scale(1);
}

#btn-close-project-detail:hover {
    opacity: 1;
    transform: scale(.8);
}

.project-detail {
    width: 100vw;
    height: calc(100vh - 93px);
    position: fixed;
    left: 100%;
    bottom: 0;
    background-color: #fff;
    z-index: 2;
    transition: 2s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-detail.active {
    left: 0;
}

.swiper-button-next,
.swiper-button-prev {
    filter: grayscale(1);
}

.about-container {
    gap: 24px;
    align-items: flex-start;
}

.about {
    border: 3px solid #000;
    padding: 16px;
    height: 347px;
}

.employee {
    flex: 1;
}

.employee h1 {
    font-weight: bold;
    margin-top: 8px;
}

.employee h2 {
    opacity: .5;
}

.employee a {
    padding: 6px;
}

.employee a:last-child {
    padding-right: 0;
}

.employee img {
    width: 16px;
}

.employee img.staff {
    filter: grayscale(1);
    width: 100%;
}

.services h1 {
    margin-bottom: 16px;
    font-weight: bold;
    font-size: 18px;
}

.services li {
    margin: 8px 0;
    list-style: circle;
    margin-left: 14px;
}

.service-item {
    padding: 24px;
    border: 3px solid #000;
    min-height: 300px;
}

#contacts img {
    width: 36px;
    margin-right: 8px;
}

.contact-item {
    margin-bottom: 32px;
}

footer {
    padding: 32px;
    border-top: 1px solid #ddd;
    margin-top: 32px;
    background-color: #fff;
}

footer .nav-desktop li {
    display: block !important;
}

footer.fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

#footer-logo {
    width: 120px;
}

#contacts {
    align-items: flex-end;
    flex-direction: column;
}

.hide-on-desktop {
    display: none;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-project-info {
    height: 40px;
}

.image-container {
    height: 360px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the area */
    object-position: center;
    /* Centers the image */
}

@media screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .pad-mobile {
        padding: 0 16px;
    }

    .hide-on-mobile {
        display: none;
    }

    .hide-on-desktop {
        display: inherit;
    }

    header {
        height: auto;
        padding: 24px 16px;
    }

    .container {
        width: 100%;
        min-width: auto;
    }

    .grid {
        grid-template-columns: auto;
        gap: 16px
    }

    .grid.home-grid {
        grid-template-columns: 50% 50%;
        gap: 2px;
        padding: 0 4px 0 2px;
    }

    .home-project img {
        filter: grayscale(0);
    }

    .home-project h2 {
        margin: 8px;
    }

    .home-project p {
        font-size: 12px;
        margin: 0 0 0 8px;
    }

    .home-project span {
        font-size: 10px;
        display: block;
        margin-left: 8px;
        margin-bottom: 32px;
    }

    #logo img {
        width: 120px;
    }

    .page-heading {
        padding: 16px;
        font-size: 18px;
        top: 80px;
    }

    #home-slider img {
        margin-top: 0;
    }

    footer {
        padding: 16px;
    }

    #footer-logo {
        width: 80px;
    }

    .project-detail {
        height: calc(100vh - 80px);
    }

    #btn-close-project-detail {
        width: 44px;
        top: 12px;
        left: 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 16px;
    }

    #nav-mobile {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, .95);
        z-index: 4;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
    }

    #nav-mobile.active {
        left: 0;
    }

    #nav-mobile a {
        display: block;
        text-align: center;
        font-size: 20px;
        padding: 16px;
    }

    #btn-close-mobile-menu {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
    }

    #btn-open-mobile-menu {
        width: 32px;
    }

    .contact-container {
        flex-direction: column;
        margin-top: 16px;
    }

    #contacts {
        align-items: flex-start;
        margin-top: 64px;
    }

    .about-container {
        gap: 24px;
        align-items: flex-start;
        flex-direction: column;
    }
}