/* =====================================================================
   custom_headliner.css — кастомные стили Headliner
   (контент ниже полностью соответствует исходному, без выкидышей)
   ===================================================================== */

/* === Шрифт === */
body {
    font-family: 'Neue_2', sans-serif;
}

/* === Верхнее меню === */
.menu-link.custom-nav {
    position: relative;
    display: inline-block;
    padding: 24px 12px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: inherit !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    transition: all 0.2s ease-in-out;
    margin-right: 16px;
}
.menu-link.custom-nav:last-child {
    margin-right: 2px;
}
.menu-link.custom-nav.active {
    font-weight: 400 !important;
    color: inherit !important;
}
.menu-link.custom-nav.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: #000;
    min-width: 80%;
    max-width: 100%;
}
@media (max-width: 991.98px) {
    .menu-link.custom-nav {
        padding: 12px 10px !important;
        margin-right: 8px !important;
    }
    .menu-link.custom-nav:last-child {
        margin-right: 0 !important;
    }
}

/* === Уведомления === */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-alert-box {
    background: #fff;
    border-radius: 6px;
    padding: 2rem 2.5rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-in-out;
}
.custom-alert-title {
    font-size: 40px;
    font-weight: 450;
    margin-bottom: 2rem;
    color: #212121;
}
.custom-alert-text {
    font-size: 16px;
    font-weight: 350;
    margin-bottom: 2rem;
    color: #212121;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* === Пагинация === */
.page-item .page-link {
    color: black !important;
    background-color: transparent !important;
    border: 1px solid #ccc !important;
}
.page-item.active .page-link {
    color: black !important;
    background-color: #e2e6ea !important;
    border-color: #dee2e6 !important;
}
.page-item.disabled .page-link,
.page-item.disabled i {
    color: #6c757d !important;
    pointer-events: none;
    background-color: transparent !important;
    border-color: transparent !important;
}

/* === Спиннер === */
.cs-page-loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.cs-page-loading.active {
  opacity: 1;
  visibility: visible;
}
.cs-page-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cs-page-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid transparent;
    border-top: 5px solid #59776E;
    border-right: 5px solid #59776E;
    border-radius: 50%;
    animation: rotateSpinner 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes rotateSpinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.cs-loading-text {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: #555;
    animation: fadeText 1.5s ease-in-out infinite;
}
@keyframes fadeText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === WhatsApp Widget === */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}
.whatsapp-button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}
.whatsapp-button img {
    width: 30px;
    height: 30px;
}
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-button img {
        width: 25px;
        height: 25px;
    }
}

/* === Цвет фона главного блока === */
#kt_app_main {
    background-color: #F3F3F3 !important;
}

