﻿:root {
  --bg: #0B0F13;
  --card: #1A212B;
  --text: #E7EAF0;
  --muted: #9AA6B2;
  --accent: #FFD400;
}

html, body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

.page-main {
  display: flex;
  align-items: stretch;
}

.page-main > .container {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.page-main .page-title,
.page-main h1:first-child {
  margin-top: 0;
}

.page-main .container > .page-title,
.page-main .container > h1:first-child,
.page-main .container > h1.h2:first-child {
  margin-bottom: 1.6rem;
}

/* Убираем вспышку скрытых разделов до применения настроек */
html:not(.js-ready) a[href="/price"],
html:not(.js-ready) a[href="/schedule"],
html:not(.js-ready) a[href="/coaches"],
html:not(.js-ready) a[href="/shop"],
html:not(.js-ready) a[href="/gallery"],
html:not(.js-ready) a[href="/news"],
html:not(.js-ready) a[href="/contacts"] {
  visibility: hidden;
}

html.section-hidden-news a[href="/news"],
html.section-hidden-price a[href="/price"],
html.section-hidden-schedule a[href="/schedule"],
html.section-hidden-coaches a[href="/coaches"],
html.section-hidden-shop a[href="/shop"],
html.section-hidden-gallery a[href="/gallery"],
html.section-hidden-contacts a[href="/contacts"] {
  display: none !important;
}

html:not(.home-ready) .hero-buttons-wrapper,
html:not(.home-ready) #hero-subtitle,
html:not(.home-ready) [data-hero-btn],
html:not(.home-ready) [data-home-section] {
  visibility: hidden;
}

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: 64px !important;
  }

  /* Для главной с hero компенсируем отступ, чтобы фон был от самого верха */
  .hero:first-child {
    margin-top: -64px !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: linear-gradient(180deg, rgba(26, 33, 43, .9), rgba(11, 15, 19, .95));
  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: 1;
  pointer-events: none;
}

.hero .hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: inherit;
  position: relative;
  z-index: 2;
}

/* Заголовок скрыт */
#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%);
  height: 100%;
  min-height: inherit;
}

/* Текст над кнопками - увеличен и выделен цветом */
#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: normal;
  width: 100%;
  max-width: 980px;
  line-height: 1.2;
  padding: 0 1rem;
}

/* Кнопки меньше и с отступом */
.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 {
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* Планшеты: держим hero-текст и кнопки ниже, чтобы не "уезжали" вверх */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 640px !important;
    padding: 5.25rem 0 4rem !important;
  }

  .hero-buttons-wrapper {
    top: 56% !important;
    transform: translate(-50%, -50%) !important;
  }

  #hero-subtitle {
    max-width: 760px;
    line-height: 1.18;
  }
}

@media (min-width: 992px) {
  .hero-buttons-wrapper {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    padding: 0;
    max-width: none;
  }
  /* Текст по центру изображения */
  #hero-subtitle {
    position: absolute;
    top: var(--hero-title-top-desktop, 50%);
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--hero-title-size-desktop, 2rem) !important;
    opacity: var(--hero-title-opacity-desktop, 1);
  }
  /* Кнопки в столбик для ПК */
  .hero .d-flex {
    position: absolute;
    top: var(--hero-buttons-top-desktop, 62%);
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: var(--hero-buttons-direction-desktop, column) !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0 !important;
    gap: var(--hero-buttons-gap-desktop, 0.75rem) !important;
  }
  .hero .d-flex > a {
    width: auto !important;
    min-width: 220px;
  }
}

@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);
}

.about-page-hero {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 0, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.about-page-hero__glow {
  position: absolute;
  inset: auto -8% -22% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.18), transparent 68%);
  pointer-events: none;
}

.about-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 212, 0, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 212, 0, 0.07);
}

.about-page-lead,
.about-page-copy {
  color: #c9d2dc;
  line-height: 1.7;
  max-width: 62ch;
}

.about-page-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.about-page-main {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.about-page-sidebar,
.about-page-map-wrap,
.about-page-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--card);
}

