/* ============================================
   Apple-style Landing — Custom Styles
   ============================================ */

:root {
  --color-primary: #0071e3;
  --color-primary-hover: #0077ed;
  --color-secondary: #5856d6;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --radius: 12px;
  --header-height: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.47059;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  z-index: 1030;
  transition: width 0.1s ease-out;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text) !important;
  transition: opacity var(--transition-base);
  gap: 0.25rem;
}

.navbar-brand:hover {
  color: var(--color-text) !important;
  opacity: 0.85;
}

.navbar-logo {
  height: 61px;
  width: auto;
  max-width: 276px;
  object-fit: contain;
  display: block;
}

.navbar-brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-muted) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-primary) !important;
}

.nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 500;
}

/* Кнопка меню только в мобильной версии (скрыта на lg и выше) */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* В мобильной шапке: логотип слева, кнопка меню справа в одну строку */
@media (max-width: 991.98px) {
  .navbar .container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
  }

  .navbar .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    overflow: hidden;
  }

  .navbar .navbar-toggler {
    flex-shrink: 0;
    margin-left: auto;
  }
}

.navbar-toggler {
  padding: 0.5rem;
  color: var(--color-text);
}

.navbar-toggler:hover {
  color: var(--color-primary);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: inherit;
  stroke: currentColor;
}

/* Иконка бургера (3 горизонтальные полоски) — чисто CSS */
.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 24px;
  height: 24px;
  color: inherit;
}

.burger-icon span {
  display: block;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: background-color 0.2s ease;
}

.navbar-toggler .nav-toggle-icon,
.navbar-toggler svg {
  stroke: currentColor;
  color: inherit;
}

.navbar-toggler-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}

/* Offcanvas — мобильное меню */
#offcanvasNav.offcanvas {
  max-width: 320px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

#offcanvasNav.offcanvas.show {
  z-index: 1050;
  visibility: visible;
}

#offcanvasNav .nav li {
  display: block;
}

#offcanvasNav .mobile-nav-link {
  display: flex !important;
}

.offcanvas-header {
  padding: 1rem 1.25rem;
  flex-shrink: 0;
}

.offcanvas-brand {
  flex: 1;
  min-width: 0;
}

.offcanvas-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.offcanvas-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

#offcanvasNav .btn-close {
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  margin: -0.5rem -0.5rem -0.5rem auto;
  opacity: 0.7;
}

#offcanvasNav .btn-close:hover {
  opacity: 1;
}

.offcanvas-body {
  padding: 0.5rem 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#offcanvasNav .nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

#offcanvasNav .nav li {
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#offcanvasNav .nav li:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text) !important;
  padding: 0.875rem 0 !important;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 8px;
  margin: 2px 0;
}

.mobile-nav-link:hover {
  color: var(--color-primary) !important;
  background-color: rgba(0, 113, 227, 0.06);
}

.mobile-nav-link:active,
.mobile-nav-link:focus {
  background-color: rgba(0, 113, 227, 0.1);
  color: var(--color-primary) !important;
}

.mobile-nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Якоря главной: отступ при прокрутке = высота шапки, чтобы заголовок секции был сразу под ней */
#hero,
#news,
#competitions,
#photo,
#documents,
#contacts {
  scroll-margin-top: var(--header-height, 52px);
}

