/* Template Name: Kommersant */

@font-face {
    font-family: "Pragmatica";
    src: url("/wp-content/themes/kommersant/assets_2/fonts/Pragmatica-Bold.ttf") format("truetype"),
    url("/wp-content/themes/kommersant/assets_2/fonts/Pragmatica-Bold.woff") format("woff");
}

#wpadminbar {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
}

.modal--video .modal__content {
    width: 1000px;
    height: 100%;
}

#modalVideo {
    width: 100%;
    height: 100%;
}

@media (max-width: 425px) {
    .modal--video .modal__content {
        width: 1000px;
        height: 60%;
    }
}

@media (max-width: 767px) {
    .company-feature {
        min-width: 100px !important;
    }
}

@media (max-width: 1023px) {
    .main-nav__wrapper {
        top: -20px;
    }
}

.media-card__text {
    min-height: 180px;
}

@media (max-width: 1023px) {
    .media-card__text {
        min-height: 165px;
    }
}

.lb-outerContainer {
    background-color: rgba(200, 200, 200, 1) !important;
}

.lightbox .lb-image {
    border: none !important;
}

a.media-card__text:hover .media-card__title {
    opacity: .7;
}

.event-gallery a {
    display: inline-block;
    height: 150px;
    width: calc(33.33% - 10px);
    margin-right: 8px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
}

.event-gallery a:nth-child(3n) {
    margin-right: 0;
}

@media screen and (max-width: 600px) {
    .event-gallery a {
        width: calc(50% - 10px);
    }

    .event-gallery a:first-child,
    .event-gallery a:nth-child(2n + 1) {
        margin-right: 15px;
    }

    .event-gallery a:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .event-gallery a {
        height: 100px;
    }
}

.inner-page.business-talk .media-cards-list__item:not(.media-card--large) .media-card__description {
    display: none;
}

.date__week-day {
    margin-right: 55px;
}

.inner-page.business-talk .media-card__text {
    min-height: 210px;
}

@media (max-width: 1023px) {

    .inner-page.business-talk .media-card__text {
        min-height: 210px;
    }
}

@media (max-width: 767px) {

    .inner-page.business-talk .media-card__text {
        min-height: auto;
    }
}

.inner-page.business-talk .media-cards-list__item:not(.media-card--large) .media-card__title {
    margin-bottom: 0;
}

.main-event__tags .tag--online .tag__text::after {
    content: 'Сейчас в эфире'
}

.main-event__tags .tag--online.link-to-event {
    cursor: pointer;
}

.main-event__tags .tag--online.link-to-event:hover .tag__text::after {
    content: 'Перейти к статье'
}

.events-block__title > a {
    cursor: pointer;
}

.button-default {
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    color: #22292e;
    border: 2px solid #f4f7f9;
    line-height: 16px;
    transition: background-color .2s;
}

.button-default:hover {
    background-color: #f4f7f9;
}

.events-block_more-btn {
    display: block;
    text-align: center;
    margin-top: -94px;
    margin-bottom: 94px;
}

@media (max-width: 1439px) {

    .events-block_more-btn {
        margin-top: -56px;
        margin-bottom: 56px;
    }
}

@media (max-width: 767px) {

    .events-block_more-btn {
        padding: 15px;
        margin-top: -30px;
        margin-bottom: 40px;
    }

    .events-block__events:first-of-type::after {
        content: none;
    }
}

.header {
    background-color: #004465;
}

.main-nav__wrapper {
    background-color: #004465;
}

.header__city {
    background-color: rgba(0, 47, 70, .9);
}

.program__item.dropdown {
    padding-left: 5px;
    padding-right: 5px;
}

.program__item.dropdown[data-accordion="element"]:not(.is-open) {
    cursor: pointer;
}

.program__item.dropdown[data-accordion="element"] .program__title {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 2px;
    text-decoration-color: #dddddd;
}

.program__title {
    width: 81.02%;
}

.program__item.dropdown[data-accordion="element"]:not(.is-open):hover {
    background-color: #f4f7f9;
}

.program__item.dropdown[data-accordion="element"]:not(.is-open):hover .program__title {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 2px;
    text-decoration-color: #383838;
}

.program__item.dropdown[data-accordion="element"].is-open .program__title:hover {
    text-decoration-color: #383838;
    cursor: pointer;
}

.program__top {
    position: relative;
}

.point-expand-button {
    display: flex;
    position: absolute;
    right: 25px;
    top: -4px;
    width: 172px;
}

