:root {
  --bg: #0B0F13;
  --card: #1A212B;
  --text: #E7EAF0;
  --muted: #9AA6B2;
  --accent: #FFD400;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Inter', sans-serif;
}

a { color: var(--accent); }
a:hover { color: #e6c200; }

.navbar {
  background: rgba(10, 14, 18, 0.9);
  backdrop-filter: saturate(140%) blur(6px);
}

/* Жесткое закрепление шапки для всех версий */
header.sticky-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1030 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Усиливаем закрепление шапки для ПК */
@media (min-width: 992px) {
  /* Добавляем отступ для контента, чтобы он не скрывался под шапкой */
  body > main {
    margin-top: 56px !important;
  }
  
  /* Для hero-секции убираем отступ, так как она должна быть под шапкой */
  .hero {
    margin-top: 0 !important;
  }
}

/* Для мобильной версии также используем fixed, но без отступа для main */
@media (max-width: 991.98px) {
  header.sticky-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navbar {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* На мобильных не добавляем отступ, контент может быть под шапкой */
  body > main {
    margin-top: 0 !important;
  }
  
  /* Гарантируем видимость кнопки меню */
  .navbar-toggler {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Заголовок сайта - более явный hover эффект */
.navbar-brand {
  transition: all 0.3s ease;
  color: var(--text) !important;
  font-weight: 700;
}

.navbar-brand:hover {
  color: var(--accent) !important;
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 212, 0, 0.3);
}

/* Кнопки навигации - более явные hover эффекты */
.navbar-nav .nav-link {
  transition: all 0.3s ease;
  position: relative;
  padding: 0.4rem 0.75rem !important;
  border-radius: 0.375rem;
  margin: 0 0.15rem;
}

.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
  background-color: rgba(255, 212, 0, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(255, 212, 0, 0.15);
}

/* Все кнопки - единый стиль */
.btn {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  border-radius: 0.5rem !important;
  font-weight: 500;
}

/* Быстрое переключение для кнопок фильтров прайса */
#price-tabs-btns .btn {
  transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

/* Мгновенное переключение при программном изменении классов */
#price-tabs-btns .btn.switching {
  transition: none !important;
}

/* Отключение transition на мобильных для мгновенной реакции */
@media (max-width: 767.98px) {
  #price-tabs-btns .btn {
    transition: none !important;
  }
  
  #price-tabs-btns .btn:hover {
    transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
  }
}

/* Желтые кнопки */
.btn-accent {
  background: var(--accent);
  color: #000 !important;
  border: none;
  font-weight: 700;
  font-size: 1rem;
}
.btn-accent:hover { 
  background: var(--accent);
  color: #000 !important;
  filter: brightness(0.96);
}

/* Белые контурные кнопки */
.btn-outline-light {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  font-weight: 600;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 1) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-2px);
}

/* Другие кнопки */
.btn-outline-danger:hover {
  filter: brightness(1.1);
}
.btn-outline-success:hover {
  filter: brightness(1.1);
}
.btn-outline-primary:hover {
  filter: brightness(1.1);
}
.btn-outline-info:hover {
  filter: brightness(1.1);
}

.hero {
  background: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--text);
  padding: 8rem 0 6rem;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

/* Затемнение на всю ширину снизу как в карточках тренеров */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2), transparent);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 500px;
  position: relative;
  z-index: 1;
}

/* Заголовок скрыт */
#hero-title {
  display: none !important;
}

/* Обертка для текста и кнопок - немного выше центра */
.hero-buttons-wrapper {
  padding: 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Текст над кнопками - увеличен и выделен цветом */
#hero-subtitle {
  font-size: 2rem;
  font-weight: 700 !important;
  margin: 0 !important;
  text-align: center;
  color: #ffc107 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 193, 7, 0.3);
  order: 1;
  white-space: nowrap;
  width: 100%;
}

/* Кнопки меньше и с отступом */
.hero .d-flex {
  margin: 0 !important;
  order: 2;
}

.hero .btn-lg {
  font-size: 1rem !important;
  padding: 0.65rem 1.75rem !important;
}

/* Hero адаптация для мобильных */
@media (max-width: 767.98px) {
  .hero {
    min-height: 550px !important;
    padding: 5rem 0 4rem !important;
  }
  .hero-buttons-wrapper {
    bottom: 0.75rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 500px !important;
    padding: 4rem 0 3rem !important;
  }
}

