/* Scoped styles for Unity page (inside .svo-page) */
.svo-page {
  --color-bg: #f5f2ed;
  --color-bg-light: #f3efe6;
  --color-green: #2d5a1e;
  --color-green-dark: #1e4512;
  --color-green-light: #3a7028;
  --color-gold: #c4a44a;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-white: #ffffff;
  --color-border: #d5cfc3;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.2);
  --transition: 0.25s ease;

  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.svo-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.svo-page a {
  text-decoration: none;
  color: inherit;
}

.svo-page .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Навигация === */
.svo-page .navbar {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.svo-page .nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.svo-page .nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.svo-page .nav-links li {
  position: relative;
}

.svo-page .nav-links li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--color-border);
}

.svo-page .nav-links a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  white-space: nowrap;
}

.svo-page .nav-links a:hover,
.svo-page .nav-links a.active {
  color: var(--color-green);
}

.svo-page .nav-links a.active {
  font-weight: 600;
}

.svo-page .nav-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.svo-page .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

.svo-page .social-icon:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.svo-page .social-icon.vk { background: #4a76a8; }
.svo-page .social-icon.tg { background: #2aabee; }
.svo-page .social-icon.ok { background: #ee8208; }

/* === Hero / Шапка === */
.svo-page .hero {
  background: linear-gradient(135deg, #1a3d10 0%, #2d5a1e 35%, #3a7028 70%, #2a5018 100%);
  color: var(--color-white);
  overflow: hidden;
}

.svo-page .hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.svo-page .hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  flex-shrink: 0;
}

.svo-page .hero-logo {
  margin-top: 16px;
}

.svo-page .logo-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.svo-page .hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: #fff;
}

.svo-page .hero-text {
  text-align: center;
  /* Override site-wide `.hero-text` styles from app.css */
  border-top: 0;
  padding-top: 0;
  max-width: none;
  margin: 0;
  color: inherit;
}

.svo-page .hero-text p {
  font-size: 25px;
  opacity: 0.85;
  font-weight: 400;
  max-width: 320px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
}

/* HTML из Quill (админка → поле «Описание») */
.svo-page .hero-text .hero-text__lead {
  font-size: 25px;
  font-weight: 400;
  max-width: 420px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
}

.svo-page .hero-text .hero-text__lead p {
  margin: 0 0 0.4em;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  opacity: 1;
  max-width: none;
}

.svo-page .hero-text .hero-text__lead p:last-child {
  margin-bottom: 0;
}

.svo-page .hero-text .hero-text__lead a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.svo-page .hero-text .hero-text__lead a:hover {
  opacity: 0.95;
}

/* Слайдер */
.svo-page .hero-slider {
  flex: 1 1 auto;
  max-width: 720px;
}

.svo-page .slider-viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.svo-page .slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.svo-page .slide {
  min-width: 100%;
  height: 100%;
}

.svo-page .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svo-page .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svo-page .slider-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.svo-page .slider-btn.prev { left: 12px; }
.svo-page .slider-btn.next { right: 12px; }

.svo-page .slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.svo-page .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition);
}

.svo-page .dot.active {
  background: var(--color-white);
}

/* === Контент === */
.svo-page .content {
  padding: 48px 0 80px;
}

.svo-page .content-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* === Новости === */
.svo-page .news-section {
  padding: 0;
  background: transparent;
  margin-bottom: 64px;
}

.svo-page h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}

.svo-page h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--color-green);
  border-radius: 2px;
}

.svo-page .news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* До init JS: не показывать «лишние» карточки (логика — в script.js) */
@media (min-width: 769px) {
  .svo-page #unity-news-grid a.news-card:nth-child(n + 10) {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .svo-page #unity-news-grid a.news-card:nth-child(n + 4) {
    display: none !important;
  }
}

.show-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 0;
  padding: 6px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-green);
  background: transparent;
  border: 2px solid var(--color-green);
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  width: fit-content;
}

.svo-page .announcements-section .show-all-btn,
.svo-page .news-section .show-all-btn {
  margin-top: 32px;
}

