@font-face {
    font-family: "Montserrat";
    src: url("fonts/sourceserif4.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

:root {
    --scrollbar-width: calc(100vw - 100%);

    --color-background: #ebe7e4;
    --color-ink: #17222b;
    --color-ink-light: #bcb4bc;
    --color-white: #ffffff;
    --color-accent: #fff;
    --color-overlay: rgba(19, 50, 43, 0.5);

    --font-main: "Montserrat", Arial, sans-serif;

    --page-max-width: 1320px;
    --content-width: 950px;
    --mobile-content-width: 100%;
    --mobile-page-gutter: 28px;
    --mobile-page-width: min(100% - 2 * var(--mobile-page-gutter), var(--mobile-content-width));

    --header-height: 80px;
    --page-padding-x: 80px;
    --header-edge-offset: max(var(--page-padding-x), calc((100vw - var(--page-max-width)) / 2) + 7.5px);
    --logo-width: 240px;
    --logo-height: 120px;

    --hero-padding: 53.56%;
    --min-hero-height: 450px;
    --hero-height: 900px;
    --title-size: 32px;
    --title-line-height: 48px;
    --title-letter-spacing: 0.5px;
    --title-control-gap: 60px;

    --project-radius: 0;
    --project-caption-size: 12px;
    --project-caption-line-height: 18px;

    --button-height: 40px;
    --button-padding-x: 24px;
    --button-border-width: 1px;
    --button-font-size: 12px;
    --button-line-height: 18px;
    --button-letter-spacing: 0.5px;
    --button-radius: 999px;

    --project-nav-gap: 9px;
    --project-nav-arrow-size: var(--button-height);
    --project-nav-overview-width: 90px;

    --layout-section-space: 120px;
    --layout-grid-gap: 60px;

    --menu-width: 33.33vw;
    --menu-background: #13322b;
    --menu-padding-top: calc(var(--header-height) - 14px);
    --menu-padding-left: var(--header-height);
    --menu-link-size: 18px;
    --menu-link-line-height: 50px;
    --menu-link-gap: 0px;
    --menu-sub-indent: 0;
    --menu-sub-color: #ae9a64;
    --app-height: 100vh;

    --footer-background-color: #13322b;
}

@media (min-width: 768px) and (max-width: 1350px) {
    :root {
        --page-padding-x: 30px;
        --header-edge-offset: calc(max(var(--page-padding-x), calc((100vw - var(--page-max-width)) / 2) + 15px));
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    :root {
        --hero-height: 600px;
    }
}

@media (max-width: 821px) {
    :root {
        --menu-padding-top: 60px;
        --menu-padding-left: 60px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 30px;
        --header-edge-offset: 30px;
        --logo-width: min(240px, calc(100vw - 60px));
        --logo-height: auto;
        /*
        --hero-padding: 0%;
        --hero-height: 450px;
        */
        --layout-section-space: 80px;
        --project-radius: 0;
        --project-caption-size: 12px;
        --project-caption-line-height: 14px;
        --title-size: 14px;
        --title-line-height: 28px;
        --title-control-gap: 40px;
        --button-height: 40px;
        --button-padding-x: 19px;
        --button-line-height: 14px;
        --project-nav-overview-width: 78px;
        --menu-width: 100vw;
        --menu-padding-top: 30px;
        --menu-padding-left: 30px;
        --menu-link-size: 14px;
        --menu-link-line-height: 50px;
        --menu-link-gap: 0px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.has-menu-open,
html.has-menu-open body {
    overflow: hidden;
/*    background: var(--menu-background);*/
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-ink);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 28px;}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    min-height: 100vh;
    background: var(--color-background);
}

.site-header-wrapper {
    background: var(--color-white);
    padding: 0 var(--page-padding-x);
    width: 100%;
    position: absolute;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    /*align-items: center;*/
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--page-max-width);
    margin: min(80px, var(--header-edge-offset)) auto auto;
}

.site-header__brand {
    /*padding-left: 20px;*/
    width: var(--logo-width);
    margin: 0 auto;
}

.site-header__brand img {
    width: var(--logo-width);
    height: var(--logo-height);
    object-fit: contain;
}

.menu-toggle,
.site-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle {
    flex-direction: column;
    gap: 4px;
}

.menu-toggle__line {
    width: 12px;
    height: 1px;
    background: var(--color-ink);
}

.sections {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-padding-x)));
    margin: 0 auto;
    padding-top: var(--layout-section-space);
}

