/* =====================================
   ROOT VARIABLES — цветовая схема и базовые настройки
   ===================================== */
:root {
  /* Основные цвета */
  --bg-dark: #020202;
  --bg-light: #0d0d0d;
  --bg-hover: #111;
  --accent: #00ffc6;
  --accent-hover: #00e0a8;
  --border: #1a1a1a;

  /* Текст */
  --text-main: #f2f2f2;
  --text-muted: #a8a8a8;

  /* Типографика */
  --font-main: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
  --font-alt: 'Space Grotesk', sans-serif;

  /* Прочее */
  --transition: 0.25s ease;
  --radius: 0; /* строго квадратно */
  --shadow: 0 0 24px rgba(0, 255, 198, 0.08);
}

/* =====================================
   GLOBAL RESET + BASE
   ===================================== */
*, *::before, *::after {
  box-sizing: border-box;
}
img, video, iframe {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 70px;
}
@media (max-width: 600px) {
  body { padding-top: 60px; }
}

/* ссылки */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

/* заголовки */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-alt);
  color: #fff;
  margin: 1.2em 0 0.6em;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2rem;
  text-transform: uppercase;
}
h2 {
  font-size: 1.4rem;
  color: var(--accent);
}
h3 { font-size: 1.1rem; }

/* параграфы и списки */
p, li {
  font-size: 16px;
  color: var(--text-main);
}
ul {
  list-style: disc;
  padding-left: 22px;
}

/* контейнер */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 24px);
}

/* =====================================
   TABLES — адаптивные, аккуратные, читабельные
   ===================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  border: 1px solid #111;
  background: #050505;
  border-radius: var(--radius);
  overflow: hidden;
}

/* --- шапка --- */
thead {
  background: linear-gradient(90deg, #0a0a0a, #0c0c0c);
}
thead th {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 1px solid #111;
  text-align: left;
  white-space: nowrap;
}

/* --- тело таблицы --- */
tbody tr {
  border-bottom: 1px solid #111;
  transition: background 0.25s ease;
}
tbody tr:hover {
  background: rgba(0,255,198,0.04);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid #0f0f0f;
  vertical-align: middle;
  text-align: left;
  color: var(--text-muted);
}
td strong {
  color: var(--text-main);
}

/* --- чередование строк --- */
tbody tr:nth-child(even) {
  background: #060606;
}

/* --- адаптив на мобильных --- */
@media (max-width: 768px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: 16px;
    border: 1px solid #111;
    border-radius: 6px;
    background: #080808;
    padding: 10px 12px;
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border: none;
    border-bottom: 1px solid #111;
    font-size: 14px;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    margin-right: 12px;
  }
}


/* цитаты */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 10px 16px;
  background: var(--bg-light);
  color: var(--text-muted);
  font-style: italic;
}

/* кнопки */
button, .btn {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}
button:hover, .btn:hover {
  background: var(--accent);
  color: #000;
}

/* адаптив */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  table { font-size: 14px; }
}
@media (max-width: 380px) {
  body { font-size: 15px; line-height: 1.5; }
}

/* =====================================
   MAIN CONTENT — структура статьи
   ===================================== */
.main-content {
  padding: 40px 0 80px;
}
@media (max-width: 600px) {
  .main-content { padding: 30px 0 60px; }
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.article-body h2 {
  margin-top: 80px;
  margin-bottom: 20px;
  position: relative;
}
.article-body h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}
.article-body p {
  margin-bottom: 18px;
}
.article-body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  margin: 24px auto;
  border: 1px solid #111;
  box-shadow: 0 0 24px rgba(0,255,198,0.05);
  border-radius: var(--radius);
  object-fit: cover;
}

/* =====================================
   HEADER — фиксированный, адаптивный, без перекосов
   ===================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #111;
  transition: background 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 68px;
  position: relative;
}

/* --- логотип --- */
.header-logo img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(0, 255, 198, 0.25));
  transition: filter 0.25s ease;
}
.header-logo img:hover {
  filter: drop-shadow(0 0 8px rgba(0, 255, 198, 0.5));
}

