.home main>section:first-child {
  padding-top: 0;
}

.sub-hero {
  padding-top: 0;
}

.rm-header__wrapper {
  font-family: "Montserrat", sans-serif;
  position: relative;
  background: url(../img/header/header-bg.webp) top center no-repeat;
  background-size: cover;
}

.rm-header__top {
  display: flex;
  column-gap: 10px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 34px;
}

.rm-header__logo {
  display: flex;
  column-gap: 19px;
  align-items: center;
}

.rm-header__logo-img {
  min-width: 55px;
  max-width: 95px;
}

.rm-header__logo-text {
  min-width: 200px;
  max-width: 250px;
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: .04em;
}

.rm-header__gis { margin-left: auto; }
.rm-header__meta { margin-left: 23px; }
.rm-header__socials { margin-left: 20px; }
.rm-header__info { margin-left: 10px; }

.rm-header__info-phone { margin-bottom: 4px; }

.rm-header__info-phone a,
.rm-header__menu-item a {
  font-weight: 500;
  font-size: 20px;
  white-space: nowrap;
}

.rm-header__mode {
  color: #585758;
  font-size: 12px;
  text-align: right;
}

.rm-header__button { margin-left: 24px; }

/* Бургер */
.rm-header__button-mobile {
  display: none;
  position: relative;
}

.rm-burger {
  box-shadow: 0 2px 10px rgba(5,11,32,.1);
  border: 1px solid #40a353;
  border-radius: 9px;
  width: 40px;
  height: 40px;
}

.rm-header {
  background: #fff;
}

.rm-burger span {
  position: absolute;
  top: 20px;
  left: 10px;
  background-color: #40a353;
  width: 20px;
  height: 2px;
}

/* Меню */
.rm-header__menu {
  margin-bottom: 70px;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 25px;
}

.rm-header__menu-items {
  display: flex;
  justify-content: space-between;
}

.rm-header__menu-item a {
  font-size: 16px;
  text-align: center;
}

.rm-header__menu-item a:hover {
  color: #40a353;
}

.rm-gis__columns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-column-gap: 7px;
  -moz-column-gap: 7px;
  column-gap: 7px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.rm-gis__column:nth-child(1) {
    min-width: 55px;
}

.rm-gis__text {
    margin-bottom: 3px;
    color: #999;
    font-weight: 500;
    font-size: 10px;
    white-space: nowrap;
}