.about-page-sidebar__body {
  padding: 1.15rem 1.5rem 1.5rem;
}

.about-page-hero .about-page-lead {
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.6;
}

.about-page-hero__body {
  padding: 1.1rem 1.5rem 1.2rem;
  border-left: 2px solid rgba(214, 182, 84, 0.36);
}

.about-page-hero .page-title {
  letter-spacing: -0.02em;
  color: rgba(231, 234, 240, 0.94);
  font-weight: 600;
  margin-left: 0.1rem;
  margin-bottom: 0.7rem;
}

.about-page-hero .about-page-lead {
  color: rgba(225, 231, 238, 0.9);
  margin-left: 0.1rem;
  margin-bottom: 0;
}

.about-page-contact-list {
  display: grid;
  gap: 1rem;
  max-width: 100%;
}

.about-page-section {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.about-page-section--first {
  padding-top: 0;
  border-top: 0;
}

.about-page-section--first::before {
  display: none;
}

.about-page-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 182, 84, 0.72), rgba(214, 182, 84, 0));
}

.about-page-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.1rem 0;
}

.about-page-contact-row > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.about-page-contact-row__icon,
.about-feature-item__icon {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #d6b654;
  font-size: 0.96rem;
}

.about-page-contact-row__label,
.about-page-callout__label {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-page-contact-row__value {
  margin-top: 0.2rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

.about-page-plain-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.about-page-plain-list .about-page-contact-row__value {
  margin-top: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.about-page-plain-list .about-page-contact-row__value:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-page-support .about-page-copy {
  max-width: 46ch;
}

.about-page-support {
  text-align: center;
}

.about-page-support .about-page-copy {
  margin-left: auto;
  margin-right: auto;
}

.about-page-support .about-page-action-btn {
  align-self: center;
}

.about-page-support,
.about-page-hours,
.about-page-contact-list,
#contact-socials-block,
#contact-emails-block {
  max-width: 100%;
}

.about-page-inline-links {
  padding-top: 0;
  border-top: 0;
}

.about-page-inline-links__title {
  margin-bottom: 0.8rem;
  color: #f0f4f8;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#contact-socials-block {
  text-align: center;
}

#contact-socials {
  justify-content: center;
}

.about-page-hours-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.about-page-hours-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.about-page-hours-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-page-hours-item__day {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-page-hours-item__time {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.about-page-action-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  color: #f3f5f7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.about-page-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.46);
}

.about-page-map-btn {
  margin-top: -0.25rem;
}

#contact-socials .btn.btn-accent {
  background: #d6b654;
  border-color: #d6b654;
  color: #111;
}

#contact-socials .btn.btn-accent:hover {
  background: #c3a347;
  border-color: #c3a347;
  color: #111;
}

.about-page-map-wrap {
  min-height: 620px;
}

@media (max-width: 991.98px) {
  .about-page-layout {
    grid-template-columns: 1fr;
  }

  .about-page-main {
    gap: 0.9rem;
  }

  .about-page-hero__body {
    padding: 0.9rem 1rem 0.95rem;
  }

  .about-page-sidebar__body {
    padding: 0.9rem 1rem 1rem;
  }

  .about-page-map-wrap {
    min-height: 320px;
  }

  .about-page-hero .page-title {
    font-size: 1.75rem;
    margin-bottom: 0.55rem;
  }

  .about-page-hero .about-page-lead,
  .about-page-copy,
  .about-page-contact-row__value,
  .about-page-hours-item__time {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .about-page-contact-row__label,
  .about-page-inline-links__title,
  .about-page-hours-item__day {
    font-size: 0.78rem;
  }

  .about-page-action-btn,
  #contact-socials .btn {
    min-height: 40px;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }
}

.about-page-features {
  display: grid;
  gap: 0.9rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: #dce3ea;
}

.about-page-callout {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.06));
  border: 1px solid rgba(255, 212, 0, 0.18);
}

