/*
Theme Name: minipolis
Version: 1.0
Description: minipolis шаблон
Author:
Author URI:
*/

/* Посты ГРИДами
 * ========================*/
.post__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 25px;
}

.post__grid .item {
    margin: 0;
    width: 100%;
}

/* на главной */
.sidebar__right--main .info-section {
    display: block;
}

.sidebar__right--main .info-section__list {
    padding: 0;
    padding-top: 20px
}

@media (min-width: 768px) {
    .post__grid--main {
        margin: 50px 0;
    }
}

@media (max-width: 999px) {
    .sidebar__right--main {
        grid-column: 1/-1;
        margin-bottom: 50px;
    }
}

@media (min-width: 1000px) {
    .sidebar__right--main {
        grid-column: 3/4;
        grid-row: 1/3;
    }
}


@media (min-width: 1300px) {
    .sidebar__right--main {
        grid-column: 4/5;
    }
}

/* СТАТИСТИКА
 * ============*/
.page-id-2232 h1 {
    margin-bottom: 1em;
    text-align: center;
}

.page-id-2232 .statistika__title {
    color: #27272b;
    margin-bottom: 1em !important;
}

.statistika__title a {
    margin-left: 20px;
    opacity: 0.2;
}
.statistika__title a:hover {
    opacity: 0.5;
}

.statistika {
    padding: 20px 10px;
    margin-bottom: 30px;
    border-radius: 10px;
    min-width: 950px;
    overflow-x: auto !important;
}

/* по шарингу */
.post__item {
    padding: 15px 10px;
    display: flex;
    align-items: center;
    cursor: default;
    position: relative;
}
.post__item:hover {
    background: #fff;
}
.post__item:not(:last-child) {
    border-bottom: 1px solid rgba(141, 118, 190, 0.1);
}

.post__title {
    flex-grow: 10;
}

[class*='post__sharing'] {
    position: relative;
    text-align: right;
    min-width: 70px;
    line-height: 20px;
}

.post__sharing--total {
    color: #008996;
    /*     min-width: 40px; */
    margin-left: 10px;
    text-align: right;
    font-size: 24px;
}

[class*='post__sharing']::before {
    position: absolute;
    right: 0;
    bottom: calc(100% + 5px);
    width: 100%;
    text-align: right;
    font-size: 10px;
    color: #ccc;
    line-height: 1;
}

.post__item:not(:first-child)
[class*='post__sharing']::before {
    opacity: 0;
}

.post__item:hover:not(:first-child)
[class*='post__sharing']::before {
    opacity: 1;
}

.post__sharing--fb::before {
    content: 'ФБ';
}
.post__sharing--vk::before {
    content: 'ВК';
}
.post__sharing--ok::before {
    content: 'Ок';
}
.post__sharing--total::before {
    content: 'Всего';
}



/* по пользователям */
.statistika .сompetitor__list {
}

.statistika .сompetitor__item {
    padding: 10px;
}

.statistika .сompetitor__item:hover {
    background: #fff;
}

.statistika .сompetitor__avatar img {
    width: 35px;
    height: 35px;
    border: none;
    box-shadow: none;
}

.competitor__user {
    flex-grow: 10;
}

.сompetitor__email {
    font-size: 12px;
    color: #ccc;
}

.statistika .сompetitor__item::before, .statistika .сompetitor__name {
    font-size: 20px;
}

.statistika .сompetitor__points--total {
    color: #008996;
}


.сompetitor__activity > span {
    display: inline-block;
    min-width: 70px;
    position: relative;
    text-align: right;
}

.сompetitor__item
.сompetitor__activity > span::before {
    position: absolute;
    right: 0;
    bottom: calc(100% + 5px);
    width: 100%;
    text-align: right;
    font-size: 10px;
    color: #ccc;
    line-height: 1;
}

.сompetitor__item:not(:first-child)
.сompetitor__activity > span::before {
    opacity: 0;
}

.сompetitor__item:hover:not(:first-child)
.сompetitor__activity > span::before {
    opacity: 1;
}

.сompetitor__item .сompetitor__activity__like::before {
    content: 'лайки';
}
.сompetitor__item .сompetitor__activity__repsot_postcard::before {
    content: 'открытки';
}
.сompetitor__item .сompetitor__activity__repsot_video::before {
    content: 'видео';
}
.сompetitor__item .сompetitor__activity__review::before {
    content: 'отзывы';
}
.сompetitor__item .сompetitor__activity__check::before {
    content: 'чеки';
}
.сompetitor__item .сompetitor__activity__dop::before {
    content: 'доп.';
}


@media (max-width: 1200px) {
    .competitor__user {
        display: flex;
        flex-direction: column;
    }
    .сompetitor__email {
        margin: 0 25px;
    }
}


/* Кнопка "Акция" на плитках постов */
.has__promo .item__content__header {
    flex-wrap: wrap;
}

.has__promo .item__title {
    width: 100% !important;
}

.item__content__header__top {
    margin-bottom: 10px;
    width: 100%;
}

.item__content__header__top .item__icon {
    margin-bottom: 0;
}

.item__content__header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ОТКРЫТКИ НА ГЛАВНОЙ
 * =================*/
.postcard__grid {
    margin: 30px 10px;
}

.postcard__grid .container {
    overflow: hidden;
}

.postcard__grid h2 {
    text-align: center;
    margin-bottom: 1em;
}
.postcard__grid h1 {
    margin-bottom: 0.5em;
}

