/*
 * MSCH59.RU — balanced vertical spacing
 * Подключать ПОСЛЕ основного CSS темы и после файла типографики.
 */

:root{
  --msch-section-gap:42px;
  --msch-inner-gap:24px;
  --msch-group-gap:28px;
  --msch-card-gap:20px;
}

.frontInfo,
.frontMenu,
.frontLicenses,
.frontNews{
  margin-top:var(--msch-section-gap);
  margin-bottom:var(--msch-section-gap);
}

.frontWork,
.frontLinks{
  padding-top:var(--msch-section-gap);
  padding-bottom:var(--msch-section-gap);
}

.frontInfo__title{margin-bottom:14px}
.frontInfo__text{margin-bottom:var(--msch-inner-gap)}
.frontInfo__buttons{margin-bottom:var(--msch-group-gap)}
.frontInfo__cardText{margin-bottom:18px}

.frontMenu h2{margin-bottom:var(--msch-inner-gap)}
.frontMenu__block{
  margin-bottom:20px;
  padding-top:26px;
  padding-bottom:28px;
}
.frontMenu__block ul{margin-top:16px}
.frontMenu__cards{margin-top:var(--msch-group-gap)}

.frontLicenses__documents h2,
.frontLicenses__rating h2{
  margin-bottom:var(--msch-inner-gap);
}
.frontLicenses__item{margin-bottom:10px}
.frontLicenses__button{margin-top:var(--msch-inner-gap)}

.frontWork h2{margin-bottom:var(--msch-inner-gap)}
.frontWork__row{
  margin-top:16px;
  margin-bottom:22px;
}
.frontWork__info{
  padding-bottom:18px;
  margin-bottom:18px;
}
.frontWork__header{margin-bottom:14px}

.frontNews h2{margin-bottom:var(--msch-inner-gap)}
.frontNews__items{margin-bottom:var(--msch-group-gap)}

.frontLinks h2{margin-bottom:var(--msch-inner-gap)}
.frontLinks__items{
  margin-top:-10px;
  margin-bottom:-10px;
}
.frontLinks__item{
  padding-top:10px;
  padding-bottom:10px;
}

.page{
  padding-top:var(--msch-section-gap);
  padding-bottom:var(--msch-section-gap);
}
.page__asideBlock{margin-bottom:20px}
.page__meta{margin-bottom:24px}

.content > table,
.content > blockquote,
.content > .wp-block-image,
.content > .slider,
.content > .youtube{
  margin-bottom:var(--msch-inner-gap);
}

.document{margin-bottom:14px}
.loadMore{margin-top:var(--msch-group-gap)}

.news__item{padding-top:32px}
.news__items{margin-top:-32px}
.news__header{margin-bottom:var(--msch-inner-gap)}
.news__tags{margin-bottom:18px}

.searchResults{margin-top:var(--msch-section-gap)}
.searchResults__item{margin-top:12px}

.contacts{margin-bottom:var(--msch-section-gap)}
.contacts__title{margin-bottom:14px}
.contacts__contacts{margin-bottom:20px}
.contacts__contact{margin-bottom:10px}

.faq__item{margin-bottom:14px}
.faq__inner{
  margin-top:18px;
  padding-top:18px;
}

@media (max-width:960px){
  :root{
    --msch-section-gap:34px;
    --msch-inner-gap:22px;
    --msch-group-gap:24px;
    --msch-card-gap:16px;
  }

  .frontLicenses__documents{
    margin-bottom:var(--msch-group-gap);
  }
}

@media (max-width:767px){
  :root{
    --msch-section-gap:26px;
    --msch-inner-gap:18px;
    --msch-group-gap:20px;
    --msch-card-gap:12px;
  }

  .frontInfo__text{margin-bottom:18px}
  .frontInfo__buttons{margin-bottom:20px}

  .frontMenu h2,
  .frontLicenses__documents h2,
  .frontLicenses__rating h2,
  .frontWork h2,
  .frontNews h2,
  .frontLinks h2{
    margin-bottom:18px;
  }

  .frontMenu__block{
    margin-bottom:10px;
    padding-top:20px;
    padding-bottom:20px;
  }

  .frontLicenses__documents{margin-bottom:20px}
  .frontLicenses__button{margin-top:18px}

  .frontWork__row{
    margin-top:12px;
    margin-bottom:16px;
  }

  .frontWork__item{margin-top:10px}
  .frontNews__items{margin-bottom:20px}

  .frontLinks__item{
    padding-top:6px;
    padding-bottom:6px;
  }

  .page{
    padding-top:0;
    padding-bottom:26px;
  }

  .page__asideBlock{margin-bottom:12px}

  .news__item{padding-top:22px}
  .news__items{margin-top:-22px}

  .searchResults{margin-top:26px}
  .contacts{margin-bottom:26px}
}