.about-page-callout__phone {
  margin-top: 0.25rem;
  font-size: clamp(1.15rem, 1.1rem + 0.4vw, 1.55rem);
  font-weight: 800;
  color: #fff;
}

.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-"] {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .page-main .container {
    max-width: 1160px;
  }
  
  .page-main .page-title,
  .page-main h1.h2 {
    font-size: 2.05rem !important;
  }
  
  #price-tabs-btns .btn,
  .navbar-nav .nav-link {
    font-size: 0.92rem;
  }
  
  .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);
  border-radius: 0.35rem;
  transition: background-color 0.2s ease, border-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.04);
  border-color: rgba(255, 212, 0, 0.2);
}

.price-item:hover .price-tag {
  filter: brightness(1.03);
}

.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 {
  margin-top: auto;
  background: #0a0f14;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* 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: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Desktop schedule cards - keep consistent height */
.schedule-card-desktop {
  height: 140px;
}

.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;
}

.schedule-board {
  background: linear-gradient(180deg, rgba(20, 27, 36, 0.96), rgba(11, 15, 19, 0.96)) !important;
  border: 1px solid rgba(255, 212, 0, 0.2);
  border-radius: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.schedule-table-wrap {
  border-radius: 0.55rem;
  overflow: hidden;
}

.schedule-table {
  font-size: 0.9rem;
}

.schedule-table thead tr {
  border-bottom: 2px solid rgba(255, 212, 0, 0.35);
}

.schedule-day-header {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule-day-cell {
  max-width: 190px;
  vertical-align: top;
}

.schedule-day-stack {
  min-height: 210px;
}

.schedule-lesson {
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.55rem;
  min-height: 90px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.2s ease;
}

.schedule-lesson:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 212, 0, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.schedule-lesson-title {
  font-size: 0.86rem;
  line-height: 1.2;
}

.schedule-lesson-trainer {
  margin: 0;
  opacity: 0.9;
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.15;
}

.schedule-time-badge {
  font-size: 0.72rem;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
}

.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) {
  footer .container {
    text-align: center;
  }

  footer .container > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem !important;
    max-width: 320px;
    margin: 0 auto;
  }

  footer .container > div:last-child a {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .modal[id^="gallery-modal-"] .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
  }

  .modal[id^="gallery-modal-"] .modal-content {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .modal[id^="gallery-modal-"] .modal-body {
    padding: 0.9rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal[id^="gallery-modal-"] .modal-body .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .modal[id^="gallery-modal-"] .modal-body .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .modal[id^="gallery-modal-"] .gallery-photo-thumb {
    height: 160px !important;
    object-fit: cover !important;
  }

  .gallery-modal-video {
    height: 170px !important;
    object-fit: contain !important;
    background: #000;
  }

  .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;
  }

  .schedule-card-mobile {
    min-height: 98px;
    border: 1px solid rgba(255, 212, 0, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 0.7rem;
  }
}

@media (max-width: 360px) {
  .modal[id^="gallery-modal-"] .modal-body {
    padding: 0.7rem;
  }

  .modal[id^="gallery-modal-"] .modal-body .row {
    --bs-gutter-x: 0.55rem;
    --bs-gutter-y: 0.55rem;
  }

  .modal[id^="gallery-modal-"] .gallery-photo-thumb,
  .gallery-modal-video {
    height: 130px !important;
  }

  .modal[id^="gallery-modal-"] .btn.btn-sm {
    font-size: 0.72rem;
    padding: 0.3rem 0.45rem;
  }
}

/* Utilities */
.section-title {
  letter-spacing: .02em;
}

/* About highlights */
.about-content-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.about-highlight-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 1.35rem 1.25rem;
  min-height: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-highlight-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  background: rgba(255, 212, 0, 0.12);
  color: var(--accent);
  font-size: 1.65rem;
}

.about-highlight-icon-svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
}

.about-highlight-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  line-height: 1.25;
  text-align: center;
}

.about-highlight-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