.hero-media,
.hero-slider {
    position: relative;
    padding: min(var(--hero-padding), var(--hero-height)) 0 0 0;
    min-height: var(--min-hero-height);
    overflow: hidden;
    background: var(--color-background);
}
.hero-slider__slides:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #000 100%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro {
    padding: var(--layout-section-space) var(--page-padding-x) 0;
    text-align: center;
}

.intro__title {
    font-weight: normal;
    margin: 0;
    color: var(--color-ink);
    font-size: var(--title-size);
    line-height: var(--title-line-height);
    letter-spacing: var(--title-letter-spacing);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--button-height);
    padding: 0 var(--button-padding-x);
    border-radius: var(--button-radius);
    font-size: var(--button-font-size);
    line-height: var(--button-line-height);
    letter-spacing: var(--button-letter-spacing);
    text-transform: uppercase;
    border-width: 1px;
    background-color: transparent;
    cursor: pointer;
}

.site-footer--light .button--top.button:hover,
.button:hover {
    z-index: 2000;
}
.button-hover {
    position: relative;
}

.button--top {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
}

.button--top img {
    width: 40px;
    height: 40px;
}

.button--facebook {
    position: absolute;
    left: 75px;
}

.project-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--project-nav-gap);
}

.project-nav__arrow,
.project-nav__overview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-ink);
    color: var(--color-ink);
    font-size: var(--button-font-size);
    line-height: var(--button-line-height);
    letter-spacing: var(--button-letter-spacing);
    text-transform: uppercase;
}

.project-nav__arrow {
    width: var(--project-nav-arrow-size);
    height: var(--project-nav-arrow-size);
    padding: 0;
    border: 0;
    border-radius: 50%;
}

.project-nav__arrow img {
    width: var(--project-nav-arrow-size);
    height: var(--project-nav-arrow-size);
/*    transition: filter 220ms ease;*/
}

.project-nav__arrow:hover,
.project-nav__arrow:focus-visible {
    background-color: var(--menu-background);
}

.project-nav__overview {
    padding: 0 20px;
    height: var(--project-nav-arrow-size);
    border-radius: 999px;
}

.site-footer-wrapper {
    position: relative;
    background: var(--footer-background-color);
}

.site-footer {
    width: min(var(--page-max-width) + 2 * var(--page-padding-x), 100%);
    padding: 0 var(--page-padding-x);
    margin: 0 auto;
    padding-top: 76px;
    padding-bottom: 76px;
    color: var(--color-ink-light);
    font-size: 16px;
    line-height: 28px;
}

.site-footer__copyright {
    font-size: 12px;
    line-height: 14px;
}

.site-footer--light {
    color: var(--color-white);
}

.site-footer--light .button--top {
    border-color: currentColor;
    color: currentColor;
}

.site-footer__actions > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-footer__socials {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
/*    transition: background-color 220ms ease;*/
}

.site-footer__socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.site-footer__socials a:hover img:not(.hover),
.site-footer__socials a img.hover {
    display: none;
}

.site-footer__socials a:hover img.hover {
    display: block;
}

.site-footer p {
    margin: 20px 0 0;
    text-align: right;
}

.site-footer p a {
    transition: color 220ms ease;
}

.contact-content a:not(.button):hover,
.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-accent);
}

.site-footer__actions {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.site-footer__actions-text .project-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: var(--menu-width);
    height: var(--app-height);
    min-height: var(--app-height);
    min-height: -webkit-fill-available;
    padding: var(--menu-padding-top) 0 max(30px, env(safe-area-inset-bottom)) var(--menu-padding-left);
    overflow-y: auto;
    background: var(--menu-background);
    color: var(--color-white);
    transform: translateX(100%);
    transition: transform 450ms ease;
    -webkit-overflow-scrolling: touch;
}

.site-menu.is-open {
    transform: translateX(0);
}

