* {
    padding: 0px;
    margin: 0px;
    border: 0px;
}

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

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

:root {
    --black: #141414;
    --yellow: #FFD100;
    --gray: #58585A;
    --border: #ECECEC;
}

html,
body {
    height: 100%;
    min-width: 320px;

    min-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /*
    >main {
        flex: 1 1 auto;
    } */
}

main {
    position: relative;
    z-index: 25;
    height: 100%;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
}

body {
    color: var(--black);
    line-height: 1;
    font-family: "Roboto Condensed", serif;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    min-height: 100dvh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow-x: hidden !important;
}

input,
button,
textarea {
    font-family: "Roboto Condensed", serif;
    font-size: inherit;
}

button {
    cursor: pointer;
    color: inherit;
    background-color: inherit;
}

a {
    color: inherit;
}

a:link,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

section {
    display: block;
    ;
}

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

.container {
    width: 100%;
    max-width: 1392px;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
}

h1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    color: var(--black, #141414);
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;

    &:not(:last-child) {
        margin-bottom: 16px;
    }
}

h2 {
    color: var(--black);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;

    &:not(:last-child) {
        margin-bottom: 16px;
    }
}

button {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 12px;
    min-height: 32px;
    padding: 2px 16px;
    color: var(--black);
    border: 1px solid white;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;

    .icon {
        width: 24px;
        height: 24px;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    img {
        width: 100%;
        height: 100%;
        -o-object-fit: scale-down;
        object-fit: scale-down;
    }

    @media (any-hover: hover) {
        &:hover {
            border-color: var(--yellow);
        }
    }

    &:focus {
        border-color: var(--yellow);
    }

    &.active {
        border-color: var(--yellow);
        cursor: default;
        pointer-events: none;
    }
}

a {
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;

    @media (any-hover: hover) {
        &:hover {
            color: var(--yellow);
        }
    }

    &:focus {
        color: var(--yellow);
    }
}

img {
    display: block;
    height: auto;
}

.yellow-text {
    color: var(--yellow);
}

.text {
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.label {
    color: var(--gray);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.hero {
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-row {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.hero-content {
    width: 67%;
}

.hero-img {
    padding-top: 128px;
    width: 33%;

    img {
        width: 100%;
    }
}

.languages {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px;
}

.contacts-item {
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);

    &:first-child {
        border-top: 1px solid var(--border);
    }
}

.gallery {
    &:not(:last-child) {
        margin-bottom: 32px;
    }

    img {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 60px;
    }

}

@media (min-width: 992px) {
    .languages {
        position: absolute;
        top: 0;
        right: 0;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }

    .gallery {
        display: -ms-grid;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 5px;
    }
}

@media (max-width: 991.98px) {
    h1 {
        position: relative;
        padding-right: 90px;
        font-size: 38px;
        line-height: 0.84;

        &::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 70px;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 70 92" fill="none"><path d="M28.0304 18.1583C37.6611 8.46678 53.3237 8.46678 63.0051 18.1583L70 11.1192C56.4663 -2.49994 34.5185 -2.49994 20.9848 11.1192C7.45112 24.7383 7.45112 46.8248 20.9848 60.4439L28.0304 53.4048C18.349 43.6623 18.349 27.9008 28.0304 18.1583ZM49.0152 32.2875L42.0203 39.3266C51.651 49.0181 51.651 64.8306 42.0203 74.5221C32.3389 84.2647 16.6763 84.2647 6.99493 74.5221L0 81.5612C13.5337 95.1804 35.4815 95.1804 49.0152 81.5612C62.5489 67.9421 62.5489 45.8556 49.0152 32.2875Z" fill="%23FFD100"/></svg>') center no-repeat;
        }

        &:not(:last-child) {
            margin-bottom: 19px;
        }
    }

    h2 {
        font-size: 16px;

        &:not(:last-child) {
            margin-bottom: 10px;
        }
    }

    .hero {
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-img {
        display: none;
    }

    .languages {
        &:not(:last-child) {
            margin-bottom: 24px;
        }
    }

    .gallery {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;

        &:not(:last-child) {
            margin-bottom: 14px;
        }
    }

    .gallery-img {
        width: 50%;
        border: 1px solid white;

        img {
            width: 100%;
            aspect-ratio: 160 / 140;
            -o-object-fit: cover;
            object-fit: cover;
        }
    }

    .contacts-item {
        padding-top: 16px;
        padding-bottom: 16px;

        &:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }
    }

    a,
    .text {
        font-size: 15px;
        line-height: 20px;
    }
}

@media (max-width: 575.98px) {
    .languages {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .languages-btn {
        width: calc(50% - 2px);
    }
}