body {
    background-color: #F8FAFC;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #0F172A;
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-container {
    margin-top: 24px;
    margin-bottom: 40px;
}

.navbar-brand-custom {
    background-color: #2C3E50 !important;
}

.site-logo-img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.bg-primary {
    background-color: #EFC43D !important;
}

.text-primary {
    color: #EFC43D !important;
}

.btn-primary {
    background-color: #EFC43D !important;
    border-color: #EFC43D !important;
    color: #FFFFFF !important;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: none !important;
}

.btn-primary:hover {
    background-color: #0CA8BD !important;
    border-color: #0CA8BD !important;
}

.btn-outline-primary {
    color: #EFC43D !important;
    border-color: #EFC43D !important;
    background: transparent !important;
    border-radius: 6px;
    box-shadow: none !important;
}

.btn-outline-primary:hover {
    background-color: #EFC43D !important;
    color: #FFFFFF !important;
}

.news-card {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.news-card:hover {
    border-color: #CBD5E1;
}

.news-card-sticky {
    border: 2px solid #EFC43D !important;
}

.news-card-horizontal {
    flex-direction: row;
    overflow: hidden;
}

.news-card-horizontal .news-card-img-wrapper {
    height: 100%;
    min-height: 180px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 7px;
    border-bottom: none;
}

.news-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background-color: #FFFFFF !important;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    display: block;
    border-bottom: 1px solid #F1F5F9;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-news-full-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #F1F5F9;
    cursor: pointer;
}

.add-photos-carousel {
    position: relative;
    padding: 0 10px;
    margin-top: 12px;
}

.add-photos-carousel .item {
    height: 85px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.add-photos-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.add-photos-carousel .owl-nav button {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: #34495E !important;
    color: #FFFFFF !important;
    width: 28px;
    height: 26px;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    z-index: 10;
}

.add-photos-carousel .owl-nav button:hover {
    background: #EFC43D !important;
}

.add-photos-carousel .owl-nav button.owl-prev { left: -10px; }
.add-photos-carousel .owl-nav button.owl-next { right: -10px; }

.add-photos-carousel .owl-dots {
    text-align: center;
    margin-top: 8px;
}

.add-photos-carousel .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 3px;
    background: #CBD5E1 !important;
    display: inline-block;
    border-radius: 50%;
}

.add-photos-carousel .owl-dot.active span {
    background: #EFC43D !important;
}

.news-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    color: #0F172A !important;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    text-decoration: none !important;
    margin-bottom: 8px;
    display: block;
}

.news-card-title:hover {
    color: #EFC43D !important;
}

.news-card-excerpt {
    color: #64748B;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-footer {
    border-top: 1px solid #F1F5F9;
    padding: 10px 18px;
    background-color: #FAFAFC;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.share-buttons {
    display: flex;
    gap: 10px !important;
    align-items: center;
    flex-wrap: wrap;
}

.share-buttons .btn {
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    box-shadow: none !important;
}

.promo-content-box {
    margin: 20px 0;
}

.partner-origin-box {
    margin-top: 15px;
    padding-top: 12px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    padding-left: 42px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    box-shadow: none !important;
}

.search-box .fa-search {
    position: absolute;
    left: 16px;
    top: 13px;
    color: #94A3B8;
}

.hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.single-news-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.single-news-content p {
    margin-bottom: 1.2rem;
}

.single-news-content a {
    color: #EFC43D !important;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: 1px solid #EFC43D;
    padding-bottom: 1px;
}

.single-news-content a:hover {
    color: #EFC43D !important;
}

#btn-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #34495E;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#btn-back-to-top:hover {
    background-color: #EFC43D;
}

.footer-light {
    background-color: #FFFFFF !important;
    border-top: 1px solid #E2E8F0;
    color: #64748B;
}

.footer-nav-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav-links a:hover {
    color: #EFC43D;
}

