*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

body {
    background: #dedcde;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.2;
}
a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    color: inherit;
}

.site-page {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    width: 100%;
    min-height: 58px;
    padding: 21px 27px 0;
    z-index: 100;
}

/* LEFT */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    justify-self: start;
}

.desktop-nav a,
.language-switcher a {
    position: relative;
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition:transform .2s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

/* LOGO */

.site-logo {
    justify-self: center;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.2px;
    white-space: nowrap;
}

.language-switcher {
    justify-self: end;
    display: flex;
    gap: 12px;
}

.language-switcher a {
    opacity: .8;
}

.language-switcher a:hover,
.language-switcher a.active {
    opacity: 1;
}

.mobile-nav {
    display: none;
}

.home-hero {
    width: 100%;
    margin-top: 1px;
}


.hero-slogan {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px  0  6px;
    font-size: clamp( 48px, 6.15vw, 92px);
    line-height: .89;
    font-weight: 700;
    letter-spacing: -3px;
    text-transform: uppercase;
}

/* HERO IMAGE */

.hero-image-link {
    display: block;
    width: 100%;
    margin-top: 4px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: clamp(195px, 22vw, 330px);
    object-fit: cover;
    object-position: center 45%;
}

.hero-image-placeholder {
    width: 100%;
    height: 260px;
    margin-top: 4px;
    background: #bbb;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
    padding: 39px 21px 12px;
}


/* HEAD */

.projects-table-head {
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 38px;
    border-bottom: 1px solid #111;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
}

.projects-table-head > div {
    padding: 0 5px;
}

.project-head-title {
    padding-left: 4px !important;
}

.project-row {
    display: block;
    width: 100%;
    border-bottom: 1px solid #111;
}

.project-row:last-child {
    border-bottom: 0;
}

.project-row-desktop {
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 72px;
    transition:  opacity .2s ease;
}

.project-row:hover .project-row-desktop {
    opacity: .55;
}

.project-row-desktop > div {
    padding: 8px 5px;
}

.project-title {
    padding-left: 4px !important;
    font-size: clamp(17px,  1.65vw, 25px);
    line-height: 1.05;
    font-weight: 700;
}

.project-value {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
}

/* MOBILE ROW HIDDEN */
.project-row-mobile {
    display: none;
}

/* LOAD MORE */

.projects-load-more-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-top: 26px;
}


.projects-load-more {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    opacity: .55;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity .2s ease;
}


.projects-load-more:hover {
    opacity: 1;
}

.content {
    display: block;
    width: 100%;
    padding-left: 27px;
    padding-right: 27px;
}

.photo-item {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.photo-item img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}
.photo-hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/*
 * Відео показується лише після того,
 * як JS додасть клас.
 */
.photo-item.video-active .photo-hover-video {
    opacity: 1;
    visibility: visible;
}
.project-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 28px 20px;
    background: #dedcde;
}

.project-navigation-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .2s ease;
}

.project-navigation-link:hover {
    opacity: .5;
}

.project-navigation-arrow {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    transform: translateY(-1px);
}

.project-navigation-prev {
    justify-content: flex-start;
}

.project-navigation-next {
    justify-content: flex-end;
    margin-left: auto;
}
#googleMap {
    height: calc(100dvh - 100px);
}

