:root {
      --bg: #040812;
      --bg-2: #071322;
      --card: rgba(10, 18, 34, 0.82);
      --card-strong: rgba(12, 24, 45, 0.94);
      --text: #e8f3ff;
      --muted: #91a4bb;
      --accent: #17d8ff;
      --accent-2: #6d5dff;
      --accent-soft: rgba(23, 216, 255, 0.13);
      --border: rgba(129, 218, 255, 0.20);
      --border-strong: rgba(23, 216, 255, 0.42);
      --danger: #ff4d6d;
      --success: #00ff99;
      --shadow: 0 26px 75px rgba(0, 0, 0, 0.50);
      --glow: 0 0 28px rgba(23, 216, 255, 0.18);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.72;
      color: var(--text);
      background:
        radial-gradient(circle at 12% 0%, rgba(23, 216, 255, 0.22), transparent 31%),
        radial-gradient(circle at 88% 8%, rgba(109, 93, 255, 0.18), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(0, 255, 153, 0.10), transparent 34%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
      min-height: 100vh;
    }

    .page {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 42px 0 54px;
    }

    .top-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }

    .pill-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      color: var(--text);
      text-decoration: none;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: rgba(8, 17, 32, 0.72);
      backdrop-filter: blur(10px);
      box-shadow: var(--glow);
      font-weight: 700;
      font-size: 0.92rem;
    }

    .pill-link:hover, .pill-link:focus {
      border-color: var(--border-strong);
      color: #ffffff;
      transform: translateY(-1px);
    }

    header {
      margin-bottom: 24px;
      padding: clamp(26px, 4vw, 44px);
      border: 1px solid var(--border);
      border-radius: 30px;
      background:
        linear-gradient(135deg, rgba(15, 30, 58, 0.96), rgba(7, 14, 27, 0.86)),
        rgba(10, 18, 34, 0.84);
      box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
      position: relative;
      overflow: hidden;
    }

    header::before {
      content: "";
      position: absolute;
      inset: -2px;
      background: linear-gradient(120deg, rgba(23, 216, 255, 0.22), transparent 45%, rgba(109, 93, 255, 0.20));
      pointer-events: none;
      opacity: .75;
    }

    header > * { position: relative; z-index: 1; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 18px;
      padding: 8px 13px;
      color: #c9f6ff;
      background: var(--accent-soft);
      border: 1px solid var(--border-strong);
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      box-shadow: 0 0 18px rgba(23,216,255,.12);
    }

    h1 {
      margin: 0 0 12px;
      font-size: clamp(2.25rem, 5vw, 4.8rem);
      line-height: 1.02;
      letter-spacing: -0.055em;
      text-shadow: 0 0 20px rgba(23,216,255,.20);
    }

    .lead {
      max-width: 920px;
      margin: 0;
      color: var(--muted);
      font-size: 1.08rem;
    }


    .layout {
      display: grid;
      grid-template-columns: 310px 1fr;
      gap: 22px;
      align-items: start;
    }

    nav {
      position: sticky;
      top: 20px;
      padding: 20px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: rgba(8, 16, 31, 0.78);
      backdrop-filter: blur(14px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), var(--glow);
      max-height: calc(100vh - 40px);
      overflow: auto;
    }

    nav strong {
      display: block;
      margin-bottom: 12px;
      color: #ffffff;
      font-size: 0.95rem;
    }

    nav a {
      display: block;
      padding: 9px 0;
      color: var(--muted);
      text-decoration: none;
      font-size: 0.93rem;
      border-bottom: 1px solid rgba(255,255,255,.065);
    }

    nav a:hover, nav a:focus { color: var(--accent); }

    main {
      padding: clamp(22px, 3vw, 34px);
      border: 1px solid var(--border);
      border-radius: 30px;
      background: rgba(8, 16, 31, 0.84);
      backdrop-filter: blur(14px);
      box-shadow: var(--shadow), var(--glow);
    }

    section {
      padding: 28px 0;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }

    section:first-child { padding-top: 0; }
    section:last-child { padding-bottom: 0; border-bottom: 0; }

    h2 {
      margin: 0 0 14px;
      font-size: 1.38rem;
      line-height: 1.25;
      color: #ffffff;
    }

    h3 {
      margin: 20px 0 10px;
      color: #d9f7ff;
      font-size: 1.06rem;
    }

    p { margin: 0 0 14px; color: var(--text); }
    a { color: #70e8ff; }
    a:hover, a:focus { color: #ffffff; }

    ul {
      margin: 10px 0 16px;
      padding: 0;
      list-style: none;
    }

    li {
      position: relative;
      margin: 8px 0;
      padding-left: 26px;
      color: var(--text);
    }

    li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.78em;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 4px rgba(23,216,255,.10), 0 0 13px rgba(23,216,255,.45);
      transform: translateY(-50%);
    }

    .info-box {
      margin: 16px 0;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: rgba(23,216,255,.075);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    }

    .info-box strong { color: #ffffff; }

    .grid-two {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin: 14px 0;
    }

    .mini-card {
      padding: 16px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 18px;
      background: rgba(255,255,255,.035);
    }

    .mini-card h3 { margin-top: 0; }

    footer {
      margin-top: 24px;
      padding: 20px;
      text-align: center;
      color: var(--muted);
      font-size: 0.92rem;
      border: 1px solid var(--border);
      border-radius: 22px;
      background: rgba(8, 16, 31, 0.62);
      backdrop-filter: blur(10px);
    }

    .back-button, .home-button {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 30;
      background: rgba(4, 8, 18, 0.68);
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 16px;
      backdrop-filter: blur(10px);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: var(--glow);
    
      color: var(--text);
      text-decoration: none;
      font-weight: 900;
      min-width: 116px;
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
.back-button:hover,
    .back-button:focus,
    .home-button:hover,
    .home-button:focus {
      transform: scale(1.05);
      box-shadow: 0 0 24px rgba(23,216,255,.32);
    }
@media (max-width: 900px) {
      .page { padding: 24px 0; }
      .layout { grid-template-columns: 1fr; }
      nav { position: static; max-height: none; }
      .grid-two { grid-template-columns: 1fr; }
      .top-actions { justify-content: flex-start; }
    }


    .top-actions .spacer {
      flex: 1 1 auto;
    }

    .language-menu {
      position: relative;
      display: inline-flex;
      align-items: center;
      z-index: 40;
    }

    .language-menu summary {
      list-style: none;
      cursor: pointer;
      user-select: none;
    }

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

    .language-list {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      width: 220px;
      padding: 8px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: rgba(8, 16, 31, 0.96);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow), var(--glow);
    }

    .language-list a {
      display: block;
      padding: 10px 12px;
      border-radius: 12px;
      color: var(--text);
      text-decoration: none;
      font-weight: 700;
      font-size: 0.92rem;
    }

    .language-list a:hover,
    .language-list a:focus,
    .language-list a.active {
      background: var(--accent-soft);
      color: #ffffff;
    }

    .translation-note {
      margin-bottom: 20px;
      padding: 16px 18px;
      border: 1px solid var(--border-strong);
      border-radius: 18px;
      background: rgba(23,216,255,.08);
      color: var(--text);
    }

    .translation-note strong { color: #ffffff; }
