@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'MontserratSemibold';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'MontserratBold';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

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

body {
    margin: 0;
    padding: 0;
}

div, p, span, a, h1, h2, h3, h4, textarea, label, li, figcaption {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

strong, b {
    font-family: 'MontserratSemibold', sans-serif;
    font-size: 16px;
}

input:focus, textarea:focus, select:focus { outline: none; border: none; }

.button-event:hover {
    opacity: .9;
}

.button-event:active {
    opacity: .8;
}

header {
    padding: 15px 25px 0;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto 68px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header a {
    display: block;
}

.header-phone, .menu-phone {
    font-family: 'MontserratSemibold', sans-serif;
    font-size: 20px;
    text-decoration: none;
    color: black;
}



.header-phone:visited, .header-phone:hover, .header-phone:active {
    text-decoration: none;
    color: black;
}

nav {
    width: 400px;
}

nav ul {
    display: flex;
    margin-left: 0;
    padding-left: 0;
    list-style: none;
    justify-content: space-evenly;
}

nav ul li {
    display: block;
}

nav ul li a {
    text-decoration: none;
    color: black;
}

nav ul li a:hover {
    text-decoration: underline;
    color: black;
}

nav ul li a:visited, nav ul li a:active {
    color: black;
}

main {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 40px;
    font-family: 'MontserratSemibold', sans-serif;
    margin-bottom: 41px;
    margin-top: 0;
    margin-left: 30px;
    width: 60%;
}

main figure{
    margin: 0;
    position: relative;
}

main figure img {
    width: 100%;
    display: block;
}

main figure figcaption {
    position: absolute;
    bottom: 0;
    color: white;
    font-size: 24px;
    padding-left: 30px;
    padding-bottom: 50px;
    width: 50%;
}

.points-bg {
    background-color: #FE0000;
    width: 100%;
    overflow: hidden;
    margin-bottom: 70px;
}

.points {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    list-style: none;
    display: flex;
    padding: 15px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    white-space: nowrap;
}

.points li {
    text-transform: uppercase;
    font-size: 24px;
    color: white;
    font-family: 'MontserratSemibold', sans-serif;
}

.points .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
    background-color: white;
}

h2 {
    font-size: 48px;
    font-family: 'MontserratSemibold', sans-serif;
    margin-top: 0;
    margin-bottom: 21px;
}

.offer, .features {
    display: flex;
    flex-direction: row;
    padding-left: 30px;
    padding-right: 30px;
    justify-content: space-between;
    margin-bottom: 80px;
}

.left-area {
    width: 40%;
}

.left-area h2 + p {
    margin: 0;
}

.right-area {
    width: 50%;
    display: grid;
    grid-template-columns: 45% 45%;
    justify-content: space-between;
    grid-template-rows: 1fr 1fr;
    row-gap: 50px;
}

.one-offer img {
    margin-bottom: 22px;
}

.one-offer p {
    margin: 0;
}

.about {
    background-color: #434343;
    padding: 40px 30px 53px;
    margin-bottom: 80px;
}

.about h2 {
    color: white;
}

.about p {
    color: white;
    margin-bottom: 15px;
    margin-top: 0;
}

.features h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-family: 'MontserratSemibold', sans-serif;
    font-size: 20px;
}

.contacts {
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 80px;
}