.show-all-btn:hover {
  background: var(--color-green);
  color: var(--color-white);
}

.show-all-arrow {
  font-size: 18px;
  transition: transform var(--transition);
}

.show-all-btn:hover .show-all-arrow {
  transform: translateY(3px);
}

.svo-page .news-card {
  background: #eae8e4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.svo-page a.news-card {
  text-decoration: none;
  color: inherit;
}

.svo-page .news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.svo-page .news-card-image {
  position: relative;
  overflow: hidden;
  /* Перекрываем app.css (.news-card-image { height: 220px }): картинка должна заполнять блок, иначе под превью остаётся «воздух» */
  height: 220px;
  flex-shrink: 0;
  line-height: 0;
}

.svo-page .news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter var(--transition), transform 0.4s ease;
}

.svo-page .news-card:hover .news-card-image img {
  filter: brightness(1);
  transform: scale(1.05);
}

.svo-page .news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-green);
  color: var(--color-white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.svo-page .news-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.svo-page .news-card-body time {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.svo-page .news-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--color-text);
}

.svo-page .news-card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green);
  transition: color var(--transition);
}

.read-more:hover {
  color: var(--color-green-dark);
}

.read-more::after {
  content: '→';
  margin-left: 6px;
  transition: margin-left var(--transition);
}

.read-more:hover::after {
  margin-left: 10px;
}

/* === Объявления === */
.svo-page .announcements-section {
  padding: 0;
  background: transparent;
  margin-bottom: 64px;
}

.svo-page .announcements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svo-page .announcements-hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.svo-page .announcements-hidden.open {
  max-height: 8000px;
  opacity: 1;
  margin-top: 20px;
}

.announcement-card {
  background: var(--color-green);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}

a.announcement-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.announcement-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  background: var(--color-green-light);
}

.announcement-card.has-image {
  position: relative;
}

.announcement-card.has-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement-card.has-image .announcement-card-inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.35) 100%);
  transition: background var(--transition);
}

.announcement-card.has-image:hover .announcement-card-inner {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.25) 100%);
}

.announcement-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.announcement-card-inner h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 14px;
}

.announcement-card-inner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  flex: 1;
}

.announcement-card-inner time {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #e05050;
}

/* === Истоки героизма === */
.svo-page .heroism-origins-section {
  padding: 0;
  background: transparent;
  margin-bottom: 64px;
}

.svo-page .heroism-origins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.svo-page .heroism-origins-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  background: #e0dcd4;
}

.svo-page .heroism-origins-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.svo-page .heroism-origins-card--zoomable {
  position: relative;
  z-index: 0;
  cursor: pointer;
  transition:
    box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.svo-page .heroism-origins-card--zoomable:hover {
  z-index: 2;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(45, 90, 30, 0.1);
  transform: translateY(-5px) scale(1.015);
}

.svo-page .heroism-origins-card--zoomable img {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center center;
}

.svo-page .heroism-origins-card--zoomable:hover img {
  transform: scale(1.04);
}

.svo-page .heroism-origins-card--zoomable:focus {
  outline: none;
}

.svo-page .heroism-origins-card--zoomable:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.svo-page .heroism-origins-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.svo-page a.heroism-origins-more-btn {
  text-decoration: none;
}

.svo-page .heroism-origins-page {
  padding-top: 24px;
  padding-bottom: 64px;
}

.svo-page .heroism-origins-page__head {
  margin-bottom: 32px;
}

.svo-page .heroism-origins-back {
  margin-bottom: 20px;
}

.svo-page .heroism-origins-page__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  position: relative;
  padding-bottom: 12px;
}

.svo-page .heroism-origins-page__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--color-green);
  border-radius: 2px;
}

.svo-page .heroism-origins-empty {
  color: var(--color-text-muted);
  font-size: 16px;
}

@media (max-width: 1024px) {
  .svo-page .heroism-origins-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .svo-page .heroism-origins-grid {
    grid-template-columns: 1fr;
  }
}