.postcard__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: -2%;
}

.item__postcard {
    flex-basis: 23%;
    position: relative;
    margin-right: 2%;
    margin-bottom: 2%;
}

.item__postcard:hover {
    opacity: 0.95;
}

.postcard__more_btn__wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px
}

.postcard__more_btn {
    display: block;
    text-decoration: none;
    color: #8D76BE;
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 20px;
}


@media (max-width: 500px) {
    .postcard__grid {
        margin-top: 0 !important;
    }
    .postcard__grid h2 {
        font-size: 22px;
    }
    .item__postcard {
        flex-basis: 48%;
        margin-bottom: 15px;
    }
}

@media (max-width: 360px) {
    .item__postcard {
        flex-basis: 100%;
    }
}



/* ФОРМА ДЛЯ ОБНОВЛЕНИЯ ACF
 * ==================*/
.acf__form {
    background: #fff7da;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
}

.acf__form form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.acf__form input[type="url"] {
    background: #fff !important;
    border-radius: 3px !important;
    padding: 10px;
    width: 300px;
    margin: 10px 0;
    max-width: 100%;
    border: 2px solid #FAC700;
    flex-grow: 10;
    margin-right: 10px
}

.acf__form button{
    padding: 12px 25px;
    border-radius: 3px;
    background: #FAC700;
    color: #363636;
    cursor: pointer;
}

.acf__form button:hover {
    opacity: 0.95;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.acf__form__title h3 {
    margin-bottom: 0 !important;
    color: #27272b !important;
}

.acf__form__title p {
    margin-top: 0;
    margin-bottom: 10px !important;
    font-size: 14px !important;
}

.acf__form__rate__info {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.acf__form__rate__info b {
    font-size: 14px !important;
}

.acf__form__title__inst {
    background: #ffeeb2;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px !important;
}
.acf__form__title__inst p:last-child {
    margin-bottom: 0 !important;
}

.acf__form__title__inst a {
    text-decoration: none !important;
    font-weight: bold;
}
.acf__form__title__inst a:hover {
    opacity: 0.9;
}

.acf__form__message {
    margin-top: 10px;
    position: relative;
}

.acf__form__message::before {
    content: "\f348";
    margin-right: 5px;
    font-family: 'Dashicons';
    vertical-align: top;
}

.acf__form__message--error {
    color: #aa0303;
}

.acf__form__message--success {
    color: #09c701;
}

.acf__form__message--success + .acf__form {
    display: none;
}

/* ФОРМЫ для участия в акции
 * ===============*/
.participation .login__modal__form {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.promo__info__form {
    background: #FFF7DA;
    padding: 10px;
    font-size: 14px;
}

.promo__info__form p:last-child {
    margin-bottom: 0;
}
.promo__info__form p:first-child {
    margin-top: 0;
}

.participation input:focus {
    outline: 1px solid #518DDD !important;
}

.participation .forminator-button-submit {
    background-color: #518DDD !important;
}


.no__login__modal__title {
    margin: 25px 0;
    font-size: 20px;
}

.no__login__modal a {
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
    background: #8D76BE;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 5px 10px;
    padding-bottom: 7px;
    margin: 10px 0;
}

.no__login__modal a[href*="#login"] {
    background: #518DDD;
}


/* Стр.ПОИСКА
 * =================*/
.search-no-results .template .container {
    padding: 0 15px;
}

.search-no-results .searchform {
    margin-bottom: 30px;
}

.search-no-results .searchform input#s {
    background: #f2f2f2 !important;
    border-radius: 3px !important;
    padding: 10px;
    width: 300px;
    margin: 10px 0;
    max-width: 100%;
}

.search-no-results .searchform input#s:focus {
    box-shadow: 0 0 0 2px red !important;
    border: 2px solid: red !important;
}

.search-no-results .searchform #searchsubmit {
    padding: 10px 25px;
    border-radius: 3px;
    background: #FAC700;
    color: #363636;
    cursor: pointer;
}

.search-no-results .searchform #searchsubmit:hover {
    opacity: 0.95;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.search__item__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search__item__text p {
    margin-bottom: 0;
}

.search__item__text a {
    display: block;
}

/* скрываем лишние стр. */
.search__item[data-id="1797"],
.search__item[data-id="1650"],
.search__item[data-id="1477"] {
    display: none;
}


/* ==== */
.template {
    position: relative;
}

/* ВХОД-РЕГИСТРАЦИЯ на конкурс
 * ===========================*/
.login__modal__wrapper {
    position: fixed;
    z-index:999999;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
    transition: 0.2s;
    opacity: 0;
    pointer-events: none;
}

.login__modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.login__modal {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    max-width: 95%;
    transform: translatey(-100%);
    transition: 0.2s;
}

.login__modal__wrapper:target {
    opacity: 1;
    pointer-events: auto;
}

.login__modal__wrapper:target .login__modal {
    transform: translatey(0);
}

.login__modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login__modal__title {
    font-size: 20px;
    padding-right: 15px;
}

.login__modal__close:hover {
    opacity: 0.5;
}

.login__modal__form {
    border-top: 1px solid rgba(141, 118, 190, 0.1);
    border-bottom: 1px solid rgba(141, 118, 190, 0.1);
    margin: 15px 0;
    padding: 15px 0;
}

.login__modal .user-registration,
.login__modal .ur-frontend-form {
    padding: 0;
    border: none;
    margin: 0 !important;
}

