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

/* --- Дизайн-система & Переменные --- */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-accent: 'Outfit', sans-serif;

  --bg-dark: #0a0e1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);

  --color-text-primary: #ffffff;
  --color-text-muted: #a3aed0;
  --color-text-dark: #4b5563;

  --accent-cyan: #00f0ff;
  --accent-purple: #7000ff;
  --accent-blue: #3b82f6;

  --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --gradient-bg: radial-gradient(circle at 50% 25%, #182243 0%, #0d1224 60%, var(--bg-dark) 100%);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* --- Сброс стилей --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  background-image: var(--gradient-bg);
  background-attachment: scroll;
  background-size: 100% 150%;
  background-repeat: no-repeat;
  color: var(--color-text-primary);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Фоновые светящиеся параллакс-круги */
.parallax-bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  z-index: -1;
  will-change: transform;
}

.glow-1 {
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.glow-2 {
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  top: 35%;
  right: -10%;
}

.glow-3 {
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: -10%;
  left: 15%;
}

/* --- Мультиязычность через CSS --- */
html[lang="en"] .lang-ru {
  display: none !important;
}

html[lang="ru"] .lang-en {
  display: none !important;
}

/* --- Контейнер --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Хедер --- */
.header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 19, 0.6);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

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

.logo {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1000;
}

.logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

/* --- Кнопка бургер-меню --- */
.burger-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1000;
}

.burger-menu-btn .burger-bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Анимация крестика для бургера */
.burger-menu-btn.active .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu-btn.active .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-menu-btn.active .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1000;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  color: #fff;
}

html[lang="ru"] .lang-btn[data-lang="ru"],
html[lang="en"] .lang-btn[data-lang="en"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Hero Секция --- */
.hero {
  padding: 100px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(112, 0, 255, 0.1) 40%, transparent 70%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero-content {
  text-align: left;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-accent);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--gradient-accent);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(112, 0, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* Glass Code Card */
.glass-code-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover .glass-code-card {
  transform: rotateY(-2deg) rotateX(1deg) scale(1.02);
}

.code-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots .dot.red {
  background: #ff5f56;
}

.code-dots .dot.yellow {
  background: #ffbd2e;
}

.code-dots .dot.green {
  background: #27c93f;
}

.code-title {
  margin-left: 16px;
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--color-text-muted);
}

.code-body {
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.code-body pre {
  margin: 0;
  overflow-x: auto;
}

/* Syntax Highlighting */
.code-body .keyword {
  color: #ff79c6;
}

.code-body .variable {
  color: #8be9fd;
}

.code-body .property {
  color: #50fa7b;
}

.code-body .string {
  color: #f1fa8c;
}

.code-body .function {
  color: #ffb86c;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.badge-accent {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(112, 0, 255, 0.2) 100%);
  right: -10px;
  top: 10%;
  border-radius: 50%;
}

.logo-accent-glow {
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 240, 255, 0.5));
}

.badge-purple {
  width: 44px;
  height: 44px;
  background: rgba(112, 0, 255, 0.15);
  left: -20px;
  bottom: 15%;
  color: var(--accent-cyan);
  animation-delay: -3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* --- Products Overview Секция --- */
.products-overview {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  margin-bottom: 60px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.overview-title {
  font-family: var(--font-accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-weight: 600;
}

.overview-subtitle {
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.overview-description {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* --- Разделы Направлений --- */
.sections-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-bottom: 100px;
}

.category-section {
  scroll-margin-top: 100px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius-lg);
  padding: 48px;
  /*border: 1px solid var(--border-color);*/
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.category-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.92) 0%, rgba(10, 14, 26, 0.82) 100%);
  z-index: 1;
  transition: var(--transition-smooth);
}

.category-section:hover::before {
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.88) 0%, rgba(10, 14, 26, 0.76) 100%);
}

.category-section>* {
  position: relative;
  z-index: 2;
}

#gamedev-section {
  background-image: url('/images/common/gamedev_bg.png');
}

#app-section {
  background-image: url('/images/common/app_bg.png');
}