/* Главная «Сила в единстве»: превью — на мобилке только 5 фото (страница «Истоки героизма» со всеми снимками не затрагиваем) */
@media (max-width: 768px) {
  .svo-page .heroism-origins-section .heroism-origins-grid .heroism-origins-card:nth-child(n + 6) {
    display: none;
  }
}

/* Модальное окно фото «Истоки героизма» (вне .svo-page) */
.heroism-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.heroism-photo-modal.heroism-photo-modal--open {
  display: flex;
}

.heroism-photo-modal__title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.heroism-photo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.heroism-photo-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.heroism-photo-modal__img {
  position: relative;
  z-index: 1;
  max-width: min(100%, 96vw);
  max-height: calc(100vh - 88px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

/* === Фотогалерея === */
.svo-page .gallery-section {
  padding: 0;
  background: transparent;
  margin-bottom: 64px;
}

.svo-page .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.svo-page .section-header h2 {
  margin-bottom: 0;
  padding-bottom: 12px;
}

.svo-page .section-all-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green);
  border: none;
  background: transparent;
  transition: opacity var(--transition);
}

.svo-page .section-all-btn:hover {
  opacity: 0.7;
}

.svo-page .gallery-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.svo-page .gallery-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.svo-page .gallery-slider::-webkit-scrollbar {
  display: none;
}

.svo-page .gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  /* Макет предполагает более широкие карточки: ~3 на ряд на десктопе */
  height: 240px;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: calc((100% - 32px) / 3);
}

.svo-page .gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.svo-page .gallery-arrow:hover {
  background: var(--color-green-dark);
}

.svo-page .gallery-arrow:hover::after {
  background: var(--color-green-light);
}

.svo-page .gallery-prev {
  display: none;
}

.svo-page .gallery-next {
  right: -20px;
  transition: background var(--transition), opacity var(--transition), transform 0.3s ease;
}

.svo-page .gallery-arrow::before {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-bg);
  z-index: -2;
}

.svo-page .gallery-arrow::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-border);
  z-index: -1;
}

.svo-page .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter var(--transition), transform 0.4s ease;
}

.svo-page .gallery-item:hover img {
  filter: brightness(1);
  transform: scale(1.08);
}

.svo-page .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.svo-page .gallery-overlay span {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
}

.svo-page .gallery-item--zoomable:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 3px;
}

/* === Видео === */
.svo-page .video-section {
  padding: 0;
  background: transparent;
  margin-bottom: 64px;
}

/* === Полезные ссылки (как в старой версии) === */
.svo-page .unity-links { padding-bottom: 50px; }
.svo-page .unity-links__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}
.svo-page .unity-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.svo-page .unity-links__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.svo-page .unity-links__card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #d0d0d0;
}
.svo-page .unity-links__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c5282;
}

.svo-page .unity-links__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.svo-page .unity-links__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svo-page .unity-links__label {
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}
.svo-page .unity-links__url {
  font-size: 0.875rem;
  color: #6b7280;
}
.svo-page .unity-links__arrow {
  flex-shrink: 0;
  color: #9ca3af;
}
.svo-page .unity-links__card:hover .unity-links__arrow {
  color: #2c5282;
}

.svo-page .video-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  height: 240px;
  flex: 0 0 calc((100% - 40px) / 3.5);
  min-width: calc((100% - 40px) / 3.5);
}

.svo-page .video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
}

.svo-page .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter var(--transition), transform 0.4s ease;
}

.svo-page .video-item:hover .video-thumb img {
  filter: brightness(1);
  transform: scale(1.05);
}

.svo-page .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.svo-page .video-item:hover .play-btn {
  transform: scale(1.1);
}

.svo-page .video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  z-index: 1;
}

/* «Подробнее» у галереи/видео — только мобилка (на десктопе весь контент в слайдерах) */
.svo-page .unity-m-more {
  display: none;
}

/* Сетка на отдельных страницах /silavedinstve/fotogalereya и /video */
.svo-page .unity-gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.svo-page .unity-gallery-page-grid .gallery-item {
  flex: none;
  min-width: 0;
  width: 100%;
  height: 220px;
}

