:root {
  --bg-main: #000000;
  --bg-main-soft: #050506;
  --bg-alt: #101015;
  --text-main: #f3e9d6;
  --text-muted: #b5aa93;
  --accent: #e49400;
  --accent-soft: rgba(228, 148, 0, 0.12);
  --border-subtle: rgba(243, 233, 214, 0.08);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --transition-fast: 0.2s ease-out;
}

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

body.page-dark {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* HEADER */

.bg-dark-gradient {
  background: radial-gradient(circle at top left, rgba(228, 148, 0, 0.18), transparent 55%),
              linear-gradient(90deg, #040404, #050608 60%, #040404);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}

.site-header .navbar {
  padding-block: 0.7rem;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-inline: 1rem;
  position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--text-main);
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-social .social-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.nav-social .social-icon:hover {
  color: var(--accent);
  border-color: rgba(228, 148, 0, 0.5);
  background: rgba(228, 148, 0, 0.06);
}

/* HERO */

.hero-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.0);
  transform: scale(1.00);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(228, 145, 0, 0.25), transparent 30%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), #000000 99%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3.2vw + 1.2rem, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions .btn {
  min-width: 9rem;
}

.btn-accent-primary {
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 18px 45px rgba(0, 0, 0, 0.65);
  transition: var(--transition-fast);
}

.btn-accent-primary:hover {
  background: #ffac1c;
  border-color: #ffac1c;
  color: #000;
  transform: translateY(-1px);
}

.hero-stat-card {
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius-xl);
  background: rgba(5, 5, 5, 0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  max-width: 18rem;
}

.hero-stat-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.hero-stat-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SECTIONS */

.section-dark,
.section-dark-alt {
  padding-block: 4rem;
}

.section-dark {
  background: radial-gradient(circle at top center, rgba(228, 148, 0, 0.08), transparent 60%),
              linear-gradient(#050505, #050506);
}

.section-dark-alt {
  background: radial-gradient(circle at bottom center, rgba(228, 148, 0, 0.09), transparent 55%),
              linear-gradient(#050506, #050505);
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.section-text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 148, 0, 0.5);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(228, 148, 0, 0.06);
}

/* INFO CARD */

.info-card {
  background: radial-gradient(circle at top right, rgba(228, 148, 0, 0.18), transparent 55%),
              linear-gradient(135deg, rgba(7, 7, 7, 0.96), rgba(9, 9, 9, 0.98));
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.info-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.info-card-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.info-card-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.info-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* TEAM CARDS */

.team-card {
  background: rgba(6, 6, 6, 0.96);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 148, 0, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.team-media {
  position: relative;
  overflow: hidden;
  max-height: 220px;
}

.team-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.1);
  transform: scale(1.03);
  transition: transform 0.6s ease-out, filter 0.6s ease-out;
}

.team-card:hover .team-video {
  transform: scale(1.08);
  filter: grayscale(0) contrast(1.2);
}

.team-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom center, rgba(228, 148, 0, 0.22), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.team-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.team-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.team-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* PARTNERS */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.partner-item {
  background: rgba(6, 6, 6, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.partner-item:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 148, 0, 0.7);
  background: rgba(228, 148, 0, 0.04);
  box-shadow: var(--shadow-soft);
}

.partner-logo {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.9;
  transition: filter var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.partner-item:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
}

/* FOOTER */

.site-footer {
  background: #020203;
  border-top: 1px solid var(--border-subtle);
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.footer-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-list a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  margin-right: 0.35rem;
  transition: var(--transition-fast);
}

.footer-social-icons .social-icon:hover {
  border-color: rgba(228, 148, 0, 0.7);
  color: var(--accent);
  background: rgba(228, 148, 0, 0.08);
}

.footer-separator {
  border-color: var(--border-subtle);
  margin-block: 1.8rem;
}

.footer-bottom {
  gap: 1rem;
}

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

.scroll-top-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(228, 148, 0, 0.7);
  background: rgba(228, 148, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scroll-top-btn i {
  color: var(--accent);
  font-size: 0.85rem;
}

/* RESPONSIVE TWEAKS */

@media (max-width: 991.98px) {
  .hero-content {
    padding-top: 4.2rem;
    padding-bottom: 3.4rem;
  }

  .hero-stat-card {
    margin-top: 1rem;
  }

  .main-nav .nav-link {
    padding-block: 0.5rem;
  }

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

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card {
  background: rgba(6, 6, 6, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(243, 233, 214, 0.08);
  padding: 1.2rem 1.3rem 1.35rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 148, 0, 0.7);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.news-date {
  color: #b5aa93;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.news-tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 148, 0, 0.5);
  color: #e49400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.news-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #b5aa93;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

.news-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #e49400;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.news-link:hover {
  text-decoration: underline;
}

.ammo-section {
  background: #000000e0;
  padding: 40px 0 50px;
  color: #f3e9d6;
}

.ammo-tabs .nav-link {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(243, 233, 214, 0.2);
  color: #f3e9d6;
  background: transparent;
}

.ammo-tabs .nav-link.active {
  background: #e49400;
  color: #000;
  border-color: #e49400;
}

.ammo-tabs .nav-link:hover:not(.active) {
  border-color: rgba(228, 148, 0, 0.7);
}

.ammo-category-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.ammo-category-title {
  font-weight: 600;
  color: #e49400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.ammo-category-tag {
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 148, 0, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f3e9d6;
}

.ammo-table thead {
  border-bottom: 1px solid rgba(243, 233, 214, 0.12);
}

.ammo-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b5aa93;
  border-top: none;
}

.ammo-table tbody tr {
  border-color: rgba(243, 233, 214, 0.08);
}

.ammo-table tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
}

.vehicle-section {
  background: #000000e0;
  padding: 40px 0 60px;
  color: #f3e9d6;
}

.vehicle-card {
  background: radial-gradient(circle at top left, rgba(228,148,0,0.12), transparent 55%) #151615;
  border-radius: 18px;
  border: 1px solid rgba(243, 233, 214, 0.08);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  height: 100%;
}

.vehicle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 0.75rem;
}

.vehicle-index {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b5aa93;
}

.vehicle-badge {
  padding: 0.12rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 148, 0, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f3e9d6;
}

.vehicle-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f3e9d6;
}

