:root {
    --primary-color: #000;
    --primary-color-hover: #000;
    --secundary-color: #ef7b45;
    --secundary-color-hover: #f18858;
    --dark-color: #2a2c2b;
    --light-color: #f2f3f4;
    --fancybox-accent-color: #fff;
    --gutter-width: 30px;

    font-size: 10px;
}

/*
 * Defaults
 * --------------------------------------------------
 */
body {
    font-family: 'Spline Sans', sans-serif;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--dark-color);
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.4;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.6rem;
}

p {
    margin-bottom: 2.6rem;
}

strong {
    font-weight: 700;
}

.outer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.outer__container__inner {
    max-width: 1200px;
    margin: 20px 0;
}

a:not(.a-btn) {
    text-decoration: none;
    color: var(--primary-color);
}

a:not(.a-btn):hover {
    text-decoration: underline;
}

a.not__bold {
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
}

hr {
    display: block;
    width: 100%;
    height: 1px;
    margin: var(--gutter-width) 0;
    border: 0;
    border-top: 1px solid var(--light-color);
}

/*
 * Titles
 * --------------------------------------------------
 */
.a-title,
.a-subtitle {
    font-weight: 700;
}

.a-title {
    font-size: 2.8rem;
}

.a-subtitle {
    font-size: 2.2rem;
}

/*
 * Buttons
 * --------------------------------------------------
 */
.a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--gutter-width) / 4) calc(var(--gutter-width) / 2);
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: all 150ms ease-in-out;
}

.a-btn:hover {
    background-color: var(--primary-color-hover);
}

/*
 * Container
 * --------------------------------------------------
 */
.a-container {
    max-width: 1240px;
    margin: auto;
    padding: 0 var(--gutter-width);
}

.a-container--smaller {
    max-width: 1200px;
}

.a-container--centered {
    text-align: center;
}

.blocks__all {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: calc(var(--gutter-width) / 1);
    margin-bottom: 40px;
}

.block {
    border: 1px solid #ddd;
    padding: 30px 30px;
}

.block h2 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 20px;
}

.blocks__contact {
    display: grid;
    background-color: #eee;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: calc(var(--gutter-width) / 1);
    margin-bottom: 40px;
}

.block__contact {
    background-color: #eee;
    padding: 30px 30px;
}

.block__contact u {
    text-decoration: none;
    font-weight: 500;
}

.block__contact__person__link {

}

/*
 * Header
 * --------------------------------------------------
 */
.o-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 40px 0;
}

.o-header__logo {
    width: 250px;
}

.o-header__title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.4;
}

/*
 * Main
 * --------------------------------------------------
 */
.o-main a:not(.a-btn):not(.m-showcase__link) {
    position: relative;
    display: inline-block;
    font-weight: 300;
    text-decoration: none;
    color: var(--primary-color);
}

.o-main a:not(.a-btn):not(.m-showcase__link)::after {
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    content: '';
    transition: all 150ms ease-in-out;
}

.o-main a:not(.a-btn):not(.m-showcase__link):hover::after {
    width: 100%;
}

/*
 * Showcase
 * --------------------------------------------------
 */
.m-showcase__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: calc(var(--gutter-width) / 3);
    padding: 20px 40px 40px 40px;
}

.m-showcase__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-showcase__link {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 67%;
    overflow: hidden;
    transition: all 150ms ease-in-out;
}

.m-showcase__link:hover {
    border-color: var(--primary-color);
}

.m-showcase__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 150ms ease-in-out;
}

/*
 * Footer
 * --------------------------------------------------
 */
.o-footer {
    padding-bottom: var(--gutter-width);
    background: linear-gradient(0deg, rgba(240,240,240,1) 0%, rgba(255,255,255,1) 100%);
}

.o-footer p:last-of-type {
    margin-bottom: 0;
}

.o-footer a {
    text-decoration: none;
    color: var(--dark-color);
}

.o-footer a:hover {
    color: var(--primary-color);
}

.o-footer__icon {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-top: -2px;
    margin-right: 1rem;
}

@media screen and (max-width: 1024px) {
    .blocks__all {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 0;
    }

    .block {
        margin-bottom: 30px;
    }

    .o-header {
        padding: 20px 0 30px 0;
    }

    .blocks__all {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 890px) {
    .blocks__contact {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 0;
    }

    .block__contact {
        background-color: #eee;
        padding: 0px 30px 0 30px;
    }

    .block__contact:first-child {
        padding-top: 30px;
    }

    .block__contact:last-child {
        padding-bottom: 30px;
    }
}

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


    :root {
        --gutter-width: 20px;
        font-size: 10px;
    }

    .o-header {
        padding: 5px 0 20px 0;
    }

    .o-header__logo {
        width: 180px;
    }

    body {
        font-size: 1.4rem;
    }

    .a-title {
        font-size: 2rem;
    }

    .a-subtitle {
        font-size: 1.6rem;
    }

    .o-header__title {
        font-size: 2.4rem;
    }

    .o-footer__icon {
        width: 1.6rem;
        height: 1.6rem;
    }
}
