:root {
  /* Палитра: Индиго, Сапфир, Неоново-голубой и Фиолетовый */
  --bg-main: #141b2d;
  --bg-gradient-body: radial-gradient(circle at 50% 0%, #2a3b68 0%, #172038 50%, #101524 100%);
  --bg-card: rgba(26, 35, 58, 0.75);
  --bg-card-hover: rgba(35, 48, 80, 0.85);

  /* Градиенты для кнопок и акцентов */
  --btn-blue-primary: linear-gradient(135deg, #00d2ff 0%, #0066ff 50%, #6c00ff 100%);
  --btn-blue-hover: linear-gradient(135deg, #38e1ff 0%, #1a75ff 50%, #8324ff 100%);
  --glow-blue: 0 0 25px rgba(0, 150, 255, 0.5);

  /* Неоновые акценты */
  --accent-cyan: #00d2ff;
  --accent-purple: #9d4edd;
  --border-neon: rgba(0, 210, 255, 0.25);
  --border-glow: 0 0 15px rgba(0, 210, 255, 0.15);

  /* Текст */
  --text-primary: #ffffff;
  --text-secondary: #c5d1ec;
  --text-muted: #8fa0c7;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-main);
  background-image: var(--bg-gradient-body);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
header.header,
.header--1 {
  height: 80px;
  background: rgba(16, 21, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  margin-bottom: 0;
}

.header-inner--1 {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-inner__logo--1 img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 210, 255, 0.3));
}

.header-inner__buttons--1 {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-reg--1 {
  background: var(--btn-blue-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--glow-blue);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reg--1:hover {
  background: var(--btn-blue-hover);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.7);
  transform: translateY(-2px);
}

.btn-log--1 {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 11px 26px;
  border-radius: 50px;
  border: 1px solid var(--border-neon);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-log--1:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
}

/* ========================================================
   MAIN CONTENT WRAPPER
   ======================================================== */
.components {
  background: transparent;
  padding-top: 100px;
  min-height: 100vh;
}

.content-block {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-neon);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

/* ========================================================
   TYPOGRAPHY
   ======================================================== */
.general-h1 {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 25px;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 60%, #9d4edd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(0, 210, 255, 0.25));
}

.general-h2 {
  font-size: 25px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
  margin: 45px 0 20px;
  padding-bottom: 12px;
  position: relative;
}

.general-h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
}

.general-h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 30px 0 16px;
}

.general-p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.general-p b, strong {
  color: #ffffff;
  font-weight: 600;
}

.content-block a {
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(0, 210, 255, 0.4);
}

.content-block a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* ========================================================
   HERO / BANNER ACTION BUTTON
   ======================================================== */
.button-block {
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.button-block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 70px;
  background: radial-gradient(circle, rgba(0, 150, 255, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.button-block-btn {
  position: relative;
  z-index: 1;
  background: var(--btn-blue-primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 18px 46px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--glow-blue), 0 10px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button-block-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(60deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 80%);
  transform: rotate(25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -70%; }
  30%, 100% { left: 140%; }
}

.button-block-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--btn-blue-hover);
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.7);
}

/* ========================================================
   TABLES
   ======================================================== */
.general-table-wrapper {
  margin: 35px 0;
  border-radius: 18px;
  overflow-x: auto;
  background: rgba(18, 24, 40, 0.8);
  border: 1px solid var(--border-neon);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.general-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.general-tr:first-child,
.general-thead .general-tr {
  background: linear-gradient(135deg, #1f2b49 0%, #172038 100%);
}

.general-tr:first-child .general-td,
.general-th {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-cyan);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 16px 20px;
  border-bottom: 2px solid rgba(0, 210, 255, 0.4);
}

.general-tr {
  background: transparent;
  transition: background 0.2s ease;
}

.general-tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.general-tr:not(:first-child):hover {
  background: rgba(0, 210, 255, 0.08);
}

.general-td {
  padding: 15px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-left: none;
  border-right: none;
}

.general-td:first-child {
  font-weight: 600;
  color: #ffffff;
}

/* ========================================================
   LISTS (UL & OL)
   ======================================================== */
.general-ul,
.general-ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0;
}

.general-ul-li,
.general-ol-li {
  position: relative;
  padding: 14px 20px 14px 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 210, 255, 0.12);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.general-ul-li:hover,
.general-ol-li:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.35);
  transform: translateX(4px);
}

