/*
 * Инлайн-слой страницы «Новые группы месяца» (/afisha/start.php).
 *
 * Старая CMS вставляла его тегами style прямо в тело страницы. Снят 29.10
 * с питерской боевой, www.spb.schoolrate.ru/afisha/start.php: у неё шрифты
 * уже переведены на Onest, у московской остался Gilroy.
 *
 * Перенесены три блока, которые есть только у этой страницы. Общий блок
 * шапки (176 правил) - это inline-article.css, его подключает каркас
 * вариантом article. Слой карточки школы сюда не годится, хотя правила
 * событий в нём те же: он несёт отступ крошек и заголовка в 7 процентов.
 *
 * Не перенесены правила подписки .event-subscribe: подписку Дарья сняла
 * 28.08 и подтвердила 29.10, блока на странице нет. Стиль тега svg-логотипа
 * (.str0, .fil0, .fil1) и поля счётчика формы добавления школы
 * (input[name="s-count"]) - не слой страницы.
 */

/* блок 1 - отступы рабочей области */
.wrapper .wrapper__main {
    padding: 75px 30px 30px 30px;
}

@media (max-width: 880px) {
    .wrapper .wrapper__main {
        padding: 20px;
    }
}

/* блок 2 - карточка группы и фильтр */
.courses-filter {
    width: 100%;
    margin-left: 0;
}

.title--h1.title--bg {
    padding-left: 4%;
    padding-top: 30px;
}

.event__status {
    position: absolute;
    display: flex;
    align-items: center;
    background: #ccc;
    padding: 6px 20px;
    font-size: 12px;
    color: #fff;
    top: 4px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.event__img-wrapper {
    position: relative;
}

.event__status img {
    margin-right: 5px;
}

.event__status--online {
    background: #038B35;
}

.event__status--offline {
    background: #263163;
}

.event {
    flex-direction: column;
}

.event__top, .event__bottom {
    display: flex;
    border-bottom: 1px solid #e9e9e9;
}

.event__features {
    display: flex;
    align-items: center;
}

.event__feature {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.event__feature span {
    margin-top: 0;
    margin-left: 6px;
color: #909093;
}

.event__adres {
    font-size: 12px;
    line-height: 14px;
    color: #909093;
    max-width: calc(100% - 174px);
}

.event__feature--main {background: #fff;padding: 5px 20px;border-radius: 20px;border: 1px solid #dedede;}

.event__bottom .event__info {
    padding: 0;
}

.event__info .course-general-info__parameter {
    max-width: none;
    text-align: center;
    margin-top: 20px;
}

.event__info .course-general-info__price-wrapper.course-general-info__price-wrapper--inner {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.event__info .btn--registry-red {
    margin-top: 20px;
}

.event__marker {
    position: absolute;
    right: 40px;
    font-size: 12px;
    padding: 5px 20px;
    background: #21BA59;
    border-radius: 20px;
    color: #fff;
}

.event__description {
    position: relative;
}

.course-general-info__details-wrapper {
  width: 87%;
}

.spoiler {
    max-height: 90px;
    overflow: hidden;
    padding-bottom: 20px;
    margin-bottom: 0;
    position: relative;
    cursor: n-resize;
}

.spoiler::after {content: 'Развернуть';display: block;position: absolute;bottom: 0;right: 0;font-size: 12px;color: #c20f1b;border-bottom: 1px dashed;cursor: pointer;}

.spoiler::before {content: '';display: block;position: absolute;width: 100%;height: 20px;bottom: 0;background: #fff;left: 0;}

.spoiler--active {
  max-height:none;
}

.spoiler--active::after {content: 'Свернуть';}

.event:nth-child(2n+1) .spoiler::before {
    background: #f8f8f8;
}

.courses-filter__price-field:last-of-type {
    margin: 0 4px;
}

/* На боевой этот блок не закрыт - следующие правила вкладывались в него.
   Они все уже чем 1400 px, поэтому закрываем сразу: смысл тот же. */
@media (max-width: 1400px) {
    .courses-filter__buttons-wrapper {
        margin-left: auto;
    }
}

@media (max-width: 1023px) {
.results {
    padding: 0 10px 40px;
}

}

@media (max-width:1024px) {
  .course-general-info__details-wrapper {
  width: 100%;
}

.event__adres {
    max-width: 100%;
}

.radio-group__label {
    padding: 8px 5px;
}

.event__top {
    padding-top: 40px;
    flex-direction: column;
}

.event__img-wrapper {
    order: 0;
}

.event__status {
    top: 0;
}

.event__img-wrapper img {
  width: 100%;
}

.event__info {
    order: 3;
    flex-direction: column;
}

.event__bottom {
    flex-direction: column;
    padding-top: 25px;
}

.event__marker {
    position: static;
    margin-bottom: 20px;
    width: 150px;
}

}

/* блок 3 - оформление списка поверх style_new.css */
.smart-desc {
    font-family: 'Onest-Regular', sans-serif;
    padding: 0 0 20px 0;
    font-size: 16px;
}

.smart-desc p {
    font-size: 14px;
}

.smart-desc h2:first-child {
    font-family: 'Onest-Bold', sans-serif;
    margin: 30px 0 20px;
}

.title--h1.title--bg {
    padding: 0;
    margin-bottom: 0;
}

.results {
    background: none;
 padding: 0;
}

.breadcrumbs .breadcrumbs__list-item {
    letter-spacing: 0;
}

h1.title.title--h1 {
    font-family: 'Onest-Heavy', sans-serif;
    font-size: 42px;
    line-height: 120%;
    letter-spacing: 0.03em;
}

.event {
    background: #fff;
    margin-bottom: 20px;
}

.event:nth-child(2n+1), .event {
    background: #fff;
    border: none;
    border-radius: 20px;
    font-family: 'Onest-Medium', sans-serif;
}

.event__bottom {
    border-bottom: 0;
}

section.event {}

.event__description h3 {
    font-family: 'Onest-Bold', sans-serif;
}

.event:nth-child(2n+1) .spoiler::before {
    background: #fff;
}

.event__features {
    margin-top: 10px;
}

.event__big {
    font-family: 'Onest-Black', sans-serif;
}

.another-school__number, .course-general-info__amount, .course-general-info__number, .courses-selection__heading, .courses-selection__link, .full-comparison__add-button, .full-comparison__remove-button {
    font-family: 'Onest-Black', sans-serif;
}

.smart-desc h3 {
    font-family: 'Onest-Bold', sans-serif;
}

.input, .btn {
    font-family: 'Onest-Medium', sans-serif;
}

.course-general-info__details:first-child {
    position: static;
    border-right: 1px solid #e9e9e9;
}

.course-general-info__details:nth-child(3) {
    border-right: 0;
}