.contact-area {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.contacts h2 {
    margin-bottom: 35px;
}

.contact-card {
    width: 30%;
}

.messengers {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact-card .messengers a {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.line {
    margin-bottom: 28px;
}

.line p {
    margin-top: 0;
    margin-bottom: 0;
}

.line .label {
    margin-top: 0;
    margin-bottom: 9px;
    font-family: 'MontserratSemibold', sans-serif;
}

.line a, .line a:hover, .line a:visited, .line a:active {
    color: black;
    text-decoration: none;
}

.contact-area form input, .contact-area form textarea {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid black;
    font-size: 16px;
    padding: 10px 15px 10px 0;
    width: 100%;
}

.contact-area form {
    display: grid;
    grid-template-columns: 45% 45%;
    row-gap: 50px;
    column-gap: 20px;
    width: 60%;
    justify-content: end;
}

.contact-area form button {
    background-color: #FE0000;
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 10px 29px;
    cursor: pointer;
}

.label-full-line {
    grid-column: span 2;
}

footer {
    padding: 0 30px 30px;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
}

.copyright {
    padding-top: 23px;
    border-top: 1px solid black;
    font-family: 'MontserratSemibold', sans-serif;
    margin: 0;
}

.hamburger-menu {
    display: none;
}

#menu__toggle {
    opacity: 0;
    position: absolute;
}

#menu__toggle:checked ~ .menu__btn > span {
    transform: rotate(45deg);
}
#menu__toggle:checked ~ .menu__btn > span::before {
    top: 0;
    transform: rotate(0);
}
#menu__toggle:checked ~ .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
    visibility: visible;
    right: 0;
}

.menu__btn {
    display: flex;
    align-items: center;
    position: relative;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 3;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: black;
    transition-duration: .25s;

}

.menu__btn > span::before {
    content: '';
    top: -8px;
}
.menu__btn > span::after {
    content: '';
    top: 8px;
}

.menu__box {
    display: block;
    position: fixed;
    visibility: hidden;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: #ECEFF1;
    box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
    transition-duration: .25s;
    z-index: 2;
}

.menu__item {
    display: block;
    padding: 12px 24px;
    color: black;
    font-size: 20px;
    text-decoration: none;
    transition-duration: .25s;
}

.menu__item:hover {
    background-color: #CFD8DC;
    color: black;
    text-decoration: none;
}

.menu__item:active, .menu__item:visited {
    color: black;
    text-decoration: none;
}

.hero-mobile {
    display: none;
}

.stroke-mobile {
    display: none;
}

.bad-request {
    color: red;
    margin: 0;
    font-family: 'MontserratSemibold', sans-serif;
}

.success-request {
    color: green;
    margin: 0;
    font-family: 'MontserratSemibold', sans-serif;
}

@media (max-width: 1280px) {
    .points li {
        font-size: 20px;
    }
}

@media (max-width: 980px) {
    .points li {
        font-size: 14px;
    }

    h1 {
        width: 80%;
    }

    main figure figcaption {
        padding-bottom: 30px;
        font-size: 20px;
        width: 70%;
    }

    .right-area {
        width: 55%;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    header {
        margin-bottom: 38px;
    }

    nav, .header-phone {
        display: none;
    }

    h1 {
        width: 100%;
        margin-left: 0;
        padding-left: 30px;
        padding-right: 30px;
    }

    h2 {
        font-size: 35px;
    }

    main figure figcaption {
        width: 100%;
        padding-left: 30px;
        padding-right: 30px;
        font-size: 16px;
    }

    .points {
        gap: 20px;
    }

    .points li {
        font-size: 12px;
    }

    .points-bg {
        margin-bottom: 50px;
    }

    .offer, .features {
        flex-direction: column;
    }

    .left-area, .right-area {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .hero-mobile {
        display: block;
    }

    .hero-pc {
        display: none;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 32px;
    }

    main figure figcaption {
        font-size: 16px;
    }

    .points {
        animation: running-animation 20s linear infinite;
    }

    .stroke-mobile {
        display: block;
    }

    .left-area {
        margin-bottom: 40px;
    }

    .right-area {
        grid-template-columns: 1fr;
        row-gap: 30px;
        margin-bottom: 0;
    }

    .one-offer {
        display: flex;
    }

    .one-offer img {
        margin-right: 30px;
        margin-bottom: 0;
    }

    .offer, .about, .features {
        margin-bottom: 40px;
    }

    h2 {
        font-size: 28px;
    }

    .contact-area {
        flex-direction: column;
    }

    .contact-card {
        width: 100%;
    }

    .contact-area form {
        width: 100%;
        justify-content: space-between;
        row-gap: 28px;
        display: flex;
        flex-direction: column;
    }

    .contacts {
        margin-bottom: 54px;
    }
}

@keyframes running-animation {
    0% {
        transform: translateZ(0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}