.card-dark {
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
}

.price-tag {
  color: #111;
  background: var(--accent);
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: fit-content;
  flex-shrink: 0;
  text-align: center;
}

/* Price cards */
.price-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 212, 0, 0.15);
}

/* Уменьшаем размер карточек прайса для ПК и ограничиваем ширину */
@media (min-width: 992px) {
  /* Ограничиваем ширину контейнера с карточками */
  main .container > div[data-price-pane],
  main .container > div[id^="price-"] {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .price-card .card-body {
    padding: 1.25rem !important;
  }
  
  .price-card .card-body h3 {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .price-item {
    padding: 0.75rem 0 0.5rem 0 !important;
  }
  
  .price-label {
    font-size: 0.95rem !important;
  }
  
  .price-tag {
    font-size: 0.85rem !important;
    padding: 0.3rem 0.6rem !important;
  }
  
  .price-card .btn-accent {
    font-size: 1.05rem !important;
    padding: 0.7rem 1.25rem !important;
  }
}

.price-card .card-body {
  display: flex;
  flex-direction: column;
}

.price-item {
  padding: 1rem 0 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.price-item:first-child {
  padding-top: 0.5rem;
}

.price-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 0.25rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.price-label {
  flex: 1;
  margin-right: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

footer {
  background: #0a0f14;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Schedule */
.table-dark th, .table-dark td { 
  vertical-align: top; 
}

.table-dark th {
  letter-spacing: 0.5px;
}

.table-dark td {
  min-height: 200px;
}

/* Карточки занятий в расписании */
.schedule-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.schedule-card h5 {
  flex-shrink: 0;
  width: 100%;
}

.schedule-card p {
  flex-shrink: 0;
  width: 100%;
}

.schedule-card .badge {
  margin-top: auto;
}

/* Выделение заголовка текущего дня */
.schedule-today-header {
  background-color: rgba(255, 212, 0, 0.15);
  border-radius: 0.375rem;
}

/* Эффект наведения на карточки занятий */
.schedule-card:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255, 193, 7, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Мобильные карточки расписания */
.schedule-card-mobile {
  min-height: 90px;
}

.table-dark tbody td {
  font-size: 0.875rem;
  line-height: 1.3;
  max-height: 90px;
  overflow: hidden;
}

.table-dark tbody td strong {
  font-size: 0.85rem;
}

.table-dark tbody td small {
  font-size: 0.75rem;
  display: block;
  margin-top: 2px;
}

/* Mobile schedule table */
@media (max-width: 767.98px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-dark thead th {
    font-size: 0.75rem;
    padding: 0.4rem 0.25rem;
  }
  .table-dark tbody td {
    font-size: 0.7rem;
    padding: 0.4rem 0.25rem;
    min-width: 70px;
    max-height: 75px;
  }
  .table-dark th:first-child,
  .table-dark td:first-child {
    position: sticky;
    left: 0;
    background: var(--card);
    z-index: 2;
    font-weight: 600;
    width: 60px;
    min-width: 60px;
  }
  .table-dark tbody td strong {
    font-size: 0.7rem;
  }
  .table-dark tbody td small {
    font-size: 0.65rem;
  }
}

/* Utilities */
.section-title {
  letter-spacing: .02em;
}

/* Shop cards */
.card-dark .card-img-top {
  transition: transform 0.3s ease;
}
.card-dark:hover .card-img-top {
  transform: scale(1.02);
}

/* Coach cards - фото на весь размер, текст поверх с затемнением */
#coaches-container .coach-card {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 650px;
  height: 650px;
}

#coaches-container .coach-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#coaches-container .coach-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

#coaches-container .coach-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 3;
  color: var(--text);
}

#coaches-container .coach-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#coaches-container .coach-title {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

#coaches-container .coach-desc {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Адаптация для ПК */
@media (min-width: 992px) {
  #coaches-container .coach-card {
    min-height: 630px;
    height: 630px;
  }
  
  #coaches-container .coach-card-img {
    border: 3px solid #000;
  }
  
  #coaches-container .coach-card-content {
    padding: 1.75rem;
  }
  
  #coaches-container .coach-name {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  #coaches-container .coach-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  #coaches-container .coach-desc {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero { 
    padding: 3rem 0 2.5rem; 
    min-height: 550px !important;
  }
  .hero .container {
    min-height: 400px;
  }
  #hero-title { font-size: 2.75rem !important; opacity: 0.9 !important; }
  .hero-buttons-wrapper {
    top: 35% !important;
    transform: translate(-50%, -50%) !important;
    padding: 1.25rem 1.5rem 1.25rem !important;
    gap: 1rem !important;
    max-width: 100% !important;
  }
  .hero .btn-lg {
    font-size: 0.95rem !important;
    padding: 0.6rem 1.5rem !important;
  }
  #hero-subtitle { 
    font-size: clamp(1rem, 4vw, 1.5rem); 
    font-weight: 700 !important; 
    color: #ffc107 !important;
    white-space: normal !important;
    line-height: 1.3;
  }
  .btn-lg { font-size: 1rem; padding: 0.5rem 1.25rem; }
  h1.h2 { font-size: 1.75rem !important; }
  .card-dark .card-body { padding: 1rem !important; }
  .card-dark .card-img-top { height: 200px !important; }
  
  #coaches-container .coach-card {
    min-height: 550px !important;
    height: 550px !important;
  }
  
  #coaches-container .coach-card-img {
    border: 3px solid #000 !important;
  }
  
  #coaches-container .coach-card-content {
    padding: 1.5rem !important;
  }
  
  #coaches-container .coach-name {
    font-size: 1.4rem !important;
  }
  
  #coaches-container .coach-title {
    font-size: 1.1rem !important;
  }
  
  #coaches-container .coach-desc {
    font-size: 1rem !important;
  }
  
  .d-flex.gap-2 { gap: 0.5rem !important; }
  .btn-sm { font-size: 0.8rem; padding: 0.35rem 0.65rem; }
}