.vehicle-specs {
  margin: 0;
}

.vehicle-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  font-size: 0.9rem;
  padding: 3px 0;
  border-top: 1px dashed rgba(243, 233, 214, 0.12);
}

.vehicle-spec-row:first-of-type {
  border-top: none;
}

.vehicle-spec-row dt {
  margin: 0;
  color: #b5aa93;
}

.vehicle-spec-row dd {
  margin: 0;
  color: #f3e9d6;
}

.info-card-list .component {
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.info-card-list .component:hover {
  background-color: rgba(228, 148, 0, 0.12);
}

.info-card-list .component.active {
  background-color: rgba(228, 148, 0, 0.2);
  color: #e49400;
}

/* Список компонентів (акордеон) */
.accordion-components {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Один елемент */
.accordion-components .component {
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(228, 148, 0, 0.25); /* #e49400 з прозорістю */
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* Кнопка-заголовок */
.accordion-components .component-header {
  width: 100%;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #f3e9d6;
  border: none;
  outline: none;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

/* Текст іконки (+) */
.accordion-components .component-icon {
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

/* Hover-ефект */
.accordion-components .component:hover {
  border-color: #e49400;
  box-shadow: 0 0 10px rgba(228, 148, 0, 0.35);
  transform: translateX(2px);
  background: rgba(83, 90, 78, 0.9); /* близько до #535a4e */
}

/* Активний (розкритий) стан */
.accordion-components .component.is-open {
  border-color: #e49400;
  box-shadow: 0 0 12px rgba(228, 148, 0, 0.45);
  background: #e49400;
}

/* Колір тексту при відкритті */
.accordion-components .component.is-open .component-header {
  color: #000;
}

.accordion-components .component.is-open .component-body {
  color: #000;
}

/* Поворот іконки при відкритті (з + робимо хрестик) */
.accordion-components .component.is-open .component-icon {
  transform: rotate(45deg);
}

/* Тіло опису з анімацією */
.accordion-components .component-body {
  padding: 0 14px 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding-top 0.35s ease, padding-bottom 0.35s ease;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Коли блок відкрито – показуємо контент плавно */
.accordion-components .component.is-open .component-body {
  opacity: 1;
  padding-top: 8px;
  padding-bottom: 10px;
}

/* На невеликих екранах трохи збільшуємо клікабельну область */
@media (max-width: 768px) {
  .accordion-components .component-header {
    padding: 12px 14px;
  }
  .accordion-components .component-body {
    font-size: 0.95rem;
  }
}

/* Обёртка, чтобы аккордеон красиво отделялся от таблиц, текста и колонок */
.components-wrapper {
  margin-top: 20px;
  margin-bottom: 30px;
  align-items: center;
  
}

/* Карточка блока */
.info-card {
  background: rgba(0, 0, 0, 0.45); /* тёмный полупрозрачный фон под твой стиль */
  border: 1px solid rgba(228, 148, 0, 0.35); /* фирменный #e49400 */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(228, 148, 0, 0.12);
}

/* Заголовок блока */
.info-card-title {
  color: #e49400;
  font-size: 1.35rem;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Чтобы список не был слишком широким */
.accordion-components {
  max-width: 100%;
}

/* Чтобы в две колонки на очень широком экране не ломалось */
@media (min-width: 1400px) {
  .accordion-components {
    max-width: 85%;
  }
}

/* Чтобы красиво смотрелось на телефонах */
@media (max-width: 768px) {
  .components-wrapper {
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .info-card {
    padding: 15px;
  }
}

/* Фон блока под таблицей */
.bg-dark-table {
  background: linear-gradient(180deg, #000000e0, #1a1a1a);
  padding: 20px;
  border-radius: 8px;
}

/* Тёмная таблица HI-GEAR */
.hi-dark-table {
  width: 100%;
  border-collapse: collapse;
  color: #f3e9d6; /* твой фирменный светлый */
  background-color: transparent;
}

/* Шапка */
.hi-dark-table thead {
  background-color: rgba(255, 255, 255, 0.05);
}

.hi-dark-table thead th {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e49400; /* фирменный золотой */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Строки */
.hi-dark-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Зебра */
.hi-dark-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Hover */
.hi-dark-table tbody tr:hover {
  background-color: rgba(228, 148, 0, 0.15);
  transition: 0.25s;
}

/* Первая колонка с номером */
.hi-dark-table tbody td:first-child,
.hi-dark-table thead th:first-child {
  width: 70px;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hi-dark-table thead th,
  .hi-dark-table tbody td {
    font-size: 0.85rem;
  }

  .hi-dark-table tbody td:first-child {
    width: 50px;
  }
}

.hero-video {
  pointer-events: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.team-video {
  pointer-events: none;
  object-fit: cover;
}

.hero-news-grid {
  position: relative;
  z-index: 3;
}

/* карточка */
.news-card {
  position: relative;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.55);
}

/* затемнение картинки */
.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

/* текст */
.news-card-body {
  position: relative;
  z-index: 2;
  padding: 16px 18px 20px;
  color: #fff;
}

.news-card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #ff8f2f;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.news-card-text {
  font-size: 0.88rem;
  color: #ddd;
  margin-bottom: 0;
}

/* --- Split section с фото сбоку --- */
.breger-split-section {
  position: relative;
  overflow: hidden;
}

.photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.03);
  transition: transform 0.9s ease;
}

.photo-frame:hover img {
  transform: scale(1.08);
}

/* --- Full width hero-like panel --- */
.image-panel {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f3e9d6;
}

.image-panel-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255,165,0,0.25) 0, transparent 50%),
              linear-gradient(120deg, rgba(0,0,0,0.85), rgba(0,0,0,0.9));
}

.image-panel-content {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* --- Карточка с фото справа от ТТХ --- */
.photo-card.stacked {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.photo-card.stacked::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* --- Фоновые мини-превью в блоке особенностей --- */
.breger-features-section {
  position: relative;
  overflow: hidden;
}

.breger-bg-thumb {
  position: absolute;
  opacity: 0.14;
  filter: grayscale(100%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: transform 10s linear;
}

.breger-bg-thumb img {
  max-width: 260px;
  border-radius: 24px;
}

.breger-bg-thumb-left {
  left: -40px;
  bottom: -40px;
}

.breger-bg-thumb-right {
  right: -40px;
  top: -40px;
}

/* слегка плавающий параллакс, просто по hover/scroll */
.section-dark:hover .breger-bg-thumb-left {
  transform: translateY(-20px);
}

.section-dark:hover .breger-bg-thumb-right {
  transform: translateY(20px);
}

/* --- Галерея сеткой --- */
.breger-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 991.98px) {
  .breger-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .breger-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #050608;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.gallery-card-lg {
  grid-column: span 2;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/* --- Scroll reveal анимации --- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.delay-1 { transition-delay: 0.08s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.16s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.24s; }
.reveal-on-scroll.delay-4 { transition-delay: 0.32s; }
.reveal-on-scroll.delay-5 { transition-delay: 0.40s; }

.gallery-modal .modal-dialog {
  max-width: 1100px;
}

.gallery-modal .modal-content {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

.gallery-modal .modal-body {
  padding: 0 1.5rem 1.5rem;
}

.gallery-modal img {
  border-radius: 24px;
}

.breger-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 20px;
}

/* Большая карточка на десктопе */
.gallery-card-lg {
  grid-column: span 2;
  grid-row: span 2;
}

/* Планшет: 2 колонки */
/* --- Fullscreen Mobile Modal Fix --- */

@media (max-width: 575.98px) {

  /* Картинка внутри модалки */
  .gallery-modal img {
    width: 100%;
    height: auto;
    max-height: 85vh;     /* чтобы влезала по высоте */
    object-fit: contain;
    border-radius: 14px !important;
  }

  /* Контейнер модалки */
  .gallery-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  /* Убираем прозрачность фона модалки */
  .gallery-modal .modal-content {
    background: rgba(0,0,0,0.95) !important;
    border-radius: 0;
  }

  /* Тело модалки */
  .gallery-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  /* Кнопка закрытия */
  .gallery-modal .btn-close {
    filter: invert(100%);
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
  }

  /* Стрелки */
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    transform: scale(0.7);  /* чуть меньше */
  }
}


/* --- Исправление сетки под мобильные, чтобы не ломалась --- */

@media (max-width: 575.98px) {
  .breger-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-card-lg {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .gallery-card img {
    border-radius: 16px;
  }
}

/* Плавное смещение и прозрачность модалки при свайпе */
.gallery-modal .modal-dialog {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* На всякий случай – фиксируем высоту на мобильных */
@media (max-width: 575.98px) {
  .gallery-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }
}

@media (max-width: 768px) {

  .hero-content {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-title span {
    display: block;
    font-size: 1.6rem;
    margin-top: 0.3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 90%;
    margin: 0 auto;
  }
}

/* EXTRA SMALL PHONES (375px и ниже) */
@media (max-width: 420px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-title span {
    font-size: 1.3rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 92%;
  }
}

@media (max-width: 768px) {

  .hero-content .btn,
  .hero-content .btn-accent-primary {
    display: block;
    width: 70%;
    max-width: 260px;
    margin: 1.4rem auto 0 auto;
    text-align: center;
    font-size: 1.05rem;
    padding: 0.75rem 1.2rem;
    border-radius: 10px;
  }

}

/* EXTRA SMALL PHONES (375px и ниже) */
@media (max-width: 420px) {
  .hero-content .btn,
  .hero-content .btn-accent-primary {
    width: 80%;
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 768px) {

  .hero-video {
    filter: none !important;
    opacity: 1 !important;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at top left, rgba(228, 145, 0, 0.50), transparent 40%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.50)) !important;
  }
}
/* =========================
   BREGER specs — facelift
   ========================= */

.breger-specs .section-label{
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,165,0,.45);
  background: rgba(255,165,0,.08);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.breger-spec-card{
  background: rgba(20,20,20,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

.breger-spec-card-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.05),
    rgba(255,255,255,0)
  );
}

.breger-spec-title{
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 1.35rem;
}

.breger-chip{
  flex: 0 0 auto;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.breger-spec-card-body{
  padding: 10px 18px 18px;
}

.breger-spec-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.breger-spec-table tr + tr th,
.breger-spec-table tr + tr td{
  border-top: 1px solid rgba(255,255,255,.08);
}

.breger-spec-table th,
.breger-spec-table td{
  padding: 12px 10px;
  vertical-align: middle;
}

.breger-spec-table th{
  width: 42%;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}

.breger-spec-table td{
  text-align: right;
  color: rgba(255,255,255,.82);
}

.breger-spec-table tr{
  background: rgba(255,255,255,.03);
}

.breger-spec-table tr:first-child{
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.breger-spec-table tr:last-child{
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Rounded rows effect */
.breger-spec-table tr:first-child th{ border-top-left-radius: 12px; }
.breger-spec-table tr:first-child td{ border-top-right-radius: 12px; }
.breger-spec-table tr:last-child th{ border-bottom-left-radius: 12px; }
.breger-spec-table tr:last-child td{ border-bottom-right-radius: 12px; }

.breger-spec-photo{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

@media (max-width: 575.98px){
  .breger-spec-title{ font-size: 1.15rem; }
  .breger-spec-table td{ text-align: left; }

}

/* Loop video inside specs block */
.breger-spec-video {
  position: relative;
  aspect-ratio: 16 / 9;       /* можно 4/3 если хочешь “плотнее” */
  border-radius: 18px;
  overflow: hidden;
}

.breger-loop {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;          /* важно: ощущение “фонового” видео */
  transform: scale(1.02);     /* убирает возможные 1px края */
  filter: contrast(1.02) saturate(1.05);
}

.breger-loop-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,165,0,0.10), rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.55));
  pointer-events: none;
}


.breger-spec-video {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
}

/* Video itself */
.breger-loop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Overlay stays same */
.breger-loop-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255,165,0,0.10),
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.55)
  );
  pointer-events: none;
}

/* =========================
   Mobile adaptations
   ========================= */

@media (max-width: 991.98px) {
  .breger-spec-video {
    aspect-ratio: 4 / 3;      /* плотнее на планшетах */
    min-height: 200px;
  }
}

@media (max-width: 575.98px) {
  .breger-spec-video {
    aspect-ratio: 1 / 1;      /* квадрат — лучше всего смотрится на мобилках */
    min-height: 180px;
    border-radius: 14px;
  }

  .breger-loop {
    object-position: center 30%; /* приоритет верхней части кадра */
  }
}
