/* Скидання */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  padding-top: 60px;
}

/* Меню */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #111827;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo a {
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #00bfff;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111827;
    position: absolute;
    top: 64px;
    right: 24px;
    width: 200px;
    padding: 16px;
    border-radius: 8px;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.hero-section {
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
  position: relative;
  padding: 100px 20px 80px;
  text-align: center;
  color: #fff;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.top-decor {
  width: 100px;
  margin: 0 auto 24px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Адаптація */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .top-decor {
    width: 70px;
  }
}

.google-icon img {
  width: 200px;
}

.about-section {
  background-color: #f4f4f4;
  padding: 80px 20px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.about-text {
  flex: 1 1 500px;
  text-align: left;
}

.about-text h2 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 12px;
}

.about-text h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 24px;
}

.about-text .subtitle {
  font-style: italic;
  font-weight: 500;
  color: #555;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Адаптація */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }
}

.why-domen-section {
  background-color: #fff;
  padding: 80px 20px;
}

.why-header {
  text-align: center;
  margin-bottom: 40px;
}

.why-header h2 {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 10px;
}

.why-header .subtitle {
  font-style: italic;
  color: #555;
  font-size: 1.1rem;
}

.why-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.why-text {
  flex: 1 1 550px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.why-text p {
  margin-bottom: 16px;
}

.why-list {
  list-style: none;
  padding-left: 0;
}

.why-list li {
  margin-bottom: 12px;
  padding-left: 0;
}

.why-images {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-images img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile adaptation */
@media (max-width: 768px) {
  .why-content {
    flex-direction: column;
  }

  .why-images {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .why-images img {
    width: 48%;
  }
}

.features-section {
  background-color: #f9fafb;
  padding: 80px 20px;
}

.features-header h2 {
  text-align: center;
  font-size: 2rem;
  color: #111827;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  color: #1f2937;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #1f2937;
}

.feature-item p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.contact-section {
  background-color: #f4f4f4;
  padding: 80px 20px;
}

.contact-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.contact-header h2 {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 16px;
}

.contact-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 350px;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background-color: #1f2937;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Адаптація */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    flex: 1 1 100%;
  }
}

.site-footer {
  background-color: #111827;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ffffffcc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-contact {
  font-size: 1rem;
  color: #ffffffcc;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #888;
}

/* Адаптація */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

.privacy-section {
  background-color: #ffffff;
  padding: 80px 20px;
  color: #1f2937;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.privacy-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #111827;
}

.privacy-container h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1f2937;
}

.privacy-container p,
.privacy-container li {
  font-size: 1rem;
  color: #333;
}

.privacy-container ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Адаптація */
@media (max-width: 768px) {
  .privacy-container h2 {
    font-size: 1.6rem;
  }

  .privacy-container h3 {
    font-size: 1.15rem;
  }
}

.thank-you-section {
  background-color: #f0fdf4;
  padding: 100px 20px;
  text-align: center;
}

.thank-you-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thank-you-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.thank-you-container p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.6;
}

.back-button {
  display: inline-block;
  background-color: #16a34a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #15803d;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1f2937;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.95rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 60%;
}

.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex: 1 1 35%;
  justify-content: flex-end;
}

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}

#accept-cookies {
  background-color: #10b981;
  color: #fff;
}

#reject-cookies {
  background-color: #ef4444;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

.play-game {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  color: #ffffff;
  background-color: #1f2937;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.play-game:hover {
  background-color: #212a37;
  transform: scale(1.05);
}