﻿
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@600;700;800&display=swap');

:root {
  --bg-dark: #07080a;
  --bg-panel: #11131a;
  --bg-panel-alt: #171a24;
  --bg-panel-hover: #1e2230;
  
  --border-metal: rgba(255, 255, 255, 0.14);
  --border-orange: rgba(255, 102, 0, 0.45);
  --border-focus: #ff6600;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-orange: #ff6600;
  --accent-orange-hover: #ff8533;
  --accent-yellow: #ffc107;
  --accent-rust: #d32f2f;
  
  --font-display: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --max-width: 1160px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(26, 30, 42, 0.7) 0%, rgba(7, 8, 10, 0.92) 80%),
    url('../img/prison-concrete-bg.jpg');
  background-repeat: repeat;
  background-size: 512px 512px;
  background-attachment: fixed;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border-orange);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-badge {
  background: linear-gradient(135deg, #ff6600, #d32f2f);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-orange);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: #ffffff;
  text-decoration: none;
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-orange);
}

.mobile-toggle {
  display: none;
  background: var(--bg-panel);
  border: 1px solid var(--border-orange);
  color: var(--accent-orange);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: bold;
}

.main-content {
  flex: 1;
  padding: 32px 0 64px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
}

.breadcrumbs span {
  color: var(--text-dim);
}

.hero-card {
  background: rgba(17, 19, 26, 0.94);
  border: 2px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d32f2f, #ff6600, #ffc107, #ff6600, #d32f2f);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 102, 0, 0.15);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6600, #e65100);
  color: #ffffff;
  border: 1px solid #ff8533;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8533, #ff6600);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(255, 102, 0, 0.7);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-metal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  border-color: var(--border-orange);
}

.hero-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-metal);
  background: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.demo-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  min-height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-orange);
  background: #000000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9);
  margin: 20px 0 16px;
}

.demo-embed-wrapper iframe {
  position: absolute;
  top: -98px; 
  left: 0;
  width: 100%;
  height: calc(100% + 98px); 
  border: none;
}

.demo-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.demo-notice-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.page-toc {
  background: rgba(23, 26, 36, 0.92);
  border: 1px solid var(--border-metal);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.page-toc-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  margin-bottom: 14px;
}

.page-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-toc-link {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-metal);
  color: var(--text-main);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.page-toc-link:hover {
  background: rgba(255, 102, 0, 0.18);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  text-decoration: none;
}

.content-block {
  background: rgba(17, 19, 26, 0.93);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 40px 0 18px;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-metal);
}

.content-block > h2:first-child {
  margin-top: 0;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 28px 0 12px;
  color: var(--accent-yellow);
}

p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

p strong, li strong {
  color: #ffffff;
}

.media-card {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-metal);
  background: #000000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.media-card img {
  width: 100%;
  height: auto;
}

.media-caption {
  padding: 12px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-panel-alt);
  border-top: 1px solid var(--border-metal);
}

.table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-panel-alt);
  font-size: 0.95rem;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-metal);
}

th {
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent-orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

.faq-section {
  margin-top: 36px;
}

.faq-item {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-orange);
}

.faq-summary {
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-orange);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: '-';
  color: var(--accent-yellow);
}

.faq-content {
  padding: 0 22px 22px;
  color: var(--text-muted);
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.rg-notice {
  background: rgba(211, 47, 47, 0.14);
  border: 1px solid rgba(211, 47, 47, 0.4);
  border-left: 5px solid var(--accent-rust);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
  backdrop-filter: blur(6px);
}

.rg-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rg-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.related-card {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 24px;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-orange);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.related-card-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  display: block;
}

.related-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer {
  background: #040507;
  border-top: 2px solid var(--border-orange);
  padding: 56px 0 36px;
  margin-top: auto;
  font-size: 0.9rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-metal);
  padding-top: 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border-orange);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hero-card, .content-block {
    padding: 24px 18px;
  }
  
  .demo-embed-wrapper {
    min-height: 460px;
    padding-bottom: 75%;
  }
  
  .demo-embed-wrapper iframe {
    top: -92px;
    height: calc(100% + 92px);
  }
}

@media (max-width: 480px) {
  th, td {
    padding: 12px 14px;
    font-size: 0.875rem;
  }
  
  .demo-embed-wrapper {
    min-height: 380px;
    padding-bottom: 100%;
  }
  
  .demo-embed-wrapper iframe {
    top: -86px;
    height: calc(100% + 86px);
  }
}

