#twotm-news {
    --twotm-news-green: #29a83a;
    --twotm-news-orange: #ff7a2b;
    --twotm-news-soft: #f3f3f3;
    --twotm-news-border: #dedede;
    --twotm-news-text: #111;
    color: var(--twotm-news-text);
}

#twotm-news * {
    box-sizing: border-box;
}

.twotm-news__desktop {
    display: block;
    padding: 18px 18px 28px;
    overflow: hidden;
}

.twotm-news__shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 620px;
    margin: 0 auto;
}

.twotm-news__left,
.twotm-news__right,
.twotm-news__single-shell {
    background: var(--twotm-news-soft);
    border-radius: 20px;
    padding: 28px 30px;
}

.twotm-news__left {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.twotm-news__right {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.twotm-news__single-shell {
    max-width: 1120px;
    margin: 28px auto;
}

.twotm-news-open__header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: center;
}

.twotm-news-open__header h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.18;
    text-align: center;
    font-weight: 800;
}

.twotm-news-open__image,
.twotm-news-card button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.twotm-news-open__image img,
.twotm-news-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.twotm-news-open__meta {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: center;
    margin: 28px 0 18px;
}

.twotm-news-open__meta time {
    font-size: 15px;
}

.twotm-news-open__search,
.twotm-news-feed__search {
    position: relative;
    display: block;
    width: 100%;
}

.twotm-news-open__search input,
.twotm-news-feed__filters select,
.twotm-news-feed__search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--twotm-news-border);
    border-radius: 7px;
    background: #fff;
    padding: 0 42px 0 16px;
    font-size: 16px;
}

.twotm-news-open__search span,
.twotm-news-feed__search button,
.twotm-news__icon-button span {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #000;
    border-radius: 50%;
}

.twotm-news-open__search span {
    right: 14px;
    top: 10px;
}

.twotm-news-open__search span::after,
.twotm-news-feed__search button::after,
.twotm-news__icon-button span::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 3px;
    right: -8px;
    bottom: -5px;
    background: #000;
    transform: rotate(45deg);
    border-radius: 3px;
}

.twotm-news-open__content {
    font-size: 16px;
    line-height: 1.5;
}

.twotm-news-open__content mark,
.twotm-news-card mark {
    background: #fff178;
    padding: 0 2px;
}

