/* ===== CSS ЗМІННІ (КОЛЬОРИ ТА НАЛАШТУВАННЯ) ===== */
:root {
  --bg: #000;                    /* Основний фон сайту (чорний) */
  --text: #fff;                  /* Основний текст (білий) */
  --muted: #b3b3b3;              /* Приглушений текст (сірий) */
  --accent: #ffc800;             /* Акцентний колір (жовтий) */
  --accent-2: #ffe480;           /* Другий акцентний колір (світло-жовтий) */
  --card: #101010;               /* Фон карток (темно-сірий) */
  --card-2: #171717;             /* Другий фон карток (світліший сірий) */
  --ring: rgba(255,200,0,0.35); /* Кільце фокусу (прозорий жовтий) */
  --shadow: 0 10px 30px rgba(0,0,0,0.35); /* Тінь карток */
}

/* ===== БАЗОВІ СТИЛІ ===== */
* { box-sizing: border-box; }

.contact-additional {
  max-width: 900px;
  margin: 60px auto 100px auto; /* зверху 60px, знизу 100px від футера */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px; /* відстань між блоками */
  text-align: center;
}

.contact-help-box {
  flex: 1 1 350px; /* адаптивна ширина блоків */
  background: var(--surface, #111);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.contact-help-box h4 {
  color: var(--accent, #ffcc00);
  margin-bottom: 10px;
}

.contact-help-box p {
  color: #ccc;
  line-height: 1.5;
}


/* Примусова прокрутка для навігації */
html {
  scroll-behavior: smooth !important;
  overflow-y: scroll !important;
  height: auto !important;
  max-height: none !important;
}

body {
  scroll-behavior: smooth !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

/* Гарантуємо що прокрутка працює */
* {
  scroll-behavior: smooth !important;
}

/* ===== Каунтер ===== */
/* Адаптація для мобільних екранів ≤600px */
@media (max-width: 600px) {
    .timer-numbers {
        gap: 20px;
        flex-wrap: wrap;
    }
    .timer-digit {
        font-size: 40px !important;
    }
    .timer-label {
        font-size: 12px !important;
    }
    .timer-text {
        font-size: 16px !important;
    }
    .timer-separator {
        width: 90%;
    }
}

/* Адаптація для дуже маленьких екранів ≤400px */
@media (max-width: 400px) {
    .timer-numbers {
        gap: 10px;
    }
    .timer-digit {
        font-size: 30px !important;
    }
    .timer-label {
        font-size: 10px !important;
    }
    .timer-text {
        font-size: 14px !important;
    }
    .timer-separator {
        width: 95%;
    }
}
/* ===== Каунтер ===== */
/* ===== КНОПКА "ПОКАЗАТИ ЩЕ" ===== */
#newsLoadMore {
  display: block;
  margin: 40px auto 20px auto;
  padding: 12px 36px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.25s ease-in-out;
}

#newsLoadMore:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

#newsLoadMore:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Додатково — адаптація для мобільних */
@media (max-width: 576px) {
  #newsLoadMore {
    width: 90%;
    padding: 10px 0;
    font-size: 0.95rem;
  }
}
/* Красивий скрол тільки всередині модального вікна */
.news-modal::-webkit-scrollbar,
.news-modal-content::-webkit-scrollbar,
.news-modal-body::-webkit-scrollbar {
  width: 10px;
}

.news-modal::-webkit-scrollbar-track,
.news-modal-content::-webkit-scrollbar-track,
.news-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.news-modal::-webkit-scrollbar-thumb,
.news-modal-content::-webkit-scrollbar-thumb,
.news-modal-body::-webkit-scrollbar-thumb {
  background-color: var(--accent, #ff7a00);
  border-radius: 8px;
  transition: background 0.2s;
}

.news-modal::-webkit-scrollbar-thumb:hover,
.news-modal-content::-webkit-scrollbar-thumb:hover,
.news-modal-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-hover, #ff6b00);
}

/* Для Firefox */
.news-modal,
.news-modal-content,
.news-modal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--accent, #ff7a00) rgba(0, 0, 0, 0.05);
}
/* Видаляємо можливі блокування прокрутки */
.hero,
main,
section {
  position: static !important;
  overflow: visible !important;
}
html, body { 
  height: auto !important; 
  min-height: 100vh !important;
  margin:0; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Arial, "Helvetica Neue", sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  -webkit-font-smoothing: antialiased; 
  scroll-behavior: smooth; 
  line-height: 1.6; 
  /* Оптимізація для всіх пристроїв */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Покращена продуктивність */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Мобільна оптимізація */
  overflow-x: hidden;
  max-width: 100vw;
  /* Гарантуємо прокрутку */
  overflow-y: auto !important;
  position: relative !important;
}
body { 
  -webkit-tap-highlight-color: transparent; 
  /* Оптимізація для мобільних */
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  position: relative;
  height: auto !important;
  min-height: 100vh !important;
  /* Відступ для фіксованої шапки */
  padding-top: 80px !important;
}

