/* ================== */
/* 🎨 Основные переменные */
:root {
  --bg: #0f1113;
  --card: #141617;
  --muted: #9aa3a8;
  --accent: #d63939;
  --accent-2: #b63a3a;
  --radius: 12px;
  --container: 1100px;
  --transition: 0.3s ease;
}

/* ================== */
/* 🧱 Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: url("/static/img/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================== */
/* 📌 Header */
header {
  padding: 15px 0;
  background: rgba(15, 17, 19, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Лого и текст */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 150px;
  height: auto;
  border-radius: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-title {
  font-weight: 700;
  font-size: 18px;
}

.project-subtitle {
  font-size: 12px;
  color: var(--muted);
}

/* Навигация */
nav {
  flex: 1;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width var(--transition);
  margin: 4px auto 0;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ================== */
/* 🔘 Кнопки */
.btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn:hover {
  opacity: 0.9;
}

.ghost {
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  color: white;
  transition: var(--transition);
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================== */
/* 🖼 Hero */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 55vh;
  overflow: hidden;
  margin-bottom: 10px; /* уменьшен промежуток к новостям */
}
.hero-sections {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 25vh;
  overflow: hidden;
  margin-bottom: 10px; /* уменьшен промежуток к новостям */
}
.hero-boxs {
  position: relative;
  z-index: 1;
  background: rgba(15, 17, 19, 0.85);
  padding: 35px 30px;
  border-radius: 150px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease forwards;
}

.hero-boxs h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(214, 57, 57, 0.8); /* красная тень */
}
.hero-boxs h1 {
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #007bff, #ff003c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-boxs .muted {
  color: #ccc;
  font-size: 0.95rem;
}

.hero-box {
  position: relative;
  z-index: 1;
  background: rgba(15, 17, 19, 0.85);
  padding: 35px 30px;
  border-radius: 150px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease forwards;
}

.hero-box h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(214, 57, 57, 0.8); /* красная тень */
}

.hero-box .lead {
  color: #cfcfcf;
  margin-bottom: 10px;
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-buttons .btn,
.hero-buttons .ghost {
  min-width: 180px;
  text-align: center;
  font-size: 15px;
}

/* ================== */
/* 📝 Формы */
input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #1a1a1a;
  color: inherit;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border: 1px solid var(--accent);
  outline: none;
  box-shadow: 0 0 8px rgba(214, 57, 57, 0.5);
}

/* ================== */
/* ⚓ Footer */
footer {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-top: 0 !important; /* если есть отступ сверху */
  padding-top: 30px !important; /* можно оставить немного пространства */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-right {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  filter: grayscale(100%) brightness(80%);
  transition: filter 0.2s, transform 0.2s;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon:hover {
  filter: grayscale(0%) brightness(100%);
  transform: scale(1.1);
}

/* ================== */
/* 📱 Адаптив */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 920px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-buttons {
    display: none;
  }

  .container.nav {
    justify-content: space-between;
  }
}
/* ================== */
/* ❓ Страница помощи */
.help-header {
  background: linear-gradient(90deg, #0a0f1e, #111827);
  color: #fff;
  padding: 30px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.subtitle {
  opacity: 0.85;
  font-size: 0.95rem;
}

.badge {
  background: #101828;
  color: #0b5fff;
  border: 1px solid #1e293b;
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: #0d1117;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 14px 16px;
  transition: 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(255,0,0,0.2);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #60a5fa;
}

details[open] summary {
  color: #f87171;
}

.meta {
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 6px 0;
}

.link {
  color: #60a5fa;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.topbar input, .topbar select {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.contact-card {
  margin-top: 30px;
}
/* Фиксированный header */
.help-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.help-header-fixed h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.subtitle {
  font-size: 0.9rem;
  opacity: 0.75;
  color: #ccc;
}

/* Чтобы контент не залезал под фиксированный header */
.hero-section.small-hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

/* Секция FAQ */
.faq-container {
  padding-bottom: 40px;
}

.card-section {
  background: rgba(18, 18, 24, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: 0.2s ease;
}

.card-section:hover {
  transform: translateY(-2px);
  border-color: rgba(0,100,255,0.3);
}

.card-section h2 {
  font-size: 1.1rem;
  color: #6ab0ff;
  margin-bottom: 12px;
}

.faq-list.compact li,
.faq-item.compact p {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin: 6px 0;
}

.faq-item ul {
  margin: 6px 0 0 10px;
  padding-left: 10px;
}

.faq-item a {
  color: #60a5fa;
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}
.help-section {
  padding-top: 100px;
  min-height: 100vh;
}

.hero-sections {
  text-align: center;
  margin-bottom: 2rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1rem;
}

.search, .category {
  padding: 0.5rem 0.75rem;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  outline: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.search:focus, .category:focus {
  border-color: #ff003c;
  box-shadow: 0 0 5px #ff003c66;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  border-radius: 14px;
  padding: 1rem;
  transition: 0.25s;
  backdrop-filter: blur(6px);
}

.card:hover {
  border-color: #ff003c;
  box-shadow: 0 0 8px #ff003c33;
}

details summary {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

details summary::-webkit-details-marker {
  display: none;
}

.meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, #007bff, #ff003c);
  color: #fff;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

.contact-card {
  margin-top: 1.5rem;
  text-align: center;
}

code {
  background: #000;
  color: #00bfff;
  padding: 1px 5px;
  border-radius: 4px;
}
/* ========== START PAGE STYLES ========== */
.start-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: #ff003c;
  box-shadow: 0 0 12px #ff003c40;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(90deg, #007bff, #ff003c);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.85rem;
}

.intro-card {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

code {
  background: #0b0b0b;
  padding: 2px 6px;
  border-radius: 5px;
  color: #00bfff;
  font-size: 0.85rem;
}
.help-center {
  padding: 40px 0;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.help-card {
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.help-card:hover {
  transform: translateY(-6px);
  border-color: #e03b3b;
  box-shadow: 0 0 25px rgba(224, 59, 59, 0.4);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.help-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.help-card p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.4;
}
.contact-footer {
  text-align: center;
  margin: 60px 0;
}

.contact-box {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px 25px;
  display: inline-block;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.contact-box h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}

.contact-box p {
  color: #aaa;
  margin-bottom: 20px;
}

.btn-main {
  background: linear-gradient(90deg, #e03b3b, #3a86ff);
  color: #fff;
  padding: 10px 25px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-main:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}
.help-center {
  margin-top: 40px;
  margin-bottom: 60px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.help-card {
  background: rgba(25, 25, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #fff;
  transition: 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.help-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 59, 59, 0.4);
  box-shadow: 0 0 20px rgba(224, 59, 59, 0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #e03b3b;
}

.btn-main {
  display: inline-block;
  background: linear-gradient(90deg, #0b5fff, #e03b3b);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-main:hover {
  filter: brightness(1.15);
}

.contact-footer {
  padding: 50px 0;
  text-align: center;
  margin-top: -40px !important; /* уменьшает отступ сверху блока поддержки */
  padding-top: 70px !important; /* чуть воздуха внутри */
  margin-bottom: 0 !important; /* убираем отступ снизу */
  padding-bottom: 0 !important; /* убираем лишний паддинг снизу */
}

.contact-box {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0b5fff;
  box-shadow: 0 0 8px rgba(11, 95, 255, 0.3);
}
.hero-section {
  margin-bottom: 0 !important;
  padding-bottom: 90px !important; /* чуть воздуха оставим, можешь поставить 0 */
}

.container.help-center {
  margin-top: -100px !important;
  padding-top: 0 !important;
}

.help-grid {
  margin-bottom: -50px !important; /* убирает лишний нижний отступ сетки карточек */
}