/* === Кастомные вкладки === */
.nav-pills-custom .nav-link {
    background-color: #FFFFFF !important;
    color: #2F554A;
    border: 1px solid #2F554A;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
.nav-pills-custom .nav-link .nav-text {
    color: #000 !important;
}
.nav.nav-pills.nav-pills-custom .nav-link.active .nav-text {
    color: #fff !important;
}
.nav-pills-custom .nav-link:hover:not(.active) {
    background-color: #f1f1f1;
    color: #2F554A;
}
.nav-pills-custom .nav-link.active {
    background-color: #2F554A !important;
    border-color: #2F554A !important;
}
.nav-pills-custom .nav-link.active,
.nav-pills-custom .nav-link.active span,
.nav-pills-custom .nav-link.active svg,
.nav-pills-custom .nav-link.active i {
    color: #fff !important;
    fill: #fff !important;
}
.nav-pills-custom .nav-link:not(.active) .nav-text {
    color: #000 !important;
}

/* === Диаграммы и адаптивность === */
.chart-container {
    position: relative;
    width: 186px;
    height: 186px;
}
.chart-center-label {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .col-lg-6 {
        width: 100% !important;
    }
    .h-md-175px {
        height: auto !important;
    }
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    .ms-lg-11, .ms-lg-13 {
        margin-left: 0 !important;
    }
}

@media (max-width: 992px) {
    .col-lg-6, .col-lg-4, .col-lg-8, .col-md-6 {
        width: 100% !important;
    }
    .h-md-175px {
        height: auto !important;
    }
}

/* === Модальные окна с изображениями === */
.modal-image-container {
    max-width: 600px;
    width: 100%;
    height: 100%;
}
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-blog {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: none;
}
@media (max-width: 768px) {
    .modal-image-container {
        width: 100%;
        height: 100%;
    }
}

/* === Цвета и утилиты === */
.text-deep-primary {
    color: #1998D6 !important;
}

/* === Кнопки и модальные окна === */
/* Глобально НИЧЕГО не поднимаем по z-index */
.btn {
    z-index: auto; /* или просто убери блок .btn целиком */
}

/* Если нужно, чтобы именно кнопки внутри модалок были поверх их содержимого: */
.modal .btn {
    position: relative;
    z-index: 1;
}

.modal-footer .btn {
    width: 100%; /* На мобильных — во всю ширину */
}

.modal {
    z-index: 1055; /* Поверх других элементов */
}
.modal-dialog {
    position: relative;
}

/* === Адаптивная типографика в модалках === */
@media (max-width: 576px) {
    .modal-content {
        font-size: 14px; /* Читаемость на мобильных */
    }
}

/* === Прогресс-бары === */
.progress {
    background-color: #E6EAE9 !important;
    height: 8px !important;
    border-radius: 6px;
    overflow: hidden;
}
.progress-bar {
    background-color: #233C36 !important;
    height: 100%;
    border-radius: 6px 0 0 6px;
    transition: width 1s ease-in-out;
}

/* === Активная вкладка в nav-line-tabs === */
.nav-line-tabs .nav-link.active {
    border-bottom: 1px solid #000 !important;
    color: #000;
}

/* === Карусель с фото === */
.carousel-photo {
    min-height: 300px;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* === Затемнение модалки с вводом SMS-кода === */
.modal-blurred .modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
}
.modal-blurred .modal-content {
    position: relative;
}

/* === Карточки и медиа === */
.fixed-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.fixed-img-wrapper img.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 768px) {
    .cs-portfolio-card-img::after {
        bottom: 20px;
    }
}

/* === Видео и картинки (ленивая загрузка) === */
.lazy-video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    position: relative;
    transition: transform .3s ease;
}
.lazy-video-wrapper:hover {
    transform: scale(1.01);
}
.lazy-bg {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.lazy-bg.loaded {
    opacity: 1;
}

/* === Обёртка для карты === */
.map-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* === Формы и поля ввода === */
.select2-container--default .select2-selection--multiple {
    border-radius: 6px !important;
}
.form-select {
    border-radius: 6px !important;
}
#kt_dropzonejs_example_1 {
    border-radius: 6px !important;
    overflow: hidden;
}

/* === QR-коды === */
.qr-code-img {
    max-width: 100%;          /* Ограничивает ширину контейнером */
    height: auto;             /* Сохраняет пропорции */
    max-height: 200px;        /* Не даёт вырасти слишком большим */
    object-fit: contain;      /* Вписывается без обрезки */
    border-radius: 8px;       /* Скруглённые углы */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Лёгкая тень */
}

/* === Состояния валидации и индикаторы === */

/* Успешная валидация: зелёная подсветка поля */
.input-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Ошибка валидации: красная подсветка поля */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Мини-спиннер для статуса загрузки/проверки (например, ИНН) */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}


/* === Stepper (пошаговые индикаторы) === */

.stepper-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stepper-item .stepper-icon {
    background-color: #DEE3E5;
    color: #151515;
}

.stepper-item.current .stepper-icon {
    background-color: #151515;
    color: #fff;
}

stepper-item.completed .stepper-icon {
    background-color: #fff;
    color: #151515;
}

