/* Main styles extracted from index.html */

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid #eee;
}

/* Explicit positioning inside header */
header .logo { justify-self: start; }
.header-promo { justify-self: end; }
nav { justify-self: center; }

header .logo { font-weight: 900; letter-spacing: 3px; font-size: 24px; display:flex; align-items:center; gap:10px; flex: 0 0 auto; min-width: 120px; justify-self: start; }
header .logo img { max-height:40px; width:auto; }

.header-promo {
  background: linear-gradient(90deg, #ff7a18, #af002d);
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.3s ease, background 0.3s ease;
  max-width: 85%;
  overflow-wrap: break-word;
}
.header-promo:hover { transform: scale(1.05); }

/* promo text variants for small screens */
.promo-compact { display: none; }
.promo-full { display: inline; }

@media (max-width: 420px) {
  .promo-full { display: none; }
  .promo-compact { display: inline; }
}

nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  width: auto;
  justify-self: center;
}
nav a { display: inline-block; padding: 6px 8px; }
nav a::after { bottom: -6px; }
nav a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  position: relative;
  transition: all 0.3s ease;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }
nav a:hover { transform: translateY(-2px); color: #1a73e8; }
nav a:active { transform: scale(0.95); }

/* Sections */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  scroll-margin-top: 100px;
}
section.hero {
  position: relative;
  border-top: none;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > div { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 900; line-height: 1.1; text-align: center; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards; }
.hero p { margin-top: 24px; font-size: 20px; text-align: center; max-width: 650px; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards; animation-delay: .2s; font-weight: 600; }
.hero-cta { margin-top: 40px; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards; animation-delay: .4s; }
.hero-cta button { background: #111; color: #fff; border: none; padding: 16px 40px; font-size: 18px; font-weight: 700; cursor: pointer; transition: transform .3s ease; border-radius: 10px; }
.hero-cta button:hover { transform: scale(1.06); }

/* Features */
.section-title { font-size: 48px; font-weight: 900; margin-bottom: 50px; text-align: center; color: #111; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}
.feature-card {
  width: 100%;
  padding: 24px 18px;
  background: linear-gradient(135deg, #111, #222);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  text-align: center;
  transition: transform .6s ease, background .6s ease, box-shadow .6s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.feature-card img { width: 60px; height: 60px; margin-bottom: 18px; filter: invert(1); }
.feature-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(135deg, #222, #111);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.feature-card img { width: 60px; height: 60px; margin-bottom: 16px; filter: invert(1); max-width: 60px; }
.feature-card h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; margin-bottom: 10px; }
.feature-card p { font-size: clamp(14px, 1.8vw, 16px); opacity: .95; line-height: 1.55; font-weight: 500; overflow-wrap: break-word; word-break: break-word; text-align: center; }

/* CTA Section */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: #f7f7f7;
  border-radius: 16px;
  max-width: 900px;
  margin: 60px auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.cta h2 { font-size: 42px; font-weight: 900; margin-bottom: 40px; color: #111; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin-bottom: 40px; }
.step-card {
  background: #fff;
  flex: 1 1 250px;
  max-width: 280px;
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.step-number {
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-card p { font-size: 16px; line-height: 1.6; color: #333; text-align: left; margin: 0; }
.bot-button {
  background: #111;
  color: #fff;
  border: none;
  padding: 16px 45px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}
.bot-button:hover { transform: scale(1.05); background: #222; }

/* Rules */
#rules {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 25px;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
#rules h2 { font-size: 38px; font-weight: 900; text-align: center; margin-bottom: 30px; color: #111; }
.rules-list { list-style: decimal inside; font-size: 17px; line-height: 1.8; color: #333; padding-left: 0; }
.rules-list li { margin-bottom: 18px; font-weight: 500; }

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}
footer a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 700px) {
  header { grid-template-columns: 1fr auto; grid-template-rows: auto auto; grid-template-areas: "logo promo" "nav nav"; padding: 12px 16px; }
  header .logo { grid-area: logo; justify-self: start; }
  .header-promo { grid-area: promo; justify-self: end; margin-left: 8px; max-width: 60%; white-space: normal; padding: 8px 12px; font-size: 13px; }
  nav { grid-area: nav; justify-self: center; width: 100%; display:flex; justify-content:center; gap: 10px; }
  nav a { padding: 6px 8px; font-size: 14px; }

  .steps { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; }
  .bot-button { width: 100%; max-width: 280px; padding: 14px 0; }
  .hero h1 { font-size: clamp(32px, 8vw, 60px); }
  .hero p { font-size: 18px; max-width: 90%; }
  .hero-canvas { height: 60vh; }
  .cta { padding: 36px 14px; }
  .cta h2 { font-size: 32px; }
  .step-card { max-width: 100%; padding: 18px; }
  .step-card p { font-size: 15px; }
}

@media (max-width: 420px) {
  header { padding: 10px 12px; }
  .header-promo { font-size: 12px; padding: 6px 10px; border-radius: 10px; max-width: 100%; }
  nav { gap: 8px; }
  .cta { padding: 30px 12px; }
  .cta h2 { font-size: 28px; }
  .step-card p { font-size: 14px; }
  .feature-card { min-height: 200px; padding: 18px; }
  .feature-card p { font-size: 14px; }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; gap: 15px; }
  .feature-card img { width: 50px; height: 50px; }
  #rules { padding: 25px 15px; }
  .rules-list { font-size: 15px; line-height: 1.5; }
  footer { font-size: 13px; padding: 20px 10px; }
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }


/* SEO-блоки */
.seo-bonus, .seo-text {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px 25px;
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  line-height: 1.7;
  color: #333;
  font-size: 16px;
}

.seo-bonus h3, .seo-text h2, .seo-text h3 {
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
  text-align: center;
}

.seo-bonus p, .seo-text p {
  margin-bottom: 18px;
  text-align: justify;
}

@media (max-width: 700px) {
  .seo-bonus, .seo-text {
    padding: 20px 15px;
  }
  .seo-bonus h3, .seo-text h2, .seo-text h3 {
    font-size: 22px;
  }
  .seo-bonus p, .seo-text p {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .seo-bonus h3, .seo-text h2, .seo-text h3 {
    font-size: 20px;
  }
  .seo-bonus p, .seo-text p {
    font-size: 14px;
  }
}