/* Compact home news card */
.home-news-card {
  padding: 1rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.home-news-media {
  display: block;
  width: 100%;
  max-height: 460px;
  border-radius: 0.6rem;
  background: #000;
}

.home-news-image {
  object-fit: cover;
}

.home-news-video {
  object-fit: contain;
  min-height: 0;
}

.home-news-content {
  color: rgba(231, 234, 240, 0.9);
  line-height: 1.45;
  display: block;
  overflow: visible;
  white-space: normal;
}

.home-news-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 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: inherit;
    height: 100%;
  }
  #hero-title { font-size: 2.75rem !important; opacity: 0.9 !important; }
  .hero-buttons-wrapper {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .hero .d-flex {
    position: absolute;
    top: var(--hero-buttons-top-mobile, 60%);
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: var(--hero-buttons-direction-mobile, column) !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--hero-buttons-gap-mobile, 1rem) !important;
  }
  .hero .btn-lg {
    font-size: 0.95rem !important;
    padding: 0.6rem 1.5rem !important;
  }
  #hero-subtitle { 
    font-size: var(--hero-title-size-mobile, 1.5rem) !important; 
    font-weight: 700 !important; 
    color: #ffc107 !important;
    white-space: normal !important;
    line-height: 1.3;
    position: absolute;
    top: var(--hero-title-top-mobile, 45%);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 2;
    opacity: var(--hero-title-opacity-mobile, 1);
  }
  .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: inherit;
    height: 100%;
  }
  #hero-title { font-size: 2rem !important; opacity: 0.9 !important; }
  .hero-buttons-wrapper {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .hero .btn-lg {
    font-size: 0.9rem !important;
    padding: 0.55rem 1.25rem !important;
  }
  #hero-subtitle { 
    font-size: var(--hero-title-size-mobile, 1.5rem) !important; 
    font-weight: 700 !important; 
    color: #ffc107 !important;
    white-space: normal !important;
    line-height: 1.3;
    position: absolute;
    top: var(--hero-title-top-mobile, 45%);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 2;
    opacity: var(--hero-title-opacity-mobile, 1);
  }
  .btn-lg { font-size: 0.95rem; padding: 0.45rem 1rem; }
  h1.h2 { font-size: 1.5rem !important; }
  .page-title { margin-top: -0.2rem; }
  .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 {
    width: 100%;
    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-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: #000;
}

.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) {
  .inapp-browser .hero {
    min-height: calc(var(--app-vh, 1vh) * 100) !important;
    padding-top: 4.25rem !important;
    padding-bottom: 2rem !important;
  }

  .inapp-browser .hero .d-flex > a {
    min-width: min(70vw, 220px) !important;
  }

  .inapp-browser #hero-subtitle {
    width: min(90vw, 360px) !important;
    line-height: 1.22 !important;
  }

  .hero .hero-bg-video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  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) {
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-highlight-card {
    padding: 1.1rem;
    min-height: 180px;
  }

  .home-news-media {
    max-height: 260px;
  }

  .home-news-video {
    min-height: 0;
  }

  .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: 991.98px) {
  .about-highlights {
    grid-template-columns: 1fr !important;
  }

  .hero .d-flex > a {
    width: min(74vw, 240px) !important;
    min-width: 0 !important;
    max-width: 100% !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);
  }
}

/* Адаптивность для карточек магазина */
@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 {
    font-size: 0.9rem;
  }
}

/* Стили для чекбокса согласия на обработку ПД */
.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;
}

.map-consent-placeholder {
  min-height: 620px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.08), rgba(255, 255, 255, 0.025)),
    var(--card);
}

.map-consent-placeholder p {
  max-width: 520px;
  color: var(--muted);
}