.stepper-item.next-step .stepper-icon {
    background-color: #DEE3E5;
    color: #fff; /* белая цифра */
}

.stepper-line {
    height: 1px;
    background-color: #C4C4C4;
    flex-grow: 1;
    align-self: center;
    margin: 0 10px;
}

.stepper-label {
    margin-top: 8px;
    text-align: center;
}

.stepper-item.next-step .stepper-title {
    color: #B5B5C3 !important;
}

/* === Боксы для загрузки паспорта при регистрации === */

.passport-upload-box {
    background-color: #FFFFFF;
    border-radius: 10px;
    width: 100px;
    padding: 16px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.upload-box-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    width: 100%;
    height: 100%;
}


input[type="file"] {
  display: none;
}


/* Скрываем кнопку вызова меню, когда drawer активен */
[data-kt-drawer-state="on"] #kt_app_header_secondary_toggle,
.drawer-on #kt_app_header_secondary_toggle {
    display: none !important;
}
/*@media (max-width: 768px) {*/
/*    [data-kt-drawer="true"] {*/
/*        width: 250px !important;*/
/*        padding-top: 24px;*/
/*    }*/

/*    .header-menu {*/
/*        width: 100% !important;*/
/*    }*/
/*}*/

[data-kt-drawer="true"].drawer-on {
    z-index: 2000 !important;
}

