/* =====================================
   GLOBAL RESET + VARIABLES
   ===================================== */
:root {
  --bg-dark: #0b0b0b;
  --bg-darker: #070707;
  --bg-hover: #111;
  --text-main: #e5e5e5;
  --text-muted: #9aa0a6;
  --accent: #00ff88;
  --accent-hover: #55ffaa;
  --border: #1a1a1a;
  --font-main: 'Inter', 'Segoe UI', Roboto, sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* =====================================
   BODY — базовая корректировка под фиксированный хедер
   ===================================== */
body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px; /* чуть меньше, чтобы не было лишнего отступа */
}

/* =====================================
   HEADER — компактный, аккуратный, адаптивный
   ===================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid #111;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 62px;
}

/* --- логотип --- */
.header-logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.25));
  transition: filter 0.3s ease;
}
.header-logo img:hover {
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

/* =====================================
   DESKTOP NAVIGATION
   ===================================== */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s ease;
  text-decoration: none;
}

/* убираем нижние подчеркивания */
.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
}

/* =====================================
   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 0.25s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent);
  color: #000;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

/* =====================================
   BURGER ICON — фиксированный, идеально центрированный
   ===================================== */
.burger {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 2001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #222;
  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: 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;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: #000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 2000; /* ниже кнопки */
  padding-top: 90px;
}
.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;
  }
}


/* =====================================
   HERO SECTION — black matrix aesthetic
   ===================================== */

.page-hero-simple {
  position: relative;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  border-bottom: 1px solid #111;
  padding: clamp(100px, 15vw, 160px) 20px clamp(80px, 12vw, 120px);
  overflow: hidden;
}

/* --- подсветка фона в духе NVIDIA --- */
.page-hero-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.page-hero-simple::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* --- контент --- */
.page-hero-simple h1 {
  position: relative;
  z-index: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 18px;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.page-hero-simple p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- кнопка --- */
.hero-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 38px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(90deg, #00ff88 0%, #00cc66 100%);
  color: #000;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-btn:hover {
  background: linear-gradient(90deg, #00ff99 0%, #00ffaa 100%);
}

.hero-btn:active {
  background: linear-gradient(90deg, #00dd77 0%, #00ff88 100%);
}

/* --- адаптив --- */
@media (max-width: 768px) {
  .page-hero-simple {
    padding: 80px 16px 70px;
  }
  .page-hero-simple h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  .page-hero-simple p {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }
  .hero-btn {
    padding: 10px 30px;
    font-size: 13px;
  }
}

/* =====================================
   HERO SECTION — black matrix aesthetic
   ===================================== */

.page-hero-simple {
  position: relative;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  border-bottom: 1px solid #111;
  padding: clamp(100px, 15vw, 160px) 20px clamp(80px, 12vw, 120px);
  overflow: hidden;
}

/* --- подсветка фона в духе NVIDIA --- */
.page-hero-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.page-hero-simple::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* --- контент --- */
.page-hero-simple h1 {
  position: relative;
  z-index: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 18px;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.page-hero-simple p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- кнопка --- */
.hero-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 38px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00ff88 0%, #00cc66 100%);
  color: #000;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-btn:hover {
  background: linear-gradient(90deg, #00ff99 0%, #00ffaa 100%);
}

.hero-btn:active {
  background: linear-gradient(90deg, #00dd77 0%, #00ff88 100%);
}

/* --- адаптив --- */
@media (max-width: 768px) {
  .page-hero-simple {
    padding: 30px 16px 70px;
  }
  .page-hero-simple h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  .page-hero-simple p {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }
  .hero-btn {
    padding: 10px 30px;
    font-size: 13px;
  }
}

/* =====================================
   ARTICLE BODY — black & green precision
   ===================================== */

.article-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.2px;
  background: transparent;
}

/* --- Заголовки --- */
.article-body h1,
.article-body h2,
.article-body h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-top: 60px;
  margin-bottom: 20px;
  position: relative;
}

/* H1 — основной, с тонкой линией снизу */
.article-body h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 10px;
}

/* H2 — зелёная вертикальная полоса слева */
.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: #fff;
}

/* H3 — меньший, с неоновой линией сверху */
.article-body h3 {
  font-size: 1.1rem;
  color: #a9ffcc;
  padding-top: 10px;
}
.article-body h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* --- Текст --- */
.article-body p {
  margin-bottom: 18px;
  color: var(--text-main);
}

.article-body strong {
  color: var(--accent);
  font-weight: 600;
}

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  text-decoration: none;
  transition: all 0.25s ease;
}
.article-body a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* --- Списки --- */
.article-body ul,
.article-body ol {
  margin: 24px 0 32px 28px;
  padding: 0;
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.75;
  color: #d4d4d4;
}
.article-body ul li::marker {
  color: var(--accent);
}
.article-body ol li::marker {
  color: var(--accent-hover);
}

