/* Сброс и основы */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #210048 0%, #114e2e 100%);
  color: #f2e9c6;
  min-height: 100vh;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background: linear-gradient(90deg, #472099 0%, #10a676 100%);
  padding: 16px 0;
  color: #ffe066;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: bold;
  color: #ffe066;
  text-decoration: none;
}
.logo-img {
  width: 80px;
  height: auto;
}
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
}
.nav a {
  color: #ffe066;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  font-size: 1.07rem;
}
.nav a:hover {
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #341072 0%, #7559a4 90%, #ad98d3 100%);
  color: #ffe066;
  text-align: center;
  padding: 72px 20px 54px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #ffd700;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 18px;
  letter-spacing: 1.2px;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 27px;
}
.btn-primary {
  background: linear-gradient(90deg, #ffe066 0%, #ff8c22 100%);
  color: #310f61;
  padding: 15px 36px;
  border: none;
  border-radius: 5px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 16px rgba(87,43,0,0.13);
  transition: background 0.25s;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #ffd700 0%, #e49e23 100%);
  color: #fff;
}

.btn-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Отступ между кнопкой и логотипом */
  margin-top: 20px;
}

.btn-primary {
  flex-shrink: 0;
  padding: 15px 36px;
  font-size: 1.25rem;
}

.hero-logo-link {
  display: inline-block;
  width: 180px; /* пример размера примерно равный кнопке */
  height: 50px; /* высота под кнопку */
  overflow: hidden;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* About game */
.about-game {
  background: #261049;
  padding: 45px 0;
  margin: 28px auto 0 auto;
  margin-bottom: 20px;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.slot-img {
  width: 320px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(30,20,130,0.2);
  border: 3px solid #ffe066;
  background: #fff9e1;
}
.about-text {
  flex: 1;
  min-width: 250px;
}
.about-text h2 {
  font-size: 2rem;
  color: #ffe066;
  margin-bottom: 18px;
}
.about-text p {
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.about-text ul {
  color: #f5e4b8;
  padding-left: 22px;
  margin: 0 0 0 0;
}
.about-text li {
  margin-bottom: 8px;
}

/* Features */
.features {
  padding: 50px 0;
  background: linear-gradient(135deg, #401d72 70%, #1b9c6a 100%);
  margin: 28px auto 0 auto;
  margin-bottom: 20px;
}
.features h2 {
  text-align: center;
  color: #ffe066;
  margin-bottom: 35px;
  font-size: 2.2rem;
}
.feature-list {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-item {
  flex: 1 1 230px;
  background: rgba(255,255,255,0.11);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  min-width: 230px;
  max-width: 300px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.10);
  border: 2px solid #ffe066;
  text-align: center;
}
.feature-item h3 {
  margin-bottom: 13px;
  color: #ffe066;
  font-size: 1.25rem;
}
.feature-item p {
  color: #faf7e2;
  font-size: 1.08rem;
}

/* Demo slot */
.demo-slot {
  background: #191c37;
  padding: 55px 0 35px 0;
  text-align: center;
  margin: 28px auto 0 auto;
  margin-bottom: 20px;
}
.demo-slot h2 {
  color: #ffe066;
  margin-bottom: 30px;
  font-size: 2rem;
}
.demo-frame {
  max-width: 480px;
  margin: 0 auto 22px auto;
  background: #22163c;
  border-radius: 16px;
  border: 2px solid #ffe066;
  box-shadow: 0 0 15px rgba(220,174,44,0.20);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.demo-frame iframe {
  width: 100%;
  height: 270px;
  border: none;
  background: #000;
}

/* SEO текст */
.seo-text {
  padding: 38px 0 38px 0;
  background: linear-gradient(90deg, #251348 60%, #fbdb68 130%);
  color: #fffbe7;
  margin-bottom: 20px;  /* Отделяет seo-text от следующего блока */
}
.seo-text h2 {
  color: #ffd34d; /* чуть ярче и теплее */
  font-size: 1.6rem;
  margin-bottom: 18px;
  text-align: center;
  font-weight: bold;
}
.seo-text h3 {
  color: #ffd34d; /* чуть ярче и теплее */
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}
.seo-text p {
  color: #fffbe7;
  font-size: 1.15rem;
  margin-bottom: 13px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px #20004033;
}

.seo-text ul {
  padding-left: 20px;
  margin: 0 auto 20px auto;
  list-style-position: outside;
  max-width: 850px;
}

.seo-text ul li {
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* FAQ */
.faq {
  padding: 45px 0;
  background: #210048;
  max-width: 900px;
  margin: 28px auto 0 auto;  /* Верхний отступ увеличен, по бокам и снизу автоматически центрировано */
  border-radius: 16px;       /* Скругление углов для блока */
  box-shadow: 0 2px 18px rgba(0,0,0,0.10);  /* Легкая тень для отделения */
  margin-bottom: 20px;
}
.faq h2 {
  color: #ffe066;
  text-align: center;
  margin-bottom: 32px;
  font-size: 2rem;
}
.faq-item {
  margin-bottom: 22px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 18px 22px;
  border-left: 4px solid #ffe066;
}
.faq-item h3 {
  font-size: 1.13rem;
  color: #ffe066;
  margin-bottom: 8px;
}
.faq-item p {
  color: #faf7e2;
  font-size: 1.04rem;
}

/* Footer */
.footer {
  background: linear-gradient(90deg, #472099 0%, #10a676 100%);
  color: #ffe066;
  padding: 23px 0 11px 0;
  text-align: center;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.footer-links li a {
  color: #ffe066;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.18s;
}
.footer-links li a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .slot-img {
    margin: 0 auto;
  }
  .feature-list {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 650px) {
  .logo {
    font-size: 1.35rem;
  }
  .about-text h2, .features h2, .faq h2, .seo-text h2 {
    font-size: 1.1rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 500px) {
  .hero h1 {
    font-size: 1.25rem;
  }
  .demo-frame iframe {
    height: 180px;
  }
}
@media (max-width: 600px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px;
  }
  .logo {
    font-size: 1.2rem;
    gap: 8px;
    margin-bottom: 6px;
  }
  .logo-img {
    width: 42px;
    height: auto;
  }
  .nav ul {
    gap: 12px;
    font-size: 1rem;
    flex-wrap: wrap;
  }
  .nav a {
    font-size: 1rem;
    padding: 2px 0;
  }
}
.container {
  width: 98%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 6px;
  padding-right: 6px;
}
@media (max-width: 600px) {
  .container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 36px 6px 24px 6px;
  }
  .hero h1 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    text-align: center;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
  }
.btn-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
  }
  .btn-primary,
  .hero-logo-link {
    width: 90%;        
    max-width: 300px; 
    display: block;  
    margin: 0 auto;  
  }
  .btn-primary {
    padding: 13px 0; 
    font-size: 1.08rem;
  }
  .hero-logo-link {
    height: calc(13px*2 + 1.08rem); 
    overflow: hidden;
  }
  .hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
@media (max-width: 600px) {
  .demo-frame {
    max-width: 100vw;
    border-radius: 12px;
    border-width: 1.5px;
    aspect-ratio: 16/9;
  }
  .demo-frame img {
    border-radius: 12px;
  }
  .about-content {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .slot-img {
    width: 95vw;
    max-width: 380px;
    border-radius: 12px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .seo-text, .about-game, .features, .demo-slot, .faq {
    padding-left: 8px;
    padding-right: 8px;
  }
  .seo-text h2, .features h2, .faq h2 {
    font-size: 1.08rem;
  }
  .seo-text p, .about-text p, .features p, .faq-item p {
    font-size: 0.99rem;
  }
}
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
  .footer {
    font-size: 0.95rem;
    padding: 14px 0 7px 0;
  }
}
body {
  background: linear-gradient(135deg, #210048 0%, #114e2e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
@media (max-width: 600px) {
  .features {
    padding: 28px 0;
  }
  .feature-list {
    flex-direction: column;
    align-items: center;      /* Центрирует все .feature-item */
    gap: 18px;
  }
  .feature-item {
    width: 95vw;              /* Почти на всю ширину экрана */
    max-width: 370px;         /* Но не больше, чтобы было красиво */
    min-width: 0;
    margin: 0 auto;
    text-align: center;
  }
}