.general-ul-li::before {
  content: '◆';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: transparent;
  color: var(--accent-cyan);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.general-ol {
  counter-reset: blue-counter;
}

.general-ol-li {
  counter-increment: blue-counter;
}

.general-ol-li::before {
  content: counter(blue-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--btn-blue-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

/* ========================================================
   TABLE OF CONTENTS (TOC)
   ======================================================== */
.toc-wrapper {
  margin: 35px auto;
  border-radius: 18px;
  background: rgba(18, 25, 42, 0.75);
  border: 1px solid var(--border-neon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
}

.toc-toggle {
  padding: 18px 24px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.12) 0%, transparent 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.toc-toggle:hover {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.2) 0%, transparent 100%);
}

.toc-icon {
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
  filter: invert(65%) sepia(85%) saturate(3000%) hue-rotate(160deg) brightness(105%) contrast(105%);
}

.toc-toggle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 6px;
  flex-shrink: 0;
}

.toc-wrapper.is-open .toc-toggle::after,
.toc-toggle.active::after {
  transform: rotate(-135deg);
}

.toc-content {
  display: none;
  padding: 10px 24px 26px;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
}

.toc-content.is-open,
.toc-wrapper.is-open .toc-content,
.toc-content.open {
  display: block;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 20px;
  padding: 10px 0 0 0;
  margin: 0;
}

.toc-list li {
  list-style-type: none;
}

.toc-list a.table_link {
  color: var(--text-muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all 0.2s ease;
}

.toc-list a.table_link::before {
  content: '→';
  color: var(--accent-cyan);
}

.toc-list a.table_link:hover {
  color: #ffffff;
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* ========================================================
   FAQ (АККОРДЕОН)
   ======================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 35px 0;
}

.faq-item {
  position: relative;
  background: rgba(22, 30, 50, 0.85);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 255, 0.2);
}

.faq-item input.toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  margin: 0;
  display: block;
}

.components .faq-question {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding-right: 45px;
  pointer-events: none;
}

.faq-item .icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item .icon::before,
.faq-item .icon::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item .icon::before {
  width: 16px;
  height: 2px;
  top: 8px;
  left: 1px;
}

.faq-item .icon::after {
  width: 2px;
  height: 16px;
  top: 1px;
  left: 8px;
}

.components .faq-answer {
  max-height: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding-top 0.35s ease;
}

.faq-item input.toggle:checked ~ .icon::before {
  transform: rotate(45deg);
}

.faq-item input.toggle:checked ~ .icon::after {
  transform: rotate(45deg);
}

.faq-item input.toggle:checked ~ .faq-answer {
  max-height: 500px;
  height: auto;
  opacity: 1;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
  pointer-events: auto;
}

/* ========================================================
   SCROLL TO TOP BUTTON (ФИКС ЦЕНТРИРОВАНИЯ СТРЕЛКИ)
   ======================================================== */
.scrollToTop {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-blue-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--glow-blue);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.scrollToTop svg {
  display: block;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  fill: #ffffff;
  margin: auto;
  flex-shrink: 0;
  pointer-events: none;
}

.scrollToTop svg path {
  fill: #ffffff;
}

.scrollToTop:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer--4 {
  background: #0d121f;
  border-top: 1px solid var(--border-neon);
  padding: 30px 0;
  margin-top: 50px;
  text-align: center;
}

.components .copy__text--4 {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================================
   MOBILE STICKY BOTTOM BAR
   ======================================================== */
@media (max-width: 900px) {
  body {
    padding-bottom: 75px;
  }

  .content-block {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .general-h1 {
    font-size: 26px;
  }

  .general-h2 {
    font-size: 20px;
  }

  .button-block-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
  }

  .header-inner__buttons--1 {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(14, 20, 36, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-neon);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
    padding: 10px 14px;
    margin: 0;
    gap: 10px;
    justify-content: center;
  }

  .header-inner__buttons--1 .btn-reg--1,
  .header-inner__buttons--1 .btn-log--1 {
    flex: 1 1 50%;
    max-width: none;
    text-align: center;
    padding: 13px 8px;
    font-size: 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #fix-button.footer-block-btn {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(14, 20, 36, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-neon);
    padding: 10px 14px;
  }

  .buttons--2 {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .fix-btn-reg--2,
  .fix-btn-log--2 {
    flex: 1 1 50%;
    text-align: center;
    padding: 13px 8px;
    border-radius: 10px;
    font-weight: 700;
  }

  .fix-btn-reg--2 {
    background: var(--btn-blue-primary);
    color: #fff;
    border: none;
    box-shadow: var(--glow-blue);
  }

  .fix-btn-log--2 {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--border-neon);
  }

  .scrollToTop {
    bottom: 85px;
  }
}