:root {
  --primary: #0088ff;
  --bg: #ffffff;
  --text: #111111;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(0, 0, 0, 0.08);
  --btn-bg: rgba(0, 0, 0, 0.05); /* Фон кнопки для светлой темы */
}

body.dark {
  --bg: #21242b;
  --text: #f3f7ff;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --btn-bg: rgba(255, 255, 255, 0.06); /* Фон кнопки для темной темы */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease; /* Плавный переход темы */
}

/* Стили для анимации появления */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.bg-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
}

.glow-1 {
  top: -150px;
  left: -100px;
  background: #0088ff33;
}

.glow-2 {
  bottom: -150px;
  right: -100px;
  background: #00ff8833;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  color: #0088ff;
  font-size: 34px;
  font-weight: 800;
  text-decoration: none;
}

.back-btn {
  text-decoration: none;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  font-size: 14px;
  transition: 0.2s;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
}

.card {
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.subtitle {
  opacity: .7;
  margin-bottom: 30px;
}

h2 {
  margin-top: 35px;
  margin-bottom: 12px;
  color: var(--primary); /* Используем переменную */
}

p {
  line-height: 1.8;
  opacity: .92;
}

ul {
  margin-left: 25px;
  margin-top: 10px;
}

li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer {
  margin-top: 40px;
  text-align: center;
  opacity: .6;
  font-size: 14px;
}

@media(max-width:768px){
  .card{ padding:25px; }
  h1{ font-size:30px; }
  .topbar { flex-direction: column; gap: 20px; align-items: flex-start; }
}
.faq-item{

    margin-top:18px;

    border-radius:18px;

    overflow:hidden;

    background:var(--card-bg);

    border:1px solid var(--card-border);

    transition:.2s;
}
.faq-question:hover{
    background:rgba(0,136,255,.06);
}

body.dark .faq-question:hover{
    background:rgba(255,255,255,.04);
}

body:not(.dark) .faq-item{

    background:#ffffff;

    border:1px solid rgba(0,0,0,.08);

}

.faq-question{

    all: unset;

    display:block;

    width:100%;

    box-sizing:border-box;

    padding:20px;

    cursor:pointer;

    color:var(--text);

    font-size:18px;

    font-weight:800;

    line-height:1.4;

    text-align:left;

    position:relative;
}

.faq-question::after{

    content:"+";

    position:absolute;

    right:20px;

    top:50%;

    transform:translateY(-50%);

    font-size:24px;

    transition:.2s;

}

.faq-item.open .faq-question::after{

    transform:translateY(-50%) rotate(45deg);

}

/* Базовое состояние ответа (скрыто) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.3s ease-in-out; /* Плавность для всего */
}

/* Состояние, когда конкретный faq-item имеет класс open */
.faq-item.open .faq-answer {
    max-height: 500px; /* Достаточная высота для текста */
    opacity: 1;
    padding: 0 20px 20px; /* Возвращаем нижний отступ при открытии */
}

/* Поворот иконки (если используешь + или стрелочку) */
.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}