:root {
  --navy: #1a2b4a;
  --navy-light: #24395f;
  --red: #e63946;
  --bg: #f5f7fb;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;

  /* Sticky footer: колонка на весь экран */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Основной контент растягивается — футер прижимается к низу */
body > main {
  flex: 1 0 auto;
}

/* Навбар и футер — не сжимаются */
body > nav,
body > footer {
  flex-shrink: 0;
}

/* --- Навигация --- */
.shop-navbar { background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,.85); }
.navbar-dark .navbar-nav .nav-link:hover { color: #fff; }
.cart-badge { position: absolute; top: 0; right: -6px; font-size: .65rem; }

/* --- Кнопки --- */
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-light); color: #fff; border-color: var(--navy-light); }

/* --- Карточки товаров --- */
.product-card {
  border: 0; border-radius: 14px; overflow: hidden;
  transition: transform .2s, box-shadow .2s; background: #fff;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(26,43,74,.15); }
/*
.product-card .card-img-top { height: 180px; object-fit: cover; background: #eef2f9; } */
.product-card .card-img-top { height: 180px; object-fit: contain; object-position: center; background: #eef2f9; padding: 4px;}


/* --- Hero-слайды --- */
.hero-slide { border-radius: 18px; padding: 60px 30px; color: #fff; min-height: 260px; display: flex; align-items: center; }
.hero-slide .display-6 { font-weight: 800; }
.slide-1 { background: linear-gradient(135deg, #1a2b4a, #3d5a8c); }
.slide-2 { background: linear-gradient(135deg, #e63946, #b42332); }
.slide-3 { background: linear-gradient(135deg, #264653, #2a9d8f); }

/* --- Категории --- */
.category-tile {
  display: block; text-align: center; padding: 22px 10px; border-radius: 14px;
  background: #fff; color: var(--navy); text-decoration: none; font-weight: 600;
  transition: background .2s, color .2s, transform .2s;
}
.category-tile:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.category-tile i { font-size: 1.8rem; display: block; margin-bottom: .4rem; }

/* --- Секции --- */
.section-title { font-weight: 800; color: var(--navy); border-left: 5px solid var(--red); padding-left: .75rem; }
.qty-group { max-width: 140px; }

/* --- Подвал --- */
.shop-footer { background: var(--navy); color: #cfd8e6; }
.shop-footer a { color: #cfd8e6; text-decoration: none; }
.shop-footer a:hover { color: #fff; }

/* --- Product page --- */
.product-hero { border-radius: 18px; overflow: hidden; background: #fff; }
.price-old { text-decoration: line-through; color: #8a97ad; }

/* --- Модал подтверждения --- */
#confirmModal .modal-content {
  border: 0; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(26,43,74,.35);
  overflow: hidden;
}
#confirmModal .modal-title { color: var(--navy); font-weight: 700; }
#confirmModal .modal-body p { font-size: 1.02rem; color: #3d4a63; }
#confirmModal #confirmModalOk { min-width: 110px; }

/* --- Бейджи-счётчики в админ-навигации --- */
.admin-nav-badge {
  font-size: .65rem; padding: .25em .5em; margin-left: .35rem; vertical-align: top;
  box-shadow: 0 0 0 2px #fff;
  animation: nav-badge-pulse 2s ease-in-out infinite;
}
@keyframes nav-badge-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* --- Остатки --- */
.stock-badge {
  font-weight: 600; font-size: .72rem; padding: .35em .6em;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  white-space: nowrap; letter-spacing: .01em;
}
.stock-pulse { animation: stock-pulse 1.6s ease-in-out infinite; }
@keyframes stock-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 2px 6px rgba(230,57,70,.35); }
  50%      { transform: scale(1.06); box-shadow: 0 4px 14px rgba(230,57,70,.6); }
}
.product-card .img-out-of-stock { filter: grayscale(70%) brightness(.95); opacity: .8; }

/* --- Quick View: кнопка «глаз» --- */
.btn-quick-view {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-quick-view:hover,
.btn-quick-view:focus {
  background: var(--navy); color: #fff; border-color: var(--navy);
  transform: translateY(-1px);
}
.btn-quick-view i { font-size: 1rem; }

/* --- Quick View: модал --- */
#quickViewModal .modal-content {
  border: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,43,74,.35);
}
#quickViewModal .modal-header { padding-bottom: 0; }
#quickViewModal #qvDescription { max-height: 120px; overflow-y: auto; }

/* --- Галерея на странице товара --- */
.product-gallery-main img {
  width: 100%; max-height: 500px; object-fit: cover;
  background: #eef2f9; transition: opacity .15s;
}
.product-gallery-thumbs {
  display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap;
}
.product-gallery-thumb {
  width: 72px; height: 72px;
  border: 2px solid transparent; border-radius: 8px;
  padding: 0; overflow: hidden; background: #fff; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.product-gallery-thumb:hover { transform: translateY(-2px); }
.product-gallery-thumb.active { border-color: var(--red); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Мини-галерея в Quick View --- */
.qv-thumbs { display: flex; gap: .4rem; flex-wrap: wrap; }
.qv-thumb {
  width: 56px; height: 56px;
  border: 2px solid transparent; border-radius: 6px;
  overflow: hidden; padding: 0; background: #fff; cursor: pointer;
}
.qv-thumb.active { border-color: var(--red); }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Мобильные --- */
@media (max-width: 576px) {
  .hero-slide { padding: 40px 20px; min-height: 220px; }
  .hero-slide .display-6 { font-size: 1.6rem; }
  #quickViewModal .modal-body { padding-top: 0.5rem; }
  #quickViewModal #qvImage { max-height: 220px; object-fit: cover; }
  .product-gallery-thumb { width: 60px; height: 60px; }
  .qv-thumb { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
  .stock-badge { font-size: .65rem; padding: .3em .45em; }
}

/* --- Уважаем prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .stock-pulse,
  .admin-nav-badge { animation: none; }
}

/* Вариант с 0 остатком — «нет в наличии» */
.btn-outline-secondary.disabled,
.btn-check:disabled + .btn-outline-secondary {
  text-decoration: line-through;
  opacity: .55;
  cursor: not-allowed;
}

/* ---------- Поиск в навбаре — компактнее ---------- */
.nav-search .form-control,
.nav-search .btn {
  height: 30px;              /* было ~31–38px в зависимости от Bootstrap */
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  font-size: 0.82rem;        /* было 0.875rem у form-control-sm */
  line-height: 1.2;
  border-radius: 6px;
}
.nav-search .form-control {
  min-width: 160px;          /* чтобы placeholder не обрезался */
}
.nav-search .btn {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.nav-search .btn i {
  font-size: 0.85rem;        /* иконка чуть меньше */
  vertical-align: middle;
}

/* На мобилке возвращаем удобный «палец-размер» — иначе не попасть */
@media (max-width: 991.98px) {
  .nav-search .form-control,
  .nav-search .btn {
    height: 38px;
    font-size: 1rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
  }
  .nav-search .btn i {
    font-size: 1rem;
  }
}

/* Таблица размеров */
#sizeChartModal table td, #sizeChartModal table th {
    font-size: .9rem;
}
#sizeCalcResult {
    transition: opacity .15s;
}

/* ---------- Рейтинг ---------- */
.rating-stars { letter-spacing: 1px; }
.rating-stars i { vertical-align: middle; }

.rating-input {
  display: inline-flex;
  gap: .25rem;
  font-size: 1.6rem;
  color: #ced4da;
  user-select: none;
}
.rating-input i {
  cursor: pointer;
  transition: color .12s, transform .12s;
}
.rating-input i:hover,
.rating-input i.active {
  color: #ffc107;
  transform: scale(1.1);
}

/* ---------- Избранное: сердечко на карточке ---------- */
.wishlist-toggle-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 0;
  color: #8a97ad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: color .15s, transform .15s, background .15s;
  z-index: 2;
  text-decoration: none;
}
.wishlist-toggle-btn:hover,
.wishlist-toggle-btn:focus {
  background: #fff;
  color: #e63946;
  transform: scale(1.06);
}
.wishlist-toggle-btn.active {
  color: #e63946;
}
.wishlist-toggle-btn i { font-size: 1rem; }

/* Кнопка на странице товара */
.wishlist-btn-page.active {
  background: #e63946;
  color: #fff;
  border-color: #e63946;
}
.wishlist-btn-page.active:hover {
  background: #c9303c;
  border-color: #c9303c;
  color: #fff;
}

/* Бейдж избранного в навбаре */
.wishlist-badge { font-size: .65rem; }


/* ---------- Карта на /contacts.php ---------- */
.map-link {
  transition: box-shadow .2s;
  background: #eef2f9;
}
.map-link:hover {
  box-shadow: 0 6px 20px rgba(26, 43, 74, .18);
}
.map-link img {
  display: block;
  min-height: 200px;
  object-fit: cover;
}
.map-open-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(26, 43, 74, .9);
  color: #fff;
  font-size: .78rem;
  padding: .35rem .65rem;
  border-radius: 20px;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.map-link:hover .map-open-badge {
  background: #e63946;
  transform: translateY(-1px);
}
.map-link:hover .map-open-badge i {
  color: #fff;
}

/* ---------- Новости ---------- */
.news-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(26, 43, 74, .15);
}
.news-card .card-img-top {
  height: 180px;
  object-fit: contain;
  object-position: center;
  background: #eef2f9;
  padding: 4px;
  display: block;
}
.news-card .card-title a:hover { color: var(--red) !important; }



/* Разделитель между смысловыми блоками product.php */
.product-page-section + .product-page-section {
  margin-top: 2rem;
}

/* ---------- Компактный блок новостей на главной: плотный текст ---------- */
.news-block-compact .news-card .card-body {
  padding: .65rem .8rem;
}

/* Дата */
.news-block-compact .news-card .small.text-muted.mb-2 {
  font-size: .72rem;
  line-height: 1.1;
  margin-bottom: .15rem !important;
}

/* Заголовок */
.news-block-compact .news-card .card-title {
  font-size: .9rem;
  line-height: 1.18;                  /* было 1.3 — строки ближе */
  margin-bottom: .2rem !important;    /* было .4rem */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Краткое описание */
.news-block-compact .news-card .card-text {
  font-size: .78rem;
  line-height: 1.3;                   /* было 1.35 — чуть плотнее */
  margin-bottom: .35rem !important;   /* было .5rem */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Кнопка «Читать» — ближе к тексту */
.news-block-compact .news-card .btn-sm {
  font-size: .75rem;
  padding: .18rem .5rem;
  margin-top: .1rem;
}

.news-block-compact .news-card .card-img-top {
  height: 130px;
  object-fit: contain;
  object-position: center;
  background: #eef2f9;
  padding: 3px;
  display: block;
}

/* ---------- Карточки товаров: плотный вертикальный ритм ---------- */
.product-card .card-body {
  padding: .7rem .85rem;
}

/* Название товара */
.product-card .card-title {
  line-height: 1.2;                /* было наследование ~1.5 */
  margin-bottom: .25rem !important; /* было .5rem (bootstrap h6) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Звёзды рейтинга под названием */
.product-card .rating-stars {
  line-height: 1;
}
.product-card .card-body > div.mb-1 {
  margin-bottom: .15rem !important;
  line-height: 1.1;
}
.product-card .card-body > div.mb-1 small {
  font-size: .72rem;
}

/* Цены */
.product-card .mt-auto > small,
.product-card .mt-auto > span {
  line-height: 1.15;
}

/* Блок кнопок — ближе к цене */
.product-card .mt-auto .d-flex.gap-1 {
  margin-top: .4rem !important;    /* было .5rem (mt-2) */
}

/* ============================================================
 *  МИКРОАНИМАЦИИ
 * ============================================================ */

/* ---------- 1. Кнопки: press-эффект ---------- */
.btn {
  transition: transform .12s ease, box-shadow .15s ease,
              background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active:not(:disabled) {
  transform: scale(.96);
}
.btn-lg:active:not(:disabled) {
  transform: scale(.97);
}

/* Лоадер внутри кнопки (спиннер) — плавно */
.btn .spinner-border-sm {
  animation-duration: .6s;
}

/* ---------- 2. Навигация: sticky-тень при скролле ---------- */
.shop-navbar {
  transition: box-shadow .2s ease, padding .2s ease;
}
.shop-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

/* ---------- 3. Бейдж корзины: pop при изменении ---------- */
@keyframes badge-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.cart-badge.pop,
.wishlist-badge.pop {
  animation: badge-pop .4s cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- 4. Сердечко избранного: пульс ---------- */
@keyframes heart-beat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.3); }
  50%  { transform: scale(.95); }
  75%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.wishlist-toggle-btn.just-added i,
.wishlist-btn-page.just-added i {
  animation: heart-beat .55s cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- 5. «Летящая» точка в корзину ---------- */
.fly-to-cart {
  position: fixed;
  z-index: 9999;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 4px 14px rgba(230, 57, 70, .5);
  pointer-events: none;
  transition: transform .65s cubic-bezier(.5, -.4, .8, .9),
              opacity .65s ease;
  transform-origin: top left;
}

/* ---------- 6. Тосты: мягкое появление ---------- */
.toast {
  animation: toast-in .28s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ---------- 7. Карточки товаров: усиленный hover ---------- */
.product-card {
  transition: transform .25s cubic-bezier(.2, .8, .2, 1),
              box-shadow .25s ease;
}
.product-card .card-img-top {
  transition: transform .4s ease;
}
.product-card:hover .card-img-top {
  transform: scale(1.04);
}
.product-card .btn-navy,
.product-card .btn-quick-view {
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.product-card:hover .btn-quick-view {
  transform: translateY(-1px);
}

/* ---------- 8. Категории на главной: приятный hover ---------- */
.category-tile {
  transition: background .2s ease, color .2s ease,
              transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.category-tile:hover {
  box-shadow: 0 8px 24px rgba(26, 43, 74, .2);
}
.category-tile:hover i {
  transform: translateY(-2px) scale(1.08);
  transition: transform .25s ease;
}

/* ---------- 9. Галерея: смена миниатюр ---------- */
.product-gallery-main img {
  transition: opacity .18s ease, transform .18s ease;
}
.product-gallery-main img.switching {
  opacity: .5;
  transform: scale(.98);
}
.product-gallery-thumb {
  transition: border-color .15s ease, transform .2s ease;
}
.product-gallery-thumb:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ---------- 10. Звёзды рейтинга: hover-заливка ---------- */
.rating-input i {
  transition: transform .12s ease, color .12s ease;
}
.rating-input i:hover {
  transform: scale(1.15) rotate(-5deg);
}

/* ---------- 11. Ссылки в футере и навбаре ---------- */
.shop-footer a,
.navbar-dark .navbar-nav .nav-link {
  transition: color .15s ease, opacity .15s ease;
}

/* ---------- 12. Иконки в навбаре (сердечко, корзина) ---------- */
.navbar a[href$="cart.php"] i,
.navbar a[href$="wishlist.php"] i {
  transition: transform .18s ease, color .15s ease;
}
.navbar a[href$="cart.php"]:hover i,
.navbar a[href$="wishlist.php"]:hover i {
  transform: scale(1.15);
}

/* ---------- 13. Модалы: лёгкий zoom ---------- */
.modal.fade .modal-dialog {
  transition: transform .22s cubic-bezier(.34, 1.3, .64, 1), opacity .22s ease;
  transform: scale(.96);
}
.modal.show .modal-dialog {
  transform: scale(1);
}

/* ---------- 14. Уважение к prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fly-to-cart { display: none !important; }
  .product-card:hover .card-img-top { transform: none; }
}

/* ---------- Описание товара (HTML из редактора) ---------- */
.product-description {
  font-size: 1rem;
  line-height: 1.65;
  color: #2b3440;
  word-wrap: break-word;
}
.product-description > *:first-child { margin-top: 0; }
.product-description > *:last-child  { margin-bottom: 0; }
.product-description p { margin-bottom: .8rem; }
.product-description h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.2rem 0 .5rem;
}
.product-description h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1rem 0 .4rem;
}
.product-description h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin: .8rem 0 .3rem;
}
.product-description ul,
.product-description ol {
  padding-left: 1.4rem;
  margin-bottom: .8rem;
}
.product-description li { margin-bottom: .2rem; }
.product-description a {
  color: var(--red);
  text-decoration: underline;
}
.product-description a:hover { text-decoration: none; }
.product-description blockquote {
  border-left: 3px solid var(--red);
  background: #f5f7fb;
  padding: .5rem 1rem;
  margin: .8rem 0;
  color: #55627a;
  font-style: italic;
}
.product-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .5rem 0;
}
.product-description hr {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 1.2rem 0;
}
.product-description strong, .product-description b { font-weight: 700; }
.product-description em, .product-description i { font-style: italic; }

/* Quill: чуть компактнее панель инструментов */
.ql-toolbar.ql-snow {
  border-color: #dee2e6 !important;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #f8f9fa;
}
.ql-container.ql-snow {
  border-color: #dee2e6 !important;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
/* Quill: контейнер не должен ограничивать высоту */
.ql-container {
  overflow: visible;
}

/* Область редактирования: фиксированная высота + внутренний скролл */
.ql-editor {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

/* ---------- Quick Add модал: фото слева ---------- */
.quick-add-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;          /* та же пропорция, что у карточки */
  background: #eef2f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 43, 74, .08);
}
.quick-add-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* На мобильном — фото горизонтальнее и невысокое */
@media (max-width: 767.98px) {
  .quick-add-image-wrap {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
}

/* Чуть компактнее заголовок и цена в модале */
#quickAddModal #qaProductName {
  font-size: .85rem;
  line-height: 1.3;
}
#quickAddModal #qaPrice {
  line-height: 1.1;
}
#quickAddModal #qaOldPrice {
  font-size: .95rem;
}

/* ---------- Картинки комплектов: как в renderProductCard ---------- */
.bundle-card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: #eef2f9;
  padding: 6px;
  display: block;
}

/* Превью товара в составе комплекта */
.bundle-item-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: contain;
  object-position: center;
  background: #eef2f9;
  padding: 4px;
  display: block;
}

/* ---------- Превью обложки комплекта в админке ---------- */
.bundle-image-preview {
  width: 220px;
  aspect-ratio: 4 / 3;
  background: #eef2f9;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bundle-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}
.bundle-image-preview--empty {
  flex-direction: column;
  color: #8a97ad;
}

/* Выбранные строки в admin/products.php */
#cartTable tr.table-active,          /* ← на всякий случай, если id пересекается */
#productsTable tr.table-active {
  background-color: #eef2f9;
}

/* ---------- Промо-блок комплектов в каталоге ---------- */
.catalog-bundles-promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fff5f7, #ffe5e8);
  border: 1px solid #f8c8ce;
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.catalog-bundles-promo-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #b42332);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(230, 57, 70, .25);
}

.catalog-bundles-promo-body {
  flex: 1;
  min-width: 180px;
}

.catalog-bundles-promo-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .15rem;
}

.catalog-bundles-promo-text {
  font-size: .85rem;
  color: #55627a;
  margin: 0;
  line-height: 1.35;
}

.catalog-bundles-promo-btn {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .catalog-bundles-promo {
    flex-wrap: wrap;
    gap: .75rem;
    padding: .85rem 1rem;
  }
  .catalog-bundles-promo-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .catalog-bundles-promo-body {
    flex: 1 1 calc(100% - 60px);
  }
  .catalog-bundles-promo-btn {
    width: 100%;
    order: 3;
    margin-top: .25rem;
  }
  .catalog-bundles-promo-title { font-size: .95rem; }
  .catalog-bundles-promo-text { font-size: .8rem; }
}

/* ---------- Outline-кнопки: инверт не только на hover, но и на focus ---------- */
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:focus-visible,
.btn-outline-danger:active,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible,
.btn-outline-secondary:active,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:focus-visible,
.btn-outline-success:active {
  color: #fff;
}

.btn-outline-danger:focus:not(:disabled),
.btn-outline-danger:focus-visible:not(:disabled) {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.btn-outline-primary:focus:not(:disabled),
.btn-outline-primary:focus-visible:not(:disabled) {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-outline-secondary:focus:not(:disabled),
.btn-outline-secondary:focus-visible:not(:disabled) {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.btn-outline-success:focus:not(:disabled),
.btn-outline-success:focus-visible:not(:disabled) {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* ---------- HTML-контент новости ---------- */
.news-content {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #2b3440;
}
.news-content > *:first-child { margin-top: 0; }
.news-content > *:last-child  { margin-bottom: 0; }
.news-content p { margin-bottom: .8rem; }
.news-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.2rem 0 .5rem;
}
.news-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1rem 0 .4rem;
}
.news-content h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin: .8rem 0 .3rem;
}
.news-content ul, .news-content ol {
  padding-left: 1.4rem;
  margin-bottom: .8rem;
}
.news-content li { margin-bottom: .2rem; }
.news-content a {
  color: var(--red);
  text-decoration: underline;
}
.news-content blockquote {
  border-left: 3px solid var(--red);
  background: #f5f7fb;
  padding: .5rem 1rem;
  margin: .8rem 0;
  color: #55627a;
  font-style: italic;
}
.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .5rem 0;
}
.news-content hr {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 1.2rem 0;
}

/* Бейдж «требует обработки» в dropdown пользователя (шапка сайта) */
.admin-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .35rem;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
  animation: admin-pending-pulse 2s ease-in-out infinite;
}

@keyframes admin-pending-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, .55); }
  50%      { box-shadow: 0 0 0 5px rgba(220, 53, 69, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-pending-badge { animation: none; }
}

/* ---------- Навигация в личном кабинете ---------- */
.profile-nav .nav-link {
  color: #1a2b4a;
  font-weight: 500;
  padding: .65rem 1rem;
  border-radius: 10px;
  transition: background .15s, color .15s;
}
.profile-nav .nav-link:hover {
  background: #eef2f9;
  color: #1a2b4a;
}
.profile-nav .nav-link.active {
  background: #1a2b4a;
  color: #fff;
}
.profile-nav .nav-link i {
  width: 1.25rem;
  display: inline-block;
  text-align: center;
}

@media (max-width: 767.98px) {
  .profile-nav {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .profile-nav .nav-item {
    flex: 0 0 auto;
  }
  .profile-nav .nav-link {
    padding: .45rem .75rem;
    font-size: .9rem;
  }
}