@media (max-width: 768px) {
    [data-kt-drawer="true"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}


.border-new-blue {
  border-color: #7F9DC7 !important;
}

.border-new-primary {
  border-color: #67AEF3 !important;
}

.rating {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.bar {
  position: relative;
  width: 100%;
  height: 5px;
  background-color: #ccc;
  border-radius: 10px;
}

.section {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 20%;
  transition: all 0.3s ease-in-out;
}

.section-1 {
  background-color: #f44336;
      left: 0;
  top: 0;
}

.section-2 {
  background-color: #ff5722;
      left: 20%;
  top: 0;
}

.section-3 {
  background-color: #6FC193;
      position: absolute;
  left: 40%;
  top: 0;
}

.section-4 {
  background-color: #67AEF3;
      position: absolute;
  left: 60%;
  top: 0;
}

.section-5 {
  background-color: #8468A8;
      position: absolute;
  left: 80%;
  top: 0;
}

.circle {
  position: absolute;
  top: -5px;
  left: calc(50% - 15px);
  width: 25px;
  height: 25px;
  background-color: #F9DE56;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #fff;
  font-size: 16px;
}

.circle::before {
  content: attr(data-rating);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

.section-1 {
  background-color: #ED764D;
}

.section-2 {
  background-color: #FFC857;
}

.section-3 {
  background-color: #50C878;
}

.section-4 {
  background-color: #67AEF3;
}

.section-5 {
  background-color: #8468A8;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
}

.cs-progress-radial {
  position: relative;
}

.progress-ring__circle {
  stroke-dasharray: 251.2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.cs-portfolio-card-img {
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  z-index: 1;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.cs-portfolio-card-img > img {
  display: block;
  width: 100%;
  transition: -webkit-transform .3s ease-in-out;
  transition: transform .3s ease-in-out;
  transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
}

.cs-portfolio-card-body {
  position: relative;
  padding: 1rem 1.25rem;
  z-index: 2;
}

.cs-portfolio-card-title {
  margin-bottom: 0.25rem;
  font-weight: 700;
  transition: color .3s ease-in-out;
  color: #1e212c;
  font-size: 1.25rem;
}

.cs-portfolio-card-scale {
  display: block;
  position: relative;
  text-decoration: none;
}

.cs-portfolio-card-scale::before {
  display: block;
  position: absolute;
  top: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 15px);
  background-color: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 1.75rem 1.875rem rgba(154, 156, 165, 0.08), 0 1.25rem 1rem rgba(154, 156, 165, 0.05), 0 0.5rem 0.625rem rgba(154, 156, 165, 0.04), 0 0.25rem 0.25rem rgba(30, 33, 44, 0.03);
  transition: opacity .3s ease-in-out;
  opacity: 0;
  content: '';
}

.cs-portfolio-card-scale .cs-portfolio-card-img > img {
  will-change: transform;
}

.cs-portfolio-card-scale .cs-portfolio-card-body {
  padding-right: 0;
  padding-bottom: 1.25rem;
  padding-left: 0;
}

.cs-portfolio-card-scale:hover {
  text-decoration: none;
}

.cs-portfolio-card-scale:hover::before {
  opacity: 1;
}

.cs-portfolio-card-scale:hover .cs-portfolio-card-img > img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

.cs-portfolio-card-scale:hover .cs-portfolio-card-title {
  color: #ff3f3a;
}

.cs-carousel .cs-portfolio-card-scale::before {
  box-shadow: none;
}

.cs-portfolio-card-slide {
  display: block;
  position: relative;
  box-shadow: 0 1.75rem 1.875rem rgba(154, 156, 165, 0.08), 0 1.25rem 1rem rgba(154, 156, 165, 0.05), 0 0.5rem 0.625rem rgba(154, 156, 165, 0.04), 0 0.25rem 0.25rem rgba(30, 33, 44, 0.03);
  text-decoration: none;
  transition: box-shadow .25s ease-in-out;
  overflow: hidden;
}

.cs-portfolio-card-slide .cs-portfolio-card-img > img {
  transition: -webkit-transform .25s ease-in-out;
  transition: transform .25s ease-in-out;
  transition: transform .25s ease-in-out, -webkit-transform .25s ease-in-out;
  will-change: transform;
}

.cs-portfolio-card-slide .cs-portfolio-card-body .btn {
  margin-top: 1.5rem;
}

.cs-portfolio-card-slide:hover {
  text-decoration: none;
  box-shadow: 0 1.75rem 1.875rem rgba(154, 156, 165, 0.16), 0 1.25rem 1rem -0.25rem rgba(154, 156, 165, 0.1), 0 0.5rem 0.625rem rgba(154, 156, 165, 0.08), 0 0.25rem 0.25rem rgba(30, 33, 44, 0.05);
}

.cs-portfolio-card-slide:hover .cs-portfolio-card-body {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.cs-portfolio-card-slide:hover.cs-portfolio-card-video .cs-video-btn {
  top: calc(50% - 4.25rem);
}

.cs-portfolio-card-slide.cs-portfolio-card-video .cs-video-btn {
  top: calc(50% - (4.25rem / 2));
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, top 0.25s ease-in-out;
}

@media (max-width: 767.98px) {
  .cs-portfolio-card-slide {
    text-decoration: none;
    box-shadow: 0 1.75rem 1.875rem rgba(154, 156, 165, 0.16), 0 1.25rem 1rem -0.25rem rgba(154, 156, 165, 0.1), 0 0.5rem 0.625rem rgba(154, 156, 165, 0.08), 0 0.25rem 0.25rem rgba(30, 33, 44, 0.05);
  }
  .cs-portfolio-card-slide .cs-portfolio-card-img > img {
    -webkit-transform: scale(1.06) translateY(-2rem);
    transform: scale(1.06) translateY(-2rem);
  }
  .cs-portfolio-card-slide .cs-portfolio-card-body {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .cs-portfolio-card-slide.cs-portfolio-card-video .cs-video-btn {
    top: calc(50% - 4.25rem);
  }
}

.badge-new-warning {
  color: #666666;
  background-color: #F9DE56;
}

.badge-new-primary {
  color: #FFFFFF;
  background-color: #67AEF3;
}

.bg-yellow {
  background-color: #F9DE56 !important;
  --bg-color: 184, 217, 53 !important;
}

.btn-brand-yellow {
  color: #000000;
  background-color: #F9DE56;
  border-color: #F9DE56;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}

.btn-new_yellow {
  color: #000000;
  background-color: #FFDB58;
  border-color: #FFDB58;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  width: 100%;
  padding-right: var(--bs-gutter-x, 1.5rem);
  padding-left: var(--bs-gutter-x, 1.5rem);
  margin-right: auto;
  margin-left: auto;
}

/* Подключение шрифта Roboto */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto-Regular.ttf') format('woff2'),
         url('/static/fonts/Roboto-Regular.woff') format('woff'),
         url('/static/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto-Bold.woff2') format('woff2'),
         url('/static/fonts/Roboto-Bold.woff') format('woff'),
         url('/static/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Подключение Roboto-Light */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto-Light.woff2') format('woff2'),
         url('/static/fonts/Roboto-Light.ttf') format('truetype'); /* Если у вас есть файл TTF */
    font-weight: 300;
    font-style: normal;
}

/* Изменение переменных Bootstrap для использования Roboto */
:root {
    --bs-font-sans-serif: 'Roboto', Helvetica, "sans-serif";
    --bs-body-font-family: var(--bs-font-sans-serif);
}

/* Подключение Neue_2 */
@font-face {
    font-family: 'Neue_2';
    src: url('/static/fonts/Neue_2/woff2/TT_Firs_Neue_Normal.woff2') format('woff2'),
         url('/static/fonts/Neue_2/ttf/TT-Firs-Neue-Normal.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue_2';
    src: url('/static/fonts/Neue_2/woff2/TT_Firs_Neue_Medium.woff2') format('woff2'),
         url('/static/fonts/Neue_2/ttf/TT-Firs-Neue-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

:root {
    --bs-font-sans-serif: 'Neue_2', Helvetica, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

.fs-64 {
  font-size: 64px !important;
}

.display-7 {
    font-size: calc(1.325rem + 0.9vw);
    font-weight: 700;
    line-height: 1.2;
}
@media (min-width: 1200px) {
    .display-7 {
        font-size: 2rem;
    }
}

.display-8 {
    font-size: calc(1.275rem + 0.3vw);
    font-weight: 700;
    line-height: 1.2;
}
@media (min-width: 1200px) {
    .display-8 {
        font-size: 1.5rem;
    }
}

/* Общие настройки для пагинации */
.pagination.pagination-outline {
    gap: 4px;
}

/* Обычные элементы */
.pagination.pagination-outline .page-link {
    background-color: transparent !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out;
}

/* При наведении */
.pagination.pagination-outline .page-link:hover {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

/* Активный элемент */
.pagination.pagination-outline .page-item.active .page-link {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #dee2e6 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

.pagination-outline {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.btn {
    border-radius: 6px !important;
}

.card {
    border-radius: 6px !important;
}

.display-title {
    font-size: 64px;
    line-height: 1.2;
    font-weight: 300; /* соответствует fw-light */
    margin: 0;
}

@media (max-width: 768px) {
    #project-title {
        font-size: 32px !important;
    }
}

/* === Горизонтальная прокрутка умных постов на мобильных === */
@media (max-width: 768px) {

    #smart-posts-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;

        gap: 12px !important;
        padding-bottom: 4px;
    }

    #smart-posts-container > a.card {
        flex: 0 0 auto !important;
        width: 160px !important;    /* идеально для мобилы */
        min-width: 160px !important;
    }

    #smart-posts-container::-webkit-scrollbar {
        height: 0; /* скрываем на мобилках */
    }
}

/* Глобальный оверлей-спинер для подтверждения сделок */

#globalSpinnerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78); /* тёмный полупрозрачный фон */
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

#globalSpinnerOverlay.active {
  display: flex;
}

#globalSpinnerOverlay .spinner-box {
  background: rgba(17, 24, 39, 0.95);
  border-radius: 12px;
  padding: 24px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

#globalSpinnerOverlay .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-bottom: 16px;
}