﻿/* ND54 home page core */

/* Фон города — на html (fixed), контент прозрачный */
html.nd54-site-bg {
    background-color: #1a4a7a;
    background-image:
        linear-gradient(
            165deg,
            rgba(34, 121, 189, 0.42) 0%,
            rgba(74, 160, 221, 0.28) 45%,
            rgba(12, 42, 82, 0.48) 100%
        ),
        url(../images/bg-02-city-blur.png);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.nd54-fast-boot,
body.nd54-premium-active,
#page-wraper {
    background: transparent !important;
}

.section.about-me {
    background: transparent !important;
}

.section.about-me .top-header,
.section.about-me .map-explorer-viewport {
    background: transparent;
}

.section.about-me .nd54-about-accordion {
    background: rgba(255, 255, 255, 0.94);
    color: #1e293b;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    padding: 0.5rem 1rem 1rem;
}

.section.about-me .section-heading h2,
.section.about-me .section-heading span,
.section.about-me .hero-fade-in h2,
.section.about-me .hero-fade-in span {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

body.nd54-ultra-safe *, body.nd54-ultra-safe *::before, body.nd54-ultra-safe *::after { animation: none !important; transition: none !important; }
html { -webkit-text-size-adjust: 100%; }
.role-card { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.service-item.reveal { box-shadow: 0 6px 20px rgba(13, 110, 253, 0.1); }
/* Все существующие стили остаются без изменений */
.map-container.expanded { transform: scale(1.05); z-index: 10; }
.city-list { display: none; margin-top: 20px; padding: 15px; background: rgba(255,255,255,0.95); border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); text-align: left; color: #333; animation: fadeIn 0.5s; }
.city-list.show { display: block; }
.city-list h4 { margin-bottom: 15px; color: #1a1a2e; font-weight: 700; }
.city-list ul { columns: 2; list-style: none; padding: 0; }
.city-list li { margin-bottom: 8px; font-size: 1.1em; }
.city-list li i { color: #007bff; margin-right: 8px; }
.map-explorer { position: relative; margin: 0 auto; }
.map-explorer--map-only .map-explorer-toolbar { display: none; }
.map-explorer-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; min-height: 40px; }
.map-explorer-toolbar .map-breadcrumb { font-size: 0.95rem; color: #333; text-align: left; flex: 1; }
/* Карта без «карточки»: прозрачный вьюпорт, без тени и скругления — вплав в фон секции */
.map-explorer-viewport { position: relative; min-height: 320px; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; transition: background 0.35s ease; }
.map-explorer--map-only .map-explorer-viewport { min-height: 0; }
.map-level--country object.svg-map { display: block; background: transparent; border-radius: 0; box-shadow: none; vertical-align: top; }
.map-level--country { transition: opacity 0.52s ease, transform 0.68s cubic-bezier(0.32, 0.72, 0.25, 1); transform-origin: 48% 58%; }
.map-level--country.map-level--exiting { opacity: 0; transform: scale(2.45); pointer-events: none; }
.map-level[hidden] { display: none !important; }
.map-container { position: relative; cursor: pointer; transition: transform 0.3s ease; }
.map-oblast-stage { position: relative; padding: 16px; min-height: 380px; display: flex; flex-direction: column; align-items: center; }
.map-level--oblast:not([hidden]) .map-oblast-stage { animation: nd54OblastEnter 0.78s cubic-bezier(0.22, 1, 0.32, 1) both; }
@keyframes nd54OblastEnter {
    from { opacity: 0.2; transform: scale(1.18); filter: blur(1px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.map-oblast-zoom { position: relative; width: 100%; max-width: 420px; transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.map-explorer--city-zoom .map-oblast-zoom { box-shadow: 0 6px 20px rgba(0,0,0,0.1); border-radius: 12px; }
.map-oblast-silhouette { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; filter: none; }
.map-city-markers { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.map-city-marker { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; font-size: 0.7rem; padding: 4px 8px; border-radius: 999px; border: 2px solid #1a3a6e; background: rgba(255,255,255,0.95); color: #1a3a6e; font-weight: 600; cursor: pointer; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.map-city-marker:hover, .map-city-marker:focus { background: #1a3a6e; color: #fff; outline: none; }
.map-region-summary { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; margin-bottom: 12px; font-size: 0.9rem; color: #333; }
.map-region-summary__item strong { color: #0d47a1; }
.map-city-panel { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 8; background: rgba(255,255,255,0.97); border-radius: 12px; padding: 16px 18px; box-shadow: 0 8px 28px rgba(0,0,0,0.2); text-align: left; color: #222; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s; }
.map-city-panel.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
@media (prefers-reduced-motion: no-preference) {
    .map-explorer--city-open .map-city-panel.is-active { transform: translateY(0) scale(1.008); }
}
.map-city-panel h4 { margin: 0 0 12px; font-size: 1.15rem; color: #1a1a2e; }
.map-city-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.map-city-stats li { font-size: 0.92rem; }
.map-city-stats strong { display: block; font-size: 1.35rem; color: #0d47a1; line-height: 1.2; }
.map-city-footnote { margin: 12px 0 0; font-size: 0.75rem; color: #666; line-height: 1.35; }
.map-back-btn { font-size: 0.9rem; padding: 6px 14px; border-radius: 8px; border: 1px solid #1a3a6e; background: #fff; color: #1a3a6e; cursor: pointer; }
.map-back-btn:hover { background: #1a3a6e; color: #fff; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.security-animation { position: fixed; bottom: 20px; right: 20px; width: 150px; height: auto; z-index: 999; opacity: 0.7; border-radius: 10px; pointer-events: none; }
.hero-fade-in { animation: fadeInUp 1s ease forwards; }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.parallax { transition: transform 0.1s linear; }
.btn-pulse { animation: pulse 3s infinite; box-shadow: 0 0 0 rgba(255,255,255,0.7); }
.btn-pulse:hover { animation: none; box-shadow: none; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 50% { transform: scale(1.05); box-shadow: 0 0 10px rgba(255,255,255,0.7); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } }
.service-item { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.service-item:hover .fa { animation: iconShake 0.3s ease; }
@keyframes iconShake { 0% { transform: rotate(0deg); } 25% { transform: rotate(5deg); } 75% { transform: rotate(-5deg); } 100% { transform: rotate(0deg); } }
/* Стили блока «Задачи проекта» — assets/css/nd54-lively.css (.nd54-project-tasks-panel) */
.left-image-post ul li { transition: transform 0.3s ease, background-color 0.3s ease; padding: 10px; border-radius: 8px; }
.left-image-post ul li:hover { transform: translateY(-3px); background-color: rgba(255,255,255,0.1); }
.service-item { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.service-item.reveal { opacity: 1; transform: none; }
.service-item.reveal:nth-child(1) { transition-delay: 0s; }
.service-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-item.reveal:nth-child(4) { transition-delay: 0.3s; }
.form-control:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 0.2rem rgba(34,121,189,0.25) !important; transition: border-color 0.2s ease, box-shadow 0.2s ease; }

/* Форма обращения (светлая карточка, читаемые подписи — перекрывает тёмные правила #contact из main.min.css) */
.nd54-appeal-section {
    font-family: var(--nd54-font, "Inter", system-ui, sans-serif);
    position: relative;
    z-index: 3;
    isolation: isolate;
    min-height: auto !important;
    padding-bottom: 3rem !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    overflow: visible;
}

section.donation.nd54-donation-section {
    position: relative;
    z-index: 2;
    min-height: auto !important;
    margin-top: 0;
    clear: both;
}

/* Без 3D/сдвига — форма не «плывёт» поверх следующей секции */
body.nd54-premium-active #section4.nd54-reveal,
html.nd54-motion-ready body.nd54-premium-active #section4.nd54-reveal {
    transform: none !important;
}
/* Перекрывает main.min.css (.section { color:#fff }, .section-heading padding) */
#section4.nd54-appeal-section.section {
    color: #1e293b !important;
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
}
#section4.nd54-appeal-section > .container {
    padding-top: 0.75rem !important;
    padding-bottom: 1.25rem !important;
}
.nd54-appeal-section .section-heading {
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem 0 0.5rem !important;
    margin-bottom: 0.75rem !important;
}
.nd54-appeal-section .section-heading .line-dec {
    margin-left: auto;
    margin-right: auto;
    background: #2279bd !important;
}
#section4 .nd54-appeal-title,
#section4.nd54-appeal-section .section-heading h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
#section4.nd54-appeal-section .section-heading p,
.nd54-appeal-subtitle {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569 !important;
    margin: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
#section4.nd54-appeal-section .row {
    margin-top: 0;
}
.nd54-appeal-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.nd54-appeal-card .card-body {
    color: #1e293b;
}
#section4.nd54-appeal-section #contact input.form-control,
#section4.nd54-appeal-section #contact textarea.form-control {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    min-height: 48px;
    font-size: 1rem;
    margin-bottom: 0 !important;
}
#section4.nd54-appeal-section #contact .nd54-field-error {
    display: none;
    font-size: 0.8125rem;
    color: #dc3545;
    margin: 0.35rem 0 0;
    line-height: 1.35;
}

#section4.nd54-appeal-section #contact .nd54-field-error.is-visible {
    display: block;
}

#section4.nd54-appeal-section #contact .form-control.is-invalid ~ .invalid-feedback {
    display: none;
}
#section4.nd54-appeal-section #contact textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}
#section4.nd54-appeal-section #contact input.form-control::placeholder,
#section4.nd54-appeal-section #contact textarea.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
#section4.nd54-appeal-section #contact .form-control:focus {
    background: #fff !important;
    border-color: var(--primary, #2279bd) !important;
    box-shadow: 0 0 0 3px rgba(34, 121, 189, 0.2) !important;
}
#section4.nd54-appeal-section #contact .form-control.is-invalid {
    border-color: #dc3545 !important;
}
.nd54-appeal-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}
.nd54-appeal-label .nd54-req {
    color: #dc3545;
    font-weight: 700;
}
.nd54-appeal-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.25rem 0 0;
    line-height: 1.4;
}
.nd54-appeal-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}
.nd54-appeal-input-wrap--textarea .nd54-appeal-field-icon {
    top: 1.1rem;
    transform: none;
}
.nd54-appeal-input-wrap {
    position: relative;
}
#section4.nd54-appeal-section #contact .nd54-appeal-input--with-icon {
    padding-left: 2.5rem;
}
#section4.nd54-appeal-section #contact .btn-submit {
    border-radius: 10px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    min-height: 48px;
}
#section4.nd54-appeal-section #contact .btn-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

#section4.nd54-appeal-section #contact .btn-submit:not(:disabled) {
    cursor: pointer;
}

#section4.nd54-appeal-section {
    scroll-margin-top: 5rem;
}
@media (max-width: 576px) {
    .nd54-appeal-card .card-body {
        padding: 1.25rem !important;
    }
}
.ripple { position: relative; overflow: hidden; }
.ripple-effect { position: absolute; border-radius: 50%; background-color: rgba(255,255,255,0.5); transform: scale(0); animation: ripple-animation 0.6s linear; pointer-events: none; }
@keyframes ripple-animation { to { transform: scale(4); opacity: 0; } }
@media (max-width: 768px) { .parallax { transform: none !important; } .btn-pulse { animation: none; } }
@media (max-width: 576px) {
    .city-list ul { columns: 1 !important; }
    .map-explorer-viewport { min-height: 260px; }
    .map-oblast-stage { min-height: 280px; padding: 10px; }
}

.role-modal .modal-content { display: block !important; position: relative; background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%); border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); padding: 30px; max-width: 800px; width: 90%; margin: 30px auto; border: none; }
.role-modal__header .role-close { color: #666; }
.role-modal__header .role-close:hover { color: var(--primary); }
.role-modal-title { text-align: center; color: #1a1a2e; font-size: 2rem; font-weight: 700; margin-bottom: 0; letter-spacing: -0.5px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.role-card { background: white; border-radius: 16px; padding: 25px 15px; text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); border: 2px solid transparent; box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.role-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 25px -5px rgba(34,121,189,0.2), 0 10px 10px -5px rgba(34,121,189,0.1); }
.role-card:active { transform: translateY(-4px); }
.role-icon { width: 80px; height: 80px; background: rgba(34,121,189,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--primary); transition: all 0.3s; }
.role-card:hover .role-icon { background: var(--primary); color: white; transform: scale(1.1); }
.role-card h3 { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; margin: 0; }
.role-desc { font-size: 0.9rem; color: #666; line-height: 1.4; margin: 0; }
@media (max-width: 576px) { .role-grid { grid-template-columns: 1fr; gap: 15px; } .role-modal .modal-content { padding: 20px; width: 95%; } .role-modal__header { padding: 0 2.5rem; } .role-modal__header .role-modal-title { font-size: 1.5rem; margin-bottom: 1rem; } .role-card { padding: 20px 10px; } }

#taskModalCustom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10090;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    visibility: hidden;
    pointer-events: none;
}

#taskModalCustom.custom-modal--open {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
#taskModalCustom .custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
#taskModalCustom .custom-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#taskModalCustom .custom-modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#taskModalCustom .custom-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e2b37 !important;
}
#taskModalCustom .custom-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}
#taskModalCustom .custom-modal-close:hover {
    color: #000;
}
#taskModalCustom .custom-modal-body {
    padding: 25px;
    overflow-y: auto;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 1rem;
    line-height: 1.65;
}
/* main.min.css: p/h4 и др. с color:#fff — наследование с подложки для любых тегов внутри окна */
#taskModalCustom .custom-modal-body * {
    color: inherit !important;
}
#taskModalCustom .custom-modal-body p,
#taskModalCustom .custom-modal-body li {
    line-height: 1.65;
}
#taskModalCustom .custom-modal-body h5 {
    color: #0d47a1 !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