.svo-page .unity-videos-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.svo-page .unity-videos-page-grid .video-item {
  flex: none;
  min-width: 0;
  width: 100% !important;
  height: 240px;
}

/* === Герои === */
.svo-page .heroes-section {
  margin-bottom: 64px;
}

.svo-page .heroes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svo-page .hero-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.svo-page .hero-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.svo-page .hero-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--color-green);
}

.svo-page .hero-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svo-page .hero-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.svo-page .hero-card-rank {
  font-size: 13px;
  color: var(--color-green);
  font-weight: 600;
  margin-bottom: 10px;
}

.svo-page .hero-card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === Подвал === */
.svo-page .footer {
  background: #e6eeea;
  color: var(--color-text);
  padding: 48px 0 0;
}

.svo-page .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.svo-page .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.svo-page .footer-logo span {
  font-size: 18px;
  font-weight: 700;
}

.svo-page .footer-desc {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.6;
}

.svo-page .footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.svo-page .footer-col ul {
  list-style: none;
}

.svo-page .footer-col ul li {
  margin-bottom: 10px;
}

.svo-page .footer-col ul a {
  font-size: 14px;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.svo-page .footer-col ul a:hover {
  opacity: 1;
}

.svo-page .footer-contact {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 16px;
}

.svo-page .footer-socials {
  display: flex;
  gap: 12px;
}

.svo-page .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-green);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transition: background var(--transition);
}

.svo-page .footer-socials a:hover {
  background: rgba(0, 0, 0, 0.1);
}

.svo-page .footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* === Адаптив === */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-info {
    flex-direction: column;
  }

  .hero-text p {
    max-width: none;
  }

  .hero-slider {
    width: 100%;
    max-width: 560px;
  }

  .news-card.featured {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .svo-page .unity-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero-container {
    padding: 28px 16px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .svo-page .news-grid {
    grid-template-columns: 1fr;
  }

  .svo-page .announcements-grid {
    grid-template-columns: 1fr;
  }

  .svo-page .gallery-item {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
  }

  .heroes-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .svo-page .unity-links__grid {
    grid-template-columns: 1fr;
  }

  .svo-page .unity-m-more {
    display: flex;
    justify-content: center;
  }

  .svo-page .gallery-section--unity .gallery-slider-wrapper .gallery-arrow {
    display: none !important;
  }

  /* Ширина как у «Истоки героизма»: в пределах .container, без вылета на края экрана */
  .svo-page .gallery-section--unity .gallery-slider-wrapper {
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0;
    box-sizing: border-box;
  }

  .svo-page .gallery-section--unity .gallery-slider {
    flex: 1 1 auto;
    flex-direction: column;
    overflow-x: visible;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .svo-page .gallery-section--unity .gallery-item {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch;
    box-sizing: border-box;
  }

  .svo-page .gallery-section--unity .gallery-item:nth-child(n + 4) {
    display: none !important;
  }

  .svo-page .video-section--unity .gallery-slider-wrapper .gallery-arrow {
    display: none !important;
  }

  .svo-page .video-section--unity .gallery-slider-wrapper {
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0;
    box-sizing: border-box;
  }

  .svo-page .video-section--unity .video-slider {
    flex: 1 1 auto;
    flex-direction: column;
    overflow-x: visible;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .svo-page .video-section--unity .video-item {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch;
    box-sizing: border-box;
  }

  .svo-page .video-section--unity .unity-m-video-extra {
    display: none !important;
  }

  .svo-page .unity-gallery-page-grid,
  .svo-page .unity-videos-page-grid {
    grid-template-columns: 1fr;
  }
}

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

  .svo-page .gallery-item {
    flex: 0 0 85%;
    min-width: 85%;
  }

  .svo-page .gallery-section--unity .gallery-item,
  .svo-page .video-section--unity .video-item {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .hero-slider {
    max-width: 100%;
  }

  .logo-circle {
    width: 70px;
    height: 70px;
  }
}