.external-consent-placeholder {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.external-consent-placeholder p {
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(26, 33, 43, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner__text {
  display: grid;
  gap: 0.2rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.cookie-banner__text span {
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.info-notice {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.info-notice__dialog {
  width: min(100%, 612px);
  padding: 1.25rem 1.15rem 1rem;
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.08), rgba(255, 255, 255, 0.025)),
    var(--card);
  color: var(--text);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.info-notice__dialog h2 {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.info-notice__dialog p {
  margin: 0 0 1rem;
  color: #dce3ea;
  font-size: 1rem;
  line-height: 1.55;
}

.info-notice__dialog p span {
  display: block;
}

.info-notice__dialog p span + span {
  margin-top: 0.25rem;
}

.info-notice__dialog .btn {
  min-width: 118px;
  border-radius: 0.5rem !important;
  background: var(--accent);
  color: #000 !important;
}

.info-notice__dialog .btn:hover {
  background: var(--accent);
  filter: brightness(0.96);
}

@media (max-width: 767.98px) {
  .map-consent-placeholder {
    min-height: 320px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 160px;
  }

  .info-notice {
    padding: 1rem;
  }
}

/* Модальное окно успешной отправки */
.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;
  }
}

/* Финальные hero-override: применяются только когда JS выбрал mobile-layout */
html.home-mode-mobile .hero {
  min-height: calc(var(--app-vh, 1vh) * 100) !important;
  height: calc(var(--app-vh, 1vh) * 100) !important;
  padding-top: max(4.2rem, calc(env(safe-area-inset-top, 0px) + 3.2rem)) !important;
  padding-bottom: 1rem !important;
  background-position: center center !important;
}

html.home-mode-mobile .hero .container {
  min-height: 100% !important;
  height: 100% !important;
}

html.home-mode-mobile .hero-buttons-wrapper {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}

html.home-mode-mobile #hero-subtitle {
  position: absolute !important;
  top: var(--hero-title-top-mobile, 42%) !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(88vw, 740px) !important;
  max-width: 88vw !important;
  font-size: clamp(
    1.1rem,
    calc(var(--hero-title-size-mobile, 1.5rem) * 0.72 + 2.1vw),
    calc(var(--hero-title-size-mobile, 1.5rem) * 1.55)
  ) !important;
  line-height: 1.14 !important;
  text-align: center !important;
  z-index: 2;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.home-mode-mobile .hero .d-flex {
  position: absolute !important;
  top: var(--hero-buttons-top-mobile, 60%) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(90vw, 400px) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.9rem !important;
}

html.home-mode-mobile .hero .d-flex > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(70vw, 280px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding: 0.62rem 1.1rem !important;
  font-size: clamp(0.92rem, 1.9vw, 1.04rem) !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 420px) {
  html.home-mode-mobile .hero {
    min-height: calc(var(--app-vh, 1vh) * 100) !important;
    height: calc(var(--app-vh, 1vh) * 100) !important;
    padding-top: max(4rem, calc(env(safe-area-inset-top, 0px) + 3rem)) !important;
    padding-bottom: 1.2rem !important;
  }

  html.home-mode-mobile #hero-subtitle {
    width: 92vw !important;
    font-size: clamp(
      1.05rem,
      calc(var(--hero-title-size-mobile, 1.5rem) * 0.7 + 2.6vw),
      calc(var(--hero-title-size-mobile, 1.5rem) * 1.35)
    ) !important;
    line-height: 1.14 !important;
  }

  html.home-mode-mobile .hero .d-flex > a {
    width: min(78vw, 235px) !important;
    font-size: clamp(0.9rem, 3.8vw, 1rem) !important;
    padding: 0.52rem 0.85rem !important;
  }
}

@media (max-width: 320px) {
  html.home-mode-mobile #hero-subtitle {
    width: 94vw !important;
    font-size: clamp(
      1rem,
      calc(var(--hero-title-size-mobile, 1.5rem) * 0.68 + 2.9vw),
      calc(var(--hero-title-size-mobile, 1.5rem) * 1.28)
    ) !important;
  }

  html.home-mode-mobile .hero .d-flex > a {
    width: min(84vw, 220px) !important;
    font-size: 0.92rem !important;
    padding: 0.5rem 0.8rem !important;
  }
}


  