.point-expand-button--speakers-list {
    display: flex;
    flex-direction: row-reverse;
    margin-right: 10px;
    width: 83px;
}

.point-expand-button--speakers-list div {
    width: 35px;
    height: 35px;
    border: 2px solid white;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
}

.point-expand-button--speakers-list div:nth-child(2),
.point-expand-button--speakers-list div:nth-child(3) {
    margin-right: -12px;
}

.point-expand-button--desc {
    position: absolute;
    top: 3px;
    left: 91px;
    color: #575757;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 2px;
}

@media screen and (min-width: 1024px) and (max-width: 1460px) {

    .program__title {
        width: 80%;
    }
}

@media screen and (max-width: 1400px) {

    .point-expand-button {
        right: 0;
        top: 0;
        width: 70px;
    }

    .point-expand-button--speakers-list {
        display: none;
    }

    .point-expand-button--desc {
        left: auto;
        right: 0;
    }
}

@media screen and (max-width: 768px) {

    .point-expand-button {
        right: 0;
        top: -31px;
        width: auto;
    }

    .point-expand-button--desc {
        position: relative;
        top: 0;
        left: auto;
    }

    .x-item-timeless .point-expand-button {
        top: -14px;
    }

    .pagination-block > *:not(:first-child) {
        display: none;
    }
}

/* Speaker's page ======================================================= */

.welcome-section {
    padding: 60px 0;
    background-color: #f4f7f9;
}

.welcome-section--full-width-content {
    width: 100%;
}

.speaker-page-description {
    max-width: 900px;
}

@media screen and (max-width: 1024px) {

    .speaker-page-description {
        max-width: 100%;
    }
}

.basic-wide-section .container > *:first-child {
    margin-top: 30px;
}

.basic-wide-section .container > *:last-child {
    margin-bottom: 30px;
}

.welcome-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.welcome-section--body,
.welcome-section--back {
    width: 50%;
}

.welcome-section--body {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.welcome-section--description {
    line-height: 1.2;
    margin-top: 5px;
}

.welcome-section--image-wrap {
    width: 75px;
    height: 75px;
    margin-right: 30px;
    border-radius: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.welcome-section--image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.welcome-section--text-wrap h1 {
    margin: 0;
    line-height: 1.1;
}

.welcome-section--back {
    display: flex;
    align-items: center;
    max-width: 50%;
    min-height: 40px;
    padding-left: 75px;
    background-image: url("/wp-content/themes/kommersant/assets_2/icon-back.png");
    background-position: 20px 3px;
    background-size: 40px;
    background-repeat: no-repeat;
    color: rgba(0, 0, 0, .5);
    line-height: 1.4;
    cursor: pointer;
}

.subtitle-info-line {
    color: rgba(0, 0, 0, .5);
    line-height: 1.4;
}

.basic-list {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.basic-list li:not(:last-child) {
    margin-bottom: 15px;
}

.basic-list li > .x-title {
    line-height: 1.4;
}

.list-with-few-details li > .subtitle-info-line {
    margin-top: 7px;
}

.speaker-main-section .container {
    display: flex;
    margin: 30px auto;
    padding-bottom: 100px;
}

.speaker-main-subsection:nth-child(1) {
    width: 40%;
    margin-right: 5%;
}

.speaker-main-subsection:nth-child(2) {
    width: 55%;
}

.speaker-main-subsection h2.basic-h2 {
    margin: 0 0 20px;
}

.events-simple-list .x-dates-and-category > * {
    display: inline-block;
}

.events-simple-list .x-dates-and-category > .subtitle-info-line:not(:last-child) {
    margin-right: 5px;
}

.events-simple-list > *:not(:last-child) {
    margin-bottom: 10px;
}

.small-category-tag {
    font-size: 12px;
    padding: 1px 9px;
    border: 1px solid;
    border-radius: 100px;
    line-height: 1.4;
}

.link-decoration {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #dddddd !important;
}

.link-decoration:hover {
    text-decoration: underline !important;
    text-decoration-color: #383838 !important;
}

@media screen and (max-width: 960px) {

    .speaker-main-section .container {
        flex-direction: column;
    }

    .speaker-main-subsection:nth-child(1) {
        width: auto;
        margin: 0 0 20px;
    }

    .speaker-main-subsection:nth-child(2) {
        width: auto;
    }

    .welcome-section {
        padding: 25px 0;
    }

    .welcome-section .container {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .welcome-section--body {
        width: auto;
    }

    .welcome-section--image-wrap {
        width: 60px;
        height: 60px;
        margin-right: 20px;
    }

    .welcome-section--text-wrap h1 {
        font-size: 1.4em;
    }

    .welcome-section--back {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding-left: 0;
        background-image: none;
        margin-bottom: 30px;
    }

    .welcome-section--back::before {
        content: '← ';
        margin-right: 2px;
    }
}

/* Custom Admin UI ================================================================================================== */

#custom-admin-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    color: #ccc;
    font-size: 13px;
    font-weight: 400;
    line-height: 32px;
    z-index: 99;
}

#custom-admin-ui a {
    display: inline-block;
    color: inherit !important;
    background-color: #22292e;
    padding: 0 12px;
}

#custom-admin-ui a:hover {
    color: white !important;
    background-color: #2e383f;
}

/* Search Page ====================================================================================================== */

#page-search-form {
    display: flex;
    flex-direction: row;
}

