/* === ПЕРЕМЕННЫЕ === */
:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #e8f5e9;
  --secondary: #388e3c;
  --text: #1e2d1f;
  --text-light: #444;
  --bg: #f4f8f5;
  --white: #fff;
  --shadow: 0 6px 20px rgba(0,0,0,0.12);
  --radius: 14px;
  --transition: 0.3s ease;
}

/* === ОБЩЕЕ === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text);
}

p {
  margin-bottom: 10px;
}

html {
  scroll-behavior: smooth;
}

/* === HEADER + БУРГЕР === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-dark);
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

header .logo {
  height: 40px;
}

nav {
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

nav a:hover {
  color: #a5d6a7;
}

.burger {
  display: none;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
}

/* мобильное меню */
#menu {
  display: flex;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: var(--primary-dark);
    position: absolute;
    top: 60px;
    right: 0;
    width: 230px;
    padding: 20px;
    border-radius: 0 0 0 var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .burger {
    display: block;
  }
}

/* === HERO === */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary-light) 50%, #c8e6c9 50%);
}

#hero .hero-text {
  max-width: 500px;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  color: var(--primary);
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

#hero .hero-btn {
  padding: 15px 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

#hero .hero-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

#hero .hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === SLOTS === */
/* === SLOTS SECTION === */
#slots {
  padding: 100px 20px;
  text-align: center;
}

#slots h2 {
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: var(--primary-dark);
  position: relative;
}

.slot img {
  width: 100%;
  height: 250px;       /* увеличенная высота */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
  transition: transform 0.3s ease; /* для hover эффекта */
}

.slot:hover img {
  transform: scale(1.05);  /* лёгкое увеличение при наведении */
}

/* Если нужно, можно также увеличить padding карточки для визуального баланса */
.slot {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px 20px;  /* немного больше пространства */
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}


.slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center; /* центрируем неполный ряд */
}

/* === SLOT CARD === */
.slot {
  background: #ffffff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.slot:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}

.slot h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.slot p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text-light);
  flex-grow: 1; /* выравнивает кнопку вниз */
}

/* === PLAY BUTTON === */
.play-btn {
  padding: 12px 25px;
  background: var(--primary);
  border: none;
  color: var(--white);
  font-weight: bold;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.play-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* === INFO TEXT === */
.info-game {
  margin-top: 40px;
  font-size: 1rem;
  color: var(--text);
}

/* === ADAPTIVE === */
@media (max-width: 1024px) {
  #slots {
    padding: 80px 15px;
  }
  #slots h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  #slots {
    padding: 60px 15px;
  }
  #slots h2 {
    font-size: 1.9rem;
  }
  .slot h3 {
    font-size: 1.2rem;
  }
  .slot p {
    font-size: 0.95rem;
  }
  .slots-container {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  #slots h2 {
    font-size: 1.6rem;
  }
  .slot {
    padding: 20px 15px;
  }
  .slot img {
    height: 160px;
  }
  .play-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}


/* === FEATURES === */
#features {
  background: var(--primary-light);
  padding: 100px 20px;
  text-align: center;
}

#features h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--primary);
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.feature {
  padding: 20px;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature img {
  width: 60px;
  margin-bottom: 15px;
}

.feature h3 {
  color: var(--text);
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === TESTIMONIALS === */
#testimonials {
  padding: 100px 20px;
  background: var(--white);
  text-align: center;
}

#testimonials h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--primary);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial {
  background: var(--bg);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-style: italic;
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial span {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--primary);
}

/* === FAQ === */
#faq {
  padding: 100px 20px;
  background: var(--primary-light);
}

#faq h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}

.faq-item {
  background: var(--white);
  margin: 15px auto;
  border-radius: var(--radius);
  max-width: 700px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  color: var(--text);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  color: #000; /* цвет текста */
  background-color: #ffffff; /* контрастный фон */
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding: 20px;
  color: #000;
  background-color: #ffffff; /* убедимся, что фон виден */
}


.faq-answer-content{
  color: #000000;
}

/* === ABOUT === */
/* === ABOUT SECTION === */
#about {
  padding: 100px 20px;
  background: var(--white);
  color: var(--text);
  max-width: 1000px;
  margin: auto;
  line-height: 1.8;
}

