:root {
  --bg: #020809;
  --card: #12141a;
  --text: #e6e6e6;
  --muted: #a7a7a7;
  --accent: #7c9eff;
  --accent-2: #8ee3c9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; height: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* Navigation */
.nav { position: sticky; top: 0; margin-bottom: -150px; backdrop-filter: blur(8px); background: rgba(11,12,16,.6); border-bottom: 1px solid rgba(255,255,255,.06); z-index: 10; }
.nav-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.brand, .menu {
  max-height: 70px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Amatic SC", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.brand a { font-size: 50px; color: #44f56e; text-decoration: none;}
.menu a {
  font-size: 30px;
  color: #44f56e;
  text-decoration: none;
  padding: 8px 16px;
  border: 4px solid #44f56e;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 700;
}
.menu a:hover {
  background-color: #7c9eff;
  color: #0b0c10;
  border-color: #8ee3c9;
}
.logo-header {max-height: 70px;}
/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: "Amatic SC", sans-serif;
  font-weight: 700;
  font-style: normal;
  align-items: center;
  text-align: center;
  height: 100dvh;
  padding: 0 24px;
  letter-spacing: 1.5px;
  background-image: url('../images/bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero h2 { font-size: clamp(28px, 5vw, 48px); margin: 0 0 12px; }
.hero p { color: #fff; max-width: 720px; margin: 0 auto 22px; font-size: 18px; line-height: 1.6; }
.cta {
  font-size: 30px;
  color: #44f56e;
  text-decoration: none;
  padding: 8px 16px;
  border: 4px solid #44f56e;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 700;
}
.cta:hover {
  transform: translateY(-1px);
  background-color: #7c9eff;
  color: #0b0c10;
  border-color: #8ee3c9;
  text-decoration: none;
}

.gradient-text {
  background: linear-gradient(45deg, #44f56e, #00ff85, #00cc66, #28c76f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: inherit;

  /* Тень */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3), 
    0 0 8px rgba(68, 245, 110, 0.6), 
    0 0 12px rgba(0, 255, 133, 0.4); 
}

/* Sections */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 15px 0 8px; font-size: 18px; }
.card p, .card ul, .card ol { margin: 0; color: var(--muted); line-height: 1.6; }

.section { padding: 40px 0; }
.section h1 { font-size: 32px; margin: 20px 10px 16px; }
.section h2 { font-size: 24px; margin: 20px 10px 16px; }

.table {padding: 13px;}
table {border-collapse: separate; border-spacing: 5px;}
td {border-radius: 6px; padding: 10px; background-color: #02080987;}



section#faq details {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

section#faq details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  position: relative;
  padding-left: 30px;  /* место для иконки слева */
  padding-right: 24px; /* место для стрелки справа */
}

section#faq details summary::before {
  content: '❓';            /* иконка вопроса */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);    /* цвет иконки */
  font-size: 20px;
}

section#faq details summary::after {
  content: '▼'; /* стрелка вниз по умолчанию */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: #44f56e;
}
section#faq details[open] summary {
  color: var(--accent);
}

section#faq details[open] summary::after {
  transform: translateY(-50%) rotate(180deg); /* стрелка вверх при открытии */
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  color: #44f56e;
  border: 3px solid #44f56e;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: none; /* скрыта по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.back-to-top::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #44f56e;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
}


footer { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; color: var(--muted); text-align: center;}

/* Responsive */
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 768px) {
  .hero {
    background-size: 160%;
    height: 80dvh;
  }
  .nav { margin-bottom: -50px;}
}
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .logo-header { max-height: 40px; } .brand a { font-size: 30px;} .menu a { font-size: 20px; } }

/* Смартфоны */
@media (max-width: 480px) {
  .hero {
    background-size: 160%;
    height: 80dvh;
  }
  .nav { margin-bottom: -50px;}
}