#page-search-form .form__input {
    width: calc(100% - 15% - 20px);
    margin: 0 20px 0 0;
}

#page-search-form .form__input input {
    width: 100%;
    margin: 0;
    padding-left: 42px;
    background-image: url("/wp-content/themes/kommersant/assets_2/icon-search-gray-50.png");
    background-size: 20px;
    background-position: 12px 12px;
    background-repeat: no-repeat;
}

#page-search-form .form__submit {
    width: 15%;
    margin: 0;
    padding: 0 20px;
}

.search-results-section {
    padding: 50px 0;
}

.search-results-tabs {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
}

.search-result-tab {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.search-result-tab:not(:last-child) {
    margin-right: 15px;
}

.pseudo-link-decoration {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 2px;
    text-decoration-color: #dddddd;
}

.pseudo-link-decoration:hover {
    text-decoration-color: #383838;
}

.search-result-tab.x-active.pseudo-link-decoration {
    text-decoration: none;
}

.search-results-content {
    max-width: 700px;
}

.search-result-tab:not(.x-active) .x-title {
    color: rgb(180, 180, 180);
}

.search-result-tab .x-results-count {
    color: rgb(180, 180, 180);
}

.search-result-tab-content {
    display: none;
}

.search-result-tab-content.x-active {
    display: block;
}

@media screen and (max-width: 768px) {

    #page-search-form {
        display: block;
    }

    #page-search-form .form__input {
        width: 100%;
        margin: 0 0 15px 0;
    }

    #page-search-form .form__submit {
        padding: 17px;
        width: 100%;
    }

    .search-results-content {
        max-width: 100%;
    }

    .search-results-tabs {
        display: block;
    }

    .search-result-tab {
        margin: 0;
    }

    .search-result-tab:not(:last-child) {
        margin-bottom: 5px;
    }
}

.welcome-section--full-width-content h1 {
    line-height: 1.2;
}

.form__input input {
    background-color: white;
}

.search-result-speaker {
    margin-bottom: 10px;
}

/* Live search */

.main-nav__wrapper {
    display: flex;
    align-items: center;
}

.main-nav__list {
    margin-left: 30px;
}

.live-search {
    position: relative;
    display: flex !important;
    background-color: #004465;
}

