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

body {
  background: #1b0e2f;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  body {
    background: #351648; /* колір для телефону */
  }
}
/* Header styles */
.topbar {
  position: sticky;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background-color: #2a1342;
  padding: 10px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
}

.hero {
  padding-top: 120px; /* або стільки, скільки фактично займає твій хедер */
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: rgba(255, 255, 255, 0.04);
  color: #eaeaea;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 12px;
  text-align: left;
}

th {
  background-color: #2a1444;
  color: #ffd94d;
}

@media (max-width: 768px) {
  table {
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
  }
}
.text-section {
  max-width: 880px;
  margin: 50px auto;
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  line-height: 1.65;
  font-size: 1rem;
  color: #eaeaea;
  text-align: left;
  transition: all 0.3s ease;
}
 #cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #222;
      color: #fff;
      padding: 15px;
      text-align: center;
      z-index: 1000;
      font-family: sans-serif;
    }
    #cookie-banner button {
      margin-left: 20px;
      padding: 8px 15px;
      background-color: #4caf50;
      color: white;
      border: none;
      cursor: pointer;
    }

.text-section p {
  margin-bottom: 1.2em;
  text-align: justify;
}

.text-section h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #ffd94d;
  text-align: center;
}

/* 📱 Адаптація для мобільних */
@media (max-width: 768px) {
  .text-section {
    margin: 20px 15px;
    padding: 20px 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: #2a1444; /* більш насичений для кращого контуру */
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
  }

  .text-section p {
    text-align: left;
  }

  .text-section h2 {
    font-size: 1.4rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffc800;
  text-decoration: none;
}
.brand-logo span {
  color: #fff;
}

.main-nav {
  flex: 1 1 100%;
  width: 100%;
  order: 2;
  margin-top: 10px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover {
  color: #ffc800;
}
/*
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-links .btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
}
  */
  .auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 0; /* або 5px, якщо треба легкий відступ */
}

.auth-links .btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  background-color: #432e9e; /* для .login */
  color: #fff;
}

.auth-links .signup {
  background-color: #d21657;
}
.login {
  background-color: #432e9e;
  color: #fff;
}
.signup {
  background-color: #d21657;
  color: #fff;
}

/* Hero section */
.hero {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: #351648;
  padding: 40px 20px;
  gap: 30px;
}

.hero-content {
  flex: 1 1 300px;
  text-align: center;
}
.hero-content h1 {
  font-size: 2.2rem;
  padding-top: 20px;
  margin-bottom: 10px;
  word-wrap: break-word;
}
.hero-content p {
  font-size: 1.1rem;
  color: #f3d7b6;
}
.hero-content .primary {
  margin-top: 20px;
  display: inline-block;
  background: #ffc800;
  color: #000;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}


@media (max-width: 768px) {
  .topbar {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .hero {
    margin-top: 100px; /* або менше, якщо заголовок обрізається */
  }

  .topbar .container {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

.hero-img img {
  max-width: 100%;
  border: 4px solid #fff;
  border-radius: 10px;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .text-section {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  ul {
    padding-left: 20px;
    margin-left: 0;
    list-style-position: inside;
    word-break: break-word;
  }
}
.responsive-banner {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Categories */
.categories {
  background: #210d35;
  padding: 20px 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 1200px;
  margin: auto;
  gap: 12px;
  padding: 0 20px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 0 16px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff1e6;
  color: #674a36;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cat-item:hover {
  background-color: #ffd5b4;
  color: #000;
}
.cat-item {
  background: #3c1a5f;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}
.cat-item:hover {
  background: #53237a;
}

/* Footer */
.site-footer {
  background-color: #180b29;
  padding: 20px 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  /*
  .auth-links {
    justify-content: center;
    margin-top: 10px;
  }
    */
  .hero {
    margin-top: 160px;
    padding: 30px 10px;
  }
}