/* Мобільна оптимізація зображень */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Мобільна оптимізація: запобігання горизонтальному скролу */
.hero::after,
.news-card,
.contact-main-card,
.pill,
.position-card {
  max-width: 100%;
}

/* Touch-friendly елементи */
@media (hover: none) and (pointer: coarse) {
  /* Більші кнопки на touch-пристроях */
  .btn {
    min-height: 48px;
    padding: 16px 24px;
  }
  
  .nav-link,
  .mobile-nav-link {
    min-height: 48px;
    padding: 12px 16px;
  }
  
  /* Більші target areas для footer */
  .footer-up {
    min-width: 48px;
    min-height: 48px;
  }
}
/* ===== АНІМАЦІЯ ЗАВАНТАЖЕННЯ СТОРІНКИ ===== */
/* Чорний оверлей при завантаженні */
.page-fade::before { 
  content: ""; 
  position: fixed; 
  inset: 0; 
  background: #000; 
  pointer-events: none; 
  z-index: 9998; 
  opacity: 1; 
  transition: opacity .9s var(--ease-out); 
  will-change: opacity; 
}
.page-fade.page-ready::before { opacity: 0; }

/* Відключення анімацій для користувачів з обмеженнями */
@media (prefers-reduced-motion: reduce) {
  .page-fade::before,
  .page-fade.page-ready::before { opacity: 0; transition: none; }
}

/* ===== ДОСТУПНІСТЬ ===== */
/* Прихована кнопка "Пропустити до контенту" для скрін-рідерів */
.skip-link { 
  position: absolute; 
  left: -9999px; 
  top: auto; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}
.skip-link:focus { 
  left: 12px; 
  top: 12px; 
  width: auto; 
  height: auto; 
  background: #111; 
  color: #fff; 
  padding: 10px 14px; 
  border-radius: 8px; 
  z-index: 100; 
  outline: 2px solid var(--accent); 
}

/* ===== ШАПКА САЙТУ ===== */
/* Липка шапка з розмитим фоном */
.site-header { 
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important; 
  background: rgba(0,0,0,0.6) !important; 
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important; /* Safari fallback */
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2) !important;
}

/* Контейнер з максимальною шириною */
.wrap { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 14px 20px; 
  display: flex; 
  align-items: center; 
}
.site-header .wrap { justify-content: space-between; }

/* ===== НАВІГАЦІЙНЕ МЕНЮ ===== */
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(255, 200, 0, 0.1);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ring);
}

/* Мобільне меню - кнопка */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 200, 0, 0.1);
}

.mobile-menu-toggle:active {
  background: rgba(255, 200, 0, 0.2);
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Гамбургер іконка */
.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 3px;
  background: var(--text);
  transition: background 0.3s ease;
  margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--text);
  transition: transform 0.3s ease;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Анімація гамбургера при відкритті */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translateY(8px) translateX(8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translateY(-8px) translateX(8px);
}

/* Мобільне меню */
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.mobile-menu[aria-hidden="false"] {
  max-height: 500px;
  opacity: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  gap: 8px;
}

.mobile-nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  text-align: center;
}

.mobile-nav-link:hover {
  color: var(--accent);
  background: rgba(255, 200, 0, 0.15);
}

/* Адаптивність навігації */
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: block !important;
    z-index: 100;
    position: relative;
  }
  
  .mobile-menu {
    display: block !important;
    width: 100%;
  }
  
  .site-header {
    position: sticky;
  }
  
  .site-header .wrap {
    padding: 12px 16px;
  }
  
  .brand {
    font-size: 18px;
  }
  
  .brand-dot {
    width: 10px;
    height: 10px;
  }
}

/* ===== ЛОГОТИП ===== */
/* Стилізація логотипу з анімованою крапкою */
.brand { 
  display:flex; 
  align-items:center; 
  gap:10px; 
  font-weight: 800; 
  font-size: clamp(16px, 2vw, 20px); 
  color: var(--text); 
  letter-spacing: .04em; 
  text-decoration: none; 
}
.brand:hover, .brand:focus { text-decoration: none; }
.brand:focus-visible { 
  outline: 2px solid var(--accent); 
  outline-offset: 3px; 
  box-shadow: 0 0 0 6px var(--ring); 
  border-radius: 10px; 
}

