/* ==========================================================================
   СПЕЦФАКУЛЬТЕТ ЕМУ — СТИЛИ ДИЗАЙНА С ПОЛНОЙ МОБИЛЬНОЙ АДАПТАЦИЕЙ И МОДАЛКАМИ
   ========================================================================== */

:root {
  --military-dark: #243823;
  --military-primary: #344c32;
  --military-light: #f1f6f0;
  --military-border: #547052;
  --accent-gold: #d4af37;
  --accent-gold-hover: #f0ca4d;
  --bg-navy: #0b224c;
  --text-dark: #1e293b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: clip;
  /* Гарантируем тёмный фон на уровне html — устраняет белую полосу под body */
  background-color: #243823 !important;
  background: #243823 !important;
  min-height: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  /* min-height убран — белая полоса возникала от разницы высот html и body */
  margin: 0;
  padding: 0;
  background-color: #243823 !important;
  background: #243823 !important;
}

.container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

.link-military {
  color: var(--military-primary);
  font-weight: bold;
  text-decoration: none;
}

.link-military:hover {
  color: var(--accent-gold);
}

/* --- 1. ШАПКА И НАВБАР --- */
.header {
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
}

.header-top {
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  height: 74px;
  box-sizing: border-box;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 0;
}

.university-logo-img {
  height: 54px;
  width: auto;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--military-dark);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.1;
}