/* Hero */
.hero {
  padding: 6rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.btn-cta {
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 980px;
  background-color: var(--color-primary);
  border: none;
  color: #fff !important;
  transition: background-color var(--transition-base), transform 0.2s ease;
}

.btn-cta:hover {
  background-color: var(--color-primary-hover);
  color: #fff !important;
  transform: scale(1.02);
}

.btn-cta:active {
  transform: scale(0.98);
}

/* Sections common — 2rem перед названием, зазор между секциями 2rem (padding-bottom 0) */
.section {
  padding: 2rem 0 0 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

/* News */
.section-news {
  background-color: var(--color-bg-alt);
}

/* Кнопки «Все новости» / «Все соревнования»: одинаковый отступ сверху и снизу */
.section-more-wrap {
  margin-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.section-more-wrap:empty {
  margin-top: 0;
  padding-bottom: 0;
}

/* Зазор до следующего раздела — padding-bottom у кнопки; иначе обычный padding-top секции */
.section-news:has(#news-more-wrap:not(:empty)) + .section-competitions,
.section-competitions:has(#competitions-more-wrap:not(:empty)) + .section-photo {
  padding-top: 0;
}

/* Секция новостей и строка карточек — явно видимы на всех экранах */
.section-news,
#news-row {
  display: block;
  visibility: visible;
}

#news-row.row {
  display: flex;
  flex-wrap: wrap;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.news-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.news-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.news-card-icon .news-card-dart-target {
  width: 40px;
  height: 40px;
  display: block;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.news-card-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.news-card-text br {
  display: block;
  margin-top: 0.25em;
  line-height: 1.5;
}

.news-card-expanded .news-card-text {
  -webkit-line-clamp: unset;
  display: block;
  margin-bottom: 0.75rem;
}

.news-card-toggle {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0 0 0.5rem 0;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-base);
}

.news-card-toggle:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.news-card-toggle-hidden {
  display: none !important;
}

.news-card-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: auto;
  text-align: right;
  display: block;
}

/* Новость с изображением (из админки) */
.news-card-has-image .news-card-image-wrap {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1rem -2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.news-card-has-image .news-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Rating */
.section-rating {
  background-color: var(--color-bg);
}

.page-rating .section-title {
  margin-top: 0;
}

.breadcrumb-nav {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb-nav a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav span:last-of-type {
  color: var(--color-text);
}

.rating-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.rating-tabs .nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  background: none;
  border-radius: 0;
}

.rating-tabs .nav-link:hover {
  color: var(--color-primary);
}

.rating-tabs .nav-link.active {
  color: var(--color-primary);
  background: none;
  border-bottom-color: var(--color-primary);
}

.rating-tab-content .tab-pane {
  padding-top: 0;
}

.rating-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-bg);
}

.rating-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.rating-table th,
.rating-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rating-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

.rating-table tbody tr:last-child td {
  border-bottom: none;
}

.rating-table tbody tr:hover {
  background: rgba(0, 113, 227, 0.04);
}

.rating-place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.rating-place i {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.rating-place-1 i {
  color: #d4af37;
}

.rating-place-2 i {
  color: #c0c0c0;
}

.rating-place-3 i {
  color: #cd7f32;
}

.rating-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.rating-change i {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.rating-change-up {
  color: #34c759;
}

.rating-change-down {
  color: #ff3b30;
}

.rating-change-none {
  color: var(--color-text-muted);
}

/* Competitions */
.section-competitions {
  background-color: var(--color-bg);
}

.competition-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
}

.competition-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.competition-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.competition-card-date i {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  stroke-width: 2;
}

.competition-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.competition-card-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.competition-card-text br {
  display: block;
  margin-top: 0.25em;
  line-height: 1.5;
}

.competition-card-expanded .competition-card-text {
  -webkit-line-clamp: unset;
  display: block;
  margin-bottom: 0.75rem;
}

.competition-card-toggle {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0 0 0.5rem 0;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-base);
}

.competition-card-toggle:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.competition-card-toggle-hidden {
  display: none !important;
}

.competition-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 980px;
}

.competition-card-badge-upcoming {
  background: rgba(0, 113, 227, 0.12);
  color: var(--color-primary);
}

.competition-card-badge-past {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

/* Соревнование с изображением (из админки) */
.competition-card-has-image .competition-card-image-wrap {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1rem -2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.competition-card-has-image .competition-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Photo */
.section-photo {
  background-color: var(--color-bg-alt);
}

.photo-gallery-by-competition {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.photo-competition-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.photo-competition-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text, #1d1d1f);
  margin: 0 0 0.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary, #0d6efd);
}

.photo-gallery-more {
  margin-top: 1.5rem;
}

/* Список событий в фотогалерее */
.photo-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.photo-event-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius, 0.5rem);
  background: var(--color-bg-alt, #f5f5f7);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.photo-event-card:hover {
  border-color: var(--color-primary, #0d6efd);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.photo-event-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem 1rem;
}

.photo-event-card-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.06);
}

.photo-event-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #6e6e73);
}

.photo-event-card-thumb-placeholder svg {
  width: 28px;
  height: 28px;
}

.photo-event-card-body {
  flex: 1;
  min-width: 0;
}

.photo-event-card-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text, #1d1d1f);
}

.photo-event-card-count {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted, #6e6e73);
  margin-top: 0.25rem;
}

.photo-event-card-arrow {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-muted, #6e6e73);
}