body.dark-mode {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

body.dark-mode .news-card,
body.dark-mode .card,
body.dark-mode .footer-light {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

body.dark-mode .news-card-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5,
body.dark-mode .footer-light h6,
body.dark-mode .footer-light .text-dark {
    color: #F8FAFC !important;
}

body.dark-mode .news-card-excerpt,
body.dark-mode .text-muted,
body.dark-mode .single-news-content,
body.dark-mode .footer-nav-links a,
body.dark-mode .footer-light a {
    color: #CBD5E1 !important;
}

body.dark-mode .footer-nav-links a:hover,
body.dark-mode .footer-light a:hover {
    color: #EFC43D !important;
}

body.dark-mode .news-card-footer {
    background-color: #0F172A !important;
    border-top-color: #334155 !important;
}

body.dark-mode .search-box input,
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

body.dark-mode .news-card-img-wrapper {
    background-color: #1E293B !important;
    border-bottom-color: #334155 !important;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.admin-container {
    max-width: 1200px;
}

.nav-tabs .nav-link {
    color: #64748B;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #EFC43D;
    border-bottom: 3px solid #EFC43D;
}

.news-card-no-img {
  border-top: 1px solid #E2E8F0 !important;
}

.news-card-no-img .news-card-body {
    height: 100%;
}

//* =========================================================
   СТИЛЬ ЗАГЛУШКИ ДЛЯ НОВОСТЕЙ БЕЗ ФОТО (БЕЛЫЙ ФОН И БЕЗ ПОЛОСКИ)
   ========================================================= */

/* Убираем бирюзовую полоску сверху карточек без фото */
.news-card-no-img {
    border-top: 1px solid #E2E8F0 !important;
}

/* 1. НА МОБИЛЬНЫХ УСТРОЙСТВАХ (< 768px) ЗАГЛУШКА СКРЫТА ПОЛНОСТЬЮ */
@media (max-width: 767.98px) {
    .is-fallback-wrapper,
    a.is-fallback-wrapper,
    .news-card-img-wrapper.is-fallback-wrapper,
    .news-card-no-img .is-fallback-wrapper {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* 2. НА ПК (>= 768px) ПЛАШКА 70x70px С ЧИСТО БЕЛЫМ ФОНОМ */
@media (min-width: 768px) {
    .news-card-no-img {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .news-card-no-img .is-fallback-wrapper,
    a.news-card-img-wrapper.is-fallback-wrapper,
    .is-fallback-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
        margin: 16px 0 0 16px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        background-color: #FFFFFF !important; /* БЕЛЫЙ ФОН */
        border: 1px solid #E2E8F0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .news-card-no-img .is-fallback-wrapper img,
    a.news-card-img-wrapper.is-fallback-wrapper img,
    .is-fallback-wrapper img.is-fallback {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        object-fit: contain !important;
        opacity: 0.4 !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .news-card-no-img .news-card-body {
        padding-left: 12px !important;
        flex-grow: 1 !important;
    }
}

/* Уменьшаем текст и отступы кнопки на мобильных устройствах */
@media (max-width: 575.98px) {
    .btn-add-news {
        font-size: 0.73rem !important;  /* Уменьшенный шрифт (~11.5px) */
        padding: 4px 8px !important;     /* Уменьшенные отступы */
        white-space: nowrap !important;  /* Запрет переноса текста */
    }
    
    /* Небольшая оптимизация отступов в шапке для мобилок */
    .navbar .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
/* ==== Блоки в текстах материалов (ИИ-генератор и визуальный редактор) ==== */
.single-news-content .callout, .service-content .callout, .callout { border-radius: 12px; padding: .9rem 1.1rem; margin: 1.2rem 0; border: 1px solid; }
.callout ul { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: .4rem; }
.callout-danger { background: #fef2f2; border-color: #fecaca; } .callout-danger .callout-title { color: #b91c1c; }
.callout-success { background: #f0fdf4; border-color: #bbf7d0; } .callout-success .callout-title { color: #15803d; }
.callout-warning { background: #fffbeb; border-color: #fde68a; } .callout-warning .callout-title { color: #b45309; }
.callout-info { background: #f0f9ff; border-color: #bae6fd; } .callout-info .callout-title { color: #0369a1; }
.faq { margin: 1rem 0 1.5rem; }
.faq-item { border-bottom: 1px solid #e2e8f0; padding: .7rem 0; }
.faq-q { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
.faq-a { margin: 0; color: #475569; }
.single-news-content table, .service-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.single-news-content th, .single-news-content td, .service-content th, .service-content td { border: 1px solid #e2e8f0; padding: .45rem .65rem; }
.single-news-content img { max-width: 100%; height: auto; border-radius: 10px; }
/* Автоперелинковка: ссылки на услуги в текстах */
a.autolink { color: inherit; text-decoration: underline; text-decoration-color: rgba(245,130,32,.6); text-underline-offset: 3px; }
a.autolink:hover { color: #f58220; }
/* FAQ под услугами (details/summary — ответы в HTML страницы, без JS) */
.service-faq-item { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: .6rem; background: #fff; }
.service-faq-item summary { list-style: none; cursor: pointer; padding: .9rem 2.6rem .9rem 1.1rem; position: relative; }
.service-faq-item summary::-webkit-details-marker { display: none; }
.service-faq-item summary::after { content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: #f58220; }
.service-faq-item[open] summary::after { content: '−'; }
.service-faq-item summary h3 { font-size: 1.05rem; font-weight: 700; margin: 0; display: inline; }
.service-faq-answer { padding: 0 1.1rem 1rem; color: #475569; line-height: 1.65; }
/* Выбор города (мультирегиональность) */
.region-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .78rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.region-btn:hover { background: rgba(255,255,255,.12); }
@media (max-width: 575px) { .region-btn-label { display: none; } }
.region-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; }
.region-modal[hidden] { display: none; }
.region-box { background: #fff; color: #1e293b; border-radius: 16px; width: 100%; max-width: 760px; max-height: 84vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.region-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; font-size: 1.1rem; }
.region-close { border: 0; background: none; font-size: 1.8rem; line-height: 1; color: #64748b; }
.region-search { margin: 6px 18px 10px; padding: 9px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: .95rem; }
.region-list { overflow-y: auto; padding: 0 18px 16px; columns: 3 200px; column-gap: 18px; }
.region-letter { font-weight: 700; color: #f58220; margin: 8px 0 2px; break-after: avoid; }
.region-city { display: block; padding: 4px 6px; border-radius: 8px; color: #1e293b; text-decoration: none; break-inside: avoid; font-size: .92rem; }
.region-city span { display: block; font-size: .72rem; color: #94a3b8; }
.region-city:hover, .region-city.active { background: #fff4ea; color: #c2410c; }
body.dark-mode .region-box { background: #1e293b; color: #e2e8f0; }
body.dark-mode .region-city { color: #e2e8f0; }
body.dark-mode .region-search { background: #0f172a; color: #e2e8f0; border-color: #334155; }