.logo-text p {
  font-size: 0.73rem;
  color: var(--bg-navy);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.flag-header-img {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 0;
  border: none;
  margin: 0 16px 0 0;
  padding: 0;
  flex-shrink: 0;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.header-contacts-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .header-contacts-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

.contact-item {
  color: var(--military-dark);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-item:hover {
  color: var(--accent-gold);
}

.nav-bar {
  background: linear-gradient(180deg, var(--military-dark) 0%, #1a2c19 100%);
  width: 100%;
  position: relative;
  border-bottom: 2px solid var(--accent-gold);
}

.nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-bar-top-mobile {
  display: none;
  width: 100%;
  padding: 10px 0;
  justify-content: space-between;
  align-items: center;
}

.nav-bar-title-mobile {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  flex: 0 1 auto;
}

.nav-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.nav-item a i {
  font-size: 0.88rem;
}

.nav-item a:hover,
.nav-item a.active {
  background-color: var(--accent-gold);
  color: var(--military-dark);
}

/* === МИЛИТАРИ И ТАКТИЧЕСКИЕ ДЕКОРАТИВНЫЕ СТИЛИ === */
.modules-section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.modules-section-title i {
  color: var(--accent-gold);
  background: var(--military-dark);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(36, 56, 35, 0.35);
  border: 1px solid var(--accent-gold);
  flex-shrink: 0;
}

.v2-program-card {
  position: relative;
  border-left: 5px solid var(--military-dark);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.v2-program-card:hover {
  border-left-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.nav-item a:hover {
  background-color: var(--military-primary);
  color: var(--accent-gold);
}

.burger-btn {
  display: none;
  background: var(--military-primary);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.burger-btn:hover,
.burger-btn.active {
  background: var(--accent-gold);
  color: var(--bg-navy);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b89320 100%);
  color: var(--bg-navy);
  font-weight: 800;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f0ca4d 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--military-dark);
  font-weight: 800;
  border: 2px solid var(--accent-gold);
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--bg-navy);
}

/* --- 2. БЕГУЩАЯ СТРОКА (RUNNING TICKER) --- */
.ticker-wrapper {
  background: linear-gradient(90deg, #1b291a 0%, #0b224c 50%, #1b291a 100%);
  border-top: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  width: 100%;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: tickerAnimation 40s linear infinite;
  width: auto;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin-right: 50px;
  letter-spacing: 0.5px;
}

.ticker-item.ticker-highlight {
  color: #ffffff;
}

.ticker-item i {
  color: var(--accent-gold);
}

@keyframes tickerAnimation {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- 3. HERO-СЕКЦИЯ (ДВУХКОЛОНОЧНЫЙ МАКЕТ) --- */
.hero-v2-section {
  padding: 24px 0 16px 0;
  background: radial-gradient(circle at top center, #ffffff 0%, #edf2ea 100%);
  width: 100%;
}

.v2-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-areas:
    "putin    video"
    "facts    widgets"
    "programs widgets";
  gap: 20px;
  align-items: start;
  width: 100%;
}

.hero-item-putin {
  grid-area: putin;
}

.hero-item-video {
  grid-area: video;
}

.hero-item-facts {
  grid-area: facts;
}

.hero-item-programs {
  grid-area: programs;
}

.hero-item-widgets {
  grid-area: widgets;
}


/* Цитата Путина */
.putin-quote-card-fixed {
  height: 380px;
  width: 100%;
  background: linear-gradient(135deg, rgba(27, 41, 26, 0.96) 0%, rgba(11, 34, 76, 0.96) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.putin-quote-img-box {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.putin-quote-img-natural {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.putin-quote-content {
  color: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.putin-quote-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--bg-navy);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}

.putin-quote-text {
  font-size: 1.1rem;
  line-height: 1.55;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 14px;
}

.putin-quote-author {
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 1.05rem;
  text-align: right;
}

/* Видеоокно */
.video-window-fixed {
  height: 380px;
  width: 100%;
  background: #000000;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-gold);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.video-player-inline {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.video-overlay-play:hover {
  background: rgba(0, 0, 0, 0.25);
}

.play-btn-circle {
  width: 75px;
  height: 75px;
  background: rgba(212, 175, 55, 0.95);
  color: var(--bg-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
  transition: var(--transition);
}

.video-overlay-title {
  color: #ffffff;
  font-weight: 800;
  margin-top: 16px;
  font-size: 1.08rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 0 15px;
}

/* ЦИФРЫ И ФАКТЫ */
.facts-row-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}

.fact-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  border-left: 5px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.fact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.fact-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--military-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.fact-label {
  font-size: 0.92rem;
  color: #334155;
  font-weight: 600;
}

/* ОБРАЗОВАТЕЛЬНЫЕ ПРОГРАММЫ В 2 КОЛОНКИ (КЛИКАБЕЛЬНЫЕ КАРТОЧКИ) */
.modules-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--military-dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.programs-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  width: 100%;
}

.v2-program-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
}

.v2-program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.v2-program-tag {
  align-self: flex-start;
  background: var(--military-light);
  color: var(--military-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.v2-program-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--military-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.v2-program-desc {
  font-size: 0.94rem;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.55;
  flex: 1;
}

.v2-program-meta {
  font-size: 0.9rem;
  color: var(--bg-navy);
  font-weight: 700;
  margin-bottom: 16px;
}

.v2-program-actions {
  display: flex;
  gap: 10px;
}

/* БЛОКИ СПРАВА ПОД ВИДЕО */
.v2-right-widgets {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.widget-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.widget-card-navy {
  background: var(--bg-navy);
  color: #ffffff;
  border: 2px solid var(--accent-gold);
}

.widget-card-military {
  background: var(--military-dark);
  color: #ffffff;
  border: 1px solid var(--military-border);
}

.widget-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-text {
  font-size: 0.94rem;
  line-height: 1.65;
}

/* --- 4. СЕКЦИЯ НОВОСТЕЙ --- */
.v2-news-section {
  padding: 70px 0;
  background-color: #ffffff;
  width: 100%;
}

.news-grid-3col,
.news-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 32px;
  width: 100%;
}

.v2-news-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.v2-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--military-primary);
}

.news-date {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 800;
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--military-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.news-text {
  font-size: 0.94rem;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.55;
}

/* --- 5. ФОТОГАЛЕРЕЯ И ВИДЕОСЕКЦИЯ --- */
.v2-gallery-section {
  padding: 70px 0;
  background: #edf2ea;
  width: 100%;
}

.gallery-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
  width: 100%;
}

.v2-gallery-card {
  background: var(--military-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--military-border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.v2-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(36, 56, 35, 0.4);
  border-color: var(--accent-gold);
}

.v2-gallery-img-container {
  width: 100%;
  height: 220px;
  background: rgba(212, 175, 55, 0.6);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

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

.v2-gallery-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(36, 56, 35, 0.7);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.v2-gallery-card:hover .v2-gallery-zoom-overlay {
  opacity: 1;
}

.v2-gallery-card-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  background: var(--military-dark);
  border-top: 1px solid var(--military-border);
}

.v2-gallery-caption-full {
  font-size: 0.92rem;
  color: #e2ece0;
  line-height: 1.55;
  margin: 0;
}

/* === LIGHTBOX MODAL === */
.v2-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.v2-lightbox-modal.active {
  display: flex;
}

.v2-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 15, 8, 0.93);
  backdrop-filter: blur(8px);
}

.v2-lightbox-container {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.v2-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.v2-lightbox-close:hover {
  background: var(--accent-gold);
  color: var(--military-dark);
  transform: scale(1.1);
}

.v2-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent-gold);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.v2-lightbox-prev {
  left: -70px;
}

.v2-lightbox-next {
  right: -70px;
}

.v2-lightbox-nav:hover {
  background: var(--accent-gold);
  color: var(--bg-navy);
  transform: translateY(-50%) scale(1.1);
}

.v2-lightbox-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v2-lightbox-img-wrapper {
  max-width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.v2-lightbox-caption-box {
  margin-top: 18px;
  background: rgba(27, 41, 26, 0.9);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  padding: 16px 24px;
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.v2-lightbox-counter {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.v2-lightbox-caption-text {
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .v2-lightbox-prev {
    left: -10px;
  }

  .v2-lightbox-next {
    right: -10px;
  }

  .v2-lightbox-close {
    top: -45px;
    right: 10px;
  }
}

.video-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  width: 100%;
}

.video-item-card {
  background: var(--bg-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  width: 100%;
}

.video-item-title {
  padding: 16px;
  font-weight: 800;
  font-size: 1.02rem;
  text-align: center;
  color: var(--accent-gold);
}

/* --- 6. БЛОК КОНТАКТОВ И ФОРМА НА СТРАНИЦЕ --- */
.v2-contacts-section {
  padding: 70px 0;
  background-color: #ffffff;
  width: 100%;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
  width: 100%;
}

.contact-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-icon {
  width: 54px;
  height: 54px;
  background: var(--military-dark);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px auto;
}

.contact-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--military-dark);
  margin-bottom: 8px;
}

.v2-feedback-section {
  padding: 70px 0;
  background: #edf2ea;
  width: 100%;
}

.feedback-page-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 2px solid var(--military-primary);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 30px auto 0 auto;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --- 7. ПОДВАЛ (FOOTER) --- */
.footer {
  background-color: var(--military-dark);
  color: #ffffff;
  padding: 60px 0 40px 0;
  margin: 0;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 45px;
  margin-bottom: 45px;
  width: 100%;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1.18rem;
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 12px;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0 !important;
  padding: 0 !important;
}

/* МОДАЛЬНЫЕ ОКНА (ВЫШЕ ЛИПКОЙ ШАПКИ Z-INDEX 100000) */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 100000 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 12px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-card {
  background: #ffffff !important;
  border-radius: var(--radius-lg) !important;
  max-width: 720px !important;
  width: 100% !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

.modal-header {
  background: var(--military-dark) !important;
  color: #ffffff !important;
  padding: 18px 24px !important;
  border-bottom: 3px solid var(--accent-gold) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

.modal-header h3 {
  font-size: 1.2rem !important;
  color: var(--accent-gold) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.close-btn {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.6rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
}

.close-btn:hover {
  color: var(--accent-gold) !important;
}

.modal-body {
  padding: 22px 24px !important;
  box-sizing: border-box !important;
}

.form-group {
  margin-bottom: 16px !important;
}

.form-group label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  margin-bottom: 6px !important;
  color: var(--military-dark) !important;
}

.form-control {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.98rem !important;
  box-sizing: border-box !important;
}

/* ПРЕЛОАДЕР */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1b291a 0%, #091208 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.site-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  color: #ffffff;
}

.preloader-logo {
  height: 80px;
  margin-bottom: 16px;
  animation: preloaderPulse 1.8s infinite;
}

.preloader-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.preloader-subtitle {
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 22px;
}

.spinner-ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: preloaderSpin 1s linear infinite;
  margin: 0 auto 16px auto;
}

@keyframes preloaderSpin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ==========================================================================
   ПОЛНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (ИДЕАЛЬНАЯ ПОДГОНКА ПОД 344px И 320px)
   ========================================================================== */
h1,
h2,
h3,
h4,
p,
span,
div,
a,
button {
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 1100px) {
  .v2-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .hero-item-putin {
    order: 1;
    width: 100%;
  }

  .hero-item-video {
    order: 2;
    width: 100%;
  }

  .hero-item-facts {
    order: 3;
    width: 100%;
  }

  .hero-item-programs {
    order: 4;
    width: 100%;
  }

  .hero-item-widgets {
    order: 5;
    width: 100%;
  }

  .news-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .programs-bottom-info-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .gallery-grid-4col {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .video-section-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .contacts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .how-to-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
  }
}

@media (max-width: 1080px) {
  .header-top {
    padding: 6px 0 !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
  }

  .header-top .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
  }

  .logo-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
  }

  .logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .university-logo-img {
    height: 38px;
    flex-shrink: 0;
  }

  .logo-text h1 {
    font-size: 1rem;
    white-space: nowrap;
    word-break: normal;
  }

  .logo-text p {
    display: none;
  }

  .flag-header-img {
    height: 38px !important;
    width: auto !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .header-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
  }

  .header-contacts-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex-shrink: 0;
  }

  .header-contacts .btn-gold {
    width: auto;
    padding: 6px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  @media (max-width: 576px) {
    .header-contacts {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
    }
    .header-contacts-group {
      align-items: center;
      width: 100%;
    }
    .header-contacts .btn-gold {
      width: 100%;
      box-sizing: border-box;
    }
  }

  /* МОБИЛЬНЫЙ НАВБАР */
  .nav-bar .container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .nav-bar-top-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 6px 0;
  }

  .burger-btn {
    display: flex;
    flex-shrink: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--military-dark);
    border-top: 2px solid var(--accent-gold);
    box-sizing: border-box;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-item a {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.94rem;
    text-align: left;
  }

  .hero-v2-section {
    padding: 16px 0 30px 0;
    width: 100%;
  }

  .putin-quote-card-fixed {
    height: auto;
    width: 100% !important;
    flex-direction: column;
    padding: 16px 10px !important;
    text-align: center;
    box-sizing: border-box !important;
  }

  .putin-quote-img-box {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    order: 2;
  }

  .putin-quote-img-natural {
    max-height: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .putin-quote-content {
    width: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .putin-quote-badge {
    align-self: center;
    margin: 0 auto 12px auto !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    display: table !important;
    box-shadow: none !important;
  }

  .putin-quote-text {
    text-align: center;
    font-size: 0.96rem;
    width: 100%;
  }

  .putin-quote-author {
    text-align: center;
    width: 100%;
    font-size: 0.95rem;
  }

  .video-window-fixed {
    height: 240px;
    width: 100%;
  }

  .facts-row-container {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .fact-card {
    width: 100% !important;
    padding: 10px 8px !important;
    box-sizing: border-box !important;
  }

  .programs-2col-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .v2-program-card {
    width: 100% !important;
    padding: 12px 8px !important;
    box-sizing: border-box !important;
  }

  .v2-program-actions {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .v2-program-actions .btn-gold,
  .v2-program-actions .btn-outline-gold {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    box-sizing: border-box !important;
  }


  .logo-text h1 {
    font-size: 0.95rem;
  }

  .contact-item {
    font-size: 0.82rem;
  }

  .contact-email {
    font-size: 0.78rem;
  }

  .header-contacts .btn-gold {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .putin-quote-text {
    font-size: 0.98rem;
  }

  .fact-number {
    font-size: 1.5rem;
  }
}

/* АККУРАТНОЕ УМЕНЬШЕНИЕ ШРИФТОВ ЗАГОЛОВКОВ НА ЭКРАНАХ <= 480px (ГЛАВНАЯ, ПОЛИТИКА И ГАЛЕРЕЯ) */
@media (max-width: 480px) {

  .section-title,
  .gallery-title,
  .modules-section-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  h2 {
    font-size: 1.08rem !important;
    line-height: 1.3 !important;
  }

  h3,
  .v2-program-title,
  .news-title {
    font-size: 1.0rem !important;
    line-height: 1.3 !important;
  }

  .privacy-page-title {
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .gallery-sub,
  .section-subtitle {
    font-size: 0.85rem !important;
  }

  .modal-header h3 {
    font-size: 0.98rem !important;
  }

  .close-btn {
    font-size: 1.35rem !important;
    padding: 2px 6px !important;
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px 8px !important;
  }

  .modal-card {
    max-height: 92vh !important;
    border-radius: 12px !important;
  }

  .modal-header {
    padding: 14px 16px !important;
  }

  .modal-body {
    padding: 16px 14px !important;
  }

  .form-group {
    margin-bottom: 12px !important;
  }

  .form-grid-2col,
  .form-grid-3col,
  .form-grid,
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .feedback-page-box {
    padding: 20px 14px !important;
    border-radius: 12px !important;
  }

  .form-control {
    padding: 10px 12px !important;
    font-size: 0.94rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  section[id],
  [id] {
    scroll-margin-top: 150px !important;
  }
}

/* ПРИПОДНЯТИЕ ЯКОРНЫХ СЕКЦИЙ С УЧЕТОМ ВЫСОТЫ ЛИПКОЙ ШАПКИ */
section[id],
[id] {
  scroll-margin-top: 210px !important;
}

/* === ВЫРАВНИВАНИЕ ЧЕКБОКСА И ПОДПИСИ (С ГАРАНТИРОВАННЫМ ПОДЪЕМОМ НАДПИСИ ВВЕРХ) === */
.custom-checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: normal !important;
  cursor: pointer !important;
}

.custom-checkbox-input {
  margin: 0 !important;
  accent-color: var(--military-dark) !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  transform: translateY(0px) !important;
}

.custom-checkbox-text {
  font-size: 0.88rem !important;
  color: #1e293b !important;
  line-height: 1.3 !important;
  transform: translateY(-3px) !important;
  display: inline-block !important;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ PDF КНОПОК В МОДАЛКАХ === */
@media (max-width: 640px) {
  .pdf-buttons-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .pdf-buttons-grid button,
  .modal-body button {
    white-space: normal !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }
}

/* === ГАРАНТИРОВАННОЕ УСТРАНЕНИЕ БЕЛЫХ ПОЛОС ВНИЗУ === */
html, body {
  background-color: #243823 !important;
  background: #243823 !important;
}

footer, .footer {
  background-color: #243823 !important;
  background: #243823 !important;
}

/* Улучшение тач-отклика для всех интерактивных элементов */
button, a, .btn-gold, .btn-outline-gold, .v2-gallery-card, .v2-program-card, .video-overlay-play, .open-apply-modal, .open-program-detail, .open-news-modal, .nav-item a, .burger-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}