:root {
  --bg: #070b12;
  --bg-secondary: #0e1420;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-solid: #121a29;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f5fb;
  --muted: #a9b2c7;
  --accent: #b11226;
  --accent-hover: #cf1d33;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(177, 18, 38, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(177, 18, 38, 0.08), transparent 25%),
    linear-gradient(180deg, #060910 0%, #0a1019 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text);
  transition: 0.25s ease;
}

.nav-item > a:hover,
.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown {
  position: relative;
}

.arrow {
  font-size: 0.85rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  padding: 12px;
  background: rgba(18, 26, 41, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.dropdown-menu li a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted);
  transition: 0.2s ease;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-link {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 0.25s ease;
}

.user-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 99px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 9, 16, 0.5), rgba(6, 9, 16, 0.82)),
    url("../img/hero-bg.gif") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 110px 0 80px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(177, 18, 38, 0.24);
  background: rgba(177, 18, 38, 0.14);
  color: #ffd6db;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero p {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-compact {
  padding-top: 65px;
  padding-bottom: 65px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Cards */
.card-grid,
.feature-grid {
  display: grid;
  gap: 24px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.feature-box {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: 0.25s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(177, 18, 38, 0.3);
}

.card-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(177, 18, 38, 0.14);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.info-card h3,
.feature-box h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.info-card p,
.feature-box p {
  color: var(--muted);
  margin-bottom: 18px;
}

.card-link {
  color: var(--accent);
  font-weight: 700;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-box {
  padding: 26px;
  border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 16, 0.9);
  padding: 28px 0;
  margin-top: 30px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-content h3 {
  margin-bottom: 6px;
}

.footer-content p,
.footer-links a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 16, 25, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
  }

  .dropdown-menu {
    position: static;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 82vh;
  }

  .hero-content {
    padding: 90px 0 70px;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section {
    padding: 70px 0;
  }

  .section-compact {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.subpage-hero {
  position: relative;
  padding: 130px 0 70px;
  background:
    radial-gradient(circle at top left, rgba(177, 18, 38, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(6, 9, 16, 0.92) 0%, rgba(10, 16, 25, 0.98) 100%);
  border-bottom: 1px solid var(--border);
}

.subpage-hero-content {
  max-width: 760px;
}

.subpage-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.subpage-hero p {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
}

.legal-section {
  padding-top: 55px;
  padding-bottom: 55px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}

.legal-card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.legal-card h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.legal-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.legal-block + .legal-block {
  margin-top: 24px;
}

.legal-card p {
  color: var(--muted);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
}

.legal-block ul{
margin-top:10px;
margin-left:18px;
color:var(--muted);
}

.legal-block li{
margin-bottom:6px;
}
.card-icon img{
width:34px;
height:34px;
object-fit:contain;
}

.user-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 0.25s ease;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.user-profile-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(177, 18, 38, 0.18);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.user-name {
  font-weight: 600;
  white-space: nowrap;
}