/* ======================
   0. RESET
====================== */
html {
  scroll-behavior: smooth;
  height: 100%;
}

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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ======================
   1. Шрифты (e-Ukraine)
====================== */
@font-face {
  font-family: 'e-Ukraine';
  src: url('/static/web/fonts/e-Ukraine-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'e-Ukraine';
  src: url('/static/web/fonts/e-Ukraine-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'e-Ukraine', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3, h4, h5, h6, p, ul, li, a {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

/* ======================
   2. Утилиты
====================== */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
}
.btn--primary {
  background-color: #0066cc;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.25s ease;
}
.btn--primary:hover {
  background-color: #004a99;
  transform: scale(1.03);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2f80ed;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #cccccc;
  border-top: 6px solid #2f80ed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* --- Фикс от залипания секций под фиксированной шапкой --- */
[id] {
  scroll-margin-top: 100px; /* высота .header__top */
}

/* ======================
   3. Шапка (header)
====================== */
.header__top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2f80ed;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px 0 0;
  max-width: 1400px;
}

.header__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header__logo img {
  max-height: clamp(70px, 8vw, 125px);
}

.header__logo {
  position: relative;
  display: flex;
  align-items: center;
}

.header__logo-sute img {
  max-height: 50px;
}

.header__menu-list {
  list-style: none;
  display: flex;
  gap: clamp(4px, 0.7vw, 12px);
  justify-content: flex-end;
  flex: 1;
  flex-wrap: nowrap;
}

.header__menu {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
  min-width: 0;
}

.header__menu::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 75%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.35);
}

.header__menu-list a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  font-size: clamp(11px, 0.85vw, 13px);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.header__menu-list a:hover {
  color: #ffcc00;
}

/* Бургер */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;

  position: absolute;
  top: 20px;
  right: 20px;
}

.burger-icon {
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Анимация "крестик" */
.burger-menu.active .burger-icon:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-icon:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-icon:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Выпадающее меню */
.dropdown-menu {
  display: none;
  position: fixed;
  top: 59px;
  left: 0;
  width: 100%;
  background-color: white;
  border-top: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1500;
}
.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.dropdown-menu li {
  padding: 10px 20px;
}
.dropdown-menu a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
}
.dropdown-menu a:hover {
  background-color: #f0f0f0;
  display: block;
}
.dropdown-menu.active {
  display: block;
}

/* Переключение логотипов SUTE */
.sute-logo-mobile {
  display: none;
}
.sute-logo-desktop {
  display: block;
}

/* Показывать бургер на мобильных устройствах */
@media (max-width: 1180px) {
  .sute-logo-desktop {
    display: none;
  }
  .sute-logo-mobile {
    display: block;
  }

  .burger-menu {
    display: flex;
  }

  .header__menu {
    display: none;
  }

  .dropdown-menu {
    display: none;
  }

  .dropdown-menu.active {
    display: block;
  }

  .header__container {
    padding: 10px 16px;
    justify-content: space-between;
  }

  .header__logos {
    flex: 1;
    justify-content: center;
  }

  .header__logo img {
    max-height: 48px;
  }

  .header__logo-sute img {
    max-height: 48px;
  }

  .burger-menu {
    align-self: center;
  }
}

/* ======================
   4. Hero-блок
====================== */
.header__bottom {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
}

.header__bottom::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  z-index: 0;
}

.header__bottom__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 60, 0.45);
  z-index: 1;
}

.header__bottom__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
}

.header__bottom__content {
  max-width: 760px;
  box-sizing: border-box;
}

.header__title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  font-weight: 400;
  border-left: 4px solid rgba(255,255,255,0.6);
  padding-left: 12px;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .header__bottom {
    padding: 40px 20px;
    min-height: 300px;
  }
  .header__bottom__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .header__bottom__content {
    width: 100%;
  }
  .header__title {
    font-size: 1.55rem;
    margin-bottom: 0.7rem;
  }
  .header__subtitle {
    font-size: 0.95rem;
    border-left: none;
    padding-left: 0;
    border-top: 3px solid rgba(255,255,255,0.6);
    padding-top: 10px;
    margin-bottom: 1.4rem;
    text-align: center;
  }
  .header__actions {
    display: flex;
    justify-content: center;
  }
  .btn--primary {
    display: inline-block;
    width: auto;
  }
}