/* =====================================
   DESKTOP NAVIGATION
   ===================================== */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* =====================================
   HEADER BUTTONS — вход / регистрация
   ===================================== */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn:hover {
  background: var(--accent);
  color: #000;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

/* =====================================
   BURGER — фиксированный, всегда сверху
   ===================================== */
.burger {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 2001; /* поверх всего */
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.burger:hover {
  border-color: var(--accent);
  background: #0f0f0f;
}

.burger-box {
  position: relative;
  width: 20px;
  height: 20px;
}

.burger-line,
.burger-line::before,
.burger-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
}

.burger-line {
  top: 50%;
  transform: translateY(-50%);
}
.burger-line::before {
  top: -7px;
}
.burger-line::after {
  top: 7px;
}

/* --- состояние “крестик” --- */
.burger[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.burger[aria-expanded="true"] .burger-line {
  background: #000;
  transform: translateY(-50%) rotate(45deg);
}
.burger[aria-expanded="true"] .burger-line::before {
  transform: rotate(-90deg);
  top: 0;
  background: #000;
}
.burger[aria-expanded="true"] .burger-line::after {
  opacity: 0;
}

/* =====================================
   MOBILE MENU — теперь корректно под бургером
   ===================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  height: 100vh;
  background: #000;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  z-index: 2000; /* ниже бургера */
}
.mobile-menu.is-open {
  transform: translateY(0);
}

/* меню и кнопки */
.mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 40px;
}
.mobile-link {
  display: block;
  text-align: left;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 10px;
  border-bottom: 1px solid #111;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}
.mobile-link:hover {
  color: var(--accent);
  background: #111;
}

.mobile-actions {
  padding: 20px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #111;
}

/* =====================================
   RESPONSIVE FIXES
   ===================================== */
@media (min-width: 1080px) {
  .burger,
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 1079px) {
  .nav-desktop {
    display: none;
  }
  .header-inner {
    padding-inline: 16px;
  }
  .header-logo img {
    height: 28px;
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .burger {
    width: 34px;
    height: 34px;
    top: 14px;
    right: 14px;
  }
  .burger-box {
    width: 18px;
    height: 18px;
  }
  .header-logo img {
    height: 26px;
  }
  .mobile-link {
    font-size: 14px;
    padding: 12px 8px;
  }
}

/* =====================================
   HERO SECTION — чистый контраст и сбалансированный неон
   ===================================== */
.page-hero {
  position: relative;
  width: 100%;
  padding-block: 100px 80px;
  padding-inline: 24px;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  border-bottom: 1px solid #111;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 255, 198, 0.04);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,198,0.08) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

/* --- заголовок --- */
.page-hero h1 {
  font-family: var(--font-alt);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(0,255,198,0.2);
  position: relative;
  z-index: 2;
  margin: 0 auto 16px;
  max-width: 800px;
}

/* --- описание --- */
.page-hero p {
  max-width: 720px;
  margin: 18px auto 44px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  z-index: 2;
  position: relative;
  text-wrap: balance;
}

/* =====================================
   HERO CTA BUTTON — контраст и мягкость
   ===================================== */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 36px;
  color: #0a0a0a;
  background: linear-gradient(90deg, #00ffc6 0%, #00e0a8 100%);
  border: 1px solid rgba(0,255,198,0.6);
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0,255,198,0.2);
  transition: all 0.25s ease;
  position: relative;
  z-index: 2;
}

.hero-btn:hover {
  background: linear-gradient(90deg, #00ffd4 0%, #00ffb0 100%);
  color: #000; /* читаемый текст на hover */
  box-shadow: 0 0 26px rgba(0,255,198,0.45);
  transform: translateY(-2px);
}

.hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(0,255,198,0.25);
}

/* --- вариант с прозрачной рамкой (например вторичная кнопка) --- */
.hero-btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.hero-btn.outline:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0,255,198,0.3);
}

/* =====================================
   HERO VARIANTS — фоновая версия
   ===================================== */
.page-hero.bg-image {
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.95)),
              url('/assets/images/hero-bg.webp') center/cover no-repeat;
}
.page-hero.bg-gradient {
  background: linear-gradient(135deg, #000 0%, #002823 100%);
}

/* =====================================
   RESPONSIVE HERO — адаптировано
   ===================================== */
@media (max-width: 1024px) {
  .page-hero {
    padding-block: 80px 60px;
    padding-inline: 18px;
  }
  .page-hero h1 {
    font-size: 2rem;
    max-width: 90%;
  }
  .page-hero p {
    font-size: 16px;
    max-width: 90%;
  }
}
@media (max-width: 600px) {
  .page-hero {
    padding-block: 70px 50px;
    padding-inline: 16px;
  }
  .page-hero h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }
  .page-hero p {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero-btn {
    font-size: 13.5px;
    padding: 10px 28px;
    border-radius: 3px;
  }
}
@media (max-width: 400px) {
  .page-hero {
    padding-block: 60px 40px;
  }
  .page-hero h1 {
    font-size: 1.5rem;
  }
  .hero-btn {
    padding: 9px 22px;
    font-size: 13px;
  }
}

/* =====================================
   PROS & CONS — плюсы и минусы
   ===================================== */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 50px 0;
}
.pros, .cons {
  background: var(--bg-light);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pros h3, .cons h3 {
  margin-top: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pros h3 { color: #00ffb6; }
.cons h3 { color: #ff6161; }
.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros li, .cons li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-main);
}
.pros li::before, .cons li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pros li::before {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0,255,198,0.6);
}
.cons li::before {
  background: #ff4040;
  box-shadow: 0 0 6px rgba(255,64,64,0.5);
}

/* =====================================
   TOC (anchors) — навигация в начале статьи
   ===================================== */
#toc {
  border: 1px solid #111;
  background: #060606;
  padding: 20px 24px;
  margin: 40px 0;
  border-left: 3px solid var(--accent);
  box-shadow: 0 0 12px rgba(0,255,198,0.08);
}
#toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#toc li {
  margin-bottom: 8px;
}
#toc a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.25s ease;
}
#toc a:hover {
  color: var(--accent);
}

