html {
    box-sizing: border-box;
}

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

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

img {
    max-width: 100%;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

button {
    border: none;
    font-family: inherit;
    cursor: pointer;
}

body {
    font-family: "Geologica", sans-serif;
    background-color: var(--grey);
    height: 80vh;
}

:root {
    --black: #1D1D1B;
    --grey: #E9E9E8;
    --green: #198F76;
    --pink: #C15191;
    --rose: #C495C4;
    --light-blue: #799FCC;
}

.container {
    max-width: 1410px;
    margin: 0 auto;
}

.header {
    background-color: var(--grey);
    z-index: 10;
}

.header-container {
    display: flex;
    padding: 30px 55px;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}

.header-nav {
    margin-right: 75px;
    margin-right: 14%;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.burger div {
    background-color: var(--black);
    height: 3px;
    width: 100%;
}

.header-nav-list {
    display: flex;
    gap: 17%;
}

.header-nav-link {
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    white-space: nowrap;
    color: var(--black);
    transition: color 0.3s ease-in-out;
}

.header-nav-link:hover {
    color: #136856;
}

.header-nav-link:active {
    color: #136856;
}

.language-form {
    position: relative;
    right: -2%;
    display: inline-flex;
    gap: 2px;
    border: 1px solid #BFBFBF;
    border-radius: 15px;
    width: 48px;
    height: 26px;
}

.language-form,
.language-label,
.language-label-radio {
    cursor: pointer;
}

.language-label {
    position: relative;
}

.language-label-text {
    position: absolute;
    top: -12px;
    left: 4px;
    font-size: 8px;
    color: #BFBFBF;
    transition: color 0.3s ease;
}

.language-label.selected .language-label-text {
    color: var(--black);
}

.language-label-radio {
    opacity: 0;
    width: 22px;
    height: 22px;
    position: relative;
    top: 1px;
}

.language-label-text::after {
    content: '';
    background-color: var(--green);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    position: absolute;
    top: 13px;
    left: -4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-label.selected .language-label-text::after {
    opacity: 1;
}

.contacts {
    display: flex;
    gap: 18px;
}

.contacts-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.contacts-item circle {
    fill: var(--green);
    transition: fill 0.3s ease-in-out;
}

.contacts-item:hover circle {
    fill: #01A582;
}

.contacts-item:active circle {
    fill: #136856;
}

.contact-page {
    width: 100%;
    height: 100%;
    padding: 35px;
}

.contact-page-container {
    background-color: var(--green);
    border-radius: 30px;
    width: 100%;
    height: 100%;
}

.contact-page-mail {
    padding-top: 125px;
    padding-left: 35px;
    margin-bottom: 90px;
    color: var(--grey);
    font-size: 50px;
    font-weight: 900;
    line-height: 62.5px;
    text-transform: uppercase;
}

.contact-page-text {
    max-width: 50%;
    padding-left: 35px;
    color: var(--grey);
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
}

@media screen and (max-width: 1249px) {
    .burger {
        display: flex;
        position: relative;
        left: 10px;
        z-index: 20;
    }

    .line1,
    .line2,
    .line3 {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .header-nav-list {
        display: none;
    }

    .header-nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        z-index: 15;
        top: 20px;
        left: 0;
        width: 100%;
        gap: 30px;
        padding: 30px 10px 50px;
        background-color: var(--grey);
    }

    .header-nav-active li {
        text-align: center;
    }

    .language-form {
        right: 10px;
    }
}

@media screen and (max-width: 1070px) {
    .container {
        max-width: 700px;
    }

    .header-container {
        height: 100px;
        padding: 17px 0px;
    }

    .contact-page {
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .contact-page-mail {
        font-size: 38px;
        line-height: 49px;
        word-wrap: break-word;
    }

    .contact-page-text {
        max-width: 80%;
        font-size: 18px;
        line-height: 22px;
    }
}

@media screen and (max-width: 600px) {
    .container {
        max-width: 345px;
    }

    .header-container {
        height: 62px;
    }

    .header-logo {
        width: 68px;
    }

    .header-nav-active {
        top: 5px;
        padding: 50px 10px;
    }

    .header-nav-link {
        font-size: 16px;
    }

    .contacts {
        gap: 5px;
    }

    .contacts-item {
        width: 30px;
        height: 30px;
    }

    .contacts-item svg {
        width: 100%;
        height: 100%;
    }

    .contact-page-mail {
        padding-top: 170px;
        padding-left: 24px;
        padding-right: 35px;
        margin-bottom: 80px;
        font-size: 28px;
        line-height: 35px;
        
    }

    .contact-page-text {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 35px;
        font-size: 16px;
        line-height: 20px;
    }
}