/* ==========================================================================
   Design Tokens & CSS Variables (Стили с foxchasefarm.org)
   ========================================================================== */
:root {
  --bg-dark-base: #0b0e14;
  --bg-dark-card: rgba(18, 24, 38, 0.85);
  --bg-glass-panel: rgba(22, 30, 46, 0.65);
  
  --color-primary-blue: #0075ff;
  --color-primary-glow: rgba(0, 117, 255, 0.4);
  --color-accent-gold: #ffb800;
  --color-neon-cyan: #00f0ff;
  --color-neon-green: #00ff87;
  
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --text-dim: #5c6b7e;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 117, 255, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 50px;
  
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-family-base: Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Reset & Typography */
*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 50% 0%, #151d2a 0%, #0b0e14 70%) !important;
  background-color: var(--bg-dark-base) !important;
  color: var(--text-main) !important;
  font-family: var(--font-family-base) !important;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

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

p, h1, h2, h3, h4, h5, h6, figure, figcaption, blockquote, dl, dd {
  margin: 0;
}

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

button {
  border: none;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-family: inherit;
}

button:hover {
  opacity: 0.85;
}

input, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

figure {
  margin-bottom: 20px;
  text-align: center;
}

figcaption {
  color: var(--text-muted);
}

.general-image {
  display: block;
  border-radius: var(--radius-md);
  max-height: 400px;
  max-width: 800px;
  width: auto;
  height: auto;
  margin: 0 auto 10px auto;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Content & Components Wrapper */
.content {
  padding-top: 100px;
  max-width: 1250px;
  margin: 0 auto;
}

.content-block {
  padding: 0 16px;
  max-width: 1250px;
  margin: 0 auto;
}

.components {
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: var(--font-family-base);
}

.components p,
.components span,
.components li,
.components a {
  font-size: 16px;
  line-height: 1.6;
}

/* Header & Navigation */
header.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 14, 20, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.header--1, .header--4 {
  height: 80px;
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

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

.header-inner__logo--1 img {
  width: 109px;
  height: auto;
}

.header-inner__menu--1 {
  color: var(--text-main);
  margin-left: auto;
  margin-right: 32px;
  display: flex;
  gap: 20px;
}

.header-inner__menu--1 a:hover {
  color: var(--color-neon-cyan);
}

.header-inner__buttons--1 {
  display: flex;
  gap: 12px;
}

/* Header Buttons */
.btn-reg--1 {
  color: #fff;
  background: linear-gradient(135deg, #0075ff 0%, #0052cc 100%);
  box-shadow: 0 4px 14px var(--color-primary-glow);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 700;
  font-size: 15px;
}

.btn-log--1 {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 700;
  font-size: 15px;
}

/* ==========================================================================
   СОЗДАНИЕ ФОНОВЫХ ПОДЛОЖЕК (Карточки блоков)
   ========================================================================== */

/* Если на странице есть реальные секции */
section,
.cyber-section {
  background: var(--bg-dark-card) !important;
  border: 1px solid var(--border-subtle) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg) !important;
  padding: 28px !important;
  margin-bottom: 28px !important;
  box-shadow: var(--shadow-card) !important;
}

/* Стилизация заголовков и визуальных блоков */
.general-h1 {
  background: var(--bg-dark-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  margin-top: 15px !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  text-align: left;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: var(--shadow-card) !important;
}

.general-h2 {
  background: var(--bg-dark-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px 24px 20px 40px !important;
  margin-top: 36px !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  position: relative;
  display: block;
  box-shadow: var(--shadow-card) !important;
}

/* Вертикальный голубой индикатор слева от H2 */
.general-h2::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary-blue), var(--color-neon-cyan));
  border-radius: 4px;
  box-shadow: 0 0 8px var(--color-primary-blue);
}

.general-h3, .general-h4, .general-h5, .general-h6 {
  background: transparent;
  color: #ffffff;
  padding: 0;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.general-h3 { font-size: 20px; }
.general-h4 { font-size: 18px; }
.general-h5 { font-size: 16px; }

.general-p {
  color: #c5d1e0;
  margin-bottom: 20px;
}

.general-link {
  color: var(--color-neon-cyan);
}

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

/* Call To Action Buttons */
.button-block {
  text-align: center;
  margin: 24px 0;
}

.button-block-btn, .btn-content {
  color: #fff;
  background: linear-gradient(135deg, #0075ff 0%, #00d2ff 100%);
  box-shadow: 0 0 25px rgba(0, 117, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Tables */
.general-table-wrapper {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow-x: auto;
  background: rgba(15, 20, 30, 0.6);
}

.general-table {
  width: 100%;
  border-collapse: collapse;
}

.general-tr {
  background: transparent;
}

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

.general-td, .general-th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.general-td:first-child, .general-th:first-child {
  color: var(--text-main);
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Lists Styling */
.general-ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding-left: 0;
  margin-bottom: 20px;
}

.general-ul-li, .general-ul li {
  position: relative;
  padding-left: 28px;
  color: #c5d1e0;
}

.general-ul-li::before, .general-ul li::before {
  content: "✓";
  background: transparent;
  color: var(--color-neon-green);
  font-weight: bold;
  font-size: 16px;
  width: auto;
  height: auto;
  border-radius: 0;
  left: 0;
  top: 0;
  position: absolute;
}

.general-ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  counter-reset: counter-ol;
  margin-bottom: 20px;
}

.general-ol-li, .general-ol li {
  counter-increment: counter-ol;
  padding: 14px 18px 14px 60px;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.general-ol-li::before, .general-ol li::before {
  content: counter(counter-ol, decimal-leading-zero);
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-family: monospace;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* FAQ Accordion */
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 117, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.faq-item input[type="checkbox"],
.toggle {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0 !important;
}

.components .faq-question {
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  position: relative;
  padding: 18px 50px 18px 20px;
  margin: 0;
  pointer-events: none;
}

.components .faq-answer {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  width: 100%;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  position: relative;
  opacity: 0;
  z-index: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.icon {
  height: 24px;
  width: 24px;
  position: absolute;
  right: 20px;
  top: 18px;
  pointer-events: none;
}

.icon:before, 
.icon:after {
  content: "";
  background: var(--color-primary-blue);
  height: 2px;
  width: 14px;
  right: 5px;
  top: 11px;
  position: absolute;
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.icon:after {
  transform: rotate(90deg);
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer,
.toggle:checked ~ .faq-answer {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 20px;
}

.faq-item input[type="checkbox"]:checked ~ .icon:before,
.toggle:checked ~ .icon:before {
  background: var(--color-accent-gold);
  transform: rotate(180deg);
}

.faq-item input[type="checkbox"]:checked ~ .icon:after,
.toggle:checked ~ .icon:after {
  background: var(--color-accent-gold);
  transform: rotate(180deg);
  opacity: 0;
}

/* Scroll To Top */
.scrollToTop, #scrollToTop.scrollToTop {
  background: linear-gradient(135deg, #0075ff 0%, #00d2ff 100%);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 80px;
  right: 20px;
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(0, 117, 255, 0.5);
  z-index: 90;
}

.scrollToTop svg {
  fill: #fff;
  width: 40%;
  height: 40%;
}

/* Footer Styling */
footer.footer, .footer--3 {
  background: #07090e;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.footer--3 p {
  color: var(--text-dim);
}

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

.components .footerLinks a {
  color: var(--text-muted);
  margin: 0 10px;
}

.components .footerLinks a:hover {
  color: #fff;
}

/* Mobile Sticky Action Bar */
#fix-button.footer-block-btn, .fixedButtons {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 150;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fix-btn-reg--1, .fixedButtons button:last-child {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0075ff 0%, #0052cc 100%);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

.fix-btn-log--1, .fixedButtons button:first-child {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

/* Mobile Adaptive Rules */
@media (max-width: 1250px) {
  .header-inner__menu--1,
  .header-inner__buttons--1 {
    display: none;
  }
  
  #fix-button.footer-block-btn,
  .fixedButtons {
    display: flex;
  }
  
  .content {
    padding-top: 80px;
  }
  
  footer.footer, .footer--3 {
    padding-bottom: 90px;
  }
}

@media (max-width: 768px) {
  section, .cyber-section {
    padding: 20px 16px;
  }
  
  .general-h1 {
    font-size: 22px;
  }
  
  .general-h2 {
    font-size: 18px;
    padding-left: 32px !important;
  }
  
  .general-ul {
    grid-template-columns: 1fr;
  }
}

/* Error Page Styling */
.errorPage {
  height: 100vh;
  background: var(--bg-dark-base);
  color: #fff;
}

.errorPageInner span {
  font-size: 100px;
  line-height: 100px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.errorPageInner .errorLink a {
  background: linear-gradient(135deg, #0075ff 0%, #00d2ff 100%);
  box-shadow: 0 0 25px rgba(0, 117, 255, 0.4);
  font-size: 16px;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
}