/* ==========================================================================
   Slate Blue & Cool Grey Theme Variables (Pure Original HTML Integration)
   ========================================================================== */
:root {
  --bg-main: radial-gradient(circle at 50% -10%, #152238 0%, #0d1527 50%, #060a12 100%);
  --bg-card: rgba(22, 31, 49, 0.85);
  --bg-card-hover: rgba(30, 43, 67, 0.9);
  --bg-surface: #0a0f1d;
  --bg-surface-elevated: #162032;
  
  --primary-blue: #0088ff;
  --primary-glow: rgba(0, 136, 255, 0.5);
  --accent-cyan: #00f0ff;
  --accent-yellow: #ffe600;
  --cta-red: #ff2400;
  
  --text-primary: #ffffff;
  --text-secondary: #9cb1c9;
  --text-muted: #62778e;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-blue: rgba(0, 136, 255, 0.4);
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --glass-blur: blur(16px);
  --glass-shadow: 0 12px 35px 0 rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

/* Отступ под зафиксированный хедер при клике по якорям */
section[id] {
  scroll-margin-top: 90px;
}

body {
  background: var(--bg-main) #060a12;
  background-attachment: fixed;
  font-family: var(--font-main);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Центрирование и отступы изображений */
img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}

figure {
  margin: 30px auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.general-image {
  display: block;
  border-radius: 16px;
  width: auto;
  max-width: 90%;
  height: auto;
  margin: 25px auto;
  border: 1px solid var(--border-blue);
  box-shadow: 0 10px 30px rgba(0, 136, 255, 0.2);
}

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

a {
  text-decoration: none;
  color: var(--accent-cyan);
  transition: all 0.25s ease;
}

/* ==========================================================================
   Fixed Header & Brand Styling
   ========================================================================== */
header.header.header--4 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  padding: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

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

/* ИСПРАВЛЕНИЕ: Гарантируем прозрачный фон у логотипа на всех устройствах.
   !important заменён повышением специфичности (селекторы задублированы). */
.logo-container.logo-container,
.logo-image-container.logo-image-container,
.logo-uploader.logo-uploader,
.logoBuild.logoBuild a,
.mobileMenuTop.mobileMenuTop .logo.logo {
  background: transparent;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.logo-container button,
.logoBuild button[name="logo"] {
  background: transparent;
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.logoBuild.logoBuild .logo-image,
.mobileMenuTop.mobileMenuTop .logo img {
  max-height: 38px;
  width: auto;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.5));
}

.logoBuild .buttons {
  display: flex;
  gap: 12px;
}

.btn-basic {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-basic.btn-reg {
  background: linear-gradient(135deg, #0066ff 0%, #00a2ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 18px rgba(0, 102, 255, 0.5);
}

.btn-basic.btn-reg:hover {
  box-shadow: 0 0 30px rgba(0, 162, 255, 0.8);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-basic.btn-log {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
}

.btn-basic.btn-log:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  opacity: 1;
}

.logoBuild .burger {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Баннеры и Пульсирующие Кнопки
   ========================================================================== */
.content {
  max-width: 1250px;
  margin: 0 auto;
  padding-top: 95px;
  padding-left: 20px;
  padding-right: 20px;
}

.banner {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.banner > div {
  flex-grow: 1;
  width: 50%;
  height: 210px;
  padding: 30px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-blue);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.banner .left {
  background: linear-gradient(90deg, rgba(15, 25, 45, 0.95) 0%, rgba(15, 25, 45, 0.3) 100%), url(/banner-1.webp) no-repeat right center / contain;
  background-color: #0f192d;
}

.banner .right {
  background: linear-gradient(90deg, rgba(12, 20, 38, 0.95) 0%, rgba(12, 20, 38, 0.3) 100%), url(/banner-right.png) no-repeat right center / contain;
  background-color: #0c1426;
}

.banner .text p {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Пульсация жёлтой кнопки */
@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 230, 0, 0.8), 0 0 15px rgba(255, 230, 0, 0.5);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(255, 230, 0, 0), 0 0 25px rgba(255, 230, 0, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 230, 0, 0), 0 0 15px rgba(255, 230, 0, 0.5);
  }
}

.banner.banner .text.text button {
  background: var(--accent-yellow);
  color: #000000;
  font-weight: 900;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  animation: pulse-glow 1.8s infinite ease-in-out;
}

.banner.banner .text.text button:hover {
  background: #ffffff;
  opacity: 1;
}

/* ==========================================================================
   Horizontal Scroll Navigation (TOC Wrapper)
   ========================================================================== */
.toc.wrapper {
  margin: 0 auto 35px auto;
  border: 1px solid var(--border-blue);
  padding: 22px;
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toc p.big {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.toc ul {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.toc ul::-webkit-scrollbar {
  height: 6px;
}
.toc ul::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.toc ul::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 10px;
}

.toc li {
  list-style: none;
  flex-shrink: 0;
}

.toc li a {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.toc li a:hover {
  background: var(--primary-blue);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.6);
  color: #fff;
}

/* ==========================================================================
   Серо-синие Блоки Контента
   ========================================================================== */
section {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px;
  width: 100%;
  margin-bottom: 35px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

section:hover {
  border-color: var(--border-blue);
  box-shadow: 0 15px 40px rgba(0, 136, 255, 0.2);
}

.general-h1 {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #a2c2e8 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.general-h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  padding-left: 16px;
  border-left: 5px solid var(--primary-blue);
  margin-bottom: 24px;
  text-align: left;
}

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

.button-block {
  text-align: center;
  margin: 30px 0;
}

.btn-content {
  color: #fff;
  background: linear-gradient(135deg, var(--cta-red) 0%, #ff5500 100%);
  border-radius: 12px;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 800;
  line-height: 26px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(255, 36, 0, 0.5);
}

.btn-content:hover {
  background: linear-gradient(135deg, #ff4020 0%, #ff7700 100%);
  box-shadow: 0 0 35px rgba(255, 36, 0, 0.8);
  transform: translateY(-2px);
  opacity: 1;
}

/* Списки */
.general-ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding-left: 0;
  margin-bottom: 24px;
}

.general-ul li {
  padding: 18px;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.general-ul li::before {
  content: "✦";
  background: none;
  color: var(--accent-cyan);
  width: auto;
  height: auto;
  position: static;
  margin-right: 12px;
  font-size: 18px;
  flex-shrink: 0;
}

.general-ul li:hover {
  background: rgba(0, 136, 255, 0.15);
  border-color: var(--border-blue);
  transform: translateY(-2px);
}

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

.general-ol li {
  counter-increment: counter-ol;
  padding: 18px 24px 18px 65px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-size: 15px;
  color: var(--text-primary);
}

.general-ol li::before {
  background: var(--primary-blue);
  color: #fff;
  width: 32px;
  height: 32px;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  content: counter(counter-ol);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.5);
}

/* Таблицы */
.general-table-wrapper {
  overflow-x: auto;
  margin-bottom: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 15, 29, 0.95);
}

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

.general-tr {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.general-tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.general-td {
  text-align: left;
  padding: 16px 20px;
  border: none;
  box-shadow: none;
  color: var(--text-secondary);
  font-size: 15px;
}

.general-td:first-child {
  font-weight: 700;
  color: var(--text-primary);
  width: 40%;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Починенный FAQ
   ========================================================================== */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  position: relative;
  min-height: auto;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.components .faq-question {
  color: #fff;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  position: relative;
  top: 0;
  padding: 20px 60px 20px 24px;
  margin: 0;
  pointer-events: none;
}

.components .faq-answer {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  padding: 0 24px 0 24px;
  height: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item input.toggle:checked ~ .faq-answer {
  height: auto;
  opacity: 1;
  visibility: visible;
  padding: 0 24px 22px 24px;
}

.faq-item:has(input.toggle:checked) {
  border-color: var(--border-blue);
  background: rgba(0, 136, 255, 0.1);
}

.icon {
  height: 24px;
  width: 24px;
  right: 24px;
  top: 20px;
  background: transparent;
  border-radius: 0;
  pointer-events: none;
}

.icon:before, .icon:after {
  content: "";
  position: absolute;
  background: var(--accent-cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon:before {
  height: 2px;
  right: 0;
  top: 11px;
  width: 20px;
}

.icon:after {
  height: 20px;
  right: 9px;
  top: 2px;
  width: 2px;
}

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

/* ==========================================================================
   Премиальное оформление Отзывов
   ========================================================================== */
section:has(#reviews) p.general-p,
#reviews ~ p.general-p {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--primary-blue);
  color: #e2e8f0;
}

/* ==========================================================================
   Mobile Side Drawer Menu
   ========================================================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1050;
}

.mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1100;
  background: linear-gradient(180deg, #101a2d 0%, #080d19 100%);
  border-left: 1px solid var(--border-blue);
  width: 100%;
  max-width: 320px;
  min-height: 100vh;
  padding: 24px;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobileMenu .mobileMenuTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobileMenu .mobileMenuLinks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobileMenu .mobileMenuLinks a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.mobileMenu .mobileMenuLinks a:hover {
  background: var(--primary-blue);
  border-color: rgba(255, 255, 255, 0.5);
  padding-left: 24px;
}

/* ==========================================================================
   Футер
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 60px;
}

.footer-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 40px;
}

.brand-logo {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  display: inline-block;
  letter-spacing: 1px;
}

.footer-container .brand-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 300px;
  font-size: 13px;
}

.footer-container .footer-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-container .apps-title {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 14px;
  text-transform: uppercase;
}

.apps-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 220px;
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-align: center;
  transition: all 0.25s ease;
}

.app-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

/* Оставляем только "Скачать..." */
.app-btn-text .btn-sub {
  display: none;
}

.app-btn-text .btn-main {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.support-box {
  background-color: rgba(22, 32, 50, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
}

.footer-container .support-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.footer-container .support-email {
  display: inline-flex;
  align-items: center;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 15px;
}

.footer-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 35px 0;
}

.footer-legal {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.copyright-highlight {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Mobile Ergonomics, Sticky Action Bar & Scroll Top
   ========================================================================== */
#fix-button.footer-block-btn,
.fixedButtons {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  align-items: center;
  padding: 12px 16px;
  justify-content: center;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-blue);
  gap: 10px;
}

.fixedButtons button {
  flex-grow: 1;
  width: 49%;
  padding: 14px 0;
  font-size: 14px;
}

/* ИСПРАВЛЕНИЕ: Кнопка наверх гарантированно кликабельна и видима на мобильных устройствах.
   !important заменён на #id-селектор + задублированный класс (выше специфичность). */
#scrollToTop.scrollToTop,
.scrollToTop.scrollToTop {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blue);
  box-shadow: 0 4px 20px rgba(0, 136, 255, 0.7);
  opacity: 1;
  visibility: visible;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.scrollToTop.scrollToTop:hover {
  transform: translateY(-4px);
  background: #00a2ff;
}

.scrollToTop.scrollToTop svg {
  fill: #ffffff;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* Media Queries */
@media (max-width: 992px) {
  .banner {
    flex-wrap: wrap;
  }
  .banner > div {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .logoBuild .buttons {
    display: none;
  }
  #fix-button.footer-block-btn,
  .fixedButtons {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding-bottom: 90px;
  }
  /* Поднимаем кнопку скролла выше липкой нижней плашки кнопок */
  #scrollToTop.scrollToTop,
  .scrollToTop.scrollToTop {
    bottom: 85px;
    right: 16px;
  }
  section {
    padding: 22px 18px;
  }
  .general-h1 {
    font-size: 24px;
  }
  .general-h2 {
    font-size: 19px;
  }
  .general-image {
    max-width: 100%;
  }
}