.live-search__show-form-btn,
.live-search__hide-form-btn {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.live-search__show-form-btn {
    width: 40px;
    height: 40px;
    background-size: 65%;
    background-position: center;
    background-image: url("/wp-content/themes/kommersant/assets_2/icon-search-white-50.png");
    background-repeat: no-repeat;
}

.live-search__hide-form-btn {
    display: none;
    line-height: 21px;
    font-weight: 600;
    color: #fff;
}

.live-search__body {
    display: none;

    position: relative;
    height: 100%;
    overflow: visible;
    margin-right: 20px;
    width: 700px;
}

.live-search__form {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.live-search__input {
    display: block;
    width: 100%;
    background-color: white;
    background-image: url("/wp-content/themes/kommersant/assets_2/icon-search-gray-50.png");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: auto 60%;
    color: black;
    padding: 11px 15px 11px 50px;
    border: none;
    outline: none;
}

.live-search__input:focus {
    /*outline-color: black;*/
}

.live-search__results-wrap {
    position: absolute;
    display: none;
    top: 100%;
    width: 100%;
    border: 1px solid rgb(220, 220, 220);
    box-shadow: 0 0 5px rgba(150, 150, 150, .2);
    z-index: 1;
}

.live-search__results-item {
    background: white;
    color: rgb(40, 40, 40);
    padding: 6px 10px;
    border-bottom: 1px solid rgb(220, 220, 220);
    cursor: pointer;
}

.live-search__results-item:hover {
    background-color: rgb(245, 245, 245);
}

.live-search__results-item a {
    display: block;
    color: rgb(50, 50, 50);
}

.live-search__all-results-btn {
    display: none;
    padding: 8px 10px;
    text-align: center;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: rgb(100, 100, 100);
}

.live-search__all-results-btn:hover {
    background-color: rgb(245, 245, 245);
}

@media screen and (max-width: 1400px) {

    .live-search__body {
        width: 600px;
    }
}

@media screen and (max-width: 1300px) {

    .live-search__body {
        width: 500px;
    }
}

@media screen and (max-width: 1150px) {

    .live-search {
        position: absolute;
        display: flex;
        bottom: -3px;
        right: 100px;
    }

    .live-search__body {
        width: calc(100% - 100px);
    }

    .live-search.x-opened {
        width: 100%;
        right: 0;
        padding: 0 20px;
        z-index: 10;
    }

    .live-search__results-wrap {
        position: fixed;
        top: 80px;
        border: none;
        box-shadow: none;
        left: 0;
    }

    .live-search__results-item {
        padding: 10px 20px;
    }
}

@media screen and (max-width: 1024px) {

    .live-search {
        right: 90px;
    }

    .live-search.x-opened {
        padding: 0 10px;
    }

    .live-search__results-wrap {
        top: 64px;
    }
}

@media screen and (max-width: 768px) {

    .live-search {
        right: 70px;
    }

    .live-search.x-opened {
        padding: 0 10px;
    }
}

@media screen and (max-width: 375px) {

    .header__logo svg {
        width: 180px;
    }

    .live-search {
        right: 55px;
    }

    .live-search.x-opened {
        padding: 0 10px;
    }
}

/* Partner card */

.partner-card__img {
    height: 100%;
    display: flex;
    align-items: center;
}

.partner-card__img:first-child {
    justify-content: center;
}

.partner-card__img img {
    height: 70px;
    max-height: 100px;
}

.partner-card__img img {
    height: auto !important;
}

@media (max-width: 767px) {

    .event__partners .partner-card {
        /*min-height: 70px;*/
    }
}

.partners h2.partners__title {
    margin-top: 0;
    font-size: 64px;
    line-height: 70px;
    font-weight: 700;
    margin-bottom: 85px;
}

@media (max-width: 1439px) {
    .partners h2.partners__title {
        font-size: 48px;
        line-height: 53px;
        margin-bottom: 41px;
    }
}

.partner-card {
    position: relative;
}

.partner-car__marking {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px 5px;
    color: rgb(177 177 177);
    font-size: 12px;
}

.partner-card__status {
    text-align: center;
}

.partner-card__img img {
    margin: 0 auto;
}

.program__item .program__container[data-accordion=content] {
    transition: none !important;
    max-height: 100% !important;
}

.program__item.is-open .program__container[data-accordion=content] {
    transition: none !important;
    max-height: 0 !important;
}

/* Fixed blog bar */

.fixed-blog-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    min-height: 46px;
    max-height: 60vh;
    z-index: 10;
}

.fixed-blog-bar:not(.x-opened) {
    cursor: pointer;
}

.fixed-blog-bar .x-body-top-border {
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    border-top: 1px solid rgb(230, 230, 230);
    display: none;
}

.fixed-blog-bar.x-opened .x-body-top-border {
    display: block;
}

.fixed-blog-bar .x-head {
    position: relative;
    display: flex;
    padding: 15px 0;
}

.fixed-blog-bar---label {
    font-size: 18px;
    opacity: .7;
    font-weight: bold;
    color: #00496B;
    text-transform: uppercase;
}

.fixed-blog-bar.x-opened .fixed-blog-bar---post-title {
    display: none;
}

.fixed-blog-bar---post-title {
    margin: 0 120px 0 33px;
    font-size: 16px;
    font-weight: bold;
}

.fixed-blog-bar---expand-btn {
    position: absolute;
    cursor: pointer;
    width: 100px;
    height: 24px !important;
    top: 13px;
    right: 0;
}

.fixed-blog-bar---expand-btn .x-icon {
    position: absolute;
    width: 35px;
    height: 100%;
    background-image: url('./assets_2/fixed-blog-expand-icon.png');
    background-size: 70% auto;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.fixed-blog-bar.x-opened .fixed-blog-bar---expand-btn .x-icon {
    transform: rotate(180deg);
}

.fixed-blog-bar---expand-btn .x-title {
    margin-left: 40px;
    font-size: 16px;
}

.fixed-blog-bar .x-body {
    display: none;
}

.fixed-blog-bar.x-opened .x-body {
    display: block;
    padding: 20px 0 30px;
}

.fixed-blog-bar .blog-item {
    display: flex;
}

.fixed-blog-bar .blog-item:not(:last-child) {
    margin-bottom: 15px;
}

.fixed-blog-bar .blog-item-date {
    flex-shrink: 0;
    font-size: 14px;
    width: 100px;
}

.fixed-blog-bar .blog-item-title {
    margin: 0 15px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
}

.blog-show-all-btn {
    display: block;
    color: #444;
    text-decoration: underline;
    margin: 20px 0 0;
    cursor: pointer;
    font-size: 14px;
    text-underline-offset: 3px;
}

@media screen and (max-width: 768px) {

    .fixed-blog-bar .x-head {
        padding: 4px 0;
        height: 46px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .fixed-blog-bar.x-opened .x-head {
        padding-top: 10px;
    }

    .fixed-blog-bar---label {
        display: none;
    }

    .fixed-blog-bar---post-title {
        margin: auto 40px auto 0;
        font-size: 14px;
        line-height: 1.4;
    }

    .fixed-blog-bar---expand-btn {
        min-width: 24px;
        right: 0;
        display: flex;
        justify-content: flex-end;
    }

    .fixed-blog-bar---expand-btn .x-title {
        display: none;
    }

    .fixed-blog-bar .blog-item {
        flex-direction: column;
    }

    .fixed-blog-bar .blog-item:nth-child(n + 4) {
        display: none;
    }

    .fixed-blog-bar .blog-item-date {
        font-size: 14px;
    }

    .fixed-blog-bar .blog-item-title {
        font-size: 14px;
        margin: 0 0 5px;
        line-height: 1.4;
    }

    .blog-show-all-btn {
        text-align: left;
    }

    .fixed-blog-bar.x-opened .fixed-blog-bar---label {
        display: block;
    }

    .fixed-blog-bar.x-opened .x-body-top-border {
        top: 40px;
    }

    .fixed-blog-bar.x-opened .fixed-blog-bar---expand-btn {
        top: 8px;
    }
}

.event-card__brand img {
    height: 36px !important;
}

.yandex-sharing-wrap {
    margin-top: 20px;
}

.yandex-sharing-inner {
    display: flex;
}

.yandex-sharing-inner .x-sharing-title {
    position: relative;
    top: 3px;
    margin-right: 10px;
}

/* SendSay ========================================================================================================== */

.default-section {
    background-color: #f4f7f9;
}

.sendsay-text, .sendsay-popup {
    font-family: inherit;
}

[data-sendsay-form-embedded] {
    margin: 0 auto 30px;
    max-width: 1440px;
    padding: 50px 34px;
}

.sendsay-type-embedded {
    width: 100% !important;
}

.sendsay-popup,
.sendsay-column {
    background: transparent !important;
}

.sendsay-column .sendsay-text:nth-child(1) span {
    font-size: 36px !important;
    margin-bottom: 10px;
    display: block;
}

.sendsay-field {
    margin-bottom: 10px;
}

.sendsay-input[type="text"] {
    padding: 12px 15px !important;
    box-sizing: border-box;
    height: auto;
    font-size: 14px;
    margin-top: 5px;
}

.sendsay-column .sendsay-text:nth-child(2) span {
    line-height: 1.4;
    max-width: 400px !important;
    display: block;
}

.sendsay-column > *:nth-child(6), .sendsay-column > *:nth-child(7), .sendsay-column > *:nth-child(6) *, .sendsay-column > *:nth-child(7) * {
    display: inline !important;
}

.sendsay-column > *:nth-child(6)::after {
    content: ' ';
}

.sendsay-button {
    margin-top: 20px;
    max-width: 150px;
}

@media screen and (max-width: 1024px) {

    [data-sendsay-form-embedded] {
        padding: 30px 0;
    }

    .sendsay-popup .sendsay-content {
        display: block;
    }

    .sendsay-column .sendsay-text:nth-child(1) span {
        font-size: 28px !important;
    }

    .x-desktop-only {
        display: none;
    }
}

.program__text p {
    margin: 10px auto;
    display: block !important;
}

.event-intro iframe {
    max-width: 100%;
}

/* Social widget ==================================================================================================== */

#social-widget {
    position: fixed;
    bottom: 70px;
    right: 13px;
    padding: 12px 28px 12px 70px;
    background-size: 40px;
    background-position: 15px center;
    background-repeat: no-repeat;
    background-color: white;
    border: 1px solid rgb(230 230 230);
    border-radius: 10px;
    box-shadow: 2px 2px rgba(0, 0, 0, .1);
    z-index: 9;
}

#social-widget.x-vk {
    background-image: url("/wp-content/themes/kommersant/assets_2/icons_social/vk_widget.png");
}

#social-widget.x-telegram {
    background-image: url("/wp-content/themes/kommersant/assets_2/icons_social/telegram_widget.webp");
}