/* =========================================================
   MOBILE
   ========================================================= */

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

    /* =====================================================
       HEADER
       ===================================================== */

    .site-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        min-height: 215px;
        padding:24px 24px 20px;
        align-content: start;
    }
    .desktop-nav {
        display: none;
    }

    .site-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        font-size: 27px;
        line-height: 1;
        letter-spacing: -.8px;
    }

    .desktop-logo-extra {
        display: none;
    }

    .language-switcher {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 23px;
        padding-top: 8px;
    }

    .language-switcher a {
        font-size: 13px;
    }

    .mobile-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 21px;
        margin-top: 36px;
    }

    .mobile-nav a {
        position: relative;
        font-size: 14px;
        line-height: 1;
        font-weight: 500;
    }

    .mobile-nav a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -4px;
        height: 1px;
        background: #111;
        transform: scaleX(0);
        transform-origin: left center;
    }

    .mobile-nav a.active::after {
        transform: scaleX(1);
    }

    /* =====================================================
       HERO
       ===================================================== */

    .hero-slogan {
        display: none;
    }

    .hero-image-placeholder {
        display: block;
        width: 100%;
        height: 260px;
        overflow: hidden;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* =====================================================
       PROJECTS
       ===================================================== */
    .projects {
        padding:23px 21px 0;
    }
    .projects-table-head {
        display: none;
    }
    .project-row {
        position: relative;
        min-height: 90px;
        border-bottom: 1.5px  solid #111;
    }

    .project-row-desktop {
        display: none;
    }

    .project-row-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 90px;
        padding: 17px  0  15px;
    }

    .project-mobile-content {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 20px;
    }
    .project-mobile-title {
        margin-bottom: 5px;
        font-size: 17px;
        line-height: 1.05;
        font-weight: 700;
        letter-spacing: -.2px;
    }

    .project-mobile-meta {
        overflow: hidden;
        max-width: 100%;
        font-size: 9px;
        line-height: 1.25;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    /* =====================================================
       ARROW
       ===================================================== */
    .project-arrow {
        position: relative;
        flex: 0 0 29px;
        width: 29px;
        height: 29px;
    }

    .project-arrow span {
        position: absolute;
        top: 50%;
        left: 0;
        width: 26px;
        height: 3px;
        border-radius: 10px;
        background: #111;
        transform:
            translateY(-50%);
    }
    .project-arrow::before,
    .project-arrow::after {
        content: '';
        position: absolute;
        right: 0;
        width: 15px;
        height: 3px;
        border-radius: 10px;
        background: #111;
        transform-origin:
            right center;
    }

    .project-arrow::before {
        top: 8px;
        transform: rotate(45deg);
    }
    .project-arrow::after {
        bottom: 8px;
        transform: rotate(-45deg);
    }

    /* =====================================================
       LOAD MORE
       ===================================================== */
    .projects-load-more-wrap {
        justify-content: center;
        padding: 25px 0;
    }
    .projects-load-more {
        font-size: 10px;
    }
    .content {
        display: block;
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================================================
   VERY SMALL
   ========================================================= */

@media (max-width: 360px) {
    .site-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .projects {
        padding-left: 20px;
        padding-right: 20px;
    }
    .project-mobile-title {
        font-size: 16px;
    }
    .project-mobile-meta {
        font-size: 8px;
    }

}
.project-hover-preview {
    position: fixed;
    left: 0;
    top: 0;
    width: 460px;
    height: 330px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition:  opacity .15s ease, visibility .15s ease;
}

.project-hover-preview.is-visible {
    opacity: 1;
    visibility: visible;
}

.project-hover-image {
    position: absolute;
    display: block;
    object-fit: cover;
    opacity: 0;
    transform: translateY(12px) scale(.94);
    transition:  opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
    will-change: transform, opacity;
}

.project-hover-preview.is-visible
.project-hover-image {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .project-hover-preview {
        display: none !important;
    }

}

.photo-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.gallery-image {
    display: block;
    width: 100%;
    height: auto;
}

/* кнопка поверх картинки */

.video {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.play {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(2px);
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform .2s ease,
        background .2s ease;
}

.play:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, .75);
}

/* трикутник PLAY */

.play span {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    transform: translate(-50%, -50%);
}

/* Vimeo player */

.vimeo-player {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    width: 100%;
    height: 100%;
    background: #000;
}

.vimeo-player.is-active {
    display: block;
}

.vimeo-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 767.98px) {
    .play {
        width: 54px;
        height: 54px;
    }

    .play span {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 13px;
    }
}