@media (max-width: 575.98px) {
  .hero { 
    padding: 2.5rem 0 2rem; 
    min-height: 500px !important;
  }
  .hero .container {
    min-height: 350px;
  }
  #hero-title { font-size: 2rem !important; opacity: 0.9 !important; }
  .hero-buttons-wrapper {
    top: 30% !important;
    transform: translate(-50%, -50%) !important;
    padding: 1rem 1rem 1rem !important;
    gap: 0.75rem !important;
    max-width: 100% !important;
  }
  .hero .btn-lg {
    font-size: 0.9rem !important;
    padding: 0.55rem 1.25rem !important;
  }
  #hero-subtitle { 
    font-size: clamp(0.9rem, 3.5vw, 1.25rem); 
    font-weight: 700 !important; 
    color: #ffc107 !important;
    white-space: normal !important;
    line-height: 1.3;
  }
  .btn-lg { font-size: 0.95rem; padding: 0.45rem 1rem; }
  h1.h2 { font-size: 1.5rem !important; }
  .navbar-brand { font-size: 1.1rem; }
  .card-dark .card-img-top { height: 180px !important; }
  
  #coaches-container .coach-card {
    min-height: 530px !important;
    height: 530px !important;
  }
  
  #coaches-container .coach-card-img {
    border: 3px solid #000 !important;
  }
  
  #coaches-container .coach-card-content {
    padding: 1.25rem !important;
  }
  
  #coaches-container .coach-name {
    font-size: 1.3rem !important;
  }
  
  #coaches-container .coach-title {
    font-size: 1rem !important;
  }
  
  #coaches-container .coach-desc {
    font-size: 0.95rem !important;
  }
  
  .btn-sm { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
}

/* Gallery cards - затемнение и ограничение ширины */
.gallery-card {
  position: relative;
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3), transparent);
  z-index: 1;
  pointer-events: none;
}

.gallery-card-content {
  z-index: 2;
  position: relative;
}