.login__modal .form-row {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

.login__modal .ur-field-item {
    margin-bottom: 0 !important;
}


.user-registration .input-text {
    background: #f2f2f2;
    border-radius: 3px !important;
}

.user-registration .input-text:focus {
    box-shadow: 0 0 0 2px #8D76BE;
}

.user-registration .ur-submit-button {
    margin-right: 0;
    border-radius: 30px;
    background: #8D76BE;
}

.login__modal .ur-submit-button:hover {
    opacity: 0.85;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.login__modal .user-registration-error {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    padding: 0px 5px;
    width: 100%;
}

.social__login {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social__login__title {
    margin-bottom: 15px;
}



.social__login .theChampLogin {
    border-radius: 3px;
    margin: 5px;
}

.social__login .theChampLogin:hover {
    opacity: 0.9;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

/* логин */
.login__modal .user-registration-form-row > label {
    font-weight: bold;
}

#login .login__modal .input-text:focus {
    box-shadow: 0 0 0 2px #518DDD;
}
.user-registration-Button,
.user_registration_profile_picture_upload {
    color: #fff;
    border-radius: 30px;
    background: #518DDD;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 10px;
}

.login__modal .user-registration-Button:hover {
    opacity: 0.9;
}

.login__modal .user-registration-Button ~ label {
    display: none !important;
}

.login__modal .lost_password a {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #518DDD;
}

.login__modal__already__login {
    text-align: center;
    margin: 50px 0;
    font-size: 20px;
    color: green;
}

.login__modal__already__login a {
    display: inline-block;
    margin: auto;
    margin-top: 15px;
    padding: 10px 20px;
    background: #27272b;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
}

/* регистрация через соцсети */
#TB_ajaxContent {
    height: auto !important;
}

#TB_window .screen-reader-text {
    display: none;
}

#TB_ajaxContent input {
    background: #f2f2f2;
}

@media (max-width: 500px) {
    .login__modal__title {
        font-size: 16px;
        padding-right: 10px;
    }

    .login__modal__title span {
        display: none;
    }

    .login__modal .ur-label {
        font-size: 12px !important;
        margin: 5px 0 !important;
    }

    .login__modal .ur-submit-button {
        font-size: 12px;
    }

    .social__login__title {
        font-size: 14px;
    }
}


/* Стр. КОНКУРС
 * ============*/

/* рейтинг в шапке */
.header__profile {
    display: flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 15px;
    animation-name: rubberBand;
    animation-delay: 3s;
    animation-duration: 0.5s;
    position: relative;
    overflow: hidden;
    padding: 1px;
    font-size: 16px;
}

.header__profile__avatar {
    margin-right: 10px;
    position: relative;
}
.header__profile__avatar::after {
    content: '\f327';
    font-size: 25px;
    font-family: 'Dashicons';
    color: #363636;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FAC700;
    width: calc(100% - 5px);
    height: calc(100% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
    opacity: 0;
}

.header__profile:hover .header__profile__avatar::after {
    opacity: 1;
}

.header__profile__avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #008996;
    margin: 1px;
}

.header__profile__name {
    display: block;
    font-weight: bold;
    color: #363636;
    margin-bottom: 5px;
}

.header__profile__points__label {
    color: rgba(54, 54, 54, 0.5);
}

.header__profile__points {
    color: #008996;
    position: relative;
}

.header__profile__points::after {
    content: '(' attr(data-total-rating) ')';
    color: #ccc;
    padding-left: 3px;
    font-size: 12px;
    vertical-align: middle;
}

.header__profile__info {
    position: relative;
}

.header__logout {
    color: #E75431;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-500%);
    opacity: 0;
    transition: 0.2s;
}

.header__profile:hover 	.header__logout {
    transform: translateY(-50%);
    opacity: 1;
}

.header__profile__name,
.header__profile__points__wrapper {
    transition: 0.2s;
}

.header__profile:hover .header__profile__name,
.header__profile:hover .header__profile__points__wrapper {
    opacity: 0;
    transform: translateY(500%);
    transition: 0.5s;
}

@media (max-width: 500px) {
    .header__profile {
        display: none;
    }
}


/* общее */
body .template-competition {
    padding: 0;
}

.template-competition .container {
    padding: 50px 15px;
}

.template-competition h2 {
    font-size: 42px;
}

.template-competition .container > h2 {
    text-align: center;
    margin-bottom: 1em;
}

@media (max-width: 1200px) {
    .template-competition h2 {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    .template-competition h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body .template-competition {
        margin-top: 0;
    }
    .template-competition .container {
        padding: 30px 15px;
    }
}

@media (max-width: 600px) {
    .page-template-page-competition header {
        margin-bottom: 0;
    }
    .template-competition h2 {
        font-size: 22px;
    }
    .template-competition h2 br {
        display: none;;
    }
}


/* приглашение */
.competition__invite {
    background: #008996;
    color: #fff;
}

.template-competition .competition__invite .container {
    padding: 0 15px;
}

.competition__invite a {
    color: #fff;
}

.competition__invite__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.competition__invite__col--img,
.competition__invite__col--desc {
    flex-basis: 48%;
}

.competition__invite__col--img {
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
    padding-top: 20px;
}

.competition__invite__col--desc {
    padding: 20px 0;
}

.competition__invite__col--desc p {
    line-height: 1.4;
}

@media (max-width: 900px) {
    .competition__invite__col--desc {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .competition__invite__col--img,
    .competition__invite__col--desc {
        flex-basis: 100%;
    }

    .competition__invite__col--desc {
        padding: 20px 15px;
    }

    .competition__invite__col--img {
        order: 2;
    }
}

/* регистрация */
.competition__reg  {
    background: rgba(250, 199, 0, 0.1);
    text-align: center;
}

.competition__reg h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.competition__reg__btns {
    display: flex;
    justify-content: center;
    align-items: center;
}


.reg__social__link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FAC700;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 45%;
    margin-right: 20px;
    transition: all 0.2s linear;
}

.reg__social--vk {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/vk.svg);
}
.reg__social--fb {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/soc_fb.svg);
}
.reg__social--inst {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/soc_inst.svg);
}