.photo-event-card:hover .photo-event-card-arrow {
  color: var(--color-primary, #0d6efd);
}

.photo-event-detail-title {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.photo-event-back {
  margin-bottom: 0.5rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* На главной: фото в одну строку */
.photo-gallery-single-row {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 991px) {
  .photo-gallery-single-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .photo-gallery-single-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-gallery-item {
  aspect-ratio: 4 / 3;
}

.photo-card {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.photo-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Лайтбокс фотографий — просмотр в том же окне, prev/next по кругу */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.photo-lightbox.photo-lightbox-open {
  opacity: 1;
  visibility: visible;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.photo-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-img {
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-caption {
  margin: 1rem 0 0;
  padding: 0 1rem;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 90vw;
}

.photo-lightbox-close,
.photo-lightbox-prev,
.photo-lightbox-next {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-close:hover,
.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.photo-lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
}

.photo-lightbox-close::before {
  content: '×';
}

.photo-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox-prev::before {
  content: '‹';
  font-size: 2rem;
  line-height: 1;
  margin-left: -2px;
}

.photo-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox-next::before {
  content: '›';
  font-size: 2rem;
  line-height: 1;
  margin-right: -2px;
}

.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 767.98px) {
  .photo-lightbox-prev,
  .photo-lightbox-next {
    min-width: 48px;
    min-height: 48px;
    width: 56px;
    height: 56px;
  }
  .photo-lightbox-prev {
    left: 0.5rem;
  }
  .photo-lightbox-next {
    right: 0.5rem;
  }
  .photo-lightbox-content {
    touch-action: pan-y;
  }
}

/* Fallback for photo-placeholder if used elsewhere */
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--photo-accent, var(--color-primary)) 0%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.photo-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.photo-placeholder i {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  opacity: 0.9;
}

.photo-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0 0.5rem;
}

/* Documents — плашки с названием документа */
.document-card {
  display: block;
  padding: 1.25rem 1rem;
  background: var(--color-bg-alt, #f5f5f7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius, 0.5rem);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  height: 100%;
  min-height: 80px;
  text-align: center;
  align-content: center;
}

.document-card:hover {
  color: var(--color-primary);
  border-color: var(--color-primary, #0d6efd);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.document-card-plaque .document-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-card-preview,
.document-card-preview-icon,
.document-card-preview-badge,
.document-card-meta,
.document-card-icon {
  /* для совместимости */
}

/* Документы — тот же фон, что у контактов; отступ снизу под секцию «Наши друзья» */
.section-documents {
  padding-bottom: 2rem;
  background-color: var(--color-bg);
}
.section-documents + .section-friends {
  padding-top: 0;
}
.section-friends + .section-contacts {
  padding-top: 0;
}

/* Наши друзья — круговой слайдер с иконками-ссылками */
.section-friends {
  background-color: var(--color-bg-alt);
  padding-bottom: 2rem;
}

.friends-carousel-wrap {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.friends-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.friends-carousel-item {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg);
  border: 2px solid rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
}

.friends-carousel-item:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.friends-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.friends-carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.06);
}

.friends-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--color-bg);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  z-index: 2;
}

.friends-carousel-nav:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.friends-carousel-nav-prev {
  left: -0.5rem;
}

.friends-carousel-nav-next {
  right: -0.5rem;
}

.friends-carousel-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: transform 0.35s ease-out;
}

/* Contacts */
.section-contacts {
  background-color: var(--color-bg);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.contact-link:hover {
  color: var(--color-primary-hover);
  background-color: rgba(0, 113, 227, 0.08);
}

.contact-link i {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  transition: color var(--transition-base), background-color var(--transition-base), transform 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.social-link:hover {
  color: var(--color-primary);
  background-color: rgba(0, 113, 227, 0.08);
  transform: scale(1.05);
}

.social-link i,
.social-link .social-link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.social-link i {
  stroke-width: 2;
}

.social-link .social-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-link .social-link-icon-fdso {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.social-link:hover .social-link-icon-fdso {
  filter: grayscale(0%);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-bg);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* Legal pages (privacy / terms) — popup-friendly */
.legal-page {
  background: var(--color-bg-alt);
  min-height: 100vh;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.legal-close {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  border-radius: 980px;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.legal-close:hover {
  background: var(--color-bg-alt);
  border-color: rgba(0, 0, 0, 0.2);
}

.legal-main {
  padding: 1.5rem 1.25rem 3rem;
}

.legal-article {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.legal-article h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: var(--color-text);
}

.legal-meta {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legal-article h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text);
}

.legal-article p,
.legal-article li {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
}

.legal-article p {
  margin: 0 0 0.85rem;
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.legal-article li {
  margin-bottom: 0.35rem;
}

.legal-article a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-article a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .legal-article {
    padding: 1.25rem 1rem 1.75rem;
    border-radius: 0;
    box-shadow: none;
  }

  .legal-article h1 {
    font-size: 1.375rem;
  }

  .legal-main {
    padding: 0 0 2rem;
  }
}

/* Overlay popup for privacy / terms (не блокируется как window.open) */
body.legal-popup-open {
  overflow: hidden;
}

.legal-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.legal-popup-overlay[hidden] {
  display: none !important;
}

.legal-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.legal-popup-window {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  height: min(820px, calc(100vh - 2rem));
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-popup-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.legal-popup-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.legal-popup-close {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  border-radius: 980px;
  cursor: pointer;
}

.legal-popup-close:hover {
  background: var(--color-bg-alt);
}

.legal-popup-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--color-bg-alt);
}

/* Внутри iframe: компактный вид без дублирующей кнопки закрытия */
html.legal-embed .legal-header {
  display: none;
}

html.legal-embed .legal-main {
  padding-top: 1rem;
}

@media (max-width: 576px) {
  .legal-popup-overlay {
    padding: 0;
  }

  .legal-popup-window {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.footer-sep {
  margin: 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* GSAP animation targets — initial state */
.animate-item {
  opacity: 0;
  transform: translateY(24px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-item {
    opacity: 1;
    transform: none;
  }

  .btn-cta:hover,
  .news-card:hover,
  .competition-card:hover,
  .document-card:hover,
  .photo-placeholder:hover,
  .photo-card:hover,
  .social-link:hover {
    transform: none;
  }
}

/* ============================================
   Адаптация для мобильных устройств
   ============================================ */

/* Удобные зоны нажатия и отключение подсветки по умолчанию */
@media (hover: none) {
  a, button {
    -webkit-tap-highlight-color: rgba(0, 113, 227, 0.15);
  }
}

/* Планшеты и узкие экраны */
@media (max-width: 991.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-lead {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }

  .photo-event-card-thumb {
    width: 64px;
    height: 48px;
  }

  .photo-event-card-title {
    font-size: 0.9375rem;
  }
}

/* Телефоны */
@media (max-width: 767.98px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar-brand {
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .navbar-logo {
    height: 44px;
    max-width: 180px;
    flex-shrink: 0;
  }

  .navbar-brand-title {
    font-size: 0.8125rem;
    white-space: normal;
    max-width: 120px;
    line-height: 1.2;
    flex-shrink: 1;
  }

  .navbar-toggler {
    padding: 0.35rem 0.5rem;
    min-width: 38px;
    min-height: 38px;
    color: var(--color-text) !important;
    background-color: transparent;
  }

  .navbar-toggler:hover {
    background-color: transparent;
    color: var(--color-text) !important;
  }

  .burger-icon {
    width: 20px;
    height: 20px;
    gap: 4px;
  }

  .burger-icon span {
    height: 2px;
  }

  /* Мобильное меню — на узких экранах почти на всю ширину */
  #offcanvasNav.offcanvas {
    max-width: 100%;
    border-radius: 0;
  }

  /* Главная (мобильная): единые отступы между Hero и разделами */
  .hero {
    padding: 2rem 0 2rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-cta {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    font-size: 1rem;
  }

  .section {
    padding: 2rem 0 0 0;
  }

  /* Зазор между разделами 2rem (как на десктопе): только верхний отступ у секций */
  .section-news,
  .section-competitions,
  .section-photo,
  .section-documents {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  /* После кнопок «Все…» отступ только у .section-more-wrap (равный margin-top) */
  .section-news:has(#news-more-wrap:not(:empty)) + .section-competitions,
  .section-competitions:has(#competitions-more-wrap:not(:empty)) + .section-photo {
    padding-top: 0;
  }

  .section-documents {
    padding-bottom: 2rem;
  }

  .section-friends {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section-documents + .section-friends {
    padding-top: 0;
  }

  .section-contacts {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section-friends + .section-contacts {
    padding-top: 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .section-news .section-title {
    margin-bottom: 1.25rem;
  }

  .section-competitions .section-title {
    margin-bottom: 1.25rem;
  }

  .section-lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .news-card {
    padding: 1.25rem;
  }

  .news-card-title {
    font-size: 1.125rem;
  }

  .news-card-text {
    font-size: 0.9375rem;
  }

  .competition-card {
    padding: 1.25rem;
  }

  .competition-card-title {
    font-size: 1.0625rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .photo-gallery-item {
    aspect-ratio: 4 / 3;
  }

  .photo-card-caption {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .photo-gallery-more {
    margin-top: 1rem;
  }

  .photo-gallery-more .btn {
    width: 100%;
    min-height: 44px;
  }

  .photo-competition-title {
    font-size: 1.125rem;
  }

  .photo-event-card-inner {
    padding: 0.6rem 0.75rem;
    gap: 0.75rem;
  }

  .photo-event-card-thumb {
    width: 56px;
    height: 42px;
  }

  .document-card {
    padding: 1.25rem;
  }

  .contact-link {
    padding: 0.875rem 1rem;
    min-height: 44px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .social-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .footer-copy,
  .footer-link {
    font-size: 0.75rem;
  }

  .site-footer .row {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center !important;
  }

  .site-footer .text-md-start {
    text-align: center !important;
  }

  .site-footer .text-md-end {
    text-align: center !important;
  }

  .breadcrumb-nav {
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

/* Очень узкие экраны — главная: чуть компактнее отступы */
@media (max-width: 575.98px) {
  .navbar-brand-title {
    max-width: 100px;
    font-size: 0.75rem;
  }

  .navbar-logo {
    height: 40px;
    max-width: 140px;
  }

  .offcanvas-header {
    padding: 1rem 1rem;
  }

  .offcanvas-body {
    padding: 0.5rem 1rem 1.25rem;
  }

  .mobile-nav-link {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.75rem 0 !important;
  }

  .hero {
    padding: 1.5rem 0 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  .section-news,
  .section-competitions,
  .section-photo,
  .section-documents {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* После кнопок «Все…» отступ только у .section-more-wrap */
  .section-news,
  .section-competitions {
    padding-bottom: 0;
  }

  .section-news:has(#news-more-wrap:not(:empty)) + .section-competitions,
  .section-competitions:has(#competitions-more-wrap:not(:empty)) + .section-photo {
    padding-top: 0;
  }

  .section-more-wrap {
    margin-top: 1rem;
    padding-bottom: 1rem;
  }

  .section-friends {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .section-documents + .section-friends {
    padding-top: 0;
  }
  .section-contacts {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .section-friends + .section-contacts {
    padding-top: 0;
  }
  .section-documents {
    padding-bottom: 2rem;
  }

  .friends-carousel-item {
    width: 64px;
    height: 64px;
  }

  .section-title {
    font-size: 1.375rem;
    margin-bottom: 0.6rem;
  }

  .section-news .section-title {
    margin-bottom: 1rem;
  }

  .section-competitions .section-title {
    margin-bottom: 1rem;
  }

  .photo-gallery-single-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .photo-event-card-inner {
    flex-wrap: wrap;
  }

  .photo-event-card-thumb {
    width: 48px;
    height: 36px;
  }

  .photo-event-card-body {
    flex: 1;
    min-width: 0;
  }

  .photo-event-card-arrow {
    display: none;
  }
}

/* Рейтинг и таблицы на мобильных */
@media (max-width: 767.98px) {
  .rating-table-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rating-table {
    font-size: 0.875rem;
    min-width: 280px;
  }

  .rating-table th,
  .rating-table td {
    padding: 0.5rem 0.35rem;
  }

  .rating-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .rating-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  .rating-tabs::-webkit-scrollbar {
    display: none;
  }

  .rating-tabs .nav-item {
    flex-shrink: 0;
  }

  .btn-outline-primary {
    min-height: 44px;
    padding: 0.5rem 1rem;
  }

  /* Таблицы детализации (страницы рейтинга) — выравнивание и прокрутка на мобильных */
  .detail-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
  }

  .detail-table {
    font-size: 0.75rem !important;
    min-width: 600px;
    margin-bottom: 0;
  }

  .detail-table th,
  .detail-table td {
    padding: 0.3rem 0.35rem !important;
    vertical-align: middle !important;
  }

  .detail-table .col-rank {
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    text-align: center !important;
  }

  .detail-table .col-name {
    min-width: 5.5rem !important;
    max-width: 9rem !important;
    white-space: normal !important;
    word-break: break-word;
  }

  /* Липкие колонки «Рейтинг» и «ФИО» при горизонтальной прокрутке — непрозрачный фон */
  .detail-table thead th:first-child,
  .detail-table thead th:nth-child(2),
  .detail-table tbody td:first-child,
  .detail-table tbody td:nth-child(2) {
    position: sticky;
    z-index: 2;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
  }

  .detail-table thead th:first-child,
  .detail-table thead th:nth-child(2) {
    background: #f5f5f7 !important;
  }

  .detail-table thead th:first-child,
  .detail-table tbody td:first-child {
    left: 0;
  }

  .detail-table thead th:nth-child(2),
  .detail-table tbody td:nth-child(2) {
    left: 2.25rem;
  }

  .detail-table tbody tr:nth-child(even) td:first-child,
  .detail-table tbody tr:nth-child(even) td:nth-child(2) {
    background: #ffffff !important;
  }

  .detail-table tbody tr:nth-child(odd) td:first-child,
  .detail-table tbody tr:nth-child(odd) td:nth-child(2) {
    background: #f8f8f8 !important;
  }

  .page-rating .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