.rm-gis__stars {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.rm-gis__text strong {
    color: #585758;
}

.rm-header__menu-item a:hover::after {
    background: #40a353;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.rm-header__menu-item a {
    position: relative;
    font-size: 16px;
    line-height: 131%;
    letter-spacing: .04em;
    text-align: center;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    color: #222;
}

.rm-header__menu-item a::after, .rm-header__menu-item a:hover::after {
    display: block;
    position: absolute;
    bottom: -9px;
    width: 100%;
    height: 1px;
    content: "";
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.rm-meta__address, .rm-meta__email {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 5px;
    -moz-column-gap: 5px;
    column-gap: 5px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.rm-meta__address::before {
    background: url('https://doremonta.ru/img/icons/point-icon.svg') no-repeat;
    height: 15px;
}

.rm-meta__address::before, .rm-meta__email::before {
    display: block;
    background-size: contain;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 12px;
    content: "";
}

.rm-meta__address {
    margin-bottom: 4px;
    color: #222;
    font-weight: 500;
    font-size: 12px;
}

.rm-meta__email::before {
    background: url('https://doremonta.ru/img/icons/mail-icon.svg') no-repeat;
    height: 10px;
}

.rm-meta__email a {
    font-weight: 500;
    font-size: 12px;
}

.rm-socials {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 8px;
    -moz-column-gap: 8px;
    column-gap: 8px;
}

.mediumWidth .container {
    max-width: 1600px;
}

.rm-btn {
  position: relative;
  display: inline-block;
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  -webkit-box-shadow: 0 8px 13px 0 rgba(64, 163, 83, .4);
  box-shadow: 0 8px 13px 0 rgba(64, 163, 83, .4);
  border-bottom: 4px #40a353 solid;
  border-radius: 8px;
  background: #05b70b;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  line-height: 130%;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.rm-btn--std {
  padding: 20px 30px 16px;
}

/*  */

@media (max-width: 1500px) {
  .rm-header__logo-text {
      font-size: calc((14px) + 2 * (100vw - 768px) / 732);
  }
}

@media (max-width: 1500px) {
    .rm-header__menu-item a {
        font-size: calc((14px) + 2 * (100vw - 768px) / 732);
    }
}

@media (max-width: 992px) {
    .rm-header__gis {
        display: none;
    }
}

@media (max-width: 1100px) {
    .rm-header__meta {
        display: none;
    }
}

@media (max-width: 1300px) {
    .rm-header__socials {
        display: none;
    }
}

@media (max-width: 992px) {
    .rm-header__info {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .rm-header__info {
        display: none;
        margin-bottom: 10px;
        margin-left: initial;
    }
}

@media (max-width: 768px) {
    .rm-header__button {
        display: none;
    }
}

@media (max-width: 768px) {
    .rm-header__button-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .rm-header__logo-img {
        max-width: 70px;
    }
}

@media (max-width: 768px) {
    .rm-header__logo {
        -webkit-column-gap: 10px;
        -moz-column-gap: 10px;
        column-gap: 10px;
    }
}

@media (max-width: 768px) {
    .rm-header__menu {
        display: none;
        margin-bottom: 30px;
        border-bottom: initial;
        padding-bottom: initial;
    }
}

@media (max-width: 768px) {
    .rm-header__top {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        margin-bottom: 22px;
        border-bottom: 1px solid #d9d9d9;
        padding-top: 12px;
        padding-bottom: 12px;
        position: relative;
        background: #fff;
        z-index: 10;
    }
}

.rm-header__button-mobile .rm-burger::after, .rm-header__button-mobile .rm-burger::before {
    display: block;
    position: absolute;
    -webkit-transition: all .2s;
    transition: all .2s;
    background-color: #40a353;
    width: 20px;
    height: 2px;
    content: "";
}

.rm-header__button-mobile .rm-burger::before {
    top: 12px;
    left: 10px;
}

.rm-header__button-mobile .rm-burger::after {
    top: 28px;
    left: 10px;
}

.rm-header__button-mobile .rm-burger.active::before {
    -webkit-transform: translateY(8px) rotate(45deg);
    -ms-transform: translateY(8px) rotate(45deg);
    transform: translateY(8px) rotate(45deg);
}

.rm-header__button-mobile .rm-burger.active::after {
    -webkit-transform: translateY(-8px) rotate(-45deg);
    -ms-transform: translateY(-8px) rotate(-45deg);
    transform: translateY(-8px) rotate(-45deg);
}

.rm-header__button-mobile .rm-burger.active span {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

@media (max-width: 768px) {
    .rm-header__mobile.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

.rm-header__mobile {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    padding-top: 110px;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 5;
}

@media (max-width: 768px) {
    .rm-header__mobile.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

.rm-header__mobile .rm-header__mobile-menu {
    margin-bottom: 30px;
}

.rm-header__mobile .rm-header__mobile-info {
    margin-bottom: 10px;
}

.rm-header__mobile .rm-header__mobile-gis, .rm-header__mobile .rm-header__mobile-meta, .rm-header__mobile .rm-header__mobile-socials, .rm-how-work__title {
    margin-bottom: 30px;
}

.rm-header__mobile .rm-header__mobile-gis, .rm-header__mobile .rm-header__mobile-meta, .rm-header__mobile .rm-header__mobile-socials, .rm-how-work__title {
    margin-bottom: 30px;
}

.rm-header__mobile .rm-header__mobile-gis, .rm-header__mobile .rm-header__mobile-meta, .rm-header__mobile .rm-header__mobile-socials, .rm-how-work__title {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .rm-header__menu-items {
        row-gap: 12px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .rm-header__mode {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .rm-meta {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin-left: initial;
    }
}

@media (max-width: 768px) {
    .rm-header__mobile.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

.rm-header__mobile {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    padding-top: 110px;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 5;
}

.breadcrumbs span:first-child {
  display: none;
}

.catalog__categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog__categories .product-category img {
  max-width: 100%;
  width: initial;
}

@media (max-width: 768px) {
  .catalog__categories {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}