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

body, html {
  height: 100%;
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
}

/* Хедер (зафіксований вгорі) */
header {
  background: #222;
  color: #fff;
  padding: 10px 20px;
  margin-bottom: 0; /* Видалено відступ знизу */
  position: fixed; /* Фіксуємо хедер */
  top: 0; /* Притискаємо до верху */
  left: 0;
  right: 0;
  z-index: 1000; /* Забезпечуємо, щоб хедер був поверх інших елементів */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Легка тінь для видимості */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Додаємо відступ для контенту під хедером з вищою специфічністю */
body {
  padding-top: 140px !important; /* Збільшено до 140px, щоб врахувати висоту хедера (включаючи логотип і відступи) */
}

.logo {
  height: auto;
  max-height: 100px;
  width: auto;
  max-width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

nav.main-menu {
  display: flex;
}

nav.main-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav.main-menu ul li {
  margin-left: 20px;
}

nav.main-menu ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

nav.main-menu ul li a:hover {
  color: #ffcc00;
}

/* Мовний перемикач */
.lang-switcher {
  margin-left: 20px;
}

.lang-switcher a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.lang-switcher a:hover {
  color: #ffcc00;
}

/* Бургер */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 25px;
  height: 20px;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  position: absolute;
  transition: all 0.3s ease;
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Головна секція */
.hero {
  background: url('images/background.jpg') no-repeat center center/cover;
  background-color: #222; /* Резервний фон */
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 0; /* Усуваємо верхній відступ */
  min-height: calc(100vh - 140px); /* Оновлено, щоб врахувати висоту хедера */
}

.hero h1 {
  font-size: 48px;
  margin-top: 0;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Секція документів на фоні */
.documents-list {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: left;
  padding: 30px 20px;
  margin-top: 20px;
  border-radius: 10px;
}

.documents-list h2 {
  font-size: 32px;
  color: #ffcc00;
  margin-bottom: 15px;
}

.documents-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.documents-list li {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.documents-list li a {
  text-decoration: none;
  color: #ffcc00;
}

.documents-list li a:hover {
  text-decoration: underline;
}

/* Футер */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 10px;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Стили для футера */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* 16px */
  justify-content: center;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem; /* 16px */
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #ffcc00;
}

.footer-nav .social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

.footer-nav .social-link i {
  font-size: 1.25rem; /* 20px */
}

/* Адаптивність */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  nav.main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #333;
    position: absolute;
    top: 140px; /* Оновлено, щоб врахувати висоту хедера */
    left: 0;
  }

  nav.main-menu.active {
    display: flex;
  }

  nav.main-menu ul {
    flex-direction: column;
    align-items: center;
  }

  nav.main-menu ul li {
    margin: 10px 0;
  }

  .hero {
    padding: 20px 20px;
    margin-top: 0; /* Усуваємо верхній відступ для мобільних */
  }
}

/* Під планшети */
@media (min-width: 769px) and (max-width: 1024px) {
  nav.main-menu {
    display: flex;
  }

  nav.main-menu ul {
    flex-direction: row;
    justify-content: center;
  }

  .burger {
    display: none;
  }
}

/* Анімація бургеру */
nav.main-menu ul li {
  transition: all 0.3s ease;
}

.contact-info {
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info ul li {
  margin-bottom: 10px;
  font-size: 18px;
}

.contact-form {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #333;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  padding: 10px;
  font-size: 18px;
  background-color: #ffcc00;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #e6b800;
}

.services-list {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: left;
  padding: 30px 20px;
  margin-top: 20px;
  border-radius: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-list h2 {
  font-size: 32px;
  color: #ffcc00;
  margin-bottom: 15px;
}

.services-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  font-size: 18px;
  margin-bottom: 8px;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.app-badges img {
  height: 60px;
  transition: transform 0.3s ease;
}

.app-badges img:hover {
  transform: scale(1.05);
}

.app-badges img {
  height: 60px;
  transition: transform 0.3s ease;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background-color: #fff;
}

.app-badges img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.lang-switcher a.active-lang {
  color: #ffcc00;
  font-weight: bold;
  text-decoration: underline;
}

.partnership-info {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: left;
  padding: 30px 20px;
  margin-top: 20px;
  border-radius: 10px;
}

.partnership-info h2 {
  font-size: 32px;
  color: #ffcc00;
  margin-bottom: 15px;
}

.partnership-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.partnership-info li {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.partnership-info li a {
  text-decoration: none;
  color: #ffcc00;
}

.partnership-info li a:hover {
  text-decoration: underline;
}

.app-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.app-badges a {
  display: inline-block;
}

.app-badges img {
  height: 70px;
  width: auto;
}

.partnership-link {
  text-align: center;
  margin-top: 20px;
}

.partnership-link a {
  color: #0066cc;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  animation: brightPulse 1.5s infinite ease-in-out;
  transition: transform 0.2s;
  display: inline-block;
  text-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

.partnership-link a:hover {
  transform: scale(1.1);
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(0, 102, 204, 0.8);
}

@keyframes brightPulse {
  0% {
    color: #0066cc;
    text-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
  }
  50% {
    color: #00e6ff;
    text-shadow: 0 0 15px rgba(0, 230, 255, 0.9);
  }
  100% {
    color: #0066cc;
    text-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
  }
}

footer p {
  margin: 5px 0;
}

.blinking {
  animation: blinkingText 1.2s infinite;
}

@keyframes blinkingText {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.app-promo {
  color: #ffcc00;
  font-weight: bold;
  text-align: center;
  margin-top: 1em;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 2.5em;
  line-height: 1.4;
}

.lang-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .app-promo {
    font-size: 1em;
  }
}

/* Стили для спливаючого вікна cookies */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.cookie-popup-content {
  background: white;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.cookie-options {
  margin: 20px 0;
}

.cookie-options label {
  display: block;
  margin: 10px 0;
  font-size: 16px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  background: #0066cc;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
}

.cookie-buttons button:hover {
  background: #0055aa;
}

#cookie-policy-link-btn {
  background: none;
  color: #0066cc;
  text-decoration: underline;
}

#cookie-policy-link-btn:hover {
  background: none;
  color: #003d99;
}

/* Забезпечення адаптивності */
@media (max-width: 600px) {
  .cookie-popup-content {
    margin: 10px;
    padding: 15px;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons button {
    width: 100%;
    text-align: center;
  }
  
  #close-cookie-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
  }
}