.gallery-card-content h3,
.gallery-card-content small {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Ограничение ширины контейнера галереи для ПК */
@media (min-width: 992px) {
  #gallery-sections {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Стили для фото в галерее - одинаковый размер */
.gallery-photo-thumb {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-photo-item:hover .gallery-photo-thumb {
  opacity: 0.9;
}

/* Просмотрщик фото */
#photo-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.photo-viewer-container {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-viewer-image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.photo-viewer-close,
.photo-viewer-prev,
.photo-viewer-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.photo-viewer-close:hover,
.photo-viewer-prev:hover,
.photo-viewer-next:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.photo-viewer-close {
  top: 20px;
  right: 20px;
  font-size: 32px;
  line-height: 1;
}

.photo-viewer-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.photo-viewer-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.photo-viewer-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* Адаптация просмотрщика для мобильных */
@media (max-width: 767.98px) {
  .photo-viewer-close,
  .photo-viewer-prev,
  .photo-viewer-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .photo-viewer-close {
    top: 10px;
    right: 10px;
    font-size: 28px;
  }
  
  .photo-viewer-prev {
    left: 10px;
  }
  
  .photo-viewer-next {
    right: 10px;
  }
  
  .photo-viewer-image {
    max-height: 75vh;
  }
}

/* Скрытие атрибуции карт */
.leaflet-control-attribution,
.ymaps-2-1-79-copyrights-pane {
  display: none !important;
}

/* Стили для карточек категорий магазина - как у тренеров */
.shop-category-card {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shop-category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

.shop-category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 3;
  text-align: center;
}

.shop-category-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.shop-category-count {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.shop-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Стили для карточек товаров - как у тренеров */
.shop-item-card {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shop-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

.shop-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 3;
}

.shop-item-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.shop-item-price {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.shop-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Стили для карточек разделов новостей - как у магазина */
.news-section-card {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-section-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

.news-section-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 3;
  text-align: center;
}

.news-section-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.news-section-count {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.news-section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Стили для видеоплеера - адаптивность для мобильных */
video {
  max-width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Улучшенная поддержка мобильных устройств */
@media (max-width: 767.98px) {
  video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Улучшаем отображение контролов на мобильных */
  video::-webkit-media-controls {
    display: flex !important;
  }
  
  video::-webkit-media-controls-panel {
    display: flex !important;
  }
}

/* Адаптивность для карточек магазина */
@media (max-width: 767.98px) {
  .shop-category-card,
  .shop-item-card,
  .news-section-card {
    min-height: 250px !important;
    height: 250px !important;
  }
  
  .shop-category-content,
  .shop-item-content,
  .news-section-content {
    padding: 1.25rem !important;
  }
  
  .shop-category-title,
  .news-section-title {
    font-size: 1.25rem !important;
  }
  
  .shop-item-title {
    font-size: 1.1rem !important;
  }
  
  .shop-item-price {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .shop-category-card,
  .shop-item-card {
    min-height: 220px !important;
    height: 220px !important;
  }
  
  .shop-category-content,
  .shop-item-content {
    padding: 1rem !important;
  }
  
  .shop-category-title {
    font-size: 1.1rem !important;
  }
  
  .shop-item-title {
    font-size: 1rem !important;
  }
  
  .shop-item-price {
    font-size: 1.1rem !important;
  }
}

/* Улучшенная совместимость для различных браузеров */
@supports not (backdrop-filter: blur(10px)) {
  .navbar {
    background: rgba(10, 14, 18, 0.95);
  }
  
  .hero-buttons-wrapper {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Адаптивность для карточек магазина */
@media (max-width: 575.98px) {
  .shop-category-card,
  .shop-category-card .card-body {
    padding: 0.75rem !important;
  }
  
  .shop-category-card img,
  .shop-category-card .card-img-top {
    height: 180px !important;
  }
}

/* Обеспечение корректного отображения на всех разрешениях */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Поддержка для очень маленьких экранов */
@media (max-width: 375px) {
  .hero-buttons-wrapper {
    padding: 1rem !important;
    font-size: 0.9rem;
  }
  
  #hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
  }
}

/* Стили для чекбокса согласия на обработку ПД */
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label a {
  color: var(--accent);
  text-decoration: underline;
}

.form-check-label a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Модальное окно успешной отправки */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.success-modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-modal-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: iconBounce 0.5s ease-out 0.2s both;
}

@keyframes iconBounce {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-modal-title {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-modal-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-modal-btn {
  min-width: 120px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.success-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 212, 0, 0.3);
}

/* Адаптивность для модального окна */
@media (max-width: 575.98px) {
  .success-modal-content {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
  
  .success-modal-icon {
    font-size: 3rem;
  }
  
  .success-modal-title {
    font-size: 1.25rem;
  }
  
  .success-modal-text {
    font-size: 0.9rem;
  }
}