#taskModalCustom .custom-modal-body ul {
    margin-bottom: 15px;
    padding-left: 1.35rem !important;
    list-style: disc !important;
}
#taskModalCustom .custom-modal-body ul ul {
    list-style: circle !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
#taskModalCustom .custom-modal-body li {
    margin-bottom: 8px;
}
#taskModalCustom .custom-modal-body strong {
    color: #d63384 !important;
}
#taskModalCustom .custom-modal-footer {
    padding: 12px 20px;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
    text-align: right;
}
#taskModalCustom .custom-modal-btn-close {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}
#taskModalCustom .custom-modal-btn-close:hover {
    background-color: #5a6268;
}
@media (max-width: 576px) {
    #taskModalCustom .custom-modal-body {
        padding: 15px;
    }
    #taskModalCustom .custom-modal-container {
        width: 95%;
    }
}

.profile-button .profile-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2279bd; /* fallback for var(--primary) */
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.profile-button .profile-icon img,
.profile-button .profile-icon .nd54-profile-emblem {
    display: none !important;
}

.profile-button .profile-icon i {
    font-size: 1.8rem;
}
.profile-button .profile-icon .current-role {
    font-weight: 600;
}
.profile-button .profile-icon:hover {
    background: #1a5a8c;
}
@media (max-width: 640px) {
    .profile-button .profile-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        max-width: 46px;
        padding: 0 !important;
        border-radius: 50% !important;
        gap: 0 !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    }
    .profile-button .profile-icon .current-role {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        border: 0 !important;
    }
    .profile-button .profile-icon i {
        font-size: 1.35rem !important;
    }
}