#social-widget .x-title {
    width: 160px;
    display: flex;
    line-height: 1.3;
    min-height: 42px;
    align-items: center;
}

#social-widget .x-close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    width: 32px;
    height: 32px;
    opacity: 0.7;
    cursor: pointer;
    transform: scale(.5) translate(27px, -19px);
}

#social-widget .x-close-btn:before,
#social-widget .x-close-btn:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: black;
    opacity: .5;
}

#social-widget .x-close-btn:before {
    transform: rotate(45deg);
}

#social-widget .x-close-btn:after {
    transform: rotate(-45deg);
}

/* Перепридумываем категории так, чтобы они работали только по одиночке */

.filter-item input:checked ~ label span {
    color: inherit;
}

.filter-item input:checked ~ label::after,
.filter-item input:checked ~ label::before {
    opacity: 0;
    display: none;
}

.filter-item.selected-filter-item input:checked ~ label::after,
.filter-item.selected-filter-item input:checked ~ label::before {
    opacity: 1;
    display: block;
    transition: none;
}

.filter-item.selected-filter-item input:checked ~ label span {
    color: white !important;
    transition: none;
}

/* Event slider intro ==============================================================================================  */

.event-intro-slider {
    position: relative;
    background-color: #fbfbfb;
    padding: 30px 0 70px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.event-intro-slider .container {
    position: relative;
}

.event-intro-slider .swiper-slide {
    opacity: 0;
    transition: all .2s;
}

.event-intro-slider .swiper-slide-active {
    opacity: 1;
}

.event-intro-slider .swiper-container-horizontal > .swiper-pagination-bullets,
.event-intro-slider .swiper-pagination-custom,
.event-intro-slider .swiper-pagination-fraction {
    bottom: -43px;
}

.intro-event-swiper img {
    margin: 0 auto;
}

@media (width < 1150px) {

    .event-intro-slider .swiper-button-prev,
    .event-intro-slider .swiper-button-next {
        display: none;
    }
}

.header {
    z-index: 11;
}

.event-intro__description-tabs {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}
.event-intro__description-tab {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
}

/* region Front page marked event */

@media (min-width: 768px) {

    .events-block__title.x-with-pinned-event {
        position: relative;
        padding-right: 300px;
    }
}

.front-page_marked-event {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px 50px;
    background: #22292e;
    font-size: 16px;
    color: white;
    font-weight: 600;
    line-height: 1.2;
    display: block;
}

@media (min-width: 768px) and (max-width: 1023px) {

    .front-page_marked-event {
        right: -15px;
    }
}

@media (max-width: 767px) {

    .front-page_marked-event {
        position: static;
        margin-top: 30px;
        text-align: center;
    }
}

/*endregion*/

/*region Download year events */

#download-year-events {
    position: absolute;
    right: 254px; /* на 50 пикселей отступ от дат */
    top: 4px;
    padding: 8px 40px;
    text-align: center;
    color: white;
    background: #22292e;
    cursor: pointer;
}

#download-year-events.x-disabled {
    opacity: 0.5;
}

@media (min-width: 768px) and (max-width: 1023px) {

    #download-year-events {
        right: 70px;
    }
}

@media (max-width: 768px) {

    .calendar__tabs-block {
        padding-bottom: 100px;
    }

    #download-year-events {
        top: 60px;
        right: 0;
        width: 100%;
    }
}

/*endregion*/

@media screen and (max-width: 768px) {

    .alignleft, .alignright {
        float: none;
        margin: 20px auto;
    }
}
