@font-face {
    font-family: 'RisMontserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 300;
    src: url('fonts/Montserrat-Light.woff2') format('woff2'),
    url('fonts/Montserrat-Light.woff') format('woff');
}
@font-face {
    font-family: 'RisMontserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/Montserrat-Regular.woff2') format('woff2'),
    url('fonts/Montserrat-Regular.woff') format('woff');
}
@font-face {
    font-family: 'RisMontserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('fonts/Montserrat-Medium.woff2') format('woff2'),
    url('fonts/Montserrat-Medium.woff') format('woff');
}
@font-face {
    font-family: 'RisMontserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('fonts/Montserrat-SemiBold.woff2') format('woff2'),
    url('fonts/Montserrat-SemiBold.woff') format('woff');
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Tahoma, Geneva, sans-serif;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h5, p {
    margin: 0;
    font-weight: normal;
}
a {
    text-decoration: none;
    color: #e32329;
    transition: color 0.25s;
}
a:hover,
a:focus {
    color: #9d050b;
    outline: none;
}
a:active {
    color: #8b0106;
    outline: none;
}
button {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    background: none;
    border: none;
    outline: none;
}
.main {
    min-height: 40vh;
    margin-bottom: 60px;
}
.container {
    max-width: 1650px;
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
}

header {
    margin-bottom: 60px;
}
.header {
    min-height: 98px;
    background: url('images/bg_header.svg') repeat top center;
    background-size: auto;
}
.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}
.header__logo-link {
    line-height: 0;
}
.header__logo-img {
    transition: opacity 0.25s;
}
.header__mobile {
    display: none;
}
a .header__logo-img:hover {
    opacity: 0.75;
}
a .header__logo-img:active {
    opacity: 1;
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav__item {
    font-size: 1.2em;
    font-weight: 500;
    text-decoration: none;
}
.nav__item::before,
.nav__item::after {
    display: inline-block;
    opacity: 0;
    transition: transform 0.3s, opacity 0.2s;
}
.nav__item::before {
     margin-right: 10px; content: '[';
     transform: translateX(20px);
 }
.nav__item::after {
     margin-left: 10px; content: ']';
     transform: translateX(-20px);
 }
.nav__item:focus::before,
.nav__item:hover::before,
.nav__item:focus::after,
.nav__item:hover::after {
     color: #E32329;
     transform: none; outline: none; opacity: 1;
 }
.nav__item:not(:last-child) {
     margin-right: 20px;
 }
.nav__item a {
    color: #474747;
}
.nav__item a:hover,
.nav__item a:focus {
     color: #E32329;
 }
.nav__item a:active {
     color: #9d050b;
 }

.burger {
    display: block;
    position: absolute;
    top: 14px;
    left: 15px;
    width: 36px;
    z-index: 300;
    -webkit-user-select: none;
    user-select: none;
    transform: translateY(3px);
}
.burger input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */
    -webkit-touch-callout: none;
}
.burger span {
    display: block;
    width: 36px;
    height: 4px;
    margin-bottom: 9px;
    position: relative;
    background: #474747;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    width 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    opacity 0.55s ease;
}
.burger span:first-child {
    transform-origin: 0% 0%;
}
.burger span:nth-child(3) {
    width: 28px;
}
.burger span:nth-child(4) {
    width: 24px;
}
.burger span:nth-last-child(2) {
    transform-origin: 0% 100%;
}
.burger input:checked ~ span {
    opacity: 1;
}
.burger input:checked ~ span:nth-child(2) {
    width: 40px;
    transform: rotate(45deg) translate(1px, -4px);
}
.burger input:checked ~ span:nth-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}
.burger input:checked ~ span:nth-child(4) {
    width: 40px;
    transform: rotate(-45deg) translate(4px, -4px);
}
.burger input:checked ~ ul {
    transform: none;
}
.burger__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    padding: 30px;
    margin: 0;
    list-style: none;
    background: #e9eef4e8;
    z-index: 200;
    transform-origin: 0 0;
    transform: translate(-100%, 0);
    transition: transform .5s cubic-bezier(.77,.2,.05,1);
}
.burger__list.active {
    transform: translate(0, 0);
}
.burger__list-item {
    padding: 10px 0;
    font-size: 1.25em;
}
.burger__list-item a {
    color: #474747;
    font-weight: 500;
}

.footer {
    background: url('images/bg_footer.svg') no-repeat center center;
    background-size: cover;
    margin-bottom: 30px;
}
.footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid #474747;
}
.footer__logo-link {
     display: flex;
     align-items: center;
     justify-content: center;
     line-height: 0;
 }
.footer__logo-img {
     transition: opacity 0.25s;
 }
.footer__logo-img:hover {
    opacity: 0.75;
}
.footer__logo-img:active {
    opacity: 0.5;
}
.footer__nav {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: space-between;
     padding: 30px 0;
 }
.footer__menu-list {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: flex-start;
     margin: 0;
     padding: 0;
     list-style: none;
 }
.footer__menu-item:not(:last-child) {
     margin-right: 32px;
}
.footer__menu-item a {
    color: #474747;
    font-size: 1.15em;
    transition: color 0.25s;
}
.footer__menu-item:hover {
    color: #E32329;
}
.footer__menu-item:active {
    color: #fc5f5f;
}
.footer__menu-item span {
    color: #474747;
    font-size: 1.15em;
    transition: color 0.25s;
}
.footer__telegram {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    transition: color 0.25s;
    color: #474747;
    font-size: 1.15em;
}
.footer__telegram:hover {
    color: #E32329;
}
.footer__telegram:active {
    color: #fc5f5f;
}
.footer__telegram svg {
    min-height: 28px;
    min-width: 28px;
    margin-right: 6px;
    padding: 3px;
    border: 1px solid #474747;
    border-radius: 50%;
    stroke: #474747;
    transition: stroke 0.25s;
}
.footer__telegram:hover svg {
    stroke: #E32329;
    border-color: #E32329;
}
.footer__telegram:active svg {
    stroke: #fc5f5f;
    border-color: #fc5f5f;
}
.copyright {
    margin-bottom: 30px;
}
.copyright__flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.copyright p {
    font-size: .85em;
    line-height: 1.5em;
}
.copyright a {
    color: #E32329;
    transition: color 0.25s;
}
.copyright a:hover {
    color: #474747;
}
.copyright a:active {
    color: #ff9a9a;
}
@media (max-width: 1200px) {
    .header__logo {
        height: 64px;
    }
    .header__logo-img {
        max-width: 240px;
    }
}
@media (max-width: 992px) {
    .header {
        min-height: 0;
        margin-bottom: 30px;
        background: #f3f7fa;
    }
    .header__row {
        display: none;
    }
    .header__mobile {
        display: block;
    }
    .header__mobile.container {
        padding: 0;
    }
    .header__mobile-row {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 65px;
        padding: 0;
        width: 100%;
    }
    .header__logo-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .header__logo-img {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .footer {
        background: #f3f7fa;
    }
    .footer__row {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px 0;
    }
    .footer__logo-img {
        max-width: 200px;
    }
    .footer__menu-list {
        display: none;
    }
    .footer__phone {
        font-size: 1.5em;
    }
}
@media (max-width: 580px) {
    .footer__row {
        flex-direction: column;
        border-bottom: none;
    }
    .footer__logo-link {
        margin-bottom: 24px;
    }
    .footer__nav {
        justify-content: center;
        padding: 0 0 24px 0;
    }
    .copyright__flex {
        flex-direction: column;
    }
}