/* ======================
   5. Footer
====================== */
.footer {
  position: relative;
  padding: 34px 17px;
  background-color: #2f80ed;
  color: #fff;
  flex-shrink: 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 25px;
}
.footer-logo img {
  max-height: 102px;
  margin-bottom: 13px;
}
.footer-description {
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 17px;
  border-top: 1px solid #fff;
  padding-top: 17px;
}
.footer-links ul, .footer-contacts ul {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
}
.footer-links li, .footer-contacts li {
  margin-bottom: 8px;
}
.footer-links a, .footer-contacts a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover, .footer-contacts a:hover {
  color: #ffcc00;
}
.footer-socials a {
  margin-right: 13px;
  display: inline-block;
  color: #ddd;
  font-size: 1.0rem;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer-socials a:hover {
  transform: scale(1.1);
  color: #ffcc00;
}
.footer-line {
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: #ccc;
}

/* ======================
   6. Popup
====================== */
.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  width: 300px;
}
.popup i {
  font-size: 24px;
  margin-right: 10px;
}
.popup span {
  font-size: 14px;
}

/* ======================
   7. Responsive 2560px
====================== */
@media (min-width: 2560px) {
  .container {
    max-width: 1600px;
  }
  .header__title {
    font-size: 3rem;
  }
  .hero-section img {
    max-width: 50%;
  }
}

/* ======================
   8. Responsive ≤ 1024px
====================== */
@media (max-width: 1024px) {
  .container {
    max-width: 95%;
  }
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-section img {
    max-width: 70%;
    margin: 20px auto;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ======================
   10. Testimonials (≤ 425px)
====================== */
#testimonials {
  background: #f4f9ff;
  padding: 80px 0;
}

#contacts {
  background: #ffffff;
  padding: 80px 0;
}

.testimonials-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.testimonials-left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonials-right {
  flex: 1 1 45%;
  text-align: center;
}

.testimonials-right img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.testimonial-card {
  background: #fff;
  padding: 12px;
  text-align: center;
  border-left: 4px solid #2f80ed;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.testimonial-card img.testimonial-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.testimonial-form input,
.testimonial-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
}

.testimonial-form .btn {
  padding: 10px 20px;
}

/* Адаптив */
@media (max-width: 768px) {
  .testimonials-inner {
    flex-direction: column;
  }

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

  .testimonials-left,
  .testimonials-right {
    flex: 1 1 100%;
  }
}


/* ======================
  Слайдер новин
====================== */
.event-section {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}

.event-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.event-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Прибираємо дефолтний градієнт */
.event-swiper .swiper-slide::after {
  display: none !important;
}

/* Вертикальні сині смуги по боках слайдера */
.event-section::before,
.event-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  background: #2f80ed;
  z-index: 5;
  pointer-events: none;
}
.event-section::before { left: 0; }
.event-section::after  { right: 0; }

/* Градієнт знизу всередині слайду */
.slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 30, 70, 0.55) 0%,
    rgba(0, 30, 70, 0.08) 35%,
    transparent 55%
  );
  pointer-events: none;
}

/* Вміст слайду: заголовок + кнопка */
.slide-inner {
  position: absolute;
  bottom: 52px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 80px;
  z-index: 2;
  text-align: center;
}

.slide-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  max-width: 800px;
}

/* Кнопка — стиль btn--primary */
.btn--slide-detail {
  display: inline-block;
  padding: 10px 28px;
  background-color: #0066cc;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn--slide-detail:hover {
  background-color: #004a99;
  transform: scale(1.03);
}

/* Пагінація */
.event-swiper .swiper-pagination {
  bottom: 16px !important;
}

.event-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.45);
  opacity: 1;
  transition: background 0.2s, transform 0.2s;
}

.event-swiper .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.25);
}

/* Стрілки навігації */
.event-btn-prev,
.event-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  padding: 0;
  line-height: 1;
  z-index: 6;
  backdrop-filter: blur(3px);
}
.event-btn-prev { left: 20px; }
.event-btn-next { right: 20px; }

.event-btn-prev:hover,
.event-btn-next:hover {
  background: rgba(47, 128, 237, 0.75);
  border-color: #fff;
}

@media (max-width: 768px) {
  .event-section { height: 320px; }
  .event-section::before,
  .event-section::after { width: 5px; }
  .slide-inner { padding: 0 56px; bottom: 44px; gap: 12px; }
  .slide-title { font-size: 16px; }
  .event-btn-prev { left: 10px; }
  .event-btn-next { right: 10px; }
}

/* Кнопка "Всі новини" під слайдером */
.event-all-news {
  text-align: center;
  padding: 18px 0 4px;
}