.twotm-news-open__buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.twotm-news-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 22px;
    background: var(--twotm-news-green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.twotm-news-button--primary {
    background: linear-gradient(180deg, #35bc45, #1f9d30);
}

.twotm-news-button:disabled {
    opacity: .45;
    cursor: default;
}

.twotm-news-open__consult {
    margin-top: 18px;
    padding: 0;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.twotm-news-consult-form {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 52px 0;
    background-color: #eef4ef;
}

.twotm-news-consult-form,
.twotm-news-consult-form * {
    box-sizing: border-box;
}

.twotm-news-consult-form .container {
    width: 100%;
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 24px;
}

.twotm-news-consult-form p.form-title {
    margin: 0 0 10px;
    color: #111;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;
    text-align: center;
}

.twotm-news-consult-form p.form-sub-title {
    margin: 0 0 38px;
    color: #000;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}

.twotm-news-consult-form .rud--form__form {
    max-width: 1070px;
    margin: 0 auto;
    position: relative;
}

.twotm-news-consult-form .rud--form__form--top,
.twotm-news-consult-form .rud--consult__form--top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.twotm-news-consult-form .rud--form__form--top > span,
.twotm-news-consult-form .rud--consult__form--top > span {
    width: calc((100% / 3) - 12px);
    height: 56px;
}

.twotm-news-consult-form .rud--form__form--top > span .intl-tel-input,
.twotm-news-consult-form .rud--consult__form--top > span .intl-tel-input {
    height: 100%;
}

.twotm-news-consult-form .rud--form__form--top > span .intl-tel-input .flag-container,
.twotm-news-consult-form .rud--consult__form--top > span .intl-tel-input .flag-container {
    padding-left: 24px;
}

.twotm-news-consult-form .rud--form__form--top > span .intl-tel-input .flag-container .selected-flag,
.twotm-news-consult-form .rud--consult__form--top > span .intl-tel-input .flag-container .selected-flag {
    padding: 0;
}

.twotm-news-consult-form .rud--form__form--top > span .intl-tel-input .flag-container:hover .selected-flag,
.twotm-news-consult-form .rud--consult__form--top > span .intl-tel-input .flag-container:hover .selected-flag {
    background-color: transparent;
}

.twotm-news-consult-form .rud--form__form--top > span .intl-tel-input .flag-container .selected-flag .iti-arrow,
.twotm-news-consult-form .rud--consult__form--top > span .intl-tel-input .flag-container .selected-flag .iti-arrow {
    right: 14px;
}

.twotm-news-consult-form .rud--form__form--top > span .intl-tel-input .country-list,
.twotm-news-consult-form .rud--consult__form--top > span .intl-tel-input .country-list {
    left: 0;
}

.twotm-news-consult-form .rud--form__form--top > span input[type="tel"],
.twotm-news-consult-form .rud--consult__form--top > span input[type="tel"] {
    padding: 0 24px 0 66px !important;
}

.twotm-news-consult-form .rud--form__form--top > span input,
.twotm-news-consult-form .rud--consult__form--top > span input,
.twotm-news-consult-form textarea {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid #cacaca;
    background: #fff;
    padding: 0 24px;
    color: #1e1e1e;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

.twotm-news-consult-form textarea {
    height: 100px;
    padding: 16px 24px;
    resize: vertical;
}

.twotm-news-consult-form .rud--form__form--top > span input::placeholder,
.twotm-news-consult-form .rud--consult__form--top > span input::placeholder,
.twotm-news-consult-form textarea::placeholder {
    color: #1e1e1e;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

.twotm-news-consult-form .contact-form--block,
.twotm-news-consult-form .rud--consult__form--checkboxs {
    margin: 24px 0 36px;
}

.twotm-news-consult-form .wpcf7-list-item-label {
    margin: 0;
}

.twotm-news-consult-form .rud--consult__form--checkboxs > span {
    display: block;
    margin-bottom: 8px;
}

.twotm-news-consult-form .rud--consult__form--checkboxs > span:last-child {
    margin-bottom: 0;
}

.twotm-news-consult-form .rud--consult__form--checkboxs input[type="checkbox"] {
    display: none;
}

.twotm-news-consult-form .rud--consult__form--checkboxs label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.twotm-news-consult-form .rud--consult__form--checkboxs label small {
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #41a63e;
    border-radius: 6px;
    background: #fff;
}

.twotm-news-consult-form .rud--consult__form--checkboxs label span {
    padding-left: 36px;
    color: #1e1e1e;
    font-size: 14px;
    line-height: 1.2;
}

.twotm-news-consult-form .rud--consult__form--checkboxs input[type="checkbox"]:checked ~ small {
    background-color: #41a63e;
    background-image: url("https://courses.2tm.eu/content/uploads/sites/2/2023/06/rud-check__arrow.svg");
    background-repeat: no-repeat;
    background-size: 10px 8px;
    background-position: center;
}

.twotm-news-consult-form .rud--consult__form--checkboxs .wpcf7-not-valid .wpcf7-list-item-label,
.twotm-news-consult-form .rud--consult__form--checkboxs input[type="checkbox"][aria-invalid="true"] ~ .wpcf7-list-item-label {
    color: #dc3232;
}

.twotm-news-consult-form .rud--form__bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.twotm-news-consult-form .rud--modal__consult--socials {
    width: max-content;
    max-width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 23px;
    margin-left: auto;
    border: 1px solid #cacaca;
    border-radius: 64px;
    background: #fff;
}

.twotm-news-consult-form .rud--modal__consult--social {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    transition: .3s all ease-in-out;
}

.twotm-news-consult-form .rud--modal__consult--social:last-child {
    margin-right: 0;
}

.twotm-news-consult-form .rud--modal__consult--social:hover {
    transform: translateY(5px);
}

.twotm-news-consult-form .rud--phone {
    width: 30px;
    height: 30px;
}

.twotm-news-consult-form .rud--telegram {
    width: 35px;
    height: 30px;
}

.twotm-news-consult-form .rud--viber {
    width: 33px;
    height: 36px;
}

.twotm-news-consult-form .rud--whatsapp {
    width: 36px;
    height: 36px;
}

.twotm-news-consult-form input[type="submit"],
.twotm-news-consult-form button[type="submit"] {
    width: 305px;
    height: 54px;
    padding: 16px 36px;
    border-radius: 64px;
    background: #41a63e;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
    transition: .3s all ease-in-out;
    cursor: pointer;
    outline: none;
    border: 0;
}

.twotm-news-consult-form input[type="submit"]:hover,
.twotm-news-consult-form button[type="submit"]:hover {
    background: #238d20;
}

.twotm-news-consult-form .wpcf7-spinner {
    top: calc(100% - 27px) !important;
    left: 350px !important;
}

.twotm-news-consult-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
}

.twotm-news-consult-form .wpcf7-response-output {
    margin: 12px 0 0;
    border-radius: 8px;
}

@media (max-width: 1440px) {
    .twotm-news-consult-form p.form-title {
        font-size: 36px;
    }

    .twotm-news-consult-form p.form-sub-title {
        font-size: 16px;
    }

    .twotm-news-consult-form .rud--form__form--top,
    .twotm-news-consult-form .rud--consult__form--top {
        flex-direction: column;
    }

    .twotm-news-consult-form .rud--form__form--top > span,
    .twotm-news-consult-form .rud--consult__form--top > span {
        width: 100%;
        margin-bottom: 12px !important;
    }

}

@media (max-width: 1339px) {
    .twotm-news-consult-form .rud--modal__consult--socials {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .twotm-news-consult-form .rud--form__bottom {
        flex-direction: column;
    }

    .twotm-news-consult-form input[type="submit"],
    .twotm-news-consult-form button[type="submit"] {
        width: 100%;
    }

    .twotm-news-consult-form .rud--modal__consult--socials {
        justify-content: center;
        margin: 16px auto 0;
        border: 0;
        background: transparent;
    }
}
.twotm-news-feed__header {
    text-align: center;
}

.twotm-news-feed__header h2,
.twotm-news__mobile-header h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}

.twotm-news__section-toggle {
    width: 96px;
    height: 24px;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.twotm-news__section-toggle span {
    content: "";
    position: absolute;
    inset: 4px 0 0;
    display: block;
    background: var(--twotm-news-green);
    -webkit-mask: url("../images/section-arrow.svg") center / contain no-repeat;
    mask: url("../images/section-arrow.svg") center / contain no-repeat;
}

.twotm-news__section-toggle[aria-expanded="true"] span {
    transform: rotate(180deg);
}

.twotm-news__description {
    max-width: 720px;
    margin: 8px auto 18px;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
}

.twotm-news__description-title {
    text-align: center;
}

.twotm-news-feed__filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    margin: 12px 0 26px;
}

.twotm-news-feed__search button {
    right: 12px;
    top: 10px;
    background: transparent;
}

.twotm-news-feed__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.twotm-news-feed__footer {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 8px;
}

.twotm-news-feed__top,
.twotm-news-feed__description-close {
    width: 150px;
    display: grid;
    justify-items: center;
    gap: 4px;
    margin: 0 auto;
    border: 0;
    background: transparent;
    color: var(--twotm-news-green);
    font: inherit;
    cursor: pointer;
}

.twotm-news-feed__top span,
.twotm-news-feed__description-close span {
    width: 96px;
    height: 24px;
    display: block;
    background: var(--twotm-news-green);
    transform: rotate(180deg);
    -webkit-mask: url("../images/section-arrow.svg") center / contain no-repeat;
    mask: url("../images/section-arrow.svg") center / contain no-repeat;
}

.twotm-news-feed__top strong {
    color: #111;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.twotm-news-feed__copyright-row {
    display: flex;
    justify-content: flex-end;
}

.twotm-news-feed__copyright {
    border: 0;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.twotm-news-feed__description-panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: max-height .26s ease, opacity .26s ease, transform .26s ease;
}

.twotm-news-feed__description-panel.is-open {
    max-height: 5000px;
    opacity: 1;
    transform: translateY(0);
}

.twotm-news-feed__description-panel .twotm-news__description {
    max-width: none;
    margin: 0;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

.twotm-news-feed__description-close {
    margin-top: 10px;
}

.twotm-news-card {
    background: #fff;
    border: 2px solid #d8d8d8;
    border-radius: 12px;
    padding: 12px 12px 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

.twotm-news-card.is-active {
    border-color: var(--twotm-news-orange);
}

.twotm-news-card.is-viewed {
    border-color: var(--twotm-news-green);
}

.twotm-news-card strong {
    display: -webkit-box;
    min-height: 66px;
    margin: 18px 4px 12px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.22;
    text-align: center;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.twotm-news-card time {
    display: block;
    text-align: center;
    font-size: 14px;
}

.twotm-news-context {
    position: fixed;
    z-index: 9999;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--twotm-news-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
    overflow: hidden;
}

.twotm-news-context button,
.twotm-news-context a {
    width: 100%;
    display: block;
    border: 0;
    background: #fff;
    padding: 12px 14px;
    color: #111;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.twotm-news-context button:hover,
.twotm-news-context a:hover {
    background: #f2f2f2;
}

.twotm-news-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(0, 0, 0, .72);
}

.twotm-news-modal[hidden] {
    display: none;
}

.twotm-news-modal img {
    width: min(920px, 100%);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.twotm-news-modal button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.twotm-news__mobile {
    display: none;
}

@media (max-width: 1180px) {
    .twotm-news__shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .twotm-news__left {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .twotm-news__right {
        overflow: visible;
    }
}

@media (max-width: 1440px) {
    .twotm-news-open__header h1 {
        font-size: 32px;
    }

    .twotm-news-feed__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