.site-menu__close {
    position: absolute;
    top: min(80px, calc(var(--header-edge-offset) - 1px));
    right: calc(var(--header-edge-offset));
/*
    top: calc( (var(--header-height) / 2) - var(--menu-padding-top) - 7.5px);
    right: calc(max(30px, 100% - var(--page-max-width) / 2 - var(--menu-padding-left)) + 15px);

 */
}

@media (max-width: 1350px) {
    .site-menu__close {
        right: calc(var(--header-edge-offset) + 15px);
    }
}

.site-menu__list,
.site-menu__sublist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu__list {
    display: grid;
    font-weight: normal;
    gap: var(--menu-link-gap);
}

.site-menu a {
    color: var(--color-ink-light);
    font-size: var(--menu-link-size);
    line-height: var(--menu-link-line-height);
    letter-spacing: var(--button-letter-spacing);
    text-transform: uppercase;
}

.site-menu a:hover {
    color: var(--color-white);
}

.site-menu a[aria-current="page"] {
    color: var(--color-accent);
    /*
    text-decoration: underline var(--menu-sub-color);
    text-underline-offset: 5px;
    */
}

.site-menu__sublist {
    display: grid;
    /*
    gap: 8px;
    margin-top: 10px;
    */
    padding-left: var(--menu-sub-indent);
}

.site-menu__sublist a::before {
    content: "•";
    margin-right: 8px;
    /*color: var(--menu-sub-color);*/
}

.splitEven2, .splitEven3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}
.splitEven3 {
    grid-template-columns: repeat(3, 1fr);
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cbc4bc;
    margin: 1em 0;
    padding: 0;
}

@media (max-width: 767px) {
    .site-footer {
        align-items: center;
        /*width: var(--mobile-page-width);*/
        text-align: center;
    }

    .hero-media,
    .hero-slider {
        height: auto;
    }

    .hero-media img {
        height: auto;
        object-fit: contain;
    }

    .intro {
        padding-right: var(--page-padding-x);
        padding-left: var(--page-padding-x);
    }

    .intro__title br {
        display: none;
    }

    .site-footer__actions {
        flex-direction: column;
        justify-content: center;
        gap: 60px;
        align-items: normal;
    }
    .site-footer__actions-text {
        display: block;
        gap: 0px;
        flex-direction: column;
        align-items: center;
    }

    .site-footer__actions > div:last-child {
        align-items: center;
        width: 100%;
    }

    .site-footer__socials {
        justify-content: center;
    }

    .site-footer__actions-text .project-nav {
        position: static;
        transform: none;
    }
    .site-footer p {
        text-align: center;
    }

    .site-footer__copyright {
        line-height: 24px;
    }

    .site-menu {
        height: calc(var(--app-height) + env(safe-area-inset-bottom));
        min-height: calc(var(--app-height) + env(safe-area-inset-bottom));
    }

    html.has-menu-open .site-shell {
        background: var(--menu-background);
    }
}


input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 5px 2px;
    border: 1px solid #1f2933;
    background: transparent;
    color: #1f2933;
    font: inherit;
    margin-bottom: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(31, 41, 51, 0.15);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1f2933;
    cursor: pointer;
}

label {
    cursor: pointer;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sitemap-page {
    max-width: 900px;
}

.sitemap-page__header {
    margin-bottom: 48px;
    text-align: center;
}

.sitemap-page__title {
    margin: 0;
    font-weight: normal;
    color: var(--color-ink);
    font-size: var(--title-size);
    line-height: var(--title-line-height);
    letter-spacing: var(--title-letter-spacing);
    text-transform: uppercase;
}

.sitemap-page__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px var(--layout-grid-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-page__item a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid rgba(23, 34, 43, 0.25);
    color: var(--color-ink);
    font-size: var(--project-caption-size);
    line-height: var(--project-caption-line-height);
    letter-spacing: var(--button-letter-spacing);
    text-transform: uppercase;
}

.sitemap-page__item a:hover,
.sitemap-page__item a:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.onlyOnMobile {
    display: none;
}

@media (max-width: 767px) {
    .sitemap-page__header {
        margin-bottom: 30px;
    }

    .sitemap-page__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .onlyOnMobile {
        display: block;
    }

    .hideOnMobile {
        display: none;
    }

    .site-header__brand {
        padding-left: 0;
    }
    .site-header-wrapper {
        padding: 0 30px;
    }

}