/* =====================================
   BREADCRUMBS
   ===================================== */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs li::after {
  content: "›";
  color: var(--accent);
  margin: 0 6px;
}
.breadcrumbs li:last-child::after {
  content: none;
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
.breadcrumbs a:hover {
  color: var(--accent-hover);
}

/* =====================================
   FAQ — чисто, структурно, с анимацией
   ===================================== */
.faq-list {
  max-width: 860px;
  margin: 80px auto 60px;
  padding: 0 20px;
}
.faq-list h2 {
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* --- контейнер вопроса --- */
.faq-item {
  background: var(--bg-light);
  border: 1px solid #111;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(0,255,198,0.05);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item:hover {
  border-color: var(--accent);
  background: #0a0a0a;
}

/* --- заголовок вопроса --- */
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s ease;
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-item summary::-webkit-details-marker {
  display: none; /* убираем стандартный треугольник */
}

/* --- иконка + / x --- */
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  margin-left: 12px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-hover);
}

/* --- контент внутри --- */
.faq-content {
  padding: 0 20px 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.faq-item[open] .faq-content {
  max-height: 500px; /* ограничение на случай длинных текстов */
  opacity: 1;
}

/* --- визуальные мелочи --- */
.faq-content p {
  margin: 10px 0;
}
.faq-content a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.25s ease;
}
.faq-content a:hover {
  color: var(--accent-hover);
}

/* --- адаптив --- */
@media (max-width: 600px) {
  .faq-list {
    padding: 0 14px;
    margin: 60px auto 40px;
  }
  .faq-item summary {
    font-size: 14px;
    padding: 14px 16px;
  }
  .faq-item summary::after {
    font-size: 18px;
  }
  .faq-content {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}

/* =====================================
   RESPONSIVE ADJUSTMENTS
   ===================================== */
@media (max-width: 900px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
  .article-body img {
    max-height: 300px;
  }
  #toc {
    margin: 30px 0;
  }
}

/* =====================================
   FOOTER — строгий, контрастный, читабельный
   ===================================== */
.footer {
  background: #050505;
  border-top: 1px solid #111;
  padding: 60px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer h5 {
  font-family: var(--font-alt);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  color: var(--accent);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 8px;
}
.footer-list a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-list a:hover {
  color: var(--accent);
}

.footer p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =====================================
   AUTHOR CARD — личность и доверие
   ===================================== */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  margin: 60px auto;
  max-width: 860px;
  background: #0a0a0a;
  border: 1px solid #111;
  box-shadow: 0 0 16px rgba(0,255,198,0.05);
  border-radius: var(--radius);
}

.author-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.author-info {
  flex: 1;
}
.author-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 6px;
}
.author-bio {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.author-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}
.author-info a:hover {
  color: var(--accent-hover);
}

/* =====================================
   FLOATING CTA — призыв внизу (оптимизировано)
   ===================================== */
.floating-cta {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #00ffc6 0%, #00e0a8 100%);
  color: #000;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 11px 30px;
  border: 1px solid rgba(0,255,198,0.5);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(0,255,198,0.25);
  text-shadow: none;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 999;
  white-space: nowrap;
}

/* --- hover и active состояния --- */
.floating-cta:hover {
  background: linear-gradient(90deg, #00ffd9 0%, #00ffb3 100%);
  color: #000;
  box-shadow: 0 0 28px rgba(0,255,198,0.4);
  transform: translateX(-50%) translateY(-2px);
}

.floating-cta:active {
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 0 14px rgba(0,255,198,0.3);
}

/* --- на случай тёмной темы или цветных фонов --- */
.floating-cta span {
  position: relative;
  z-index: 2;
}
.floating-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.floating-cta:hover::before {
  opacity: 0.2;
}

/* --- адаптивность --- */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 18px;
    font-size: 12.5px;
    padding: 9px 22px;
  }
}
@media (max-width: 480px) {
  .floating-cta {
    bottom: 16px;
    font-size: 12px;
    padding: 8px 20px;
    border-radius: 3px;
    max-width: 90%;
    text-align: center;
    line-height: 1.4;
  }
}

/* =====================================
   ANIMATIONS & MICROINTERACTIONS
   ===================================== */
a, button, summary {
  transition: all 0.25s ease;
}
.main-content,
.header,
.footer {
  animation: fadeIn 0.5s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Подсветка выделенного текста */
::selection {
  background: var(--accent);
  color: #000;
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #111;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