.competition__link_reg {
    height: 60px;
    border-radius: 30px;
    background-color: #FAC700;
    transition: all 0.2s linear;
    display: inline-flex;
    align-items: center;
    padding: 20px 45px;
    text-transform: uppercase;
    color: #363636;
    text-decoration: none;
}

.reg__social__link:hover,
.competition__link_reg:hover{
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}
.reg__social__link:active,
.competition__link_reg:active{
    transform: scale(0.95);
    transition: 0.1s !important;
}

.competition__link_login {
    text-decoration-line: underline;
    color: #363636;
    opacity: 0.5;
    margin-top: 30px;
}

.competition__link_login:hover {
    opacity: 1;
}


@media (max-width: 600px) {
    .competition__reg__btns {
        flex-wrap: wrap;
    }
    .reg__social__link {
        width: 48px;
        height: 48px;
    }
    .reg__social__link:last-child {
        margin-right: 0;
    }

    .competition__link_reg {
        height: 48px;
        margin-bottom: 20px;
    }

    .reg__social {
        order: 2;
        flex-basis: 100%;
    }
}


/* задания */
.competition__task__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.competition__task__item {
    background: #008996;
    border-radius: 20px;
    color: #fff;
    padding: 35px;
    flex-basis: 49%;
    width: 100%;
    margin-bottom: 2%;
    cursor: default;
}

.competition__task__item:nth-child(2) {
    background: #FAC700;
}
.competition__task__item:nth-child(3) {
    background: #E75431;
}
.competition__task__item:nth-child(4) {
    background: #518DDD;
}
.competition__task__item:nth-child(5) {
    background: #8D76BE;
    margin-left: auto;
    margin-right: auto;
}

.competition__task__item:hover {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
}

.competition__task__point {
    display: inline-block;
    background: rgba(54, 54, 54, 0.2);
    border-radius: 30px;
    padding: 10px 20px;
    margin-bottom: 15px;
}

.competition__task__content {
    display: flex;
    justify-content: space-between;
}

