/* Search highlighting */
.search-page b {
    padding: 0px 2px;
    background: rgb(219, 255, 200);
}

/* alerts */
.alert {
    margin: 20px 0;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
}
.alert-success {
    color: #78c350;
    background-color: #ebf6e5;
}
.alert-success a {
    color: #5fa739 !important;
}
.alert-info {
    color: #45bbe0;
    background-color: #e3f5fa;
}
.alert-info a {
    color: #23a6cf !important;
}
.alert-warning {
    color: #ff9800;
    background-color: #fff0d9;
}
.alert-warning a {
    color: #cc7a00 !important;
}
.alert-danger {
    color: #f7531f;
    background-color: #fee5dd;
}
.alert-danger a {
    color: #db3b08 !important;
}

/* forms */
.special-field {
    display: none !important;
    visibility: hidden !important;
}

.field:not(.error-field) .error,
.field:not(.error-field) .error-text {
    display: none;
}

.ajax-form .btn-waiting,
.ajax-form .btn-waiting:hover,
.ajax-form .btn-waiting:active,
.ajax-custom-form .btn-waiting,
.ajax-custom-form .btn-waiting:hover,
.ajax-custom-form .btn-waiting:active {
    background-image: linear-gradient(-45deg, rgba(192, 192, 192, 0.2) 25%, transparent 25%, transparent 50%, rgba(192, 192, 192, 0.2) 50%, rgba(192, 192, 192, 0.2) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    -webkit-animation: button-waiting 1s linear infinite;
    animation: button-waiting 1s linear infinite;
}
@-webkit-keyframes button-waiting {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 20px 0;
    }
}
@keyframes button-waiting {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 20px 0;
    }
}

/* fix front-end bugs */

ymaps a {
    border-bottom: 0;
}
.error-field .checkbox-item input[type="checkbox"] + label:before{
    border-color: rgb(221, 7, 7);
}
.form-box .submit-message{
    display: none;
}
.form-box .submit-message-footer{
    display: none;
}

.form-message{
    max-width: 704px;
    margin: min(max(32px, calc(2rem + ((1vw - 4.8px) * 0.7353))), 40px) auto 0;
}

/* Стили для сообщений формы подписки */
.result-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.result-message .message-content {
    padding: 10px;
    border-radius: 4px;
}

.result-message .alert {
    margin: 0;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.result-message .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.result-message .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.result-message .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Анимация появления сообщений */
.result-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для кнопки в состоянии загрузки */
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-waiting {
    position: relative;
}

.btn-waiting::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.icon-label{
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 16px;
    display: flex;
    padding: 0 4px;
}
.art-label-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .9);
    border-radius: 4px;
    pointer-events: none;
    margin: 0 4px;
}
.art-title .title-icon-label{
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    line-height: .75em;
    padding-right: 4px;
}
.latest-articles .art-label-icon{
    width: 24px;
    height: 24px;
    margin: 0 2px;
}
.latest-articles .icon-label{
    right: 0px;
    bottom: 4px;
    height: 24px;
}
.submit-message-footer {
    display: flex;
    gap: 32px;
    max-width: 450px;
    margin: 0 auto;
}
.section-title-box .section-title {
    display: flex;
    align-items: flex-end;
}
.section-title .icon {
    height: 1.15em;
    margin-right: min(max(6px, calc(0.375rem + ((1vw - 4.8px) * 0.3676))), 10px);
}
.text-card{
    width: 100%;
}
.active-results{
    display: flex;
}
.accordion .title .icon {
  transition: transform 0.3s ease;
}
.accordion .opened .title .icon {
  transform: rotate(180deg);
}
.accordion .title .icon {
    display: flex;
    width: 24px;
    height: 24px;
    background-color: black;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg fill="black" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4.75796 7.83789L12.0058 15.0858L19.2537 7.83789L20.6679 9.25211L12.0058 17.9142L3.34375 9.25211L4.75796 7.83789Z"/></svg>');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-image: url('data:image/svg+xml;utf8,<svg fill="black" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4.75796 7.83789L12.0058 15.0858L19.2537 7.83789L20.6679 9.25211L12.0058 17.9142L3.34375 9.25211L4.75796 7.83789Z"/></svg>');
    mask-repeat: no-repeat;
    mask-size: auto;
}
/*Text cards*/
.text-cards-content{
    display: flex;
    flex-direction: column;
    gap: min(max(24px, calc(1.5rem + ((1vw - 4.8px) * 0.7353))), 32px);
    margin: 32px calc(var(--padding-container) * -1);
}
.text-card-content{
    margin: 0 auto;
    max-width: 784px;
    width: 100%;
    }
.text-card-content .text{
    padding: var(--padding-40);
    background: var(--secondary-bg);
    overflow: hidden;
    }
.special-layout-page .text-card-content .text{
    background: var(--white);
    }
.text-card-content .text > *:first-child{
    margin-top: 0;
    }
.text-card-content .text > *:last-child{
    margin-bottom: 0;
    }
.text-card-content .num{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--onest);
    font-weight: 800;
    font-size: min(max(18px, calc(1.125rem + ((1vw - 4.8px) * 0.5515))), 24px);
    line-height: 1em;
    letter-spacing: -.02em;
    margin: 0 0 min(max(16px, calc(1rem + ((1vw - 4.8px) * 0.7353))), 24px);
    width: min(max(40px, calc(2.5rem + ((1vw - 4.8px) * 1.4706))), 56px);
    height: min(max(40px, calc(2.5rem + ((1vw - 4.8px) * 1.4706))), 56px);
    background: var(--primary-50);
    border-radius: var(--radius-circle);
    }
.text-card-content .h3, .text-card-content .h3, .text-card-content h2{
    margin-top: 0;
    }
.text-card-content img{
    margin: 0;
    }
.text-card-content .num:before, .text-card-content .num:after{
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    background: var(--primary-100);
    }
.text-card-content .num:before{
    right: calc(100% + 16px);
    width: 24px;
    }
.text-card-content .num:after{
    left: calc(100% + 16px);
    width: 680px;
    }
.text-card-content .description p{
    margin: 0;
}
.main p:has(img) {
    margin: 0;
    max-width: none;
}
a[target=_blank].transparent:after {
    content: none;
}
a[target=_blank].ads-ratio:after {
    content: none;
}
.cookies-popup{
    display:none
}
.text-card-content h2{
    font-size: min(max(28px, calc(1.75rem + ((1vw - 12.8px) * 1.3889))), 32px);
    letter-spacing: -.02em;
    margin: 40px auto 24px;
}    
.event-post-banner{
    margin-top: 32px;
}