/* --- Таблицы --- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #111;
  margin: 40px 0;
  background: #0d0d0d;
  color: var(--text-main);
  font-size: 0.95rem;
}

.article-body th {
  background: #111;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #1a1a1a;
  text-align: left;
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid #151515;
  transition: background 0.25s ease;
}

.article-body tr:hover td {
  background: rgba(0, 255, 136, 0.04);
}

/* --- Цитаты --- */
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 30px 0;
  color: #a5a5a5;
  background: #0d0d0d;
  font-style: italic;
}

/* --- Изображения --- */
.article-body img {
  display: block;
  margin: 36px auto;
  max-width: 100%;
  border: 1px solid #1a1a1a;
  max-height: 400px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-body {
    font-size: 1rem;
    padding: 40px 18px 60px;
  }
  .article-body h1 {
    font-size: 1.6rem;
  }
  .article-body h2 {
    font-size: 1.3rem;
    padding-left: 10px;
  }
  .article-body h3 {
    font-size: 1rem;
  }
  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .article-body td,
  .article-body th {
    padding: 10px 12px;
  }
}

/* =====================================
   FAQ — sharp, minimal, black & green
   ===================================== */

.faq-list {
  max-width: 860px;
  margin: 80px auto 100px;
  padding: 0 20px;
}

.faq-list h2 {
  text-align: center;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 50px;
}

/* --- FAQ item --- */
.faq-item {
  background: #0c0c0c;
  border: 1px solid #1a1a1a;
  margin-bottom: 12px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

/* --- summary --- */
.faq-item summary {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  padding: 16px 46px 16px 18px;
  list-style: none;
  transition: color 0.25s ease, background 0.25s ease;
}
.faq-item summary:hover {
  background: #111;
  color: var(--accent);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- плюс/минус --- */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}

/* --- контент --- */
.faq-content {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #b5b5b5;
  border-top: 1px solid #1a1a1a;
  background: #0a0a0a;
}

/* =====================================
   AUTHOR CARD — tech profile section
   ===================================== */

.author-card {
  max-width: 860px;
  margin: 100px auto 120px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid #1a1a1a;
  background: #0b0b0b;
  color: #ccc;
  transition: border-color 0.25s ease;
}

.author-card:hover {
  border-color: var(--accent);
}

.author-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  filter: grayscale(100%);
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 8px;
}

.author-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.author-info a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* --- адаптив --- */
@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 20px;
  }
  .author-photo {
    width: 70px;
    height: 70px;
  }
}

/* =====================================
   FOOTER — black grid with neon highlights
   ===================================== */

.footer {
  background: #050505;
  border-top: 1px solid #111;
  padding: 60px 20px;
  color: #888;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer h5 {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 8px;
}
.footer-list a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-list a:hover {
  color: var(--accent);
}

.footer p {
  margin-top: 11px;
  color: #666;
  font-size: 12px;
}

/* --- адаптив --- */
@media (max-width: 768px) {
  .footer .container {
    flex-direction: column;
    gap: 30px;
  }
  .footer {
    text-align: center;
  }
}

/* =====================================
   FLOATING CTA — fixed bottom call-to-action
   ===================================== */

.floating-cta {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(90deg, #00ff88 0%, #00cc66 100%);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;

  padding: 12px 40px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 999;

  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.6);
}

.floating-cta:hover {
  background: linear-gradient(90deg, #00ffaa 0%, #00ff77 100%);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.floating-cta:active {
  background: linear-gradient(90deg, #00cc66 0%, #00ff88 100%);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* --- адаптив --- */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 18px;
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* =====================================
   GLOBAL TRANSITIONS & PAGE ANIMATION
   ===================================== */

a, button, summary {
  transition: all 0.25s ease;
}

/* --- плавное появление элементов --- */
.main-content,
.header,
.footer {
  animation: fadeInPage 0.6s ease both;
}
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- кнопки и ссылки при фокусе --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- выделение текста --- */
::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);
}

/* =====================================
   BREADCRUMBS — навигация
   ===================================== */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.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);
}

/* =====================================
   TOC — список якорей
   ===================================== */
.toc {
  background: #3e3e3e;
  padding: 20px 24px;
  margin: 20px 0 40px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 0 10px rgba(0,255,136,0.08);
  text-decoration: none;
  text-align: center;
}
.toc h2 {
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent);
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
}
.toc li {
  border-bottom: 1px dashed #111;
  padding-bottom: 4px;
}
.toc a {
  color: var(--text-main);
  font-size: 15px;
  text-decoration: none !important;
  transition: color 0.25s ease;
}
.toc a:hover {
  color: var(--accent);
}

/* адаптив */
@media (max-width: 768px) {
  .toc ul {
    grid-template-columns: 1fr;
  }
}


.breadcrumbs {
  text-align: center;
  margin: 20px 0;
}

.breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 8px;
}

.breadcrumbs li::after {
  content: "›";
  margin-left: 8px;
  color: #999;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  text-decoration: none;
  color: #0073e6;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* оформление неактивного элемента */
.breadcrumbs li:last-child {
  color: #555;
  font-weight: 500;
}