.competition__task__content__text {
    width: calc(100% - 150px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.competition__task__content__icon {
    width: 150px;
    display: flex;
    justify-content: flex-end;
}

.competition__task__name {
    font-weight: bold;
    font-size: 24px;
}

.competition__task__btn {
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFFFF;
    display: inline-block;
    padding: 20px 35px;
    border: 1px solid;
    border-radius: 30px;
    margin-top: 20px;
}

.competition__task__item:hover .competition__task__btn {
    animation-name: tada;
    animation-duration: 0.5s;
}
.competition__task__btn:hover {
    animation: none !important;
}

.competition__task__btn:active {
    transform: scale(0.95);
    transition: 0.1s;
}

@media (max-width: 1200px) {
    .competition__task__content__text {
        width: calc(100% - 110px);
    }
    .competition__task__content__icon {
        width: 110px;
    }
    .competition__task__content__icon img {
        width: 80px;
        height: 80px;
    }
    .competition__task__point {
        font-size: 14px;
    }
    .competition__task__name {
        font-size: 20px;
    }

    .competition__task__btn {
        padding: 15px 25px;
    }
}


@media (max-width: 1024px) {
    .competition__task__name {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .competition__task__item {
        flex-basis: 100%;
    }
    .competition__task__name {
        font-size: 20px;
    }
}


@media (max-width: 400px) {
    .competition__task__item {
        text-align: center;
        margin-bottom: 20px;
    }
    .competition__task__content {
        flex-wrap: wrap;
        justify-content: center;
    }
    .competition__task__content__text {
        width: 100%;
        order: 2;
        align-items: center;
    }
    .competition__task__content__icon {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* Рейтинги */
.competition__rating h2 {
    margin-bottom: 10px !important;
}
.competition__count {
    font-size: 16px;
    color: #ccc;
    text-align: center;
    margin-bottom: 30px;
}

.competition__rating {
    background: #F9F8FC;
    counter-reset: item 0;
}


.сompetitor__item {
    padding: 20px 0;
    display: flex;
    align-items: center;
    cursor: default;
    position: relative;
}

.сompetitor__item::before {
    content: counter(item, decimal) '.';
    counter-increment: item 1;
    color: #363636;
    margin-right: 10px;
    min-width: 30px;
}

.сompetitor__item:not(:last-child) {
    border-bottom: 1px solid rgba(141, 118, 190, 0.1);
}

.сompetitor__avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #F9F8FC;
    box-shadow: 0 0 0 1px #008996;
}

.сompetitor__name {
    margin: 0 25px;
    flex-grow: 10;
    color: #363636;
}

.сompetitor__points {
    color: #008996;
    position: relative;
    text-align: right;
    min-width: 40px;
}

.сompetitor__points--total {
    color: #ccc;
    min-width: 70px;
    margin-left: 10px;
    text-align: right;
}

.сompetitor__item:first-child .сompetitor__points::before {
    content: 'неделя';
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 100%;
    text-align: right;
    font-size: 11px;
    color: #ccc;
    line-height: 1;
}
.сompetitor__item:first-child .сompetitor__points--total::before {
    content: 'всего';
}

.сompetitor__item:hover .сompetitor__avatar img {
    box-shadow: 0 0 0 2px #8D76BE;
}


.сompetitor__item::before,
.сompetitor__name,
.сompetitor__points {
    font-size: 24px;
}

/* подвал на стр.Конкурса */
.footer__row--competition .footer__col {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.footer__row--competition .footer__link {
    margin: 5px 15px;
}


@media (max-width: 600px) {
    .сompetitor__item::before {
        min-width: 15px;
    }
    .сompetitor__avatar  {
        min-width: 50px;
    }
    .сompetitor__avatar img {
        width: 50px;
        height: 50px
    }

    .сompetitor__name {
        margin: 0 10px;
    }
    .сompetitor__item::before,
    .сompetitor__name,
    .сompetitor__points {
        font-size: 14px;
    }
    .сompetitor__points--total {
        min-width: 30px;
    }
    .сompetitor__item:first-child .сompetitor__points::before {
        font-size: 8px;
    }

    .footer__row--competition .footer__link {
        font-size: 14px;
        margin: 5px;
    }
}



/* ===== */
header {
    /*     overflow-x: hidden; */
}

section {
    overflow: hidden;
}


/* Стр. ЭРГОФЕРОН
 * ==============*/

/* Блок с картинкой */
.ergo__main__img__block {
    display: flex;
    flex-wrap: wrap;
    margin: 5% 0;
}

.eggo__col__img {
    flex-basis: 60%;
}
.ergo__col__premii {
    flex-basis: 40%;
}


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

.ergo__premia__item:not(:last-child) {
    margin-bottom: 15px;
}

.ergo__premia__icon {
    margin: 0 !important;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.ergo__premia__text {
    flex-grow: 10;
    padding-left: 10px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .eggo__col__img,
    .ergo__col__premii {
        flex-basis: 100%;
    }
}

/* Блок с преимуществами */
.ergo__utp__block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ergo__utp__item {
    display: flex;
    align-items: center;
    flex-basis: 49%;
    margin-bottom: 2%;
    background: #008996;
    border-radius: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    min-height: 212px;
    overflow: hidden;
}

.ergo__utp__item > div {
    flex-basis: 50%;
}

.ergo__utp__icon__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ergo__utp__icon {
    margin: 0 !important;
}

.ergo__utp__text {
    padding: 15px;
    padding-left: 0;
}


.ergo__utp__item:nth-child(1) {
    flex-basis: 100%;
    font-size: 35px;
}

.ergo__utp__item:nth-child(1) .ergo__utp__icon__wrapper {
    flex-basis: 30%;
    align-self: flex-end;
}

.ergo__utp__item:nth-child(1) .ergo__utp__text {
    flex-basis: 70%;
}

.ergo__utp__item:nth-child(2) {
    background: #518DDD;
}
.ergo__utp__item:nth-child(3) {
    background: #E75431;
}
.ergo__utp__item:nth-child(4) {
    background: #FAC700;
}
.ergo__utp__item:nth-child(5) {
    background: #8D76BE;
}

@media (max-width: 1200px) {
    .ergo__utp__item {
        min-height: 140px;
        flex-basis: 100% !important;
        font-size: 22px !important;
    }

    .ergo__utp__icon__wrapper {
        flex-basis: 40% !important;
        justify-content: flex-start;
    }
    .ergo__utp__text {
        flex-basis: 60% !important;
    }
}

@media (max-width: 600px) {
    .ergo__utp__item {
        font-size: 17px !important;
    }
}


/* ОБЫЧНЫЕ СТРАНИЦЫ
 * ==============*/
.wp-block-image img {
    height: auto;
}

@media (max-width: 600px) {
    figure.wp-block-image {
        margin: 1em 0 !important;
    }
    .text-view {
        padding: 40px 15px !important;
    }

    .text p {
        font-size: 16px !important;
    }
}


/* Блок на главной с ВИДЕО-постами */

.video__grid .post__grid {
    grid-template-columns: repeat(4, 1fr);
}

.video__grid .item {
    border: 1px solid #E75431;
}

.video__grid .tags__item {
    border: 1px solid #E75431;
    color: #E75431;
}

.item__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px
}

.item__nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    background-image: url(/wp-content/uploads/decor/angle_right.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px;
    background-origin: content-box;
    border: none;
    border-radius: 50%;
    outline: none;
    margin: 10px;
    padding: 5px;
    position: relative;
}
.item__nav__prev {
    transform: rotate(-180deg);
}
.item__nav button:hover {
    background-color: #f9f9f9;
}
.item__nav button[disabled] {
    pointer-events: none;
    opacity: .3;
}

@media (max-width: 1280px) {
    .video__grid .post__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 990px) {
    .video__grid .post__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .video__grid .post__grid {
        grid-template-columns: 1fr;
    }
}


/* Блок ПРИГЛАШЕНИЕ НА КОНКУРС
 * =================*/
.about__competition {
    background: linear-gradient(270deg, #F9F8FB 35.42%, #E6F4F5 55.52%);
    line-height: 1.2;
    overflow: hidden;
    color: #363636;
}

.about__competition__row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.about__competition--left {
    font-weight: bold;
    font-size: 42px;
    color: #008996;
}

.about__competition--center {
    margin-top: 5px;
    align-self: flex-end;
}

.about__competition--center img {
    padding: 0 50px;
    margin-bottom: -40%;
}

.about__competition--right_title {
    font-size: 28px;
    margin: 10px 0;
}

.about__competition--right_desc {
    font-size: 14px;
}

.about__competition--right_desc a {
    margin: 10px;
}

@media (max-width: 1280px) {
    .about__competition br {
        display: none;
    }

    .about__competition__row {
        padding: 0 20px !important;
    }


    .about__competition--left {
        font-size: 2.5vw;
    }

    .about__competition--center img {
        padding: 0 20px;
    }


    .about__competition--right_title {
        font-size: 2.2vw;
    }
}

@media (max-width: 600px) {
    .about__competition__row {
        flex-wrap: wrap;
        padding: 20px !important;
        padding-bottom: 0 !important;
    }


    .about__competition--left {
        font-size: 24px;
    }

    .about__competition--center img {
        padding: 0;
        padding-top: 30px;
        margin-bottom: 0%;
    }

    .about__competition--right {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        background: rgba(212, 242, 250, 0.7);
        backdrop-filter: blur(10px);
    }


    .about__competition--right_title {
        font-size: 20px;
    }
}

/* запрет контекстного меню на иконках */

.item__icon, .post-ratings-image {
    pointer-events: none;
}

/* СТРАНИЦА РЕЗУЛЬТАТОВ ПОИСКА
 * =========================*/

.search-results .template {
    padding: 0 10px;
}

.search__list {
    margin: 0;
    padding: 0;
}

.search__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #27272b;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.search__item {
    display: flex;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 20px;
}

.search__item__img {
    min-width: 100px;
    margin-right: 20px;
}

.search__item__img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #c8a66a;
}

.search__item__text h2 a {
    font-size: 16px;
    font-weight: bold;
    color: #27272b;
}

@media (max-width: 500px) {
    .search__item__img {
        display: none;
    }
}

/* ФОРМА ПОИСКА
 * ==========*/


/*ВИДЕО с ютуба
 * ==========*/

.item__img, .item_highlighted__image__link {
    position: relative;
}

.item_highlighted__image__link__play {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/themes/minipolis/assets/img/youtube_play.png);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.item_highlighted__image__link__play::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/themes/minipolis/assets/img/mosaic_vertical.png);
    background-repeat: repeat-y;
    background-position: center left;
    z-index: 0;
}

.item_highlighted__image__link__play:hover {
    opacity: 0.9;
}

.item__img .item_highlighted__image__link__play {
    background-size: contain;
}

.ytp-cued-thumbnail-overlay-image {
    background-size: contain !important;
}

/* фиксим стили при открытии попапа */
html body.fancybox-active {
    overflow: visible;
}
body.compensate-for-scrollbar {
    margin-right: 0;
}

/*ПОСТ
 * ====*/

.post-author__link-container {
    display: flex;
    align-items: center;
}

.item__content__header {
    margin-bottom: 15px;
}

/*ГЛАВНАЯ
 * =======*/

.item__dop_info--mob {
    display: none;
}

.item__icon {
    display: inline-block;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-sizing: border-box;
    margin-bottom: 10px;
    overflow: hidden;
}

.item__icon--big {
    width: 75px;
    height: 75px;
    position: absolute;
    left: 25px;
    top: 25px;
    z-index: 1;
}

.item__icon--big--mob {
    display: none;
}

.post-ratings {
    color: #27272b !important;
}


/* сетка для верхних постов */

.main__row.first .item {
    margin-bottom: 25px;
    margin-right: 25px;
    width: calc((100% - 25px/4) / 4 - 25px)
}

.main__row.first {
    margin-right: -25px;
}

/* сетка с сайдбаром */

.main__col--left {
    width: 75%;
    /* 	justify-content: space-between; */
}

.main__row--with_sidebar {
    position: relative;
}

.main__col--left .item, .main__col--left .item:last-child {
    margin-right: 25px;
    margin-bottom: 25px;
    width: calc(100% / 3 - 25px);
}

.sidebar_right__main {
    width: 23.5%;
    /* 	margin-left: 2%; */
}

.sidebar_right__main>ul {
    padding: 0;
    margin: 0;
}

.sidebar_right__main .info-section__img {
    display: none;
}

@media (max-width: 992px) {
    .sidebar_right__main {
        display: none;
    }
    .main__row {
        display: flex !important;
        flex-wrap: wrap;
    }
    .main__col--left {
        width: 100%;
    }
    .main__row .item, .main__col--left .item {
        width: calc(100% / 3 - 25px) !important;
    }
    .main__col {
        margin-right: -25px !important;
    }
    span.menu-image-title {
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    .main__row.first {
        flex-wrap: wrap;
    }
    .main__row .item, .main__col--left .item {
        width: calc(50% - 25px) !important;
    }
    .item_highlighted__image {
        height: 350px;
        width: 100%;
        object-fit: cover;
    }
    .item__img.item_highlighted__image__link, .marathon-list__item-img {
        height: 350px !important;
    }
}

@media (max-width: 600px) {
    .main__row .item, .main__col--left .item {
        width: calc(100% - 25px) !important;
    }
    .main__row > .item {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .item__icon {
        margin-bottom: 0;
    }
    /* 	первый блок */
    .item__dop_info--mob {
        display: block;
    }
    .item_highlighted {
        display: block !important;
    }
    .item__title_highlighted {
        font-size: 18px !important;
        line-height: 1 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }
    .item__info {
        width: calc(100% - 50px) !important;
        margin-left: 25px;
        margin-top: 25px;
    }
    .item__icon {
        transform: translatex(-5px);
    }
    .item__icon--big {
        display: none;
    }
    .item__icon--big--mob {
        display: block;
    }
    .item_highlighted__image {
        height: 170px;
        width: 100%;
        object-fit: cover;
    }
    .item__img.item_highlighted__image__link, .marathon-list__item-img {
        height: 170px !important;
    }
    .item_highlighted .tags {
        padding: 0 25px;
    }
    /* 	=== */
    .item__content {
        min-height: auto !important;
        border-bottom: none !important;
    }
    .item__content__header {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    .item__title {
        /*         width: calc(100% - 50px) !important; */
    }
    .item__icon {
        vertical-align: top;
    }
    .tags .preview {
        height: auto !important;
    }
    .item__statistics {
        background-color: #fff !important;
        padding: 10px 25px !important;
    }
    .post-ratings {
        justify-content: flex-end;
    }
}

/*ШАПКА
 * ======*/

.right-side__title + .footer__btn {
    margin: 15px 0;
}

.header__desc {
    font-weight: bold;
    font-size: 28px;
    line-height: 1.2;
    text-align: center;
    color: #363636;
    margin-bottom: 25px;
}

.menu-image-title-after.menu-image-title {
    padding-left: 10px;
}

/*Соц.сети в шапке*/

.header__social__link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FAC700;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 28px;
    margin-right: 20px;
    -webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.header__social__link:last-child {
    margin-right: 0;
}

.header__social__link:hover {
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.header__social--vk {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/vk.svg);
}

.header__social--fb {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/soc_fb.svg);
}

.header__social--inst {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/soc_inst.svg);
}

.header__social--yt {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/yt.svg);
}

.header__social--site {
    background-image: url(/wp-content/themes/minipolis/assets/img/soc-icons/site.svg);
}


/* ЛАЙКИ НА ПОСТАХ
 * =============*/

.post-ratings, .post-ratings span {
    font-size: 14px !important;
    font-weight: 700;
    align-items: flex-start !important;
}

.post-ratings img:hover {
    opacity: 0.8;
}

.post-ratings img {
    width: 16px;
    height: 16px;
    margin: 0 7px !important;
}

.post-ratings img {
    background-image: url(/wp-content/themes/minipolis/assets/img/hearts/heart_violet.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    object-position: -100px !important;
}

.post-ratings img:not([onclick*="rate"]) {
    background-image: url(/wp-content/themes/minipolis/assets/img/hearts/heart_violet_fill.svg);
}

.video__grid .post-ratings img {
    background-image: url(/wp-content/themes/minipolis/assets/img/hearts/heart.svg);
}

.video__grid .post-ratings img:not([onclick*="rate"]) {
    background-image: url(/wp-content/themes/minipolis/assets/img/hearts/heart_fill.svg);
}





/* SVG-БАННЕРЫ, САЙДБАРЫ
 * =======*/

.template__right.sidebar .info-section__item:nth-child(n+4) {
    display: none;
}

.template__right.sidebar img[src *="svg"], .post-footer__banner img[src *="svg"], .pre-header__banner img[src *="svg"] {
    width: 100%;
}

.post-footer__banner {
    margin-top: 30px;
}

.post-footer__banner ul, .pre-header__banner ul {
    margin: 0;
    padding: 0;
}

.pre-header__banner a {
    display: block !important;
}

/* скрываем верхний баннер на моб. */

@media (min-width: 768px) {
    .pre-header__banner~.header-grid {
        /*display: none;*/
    }
}

@media (max-width: 767px) {
    .pre-header__banner {
        display: none;
    }
}

/* ФИЛЬТР РУБРИК
 * ===========*/

.categoty-filter {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: #F1F1F1;
    padding: 10px;
    border-radius: 15px;
}

.categoty-filter__items {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.categoty-filter__items li {
    margin: 0 10px;
}

.categoty-filter__items a {
    color: #551a8b;
    font-weight: bold;
    font-size: 18px;
}

.categoty-filter__items a:hover {
    opacity: 0.8;
}

.categoty-filter__title {
    color: #075e68;
    font-weight: bold;
    font-size: 18px;
    padding: 0 10px;
}



.article-item .main-title {
    margin-top: 0;
}
.article-item__content {
    -webkit-box-align: inherit!important;
    -webkit-box-pack: initial!important;
    align-items: initial!important;
}
/* Sidebar в статье */



.sidebar-title {
    color: #00838a;
    font-size: 22px;
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbdbdb;;
    margin: 0 0 25px;
}
.i-news__title {
    color: #00838a;
    font-size: 32px;
    font-weight: normal;
    margin: 0 0 25px;
}
.i-news__text {
    font-size: 15px;
}
.i-news__text img.aligncenter {
    margin: 15px 0;
}

.sidebar__wrapper .sidebar__link {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    outline: none;
    text-decoration: none;
    transition: .1s all;
    display: block;
    border-bottom: none;
}

.sidebar__wrapper  .sidebar__list-link {
    font-size: 14px;
    line-height: 20px;
}
.sidebar__link  {
}
@media screen and (max-width: 576px) {
    .sidebar__link {
        line-height:1.4
    }
}

.sidebar__link:hover {
    color: #00838a
}

.sidebar__link:focus {
    color: #000
}

.sidebar__link:last-child {
    margin-bottom: 0
}

.sidebar__wrapper .sidebar__link--active {
    color: #00838a!important
}

.sidebar__wrapper  .sidebar__list {
    list-style: none;
    padding-left: 12px;
    margin: 0
}
.sidebar__wrapper  .sidebar__list li:before {
    display: none;
}

.sidebar__wrapper .sidebar__list:not(:last-child) {
    margin-bottom: 10px
}

.sidebar__wrapper  .sidebar__list-item {
    list-style: none
}

.sidebar__list-item:not(:last-child) {
    margin: 0 0 8px
}

.sidebar__wrapper .sidebar__list-link {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    outline: none;
    text-decoration: none;
    transition: .1s all;
    display: block
}

@media screen and (max-width: 576px) {
    .sidebar__list-link {
        line-height:1.5
    }
}

.sidebar__list-link:hover,.sidebar__list-link:focus {
    color: #00838a;
}

.sidebar__wrapper  .sidebar__list-link.sidebar__link--active {

}

.sidebar__progress-line-wrapper {
    position: absolute;
    width: 3px;
    height: 100%;
    top: 0;
    left: 0;
    background: #e4e4e4;
}

.sidebar__progress-line {
    background: #00838a;
    height: 0;
}


.post-filters {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}


.post-filters a {
    display: inline-flex;
    padding: 0 10px;
    border: 2px solid #00838a;
    color: #000;
    height: 36px;
    align-items: center;
    border-radius: 4px;
}

.post-filters a.active {
    color: #fff;
    background: #00838a;
}


.card.inner-container {
    min-height: 250px;
}

.section-cards__container {
    height: unset!important;
}

.card3 {
    grid-column: span 4;

}

@media (max-width: 1840px) {
    .card3 {
        grid-column: unset;
    }
}



.cookie-box {
    position: fixed;
    left: 0;
    bottom: 0;
    box-shadow: 0 -19px 30px 0 rgba(0, 0, 0, 0.1);
    background: rgba(51, 51, 51, 0.9);
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 100;
    display: none;
}

.cookie-box--active {
    display: flex;
}

.cookie-box-container {
    padding: 16px 23px 16px 23px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-box-title {
    font-weight: 500;
    font-size: 13px;
    line-height: 148%;
    letter-spacing: 0.03em;
    color: #fff;
    margin-right: 15px;
}

.cookie-box-more {
    font-weight: 500;
    font-size: 13px;
    line-height: 115%;
    letter-spacing: 0.01em;
    color: #fff;
    border-bottom: 1px dashed #fff;
    padding: 3px 0px;
    margin-right: 50px;
    opacity: 0.55;
    cursor: pointer;
}
.cookie-box-more:hover {
    opacity: 1;
}

.cookie-box-btn {
    box-shadow: 0 -19px 30px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 9px;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 13px;
    line-height: 115%;
    letter-spacing: 0.01em;
    color: #000;
    border: none;
    outline: none;
    cursor: pointer;
}

.cookie-box-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .cookie-box {

    }

    .cookie-box-container {
        padding: 33px 23px 30px 23px;
        flex-direction: column;
    }
    .cookie-box-title {
        text-align: center;
        margin-right: 0;
    }

    .cookie-box-more {
        text-align: center;
        margin-right: 0;
        margin-top: 15px;
    }
    .cookie-box-btn {
        margin-top: 40px;
        border-radius: 50px;
        padding: 15px 20px;
        width: 170px;
        height: 45px;
    }
}

.article-item__header__toolbar {
    display: flex;
    font-size: 15px;
    flex-direction: row;
    gap: 30px;
}
@media (max-width: 992px) {
    .article-item__header__toolbar {
        display: block;
    }
}
.redesign-container .article-item__header__toolbar svg,
.redesign-container .article-item__header__toolbar img {
    vertical-align: middle;
    display: inline-block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.redesign-container .article-item__header__toolbar img {
    width: 20px;
}
.article-detail__text p a {
    word-break: break-all;
}

/* Стили для видео-кружочка */
.circle.circle-video {
    cursor: pointer;
    overflow: hidden;
}

.circle.circle-video .circle-video__preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

.circle.circle-video .circle-video__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.circle.circle-video:hover .circle-video__play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}


@media (max-width: 576px) {
    .redesign-container .main .banner__text {
        top: 0;
    }

    .redesign-container .main .banner__circles .circle p.b-descr {
        font-weight: 400;
    }
    .redesign-container .main .banner__content-right {
        width: 100%;
        left: 0;
        right: 0;
    }
    .redesign-container .main .banner {
        margin-top: 40px;
        height: 750px;
    }

}

@media (max-width: 768px) {
    .redesign-container .main .banner__title {
        font-size: 1.1rem;
        padding: 10px!important;
    }

        .redesign-container .main .banner__title {
            font-size: 1rem;
        }

}
@media (min-width: 768px) {
    .redesign-container .section-cards__container .card img {
        height: auto;
        width: 50%;
        z-index: 2;
    }
}
