:root {
  --bg: #1a2459;
  --bg-deep: #101741;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-hover: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f6f2e9;
  --muted: #b3bbdd;
  --accent: #f2a93b;
  --accent-light: #ffd27a;
  --on-accent: #231905;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 50% -80px, #2b3987 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-color: var(--bg-deep);
  line-height: 1.45;
}

/* ---------- шапка ---------- */
.banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.banner img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* ---------- контент ---------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 16px 24px;
}

h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(1.6rem, 5.5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  margin: 0 auto 28px;
  max-width: 460px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: balance;
}

.group { margin-top: 26px; }

.group h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  text-align: center;
}

/* ---------- кнопки ---------- */
.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin-bottom: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 650;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); background: var(--surface-hover); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.btn-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.btn-icon {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.arrow { flex: none; width: 20px; height: 20px; opacity: 0.55; }
.btn:hover .arrow { opacity: 1; transform: translateX(2px); }

.btn-bot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 10px 28px rgba(242, 169, 59, 0.28);
}
.btn-bot:hover {
  background: linear-gradient(135deg, #ffdd94, #f7b550);
  box-shadow: 0 14px 34px rgba(242, 169, 59, 0.38);
}

.btn-support { border-color: rgba(255, 210, 122, 0.55); }

.btn-info {
  border-color: rgba(255, 210, 122, 0.8);
  background: rgba(242, 169, 59, 0.14);
}
.btn-info:hover { background: rgba(242, 169, 59, 0.24); }
.btn-info .btn-icon { color: var(--accent-light); }

/* ---------- дополнительные страницы ---------- */
.article h1 { text-align: center; margin-bottom: 20px; }
.article-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.article-body { font-size: 1.05rem; margin-bottom: 26px; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1em; }
.article-body h2 { margin: 1.4em 0 0.5em; font-size: 1.3rem; color: var(--accent-light); }
.article-body ul { margin: 0 0 1em; padding-left: 1.3em; }
.article-body li { margin-bottom: 0.35em; }
.article-body a { color: var(--accent-light); }
.back {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  padding: 10px;
}
.back:hover { color: var(--text); }
.banner a { display: block; }

/* ---------- анонимное сообщение ---------- */
.feedback-form { display: block; max-width: 520px; margin: 4px auto 0; }
.feedback-label {
  display: block;
  margin: 14px 0 10px;
  text-align: center;
  font-weight: 650;
  font-size: 1.1rem;
  line-height: 1.3;
  text-wrap: balance;
}
.feedback-form textarea {
  display: block;
  width: 100%;
  height: 150px;
  min-height: 120px;
  max-height: 320px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}
.feedback-form textarea:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.feedback-form .btn { margin-top: 14px; }
.feedback-note { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.feedback-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 140, 140, 0.6);
  border-radius: 14px;
  background: rgba(255, 90, 90, 0.14);
}
button.btn { font-family: inherit; cursor: pointer; margin-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; }
.sent p { color: var(--muted); font-size: 1.1rem; margin: 0 0 22px; }

.empty { text-align: center; color: var(--muted); margin-top: 40px; }

/* ---------- подвал ---------- */
.foot {
  padding: 8px 16px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 12px 0 0; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 260px;
  margin: 0 auto;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.ornament::after { transform: scaleX(-1); }
.ornament i {
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- мобильные: шапку обрезаем по центру, оставляя логотип ---------- */
@media (max-width: 640px) {
  .banner img {
    height: 150px;
    object-fit: cover;
    object-position: 50% 50%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .wrap { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .arrow { transition: none; }
  .btn:hover { transform: none; }
}