#web-section {
  background-image: url('/images/common/web_bg.png');
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.section-title {
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.section-title span.accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.section-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* --- Сетка проектов (Карточки) --- */
.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
}

/* Оптимизация отображения при наличии ровно 1 проекта в категории */
.project-grid.single-project {
  display: flex;
  justify-content: center;
}

.project-grid.single-project .project-card.featured {
  grid-row: span 1;
  grid-column: span 1;
  max-width: 800px;
  width: 100%;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

/* Клик по всей карточке */
.card-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  cursor: pointer;
}

/* Сохранение кликабельности кнопок действий поверх оверлея */
.project-footer,
.store-badges-container,
.steam-badge-overlay {
  position: relative;
  z-index: 2;
}

.project-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Featured Card Layout (asymmetric) */
.project-card.featured {
  grid-row: span 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr auto;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card.featured .project-content {
  grid-column: 1;
  grid-row: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-card.featured .featured-visual-wrapper {
  grid-column: 2;
  grid-row: 1;
}

.project-card.featured .project-footer {
  grid-column: span 2;
  grid-row: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.project-card.featured .project-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.project-card.featured .project-desc {
  font-size: 15px;
  margin-bottom: 32px;
}

/* Featured visual mockups */
.featured-visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

/* 1. Smartphone Mockup */
.phone-mockup {
  width: 160px;
  max-width: 100%;
  aspect-ratio: 1 / 2;
  background: #000;
  border: 6px solid #222;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(0, 240, 255, 0.2);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: #090c15;
}

.phone-notch {
  width: 60px;
  height: 12px;
  background: #222;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-app-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-app-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(10, 14, 26, 0.85);
  border: 1.5px solid var(--accent-cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.phone-app-logo-overlay .logo-accent {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 2. Browser Mockup */
.browser-mockup {
  width: 100%;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(112, 0, 255, 0.15);
  background: #0c0f1d;
  display: flex;
  flex-direction: column;
}

.browser-header {
  height: 22px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.browser-dots .dot.red {
  background: #ff5f56;
}

.browser-dots .dot.yellow {
  background: #ffbd2e;
}

.browser-dots .dot.green {
  background: #27c93f;
}

.browser-address {
  margin-left: 10px;
  font-size: 9px;
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 10px;
  border-radius: 8px;
  flex-grow: 1;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.browser-body {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.browser-page-image {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
}

/* 3. Steam/Game Featured layout */
.project-card.gamedev-featured {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: 24px;
  gap: 20px;
  overflow: hidden;
}

.project-card.gamedev-featured .project-content {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-card.gamedev-featured .project-footer {
  grid-column: 1;
  grid-row: 3;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.project-card.gamedev-featured .featured-visual-wrapper {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: rgba(10, 14, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.gamedev-featured .project-image {
  object-fit: contain;
}

.steam-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  z-index: 5;
}

/* Store Badge Buttons */
.store-badges-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.store-badge-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* --- Standard Game Card --- */
.standard-game-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
}

.standard-game-card .project-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(10, 14, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.standard-game-card .project-image {
  object-fit: contain;
}

.standard-game-card .project-content {
  padding: 0;
}



/* --- Compact Standard Card (No image) --- */
.standard-compact-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
}

.standard-compact-card .project-content {
  padding: 0;
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.card-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.app-icon {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.web-icon {
  background: rgba(112, 0, 255, 0.1);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(112, 0, 255, 0.15);
}

.glow-icon-svg {
  filter: drop-shadow(0 0 6px currentColor);
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

.project-title {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.project-btn {
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.project-btn-primary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
}

.project-btn-primary:hover {
  background: #fff;
  color: var(--bg-dark);
}

.project-btn-link {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
}

.project-btn-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.header-btn {
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 20px;
  color: #fff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: var(--transition-smooth);
}

.header-btn:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
  transform: translateY(-1px);
}

/* --- Детальная страница продукта --- */
.product-hero {
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 32px;
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.product-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.product-banner:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
}

/* --- Слайдер скриншотов --- */
.screenshots-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.screenshots-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding: 4px 0;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  scroll-snap-type: x mandatory;
}

.screenshots-slider::-webkit-scrollbar {
  display: none;
}

.slider-slide {
  flex: 0 0 calc(50% - 8px);
  min-width: 200px;
  scroll-snap-align: start;
}

.screenshot-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.screenshot-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.2);
}

/* Вертикальный/портретный формат скриншотов */
.format-vertical .screenshots-slider {
  height: auto;
}

.format-vertical .slider-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
}

.format-vertical .screenshot-item {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 10, 19, 0.85);
  border: 1px solid var(--border-color);
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-arrow:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(7, 10, 19, 0.98);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.slider-arrow-prev {
  left: -20px;
}

.slider-arrow-next {
  right: -20px;
}

.slider-arrow.disabled {
  opacity: 0;
  pointer-events: none;
}

/* --- Лайтбокс просмотрщик --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 4, 6, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--color-text-muted);
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 2100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05) rotate(90deg);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 2100;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lightbox-prev {
  left: 32px;
}

.lightbox-next {
  right: 32px;
}

.lightbox-content-wrapper {
  max-width: 80%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.lightbox-image-container {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  background: #020204;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 75vh;
  position: relative;
}

#lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
}

#lightbox-img.zoomed {
  cursor: zoom-out;
}

.lightbox-counter {
  color: var(--color-text-muted);
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .slider-slide {
    flex: 0 0 calc(100% - 0px);
  }

  .format-vertical .screenshots-slider {
    height: auto;
  }

  .format-vertical .slider-slide {
    flex: 0 0 calc(50% - 8px);
    min-width: 0;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    z-index: 15;
  }

  .slider-arrow-prev {
    left: 8px;
  }

  .slider-arrow-next {
    right: 8px;
  }

  .slider-arrow svg {
    width: 14px;
    height: 14px;
  }

  .lightbox-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-content-wrapper {
    max-width: 92%;
  }
}

.product-info-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: sticky;
  top: 100px;
  min-width: 0;
}

.product-info-header {
  margin-bottom: 24px;
}

.product-date {
  font-size: 13px;
  color: var(--accent-cyan);
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-info-title {
  font-family: var(--font-accent);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.product-long-desc {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-long-desc span {
  white-space: pre-line;
}

.product-specs {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  margin-bottom: 32px;
}

.specs-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.specs-item:last-child {
  margin-bottom: 0;
}

.specs-label {
  color: var(--color-text-muted);
}

.specs-val {
  color: #fff;
  font-weight: 500;
}

.specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.specs-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.action-btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.action-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-color);
}

.action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
}

/* --- Подвал --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0 12px 0;
  margin-top: auto;
  background: rgba(7, 10, 19, 0.4);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
  justify-content: space-between;
}

.footer-brand-col {
  flex: 1.5 1 280px;
}

.footer-links-col {
  flex: 1 1 180px;
}

.footer-brand-col .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 260px;
}

.footer-title {
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer-links-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

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

.contact-list li {
  font-size: 14px;
  color: var(--color-text-muted);
  list-style: none;
}

.contact-list li:first-child {
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.footer-copy {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-meta {
  font-size: 14px;
  color: var(--color-text-dark);
}

/* --- Адаптивность --- */
@media (max-width: 968px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-banner {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .product-info-panel {
    position: static;
    padding: 24px;
  }

  .hero-title {
    font-size: 40px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-row: span 1;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
  }

  .project-card.featured .project-content {
    grid-column: 1;
    grid-row: 2;
  }

  .project-card.featured .featured-visual-wrapper {
    grid-column: 1;
    grid-row: 1;
    order: -1;
  }

  .project-card.featured .project-footer {
    grid-column: 1;
    grid-row: 3;
    margin-top: 12px;
  }

  .browser-mockup {
    max-width: 550px;
  }
}

@media (max-width: 880px) {

  /* Бургер-меню */
  .burger-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 250px;
    height: auto;
    max-height: calc(100vh - 100px);
    background: rgba(7, 10, 19, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    box-sizing: border-box;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    width: 100%;
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .nav .header-btn {
    display: block;
    text-align: center;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Адаптивность баннеров и контента карточек */
  .project-card.featured {
    padding: 24px;
    gap: 24px;
  }

  .featured-visual-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 260px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .featured-visual-wrapper.game-layout {
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .phone-mockup {
    width: 120px;
    border-width: 4px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-visual {
    justify-content: center;
    margin-top: 24px;
  }



  /* Адаптивность блока обзора продуктов */
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

/* Адаптивное скрытие текста на кнопках для экономии места */
@media (max-width: 480px) {

  .project-btn span,
  .store-badge-btn span {
    display: none !important;
  }

  .project-btn,
  .store-badge-btn {
    padding: 8px 12px;
    min-width: unset;
    border-radius: 50px;
  }

  .project-btn svg,
  .store-badge-btn svg {
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 70px;
  }

  .nav {
    top: 70px;
    right: 16px;
  }

  .hero {
    padding: 60px 0 40px 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 15px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Детальная страница продукта на мобильных */
  .product-hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .back-link {
    margin-bottom: 20px;
  }

  .product-info-panel {
    padding: 20px;
  }

  .product-info-title {
    font-size: 26px;
  }

  .product-long-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .product-specs {
    padding: 16px 0;
    margin-bottom: 24px;
  }

  .specs-item {
    font-size: 13px;
    margin-bottom: 8px;
  }
}

/* Сворачиваемый футер для мобильных (<= 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .category-section {
    padding: 24px 16px;
  }

  .product-detail-grid {
    display: block !important;
  }

  .product-gallery {
    margin-bottom: 24px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 0;
  }

  .footer-brand-col {
    margin-bottom: 24px;
    flex: none;
    text-align: left;
  }

  .footer-brand-col .logo {
    justify-content: flex-start;
  }

  .footer-tagline {
    margin: 0;
    max-width: none;
  }

  .footer-links-col {
    flex: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 0;
    user-select: none;
  }

  .footer-title::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 4px;
  }

  .footer-links-col.active .footer-title::after {
    transform: rotate(-135deg);
  }

  .footer-links-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0;
    gap: 12px;
  }

  .footer-links-col.active .footer-links-list {
    max-height: 300px;
    padding-bottom: 20px;
    padding-top: 4px;
  }
}

/* ==========================================================================
   СЕКЦИЯ "ОБО МНЕ" (ABOUT SECTION)
   ========================================================================== */
.about-section {
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 10;
}

.about-card {
  background: var(--card-bg-gradient);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.05);
}

.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: center;
}

.about-avatar-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-avatar-monogram {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(112, 0, 255, 0.08));
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  animation: floatAvatar 6s ease-in-out infinite;
}

.about-avatar-monogram span {
  font-family: var(--font-accent);
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #00f0ff, #7000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  letter-spacing: -2px;
}

.about-info-col {
  display: flex;
  flex-direction: column;
}

.about-subtitle {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.about-text {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

@keyframes floatAvatar {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.35), inset 0 0 20px rgba(0, 240, 255, 0.15);
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 0 30px 0;
  }

  .about-card {
    padding: 32px 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about-avatar-monogram {
    width: 110px;
    height: 110px;
  }

  .about-avatar-monogram span {
    font-size: 48px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-text {
    font-size: 15px;
  }
}

/* --- Стили для юридических страниц (Privacy Policy и др.) --- */
.legal-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin-top: 24px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
  font-family: var(--font-accent);
}

.legal-title {
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.legal-content-section {
  display: none;
}

.legal-content-section.active {
  display: block;
  animation: fadeInLegal 0.4s ease-out;
}

@keyframes fadeInLegal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-content-section h2 {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 32px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-content-section p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-content-section ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 4px;
}

.legal-content-section li {
  color: var(--color-text-muted);
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.legal-content-section li::before {
  content: "•";
  color: var(--accent-cyan);
  position: absolute;
  left: 4px;
  font-size: 20px;
  line-height: 1;
}

.legal-content-section code {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.badge-premium {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid #ffd700;
  color: #ffd700;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

.legal-content-section a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.legal-content-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 24px;
    border-radius: var(--border-radius-md);
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .legal-title {
    font-size: 22px;
  }
}