/* Inesco: invisible SmartCaptcha — off-screen but renderable size */
.inesco-captcha {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 320px !important;
    height: 88px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#award_form .form-group.last_f_bl,
#ajaxform .form-group.last_f_bl,
#ajaxform2 .form-group.last_f_bl,
.modalform .form-group.last_f_bl {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    height: auto !important;
    min-height: 0;
    width: 100%;
    position: relative;
    margin-top: 8px;
}

#award_form .form-group.last_f_bl .btn-success,
#ajaxform .form-group.last_f_bl .btn-success,
#ajaxform2 .form-group.last_f_bl .btn-success,
.modalform .form-group.last_f_bl .btn-success,
.form-group.last_f_bl .inesco-form-submit,
.form-group.last_f_bl .inesco-form-submit-career {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    align-self: flex-start;
    margin: 0;
}

#award_form .form_bottom {
    width: 100%;
}

#award_form input.is-invalid,
#award_form select.is-invalid,
#ajaxform input.is-invalid,
#ajaxform select.is-invalid,
#ajaxform2 input.is-invalid,
#ajaxform2 select.is-invalid,
#lightcase-content input.is-invalid,
#lightcase-content select.is-invalid {
    outline: 2px solid #dc3545;
    outline-offset: 1px;
}

/* Microcalcite overlay color on homepage categories slider */
a.category-main-tov[href*="microcalcite"] .rectangle-2b,
a.category-main-tov[href*="microcalcite"] .rectangle-25,
a.category-main-tov[href*="microcalcite"] .frame-main_cat_text {
    background: #a0a0bc !important;
}

a.category-main-tov[href*="microcalcite"]:hover .rectangle-2b,
a.category-main-tov[href*="microcalcite"]:hover .rectangle-25 {
    background: #a0a0bc !important;
}

/* Fixed header: no layout jump on scroll (sticky class is visual only) */
body {
    margin-top: 0 !important;
}

/* Modal forms: no phantom scrollbar (legacy last_f_bl was 25px for reCAPTCHA) */
.form-group.last_f_bl {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

#lightcase-content .lightcase-inlineWrap,
#lightcase-content .lightcase-contentInner,
html[data-lc-type=inline] #lightcase-content .lightcase-inlineWrap {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

#lightcase-content .modalform,
#lightcase-content form#ajaxform,
#lightcase-content form#ajaxform2 {
    overflow: visible !important;
}

/* Header logo: shimmer on hover */
a.logo {
    transition: filter 0.35s ease;
}

a.logo::after {
    content: "";
    position: absolute;
    inset: -2px 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 36%,
        rgba(255, 255, 255, 0.1) 42%,
        rgba(180, 215, 220, 0.65) 48%,
        rgba(58, 85, 89, 0.4) 50%,
        rgba(180, 215, 220, 0.55) 52%,
        rgba(255, 255, 255, 0.12) 58%,
        transparent 64%,
        transparent 100%
    );
    transform: translateX(-140%) skewX(-14deg);
    pointer-events: none;
    z-index: 1;
}

a.logo:hover {
    filter: brightness(1.07) contrast(1.03);
}

a.logo:hover::after {
    animation: inesco-logo-shimmer 0.9s ease-in-out;
}

a.logo:focus-visible {
    outline: 2px solid #3a5559;
    outline-offset: 3px;
}

@keyframes inesco-logo-shimmer {
    0% {
        transform: translateX(-140%) skewX(-14deg);
    }
    100% {
        transform: translateX(140%) skewX(-14deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    a.logo::after {
        display: none;
    }

    a.logo:hover {
        filter: brightness(1.05);
    }
}

/* Popup forms: consent checkbox must be clickable */
#lightcase-content .custom-control.custom-checkbox {
    position: relative;
    z-index: 2;
}

#lightcase-content .custom-control-input {
    position: absolute;
    z-index: 3;
    cursor: pointer;
}

#lightcase-content .custom-control-label {
    cursor: pointer;
    pointer-events: auto;
}

#lightcase-content .custom-control-label a {
    position: relative;
    z-index: 4;
}

.custom-control.has-error .custom-control-label::before {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25);
}

/* Homepage news slider — equal cards, aligned button + date (overrides app.css @1400px) */
section.s-news.slider_news_cont .swiper-wrapper,
section.s-news.slider_news_cont .swiper-wrapper.nowrap {
    align-items: stretch !important;
}

section.s-news.slider_news_cont .swiper-slide.art_wr {
    display: flex !important;
    height: auto !important;
    box-sizing: border-box;
}

section.s-news.slider_news_cont .swiper-slide.art_wr > .news-main_cont:not(.predpr_cont) {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
}

section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) > .frame-news_main_block:first-child {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) > .frame-news_main_block:last-child {
    margin-top: auto !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    padding-top: 8px !important;
}

section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) .frame-news_main_text {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) .span_zag {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2;
    overflow: hidden !important;
    height: 48px !important;
    max-height: 48px !important;
    min-height: 48px !important;
    line-height: 24px !important;
    white-space: normal !important;
}

