:root {
    --accent: #627DA6;
    --accent-light: rgba(90, 126, 170, 0.7);
    --gray: #585858;
    --gray-bg: #f8f8f8;
}

* {
    margin: 0;
    font-family: "Open Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url('./images/background.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100%;
    background-attachment: fixed;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 60vw;
    max-height: 80vh;
}

h1 {
    color: white;
    font-size: 20px;
    font-weight: 400;
}

.link {
    color: var(--accent-light);
    text-decoration: none;
}

.link-white {
    color: white;
    text-decoration: none;
}

.link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.logo {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translate(-50%, 0);
    height: 50px
}

.menu {
    position: relative;
    background: white;
    width: 100%;
    min-height: 25px;
    padding-top: 25px;
    text-align: center;
}

.menu--line {
    border-bottom: 1px solid var(--gray);
}

.menu a {
    display: none;
    margin: 16px 4px;
    padding: 4px;
    color: var(--gray);
    font-size: 14px;
    text-decoration: none;
}

.block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    width: calc(100% - 64px);
    padding: 64px 32px;
    color: var(--gray);
}

.block--accent {
    background: var(--accent);
    color: white;
}

.block--gray {
    background: var(--gray-bg);
}

.block h2 {
    text-transform: uppercase;
    font-weight: 300;
}

.block .line {
    font-weight: 300;
}

.block .content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
    max-width: 1200px;
    font-size: 14px;
    font-weight: 300;
}

.block .content--column-center {
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.block .content--no-gap {
    gap: 2px;
}

.block .content--grid {
    display: grid;
}

.block .content .text {
    flex: 1;
    text-align: left;
}

.block .content .text p {
    padding-bottom: 8px;
}

.block .content--grid-persons {
    display: grid;
}

.block .content .person {
    position: relative;
    width: 225px;
    height: 225px;
    background-color: var(--accent-light);
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.block .content .person:hover,
.block .content .person.person--active {
    filter: grayscale(0%);
}

.block .content .person .person__content {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    position: absolute;
    right: 16px;
    left: 16px;
    bottom: 16px;
    color: white;
    font-size: 20px;
    font-weight: 400;
}

.block .content .person .person__content::after {
    content: '';
    position: absolute;
    background: linear-gradient(0, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
    right: -16px;
    left: -16px;
    bottom: -16px;
    height: 60px;
}

.block .content .person .person__content p {
    z-index: 1;
    flex: 1;
}

.block .content .person .person__content .person__links {
    z-index: 1;
    width: 20px;
}

.block .content .person .person__content .person__links a img {
    width: 20px;
}

.block .content.person-description {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: var(--accent);
    padding: 32px 0;
    color: white;
}

.block .content.person-description--visible {
    display: block;
}

.block .content.person-description p {
    padding: 0 32px;
}

.block .content .grid-block {
    background: var(--gray-bg);
    padding: 16px;
}

.block .content .grid-block h3 {
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.map {
    display: contents;
}

.map img {
    margin-top: 48px;
    width: 90%;
    max-width: 600px;
}

.margin {
    margin: 32px 0;
}

.privacy {
    max-width: 1200px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 300;
}

.privacy p,
.privacy ul {
    margin: 12px 0;
}

.privacy img {
    height: 14px;
    vertical-align: middle;
}

@media screen and (min-width: 560px) {
    h1 {
        font-size: 48px;
    }

    .menu a {
        display: inline-block;
    }

    .block .content--grid-persons {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 800px) {
    h1 {
        font-size: 64px;
    }

    .block .content--row {
        flex-direction: row;
    }

    .block .content--grid {
        grid-template-columns: 1fr 1fr;
    }

    .block .content--grid-persons {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}