/* Анімована жовта крапка біля логотипу */
.brand-dot{ 
  width:12px; 
  height:12px; 
  border-radius:50%; 
  background:var(--accent); 
  box-shadow:0 0 0 0 rgba(255,200,0,.4); 
  animation:pulse 2.4s ease-out infinite; 
}

/* Анімація пульсації крапки */
@keyframes pulse { 
  0%{ box-shadow:0 0 0 0 rgba(255,200,0,.4);} 
  70%{ box-shadow:0 0 0 12px rgba(255,200,0,0);} 
  100%{ box-shadow:0 0 0 0 rgba(255,200,0,0);} 
}

/* ===== ГЕРОЙ СЕКЦІЯ (ГОЛОВНИЙ ЗАКЛИК) ===== */
/* Основний контейнер героя з повною висотою екрану */
.hero { 
  position: relative; 
  display: grid; 
  place-items: center; 
  min-height: 100vh; 
  text-align: center; 
  padding: 0 1rem; 
  overflow: hidden; 
  /* Оптимізація для всіх пристроїв */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Покращена продуктивність */
  will-change: transform;
}


/* Shooting animation background */
.hero::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  z-index: -2; 
  background: url('perednya.png') no-repeat center center; 
  background-size: cover;
  filter: blur(var(--blur, 0px)) brightness(0.5); 
  transform: scale(1.0); 
  will-change: filter, transform; 
  transition: filter .25s ease-out; 
  display: block; 
}

.hero::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  z-index: -1; 
  background: linear-gradient(to top, rgba(0,0,0, var(--bottomDark, 0)) 0%, rgba(0,0,0,0) 60%); 
}


/* Artillery shells flying across */
.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0, var(--bottomDark, 0)) 0%, rgba(0,0,0,0) 60%);
}




/* Smooth fade to black at bottom of hero */
.hero .bottom-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 60%, #000 100%); }