section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) .span-text {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4;
    overflow: hidden !important;
    text-overflow: ellipsis;
    word-break: break-word;
    width: 100% !important;
    height: 96px !important;
    max-height: 96px !important;
    min-height: 96px !important;
    line-height: 24px !important;
    margin: 0 !important;
}

/* Дата над кнопкой (в разметке дата после кнопки — column-reverse) */
section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) .frame-news_main_bot {
    display: flex !important;
    flex-direction: column-reverse !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    align-self: stretch !important;
    gap: 8px !important;
    width: 100% !important;
}

section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) .frame-news_main_link {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    top: auto !important;
    left: auto !important;
    position: relative !important;
}

section.s-news.slider_news_cont .news-main_cont:not(.predpr_cont) .span-data {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Cookie consent banner */
.inesco-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 16px;
    background: rgba(26, 42, 46, 0.96);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.inesco-cookie-banner[hidden] {
    display: none !important;
}

.inesco-cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.inesco-cookie-banner__text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.inesco-cookie-banner__text a {
    color: #9fd4d9;
    text-decoration: underline;
}

.inesco-cookie-banner__actions {
    flex: 0 0 auto;
}

/* Cookie banner accept button — inverted site style */
.inesco-cookie-banner .inesco-cookie-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 50px;
    padding: 14px 36px;
    margin: 0;
    cursor: pointer;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    color: #3a5559 !important;
    font-family: Gerbera, var(--default-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    white-space: nowrap;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.inesco-cookie-banner .inesco-cookie-accept:hover,
.inesco-cookie-banner .inesco-cookie-accept:focus {
    background: #eef2f3 !important;
    color: #092a30 !important;
}

.inesco-cookie-banner .inesco-cookie-accept:focus-visible {
    outline: 2px solid #9fd4d9;
    outline-offset: 2px;
}

.foot_bl_3 a {
    display: block;
    margin-bottom: 6px;
}

/* EN microcalcite slide (pagebuilder may use microcalcite-en href) */
a.category-main-tov[href*="microcalcite"] .rectangle-2b,
a.category-main-tov[href*="microcalcite"] .rectangle-25,
a.category-main-tov[href*="microcalcite"] .frame-main_cat_text,
a.category-main-tov[href*="microcalcite-en"] .rectangle-2b,
a.category-main-tov[href*="microcalcite-en"] .rectangle-25,
a.category-main-tov[href*="microcalcite-en"] .frame-main_cat_text {
    background: #a0a0bc !important;
}

a.category-main-tov[href*="microcalcite"]:hover .rectangle-2b,
a.category-main-tov[href*="microcalcite"]:hover .rectangle-25,
a.category-main-tov[href*="microcalcite-en"]:hover .rectangle-2b,
a.category-main-tov[href*="microcalcite-en"]:hover .rectangle-25 {
    background: #a0a0bc !important;
}

/* Contact form ("Остались вопросы?") — 2 checkboxes: taller block + column layout */
.flex-row-dd-96 {
    height: 800px !important;
    min-height: 800px;
}

.rectangle-98 {
    height: 94% !important;
}

#award_form_wrapper,
#award_form.frame-9b {
    width: 100%;
    max-width: 644px;
}

#award_form .form_bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 12px !important;
}

#award_form .form_bottom > .custom-control.custom-checkbox {
    width: 100% !important;
    max-width: 644px !important;
    min-height: 0;
    margin-bottom: 0 !important;
    padding-left: 1.75rem;
}

#award_form .form_bottom .agree-with,
#award_form_wrapper .agree-with {
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

#award_form .form-group.last_f_bl {
    width: 100% !important;
    margin-top: 4px !important;
}

@media (max-width: 1700px) {
    .flex-row-dd-96 {
        height: 730px !important;
        min-height: 730px;
    }
    .rectangle-98 {
        height: 640px !important;
    }
}

@media (max-width: 1400px) {
    .flex-row-dd-96 {
        height: 710px !important;
        min-height: 710px;
    }
    .rectangle-98 {
        height: 660px !important;
    }
    #award_form input,
    #award_form select,
    #award_form .form_bottom > .custom-control.custom-checkbox {
        max-width: 530px !important;
    }
}

@media (max-width: 992px) {
    .flex-row-dd-96 {
        height: 750px !important;
        min-height: 750px;
    }
    .rectangle-98 {
        height: 750px !important;
    }
}

@media (max-width: 768px) {
    .flex-row-dd-96 {
        height: 780px !important;
        min-height: 780px;
    }
    .rectangle-98 {
        height: 780px !important;
    }
}

@media (max-width: 576px) {
    .flex-row-dd-96 {
        height: 800px !important;
        min-height: 800px;
    }
    .rectangle-98 {
        height: 800px !important;
    }
    #award_form input,
    #award_form select,
    #award_form .form_bottom > .custom-control.custom-checkbox {
        max-width: 100% !important;
    }
}