/* ===== ОБНОВЛЁННЫЕ СТИЛИ КАРУСЕЛИ (прозрачный фон) ===== */
.news-carousel-section {
    padding: 40px 0 60px;
}
.news-carousel-section .news-carousel-heading {
    margin-bottom: 0;
}
/* Блок слайдера — на всю ширину колонки контента (вне .container) */
.news-carousel-bleed {
    width: 100%;
    max-width: 100%;
    margin-top: 1.25rem;
}
.news-carousel-bleed__inner {
    max-width: 100%;
}
#newsCarousel.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
#newsCarousel .carousel-inner,
#newsCarousel .carousel-item {
    border-radius: 16px;
}
.news-carousel .carousel-item img {
    width: 100% !important;
    height: min(50vh, 450px) !important;
    min-height: 220px;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.news-carousel .carousel-caption {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.55) 40%, rgba(15, 23, 42, 0.78) 100%);
    border-radius: 0 0 12px 12px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.news-carousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.news-carousel .carousel-caption p {
    font-size: 1rem;
    color: #f8f9fa;
}
.news-carousel .carousel-caption small {
    font-size: 0.85rem;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .news-carousel .carousel-item img {
        height: min(38vh, 280px) !important;
        min-height: 180px;
    }
    .news-carousel .carousel-caption {
        padding: 0.65rem 0.9rem 0.85rem;
    }
    .news-carousel .carousel-caption h5 {
        font-size: 1rem;
    }
    .news-carousel .carousel-caption p {
        font-size: 0.8rem;
        display: none;
    }
}
/* Стрелки — по центру по вертикали; не конфликтовать с transform в nd54-theme (hover) */
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    height: 2.75rem;
    top: 50%;
    bottom: auto;
    margin-top: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.9;
}
#newsCarousel .carousel-control-prev {
    left: 0.75rem;
}
#newsCarousel .carousel-control-next {
    right: 0.75rem;
}
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
    transform: translateY(-50%);
}
#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.65);
    transform: translateY(-50%) scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
    #newsCarousel .carousel-control-prev:hover,
    #newsCarousel .carousel-control-next:hover {
        transform: translateY(-50%);
    }
}
.news-carousel .carousel-indicators {
    position: static;
    margin: 0.75rem 0 0;
    justify-content: center;
}
.news-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #cbd5e1;
}
.news-carousel .carousel-indicators button.active {
    background-color: #2279bd;
}