.hero-text { display: grid; gap: 1rem; padding-inline: 1rem; max-width: 900px; }
.motto { position: absolute; top: calc(var(--headerH, 64px) + 4px); left: 0; right: 0; margin: 0 auto; padding: 0 1rem; width: 100%; max-width: 1200px; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 32px); color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(16px, 2vw, 24px); text-shadow: 0 1px 2px rgba(0,0,0,.35); opacity: .98; pointer-events: none; text-align: center; }
.motto .sep { background: linear-gradient(180deg, var(--accent) 0%, #ff9a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 1; }
.title { font-weight: 900; font-size: clamp(28px, 5vw, 60px); color: var(--accent); line-height: 1.2; }
.subtitle { color: #f2f2f2; font-size: clamp(14px, 2vw, 20px); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.cta-row { display:flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* Анімована стрілка для прокрутки */
.scroll-indicator {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 16px;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 24px solid var(--accent);
  animation: bounce-arrow 2.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.scroll-arrow:hover .arrow-down {
  border-top-color: var(--accent-2);
  transform: scale(1.15);
}

@keyframes bounce-arrow {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(15px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.btn { position: relative; overflow: hidden; padding: 14px 22px; font-weight: 800; border-radius: 12px; text-decoration: none; font-size: clamp(14px, 1.5vw, 18px); flex: 1 1 auto; text-align: center; min-width: 200px; transition: transform .22s var(--ease-out), filter .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.btn-primary { background: #d3d3d3; color: #000; border: none; }
.btn-ghost { background: #d3d3d3; color: #000; border: 1px solid #b8b8b8; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ring); }
.btn:hover { filter: brightness(1.05); transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.99); filter: brightness(1.0); box-shadow: none; }
.btn-ghost:hover { background: #e0e0e0; border-color: #a0a0a0; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn-primary::after { content: ""; position: absolute; inset: -30% -10%; background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 70%); transform: translateX(-120%); }
.btn-primary:hover::after, .btn-primary:focus-visible::after { animation: shine 1s ease-out forwards; }
@keyframes shine { to { transform: translateX(120%); } }

/* Styled title with wobble */
.title { letter-spacing: .02em; }
.title .line1 { color: var(--accent); text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 10px 30px rgba(255,200,0,.18); }
.title .line2 { background: none; color: var(--accent); filter: none; }

.title .wobble { display: inline-block; transform-origin: 50% 62%; animation: wobble 4.5s ease-in-out infinite; will-change: transform; }
/* Disable any hover reaction on the main title */
.title:hover .wobble { animation-duration: 4.5s; }
@keyframes wobble { 0%,100% { transform: rotate(0deg) translateY(0); } 20% { transform: rotate(1.1deg) translateY(-1px); } 40% { transform: rotate(-1.1deg) translateY(1px); } 60% { transform: rotate(.9deg) translateY(-1px); } 80% { transform: rotate(-.9deg) translateY(1px); } }

/* Reveal animations */
:root { --ease-out: cubic-bezier(.2,.6,.2,1); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--delay, 0s); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Pills */
.pill-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1200px; margin: 24px auto; padding: 0 1rem; justify-items: center; }
.pill { position: relative; overflow: hidden; background: linear-gradient(180deg,var(--card),var(--card-2)); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 22px 24px; text-align: center; box-shadow: var(--shadow); transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out), background .22s var(--ease-out), filter .22s var(--ease-out); }
.pill::after { content: ""; position: absolute; inset: -2px; pointer-events: none; border-radius: inherit; background: radial-gradient(120% 120% at 50% 0%, rgba(255,200,0,.28), rgba(255,200,0,0) 60%); opacity: 0; transition: opacity .22s var(--ease-out); }
.pill h3 { margin: 0 0 6px; font-weight: 900; color: var(--accent); font-size: 20px; }
.pill p { margin: 0 auto; max-width: 72ch; color: #e9e9e9; font-size: 16px; }
.pill:hover,
.pill:focus-within { transform: translateY(-4px) scale(1.01); border-color: rgba(255,200,0,.65); box-shadow: 0 16px 36px rgba(255,200,0,.26), 0 12px 28px rgba(0,0,0,.45); background: linear-gradient(180deg, #181818, #222); filter: brightness(1.04); }
.pill:hover::after,
.pill:focus-within::after { opacity: 1; }

/* Card styling for pill-wrap (not short-list) */
.pill-wrap:not(.short-list) {
  position: relative;
  perspective: 1000px;
}

.pill-wrap:not(.short-list) .pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.6s var(--ease-out), z-index 0.6s var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, z-index;
  max-width: 600px;
  width: 100%;
}

.pill-wrap:not(.short-list) .pill:nth-child(1) {
  z-index: 3;
  transform: translateY(0px) rotateX(0deg);
}

.pill-wrap:not(.short-list) .pill:nth-child(2) {
  z-index: 2;
  transform: translateY(-8px) rotateX(2deg);
}

.pill-wrap:not(.short-list) .pill:nth-child(3) {
  z-index: 1;
  transform: translateY(-16px) rotateX(4deg);
}

.pill-wrap:not(.short-list) .pill:hover {
  transform: translateY(-24px) rotateX(0deg) scale(1.02);
  z-index: 10;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.pill-wrap:not(.short-list) .pill h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 900;
}

.pill-wrap:not(.short-list) .pill p {
  font-size: 16px;
  line-height: 1.5;
  color: #e9e9e9;
}

/* Short list style (no cards, centered, vertical spacing) */
.short-list { gap: 40px; max-width: 1100px; margin-left: auto; margin-right: auto; justify-items: center; }
.short-list .pill { background: none; border: none; box-shadow: none; padding: 0; text-align: center; transition: transform .18s var(--ease-out); will-change: transform; }
.short-list .pill h3 { margin: 0 0 10px; font-weight: 900; color: var(--accent); font-size: 20px; letter-spacing: .04em; }
.short-list .pill p { margin: 0; color: #e9e9e9; font-size: 16px; line-height: 1.75; max-width: 72ch; }
/* Decorative separator line between items */
/* (removed separator line under items per request) */

@media (min-width: 1024px) {
  .short-list { gap: 48px; }
}

/* Single hover animation for short-list items */
.short-list .pill:hover, .short-list .pill:focus-within { transform: scale(1.02); }

/* Fine-tune spacing within the "ГОЛОВНЕ КОРОТКО" section */
#short-title { font-weight: 900; letter-spacing: .06em; font-size: clamp(20px, 2.2vw, 28px); margin: 0 0 20px; }
#short-title + .short-list { margin-top: 8px; margin-bottom: 32px; }

/* Section title */
.section-title { text-align: center; color: var(--accent); margin: 0 0 24px; font-weight: 900; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .06em; }

/* Section title */
.section-title { text-align: center; color: var(--accent); margin: 0 0 16px; font-weight: 900; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .06em; }

/* Адаптивна сітка для різних пристроїв */
@media (min-width: 768px) {
  .pill-wrap { grid-template-columns: repeat(3, 1fr); }
  /* Keep "ГОЛОВНЕ КОРОТКО" stacked vertically */
  .short-list { grid-template-columns: 1fr; }
  .btn { flex: 0 0 auto; min-width: auto; }
}

/* Планшети - 2 колонки */
@media (min-width: 768px) and (max-width: 1024px) {
  .pill-wrap { grid-template-columns: repeat(2, 1fr); }
}

/* Десктопи - 3 колонки */
@media (min-width: 1025px) {
  .pill-wrap { grid-template-columns: repeat(3, 1fr); }
}

/* Enable parallax-like fixed background only on larger screens */
@media (min-width: 1024px) {
  .hero::after { background-attachment: fixed; }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  .brand-dot { animation: none; box-shadow: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .title .wobble { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .btn-primary::after { display: none; animation: none; }
  .cursor-trail { display: none !important; }
  /* Prefer image instead of video when reduced motion */
  
}

/* Custom cursor (desktop only) */
@media (pointer: fine) {
  body.cursor-enhanced { cursor: none; }
  body.cursor-enhanced a,
  body.cursor-enhanced button,
  body.cursor-enhanced .btn,
  body.cursor-enhanced [role="button"],
  body.cursor-enhanced input,
  body.cursor-enhanced textarea,
  body.cursor-enhanced select,
  body.cursor-enhanced label { cursor: none !important; }
  /* Ensure no native cursor leaks on any element */
  body.cursor-enhanced * { cursor: none !important; }
  .cursor-dot { position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; pointer-events: none; z-index: 9999; opacity: 0; background: radial-gradient(circle at 35% 35%, var(--accent), var(--accent-2)); transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1)); transition: opacity .2s ease; will-change: transform; }
  .cursor-dot.is-visible { opacity: 1; }
  .cursor-dot.click { transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(.85); }
}

/* ===== АДАПТИВНІСТЬ ДЛЯ ВСІХ ПРИСТРОЇВ ===== */

/* Мобільні пристрої (320px - 480px) */
@media (max-width: 480px) {
  .wrap { padding: 10px 12px; }
  .hero { min-height: 85vh; padding: 0 .5rem; }
  .hero-text { gap: .5rem; }
  .title { font-size: clamp(24px, 6vw, 32px); line-height: 1.1; }
  .subtitle { font-size: clamp(12px, 3vw, 16px); }
  .cta-row { gap: 8px; flex-direction: column; }
  .btn { min-width: 100%; padding: 14px 20px; font-size: 15px; }
  .pill-wrap { margin: 20px auto; gap: 10px; }
  .pill { padding: 18px 16px; border-radius: 8px; }
  .pill h3 { font-size: 18px; }
  .pill p { font-size: 14px; line-height: 1.6; }
  .site-header { backdrop-filter: blur(3px); }
  .footer-wrap { padding: 10px 12px; }
  .footer-up { width: 44px; height: 44px; font-size: 18px; }
  
  /* Мобільна шапка */
  body { padding-top: 70px !important; }
  .site-header .wrap { padding: 10px 12px; }
  
  /* Мобільна стрілка */
  .scroll-indicator { margin-top: 30px; }
  .scroll-arrow { padding: 12px; }
  .arrow-down { 
    border-left-width: 14px; 
    border-right-width: 14px; 
    border-top-width: 18px; 
  }
}
  
  /* Мобільне меню */
  .mobile-menu[aria-hidden="false"] {
    max-height: 500px !important;
  }
  
  .mobile-nav {
    padding: 20px;
  }
  
  .mobile-nav-link {
    font-size: 17px;
    padding: 16px 20px;
    font-weight: 700;
  }
  
  /* Девіз зверху */
  .motto {
    font-size: 14px;
    gap: 12px;
    padding: 0 0.5rem;
  }
  
  /* Оптимізація touch-targets (мінімум 44x44px) */
  a, button, .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Мобільні пристрої (480px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .wrap { padding: 12px 14px; }
  .hero { min-height: 88vh; padding: 0 .75rem; }
  .hero-text { gap: .75rem; }
  .title { line-height: 1.15; }
  .cta-row { gap: 10px; }
  .btn { min-width: 100%; padding: 14px 18px; }
  .pill-wrap { margin: 28px auto; gap: 12px; }
  .pill { padding: 18px 16px; border-radius: 10px; }
  .mid-cta { padding: 24px 12px; }
  .mid-cta .wrap-center { padding: 18px 16px; border-radius: 10px; }
  .site-header { backdrop-filter: blur(4px); }
}

/* Планшети (640px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .wrap { padding: 14px 16px; }
  .hero { min-height: 90vh; }
  .title { font-size: clamp(32px, 5vw, 48px); }
  .subtitle { font-size: clamp(16px, 2.5vw, 20px); }
  .btn { min-width: 200px; padding: 16px 20px; }
  .pill-wrap { margin: 32px auto; gap: 14px; }
  .pill { padding: 20px 18px; }
}

/* Планшети (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .wrap { padding: 16px 18px; }
  .hero { min-height: 92vh; }
  .title { font-size: clamp(40px, 4vw, 56px); }
  .subtitle { font-size: clamp(18px, 2vw, 22px); }
  .btn { min-width: 220px; padding: 18px 24px; }
  .pill-wrap { margin: 36px auto; gap: 16px; }
  .pill { padding: 22px 20px; }
}

/* Ноутбуки (1024px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .wrap { padding: 18px 20px; }
  .hero { min-height: 95vh; }
  .title { font-size: clamp(48px, 3.5vw, 60px); }
  .subtitle { font-size: clamp(18px, 1.8vw, 24px); }
  .btn { min-width: 240px; padding: 20px 28px; }
  .pill-wrap { margin: 40px auto; gap: 18px; }
  .pill { padding: 24px 22px; }
}

/* Великі екрани (1440px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
  .wrap { padding: 20px 24px; }
  .hero { min-height: 96vh; }
  .title { font-size: clamp(52px, 3vw, 64px); }
  .subtitle { font-size: clamp(20px, 1.5vw, 26px); }
  .btn { min-width: 260px; padding: 22px 32px; }
  .pill-wrap { margin: 44px auto; gap: 20px; }
  .pill { padding: 26px 24px; }
}

/* Телевізори та дуже великі екрани (1920px+) */
@media (min-width: 1921px) {
  .wrap { padding: 24px 32px; max-width: 1600px; }
  .hero { min-height: 98vh; }
  .title { font-size: clamp(56px, 2.5vw, 72px); }
  .subtitle { font-size: clamp(22px, 1.2vw, 28px); }
  .btn { min-width: 280px; padding: 24px 36px; font-size: 20px; }
  .pill-wrap { margin: 48px auto; gap: 24px; }
  .pill { padding: 28px 26px; }
  .pill h3 { font-size: 24px; }
  .pill p { font-size: 18px; }
  .footer-up { width: 52px; height: 52px; font-size: 24px; }
}


/* Global section spacing: add space between consecutive sections */
main section + section { margin-top: 64px; }


/* Donate CTA */
.donate-panel { position: fixed; bottom: 74px; left: 50%; transform: translateX(-50%) translateY(12px); opacity: 0; pointer-events: none; z-index: 1000; width: min(92vw, 560px); background: linear-gradient(180deg,var(--card),var(--card-2)); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.donate-panel .inner { padding: 18px 16px; display: grid; gap: 12px; }
.donate-title { font-weight: 900; color: var(--accent); text-align: center; letter-spacing: .06em; }
.donate-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px; }
.card-number { font-variant-numeric: tabular-nums; letter-spacing: .06em; user-select: all; }
body.donate-open .donate-panel { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
@media (max-width: 640px) { 
  .donate-row { grid-template-columns: 1fr; }
  
  .donate-panel {
    width: 94vw;
    bottom: 60px;
  }
  
  .donate-panel .inner {
    padding: 16px 14px;
    gap: 10px;
  }
  
  .donate-title {
    font-size: 16px;
  }
  
  .card-number {
    font-size: 14px;
  }
  
  .donate-panel .btn {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* Hover highlights for donate UI */
.donate-panel:hover { border-color: rgba(255,200,0,.45); box-shadow: 0 22px 46px rgba(255,200,0,.15), 0 18px 40px rgba(0,0,0,.5); }
.donate-row { transition: background .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out), transform .22s var(--ease-out); }
.donate-row:hover,
.donate-row:focus-within { background: rgba(255,255,255,.06); border-color: rgba(255,200,0,.38); box-shadow: inset 0 0 0 1px rgba(255,200,0,.06), 0 6px 18px rgba(0,0,0,.25); transform: translateY(-2px); }

/* Footer bar */
.site-footer { position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.footer-left { color: #fff; font-weight: 900; letter-spacing: .06em; }
.footer-up { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 20px; font-weight: 800; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out); position: absolute; left: 50%; transform: translateX(-50%); }
.footer-up:hover { transform: translateX(-50%) translateY(-2px) scale(1.05); background: rgba(255,255,255,.12); border-color: rgba(255,200,0,.5); }
.footer-up:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ring); }

@media (max-width: 640px) {
  .footer-wrap { padding: 10px 14px; }
}

/* ===== СЕКЦІЯ НОВИН ===== */
.news-container {
  max-width: 900px;
  margin: 48px auto 72px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Медіа контейнер */
.news-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.05);
}

/* YouTube відео контейнер */
.news-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.news-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Контент новини */
.news-content {
  padding: 32px;
  color: #000;
}

.news-title {
  margin: 0 0 16px;
  font-weight: 900;
  font-size: 28px;
  color: #000;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.news-description {
  margin: 0 0 20px;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

.news-date {
  display: block;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.85;
}

/* Адаптивність для новин */
@media (max-width: 768px) {
  .news-container {
    margin: 32px auto 56px;
    padding: 0 16px;
    gap: 24px;
  }

  .news-content {
    padding: 24px;
  }

  .news-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .news-description {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .news-date {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .news-container {
    margin: 24px auto 48px;
    gap: 20px;
    padding: 0 12px;
  }

  .news-card {
    border-radius: 12px;
  }

  .news-content {
    padding: 20px 16px;
  }

  .news-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .news-description {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
  }

  .news-date {
    font-size: 12px;
  }
  
  /* Мобільні зображення новин */
  .news-media {
    aspect-ratio: 16/9;
  }
  
  .news-media img {
    object-fit: cover;
  }
}

/* ===== СЕКЦІЯ КОНТАКТІВ (ПРОФЕСІЙНА) ===== */
.contacts-container {
  max-width: 900px;
  margin: 48px auto 80px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

/* Головна контактна картка */
.contact-main-card {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-main-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
}

/* Заголовок картки */
.contact-main-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.contact-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #ff9a00 100%);
  color: #000;
  font-weight: 900;
  font-size: 24px;
  padding: 12px 32px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.3);
  margin-bottom: 16px;
}

.contact-main-subtitle {
  color: #666;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* Сітка контактної інформації */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: center;
  text-align: center;
  align-items: stretch;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  width: 100%;
  max-width: 300px;
}

.contact-info-item:hover {
  background: #f0f0f0;
  border-color: rgba(255, 200, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-icon {
  font-size: 20px;
}

.contact-info-value {
  color: #000;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-word;
  text-align: center;
  display: block;
}

.contact-info-value:hover {
  color: #ff9a00;
  transform: translateX(4px);
}

.contact-info-value:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 200, 0, 0.2);
  border-radius: 6px;
}

.contact-info-desc {
  color: #777;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* Додаткова інформація */
.contact-additional {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-help-box {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  text-align: center;
}

.contact-help-box:hover {
  background: linear-gradient(180deg, #1a1a1a, #2a2a2a);
  border-color: rgba(255, 200, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-help-box h4 {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-help-box p {
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

.contact-help-box strong {
  color: #fff;
  font-weight: 700;
}

/* Адаптивність для контактів */
@media (max-width: 768px) {
  .contacts-container {
    margin: 32px auto 56px;
    padding: 0 16px;
    gap: 24px;
  }

  .contact-main-card {
    padding: 32px 24px;
  }

  .contact-badge {
    font-size: 20px;
    padding: 10px 24px;
  }

  .contact-main-subtitle {
    font-size: 14px;
  }

  .contact-main-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-info-item {
    padding: 20px;
    min-height: 180px;
    max-width: 100%;
  }

  .contact-info-value {
    font-size: 18px;
  }

  .contact-additional {
    gap: 20px;
  }

  .contact-help-box {
    padding: 20px;
  }

  .contact-help-box h4 {
  font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contacts-container {
    margin: 24px auto 48px;
    gap: 20px;
    padding: 0 12px;
  }

  .contact-main-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .contact-badge {
    font-size: 18px;
    padding: 10px 24px;
  }

  .contact-main-subtitle {
    font-size: 13px;
    line-height: 1.4;
  }

  .contact-main-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .contact-info-item {
    padding: 20px 16px;
    gap: 10px;
    min-height: 160px;
    max-width: 100%;
  }
  
  .contact-info-label {
    font-size: 12px;
  }

  .contact-info-value {
    font-size: 18px;
    font-weight: 700;
  }

  .contact-info-desc {
    font-size: 12px;
    line-height: 1.4;
  }

  .contact-help-box {
    padding: 20px;
  }

  .contact-help-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .contact-help-box p {
    font-size: 13px;
  line-height: 1.6;
  }
  
  /* Секційні заголовки */
  .section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  #short-title {
    font-size: 22px;
    margin-bottom: 16px;
  }
}

/* ===== ДОДАТКОВА МОБІЛЬНА ОПТИМІЗАЦІЯ ===== */

/* Дуже малі екрани (< 375px) */
@media (max-width: 375px) {
  .title {
    font-size: 24px !important;
  }
  
  .subtitle {
    font-size: 13px;
  }
  
  .btn {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  .contact-badge {
    font-size: 16px;
    padding: 8px 16px;
  }
  
  .news-title {
    font-size: 18px;
  }
  
  .pill h3 {
    font-size: 16px;
  }
  
  .pill p {
    font-size: 13px;
  }
}

/* Landscape mode на мобільних */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 1rem;
  }
  
  .hero-text {
    gap: 0.5rem;
  }
  
  .motto {
    display: none;
  }
  
  .title {
    font-size: 28px;
  }
  
  .subtitle {
    font-size: 14px;
  }
}

/* Покращена читабельність на малих екранах */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  p {
    line-height: 1.6;
  }
  
  /* Збільшені відступи для кліків */
  .contact-info-value,
  .news-title {
    padding: 4px 0;
  }
}

/* ===== КНОПКА АДМІН-ПАНЕЛІ В ФУТЕРІ ===== */
.footer-admin {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  color: #ffffff;
  filter: grayscale(100%) brightness(200%);
}

.footer-admin:hover {
  transform: scale(1.1) rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.footer-admin:active {
  transform: scale(0.95) rotate(90deg);
}

@media (max-width: 768px) {
  .footer-admin {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* ===== СТИЛІ ДЛЯ НОВИН НА ГОЛОВНІЙ СТОРІНЦІ ===== */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 200, 0, 0.2);
}

.news-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--accent);
}

.news-card-media iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.news-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

.news-card-text {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-date {
  font-size: 12px;
  color: #999999;
  font-style: italic;
  margin-top: auto;
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.news-empty h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 20px;
}

/* ===== МОДАЛЬНЕ ВІКНО НОВИНИ ===== */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.news-modal.active {
  display: flex;
}

.news-modal-content {
  background: var(--bg-card, #1a1a1a);
  border: 2px solid var(--accent, #ffc800);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid var(--accent, #ffc800);
  color: var(--accent, #ffc800);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.news-modal-close:hover {
  background: var(--accent, #ffc800);
  color: #000;
  transform: rotate(90deg);
}

.news-modal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  overflow: hidden;
}

.news-modal-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-modal-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.5s ease-in-out;
}

.news-modal-gallery-slide.active {
  display: block;
}

.news-modal-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-modal-gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.news-modal-gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 200, 0, 0.5);
}

.news-modal-gallery-dot.active {
  background: var(--accent, #ffc800);
  border-color: var(--accent, #ffc800);
  transform: scale(1.2);
}

.news-modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent, #ffc800);
  border: 2px solid var(--accent, #ffc800);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  transition: all 0.3s ease;
  z-index: 10;
  user-select: none;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.news-modal-gallery-nav:hover {
  background: rgba(255, 200, 0, 0.9);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 200, 0, 0.6);
}

.news-modal-gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.news-modal-gallery-prev {
  left: 20px;
}

.news-modal-gallery-next {
  right: 20px;
}

.news-modal-media iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.news-modal-body {
  padding: 30px;
}

.news-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent, #ffc800);
  margin-bottom: 15px;
  line-height: 1.3;
}

.news-modal-date {
  font-size: 14px;
  color: #999999;
  margin-bottom: 20px;
  font-style: italic;
}

.news-modal-text {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-card-media {
    aspect-ratio: 16 / 9;
  }
  
  .news-card-content {
    padding: 15px;
  }
  
  .news-card-title {
    font-size: 16px;
  }
  
  .news-card-text {
    font-size: 13px;
  }
  
  .news-modal-content {
    margin: 20px 10px;
  }
  
  .news-modal-body {
    padding: 20px;
  }
  
  .news-modal-title {
    font-size: 22px;
  }
  
  .news-modal-text {
    font-size: 15px;
  }
  
  .news-modal-media iframe {
    height: 250px;
  }
  
  .news-modal-gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  
  .news-modal-gallery-prev {
    left: 10px;
  }
  
  .news-modal-gallery-next {
    right: 10px;
  }
  
  .news-modal-gallery-dots {
    bottom: 10px;
  }
}