#about h2 {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
}

#about .highlight {
  color: var(--secondary);
}

#about .divider {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 40px;
  border-radius: 2px;
}

#about p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: justify;
}

#about h3 {
  font-size: 1.6rem;
  margin: 40px 0 20px;
  color: var(--primary-dark);
}

#about ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

#about ul li {
  background: var(--primary-light);
  margin-bottom: 12px;
  padding: 12px 18px;
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

#about ul li:hover {
  background: #dcedc8;
  transform: translateX(5px);
}

#about ul li strong {
  color: var(--primary-dark);
}

/* === ADAPTIVE === */
@media (max-width: 768px) {
  #about {
    padding: 60px 15px;
  }

  #about h2 {
    font-size: 1.8rem;
  }

  #about h3 {
    font-size: 1.3rem;
  }

  #about p, 
  #about ul li {
    font-size: 0.95rem;
  }
}

/* === FOOTER === */
footer {
  background: var(--primary-dark); /* тёмно-зелёный основной цвет */
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

footer .footer-links a {
  color: var(--white);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

footer .footer-links a:hover {
  background: var(--primary-light); /* светло-зелёный фон на hover */
  color: var(--primary-dark);
}

footer p {
  color: #cfd8dc;
  font-size: 0.85rem;
  margin: 0;
}

/* === ADAPTIVE === */
@media (max-width: 480px) {
  footer .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
/* === POPUP === */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.popup-content button {
  margin: 10px;
  padding: 10px 20px;
  background: var(--primary);
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  color: var(--white);
  transition: var(--transition);
}

.popup-content button:hover {
  background: var(--secondary);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #hero .hero-image {
    margin-top: 30px;
  }

  #about {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 576px) {
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 1rem;
  }
  #slots h2, 
  #features h2,
  #testimonials h2,
  #faq h2,
  #about .about-text h2 {
    font-size: 1.6rem;
  }
}

/* ====================== Opt-Out Page ====================== */
main {
  max-width: 900px;
  margin: 80px auto 50px auto;
  padding: 0 20px;
  color: #000000;
}

.opt-out-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1b5e20; /* изменено */
}

.opt-out-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.opt-out-details, .opt-out-instructions, .opt-out-faq {
  margin-top: 40px;
}

.opt-out-details h2,
.opt-out-instructions h2,
.opt-out-faq h2 {
  font-size: 1.8rem;
  color: #1b5e20; /* изменено */
  margin-bottom: 15px;
}

.opt-out-details ul {
  list-style-type: disc;
  padding-left: 20px;
}

.opt-out-details ul li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.opt-out-instructions ol {
  padding-left: 20px;
}

.opt-out-instructions ol li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

form {
  margin-top: 20px;
}

form label {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

form input[type="checkbox"] {
  margin-right: 8px;
}

form button {
  margin-top: 15px;
  padding: 10px 25px;
  background: #1b5e20; /* изменено */
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #2e7d32; /* чуть светлее при hover */
  transform: translateY(-2px);
}

.opt-out-faq p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.opt-out-faq strong {
  color: #1b5e20; /* изменено */
}


/* ====================== Responsive ====================== */
@media (max-width: 768px) {
  .opt-out-intro h1 {
    font-size: 2rem;
  }

  .opt-out-details h2,
  .opt-out-instructions h2,
  .opt-out-faq h2 {
    font-size: 1.5rem;
  }

  main {
    margin-top: 60px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  main {
    margin: 50px 10px 30px 10px;
  }

  form button {
    width: 100%;
  }
}


.responsible-intro h1,
.responsible-tips h2,
.responsible-support h2 {
  color: #1b5e20;
  margin-bottom: 15px;
}

main p,
main li {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 10px;
}

main ul {
  padding-left: 20px;
}

main a {
  color: #1b5e20;
  text-decoration: underline;
}

main a:hover {
  color: #2e7d32;
}

/* Contact Us Page */
.contact-intro h1 {
  color: #1b5e20;
  margin-bottom: 15px;
}

.contact-intro p {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #000000;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1b5e20;
  color: #f1f1f1;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 10px 25px;
  background: #1b5e20;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #2e7d32;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.95rem;
  }
}