:root {
      --bg: #07071a;
      --surface: #14102c;
      --surface-2: #1c1640;
      --text: #f5f3ff;
      --muted: #c4bdd9;
      --accent: #ff2d95;
      --accent-2: #00d4ff;
      --cta: #ff1a6c;
      --cta-hover: #ff4d8d;
      --border: #3a3158;
      --header-h: 88px;
      --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-size: 14px;
      font-family: var(--font-ui);
      line-height: 1.5;
    }

    p {
      line-height: 1.55;
      font-weight: 400;
      font-size: 1.15em;
      font-family: var(--font);
    }

    h1, h2, h3 {
      font-family: var(--font-ui);
      line-height: 1.25;
      font-weight: 700;
    }

    h1 { font-size: 1.85em; margin: 0.4em 0 0.6em; }
    h2 { font-size: 1.55em; margin: 0.8em 0 0.5em; }
    h3 { font-size: 1.25em; margin: 0.7em 0 0.4em; }

    a { color: var(--accent-2); text-decoration: none; }
    a:hover { color: #7eecff; }

    .content .wrapper a:not(.btn),
    .html-block a:not(.btn) {
      text-decoration-line: underline;
      text-underline-offset: 4px;
    }

    table {
      border-spacing: 0;
      border-collapse: collapse;
      font-size: 1.1em;
      width: 100%;
      margin: 1em 0;
      background: rgba(0, 0, 0, 0.25);
    }

    th, td {
      border: 1px solid var(--border);
      padding: 10px 12px;
      word-wrap: break-word;
      line-height: 1.35;
      text-align: left;
      vertical-align: top;
    }

    th {
      background: var(--surface-2);
      font-weight: 700;
    }

    td p, th p { margin: 0; font-size: 1em; }

    ul, ol {
      font-size: 1.1em;
      line-height: 1.55;
      padding-inline-start: 1.4em;
      font-family: var(--font);
    }

    ul li::marker { color: var(--accent); }
    ol li::marker { color: var(--accent-2); }

    .btn {
      border-radius: 8px;
      text-decoration: none !important;
      font-weight: 700;
      border: none;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
      font-size: 1em;
      padding: 12px 18px;
      display: inline-block;
      width: fit-content;
      font-family: var(--font-ui);
      background: var(--cta);
      color: #fff !important;
      text-align: center;
      white-space: nowrap;
      box-shadow: 0 0 0 1px rgba(255, 45, 149, 0.35), 0 6px 18px rgba(255, 26, 108, 0.28);
    }

    .btn:hover {
      background: var(--cta-hover);
      color: #fff !important;
      transform: translateY(-1px);
    }

    .btn-login {
      background: transparent;
      color: var(--text) !important;
      box-shadow: inset 0 0 0 1.5px var(--accent-2);
    }

    .btn-login:hover {
      background: rgba(0, 212, 255, 0.12);
      color: #fff !important;
    }

    .btn-sign-up {
      background: var(--cta);
    }

    .wrapper {
      max-width: 1180px;
      margin: 0 auto;
      padding: 10px 25px;
    }

    /* —— Header —— */
    .top {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 100;
      padding: 10px 0;
      min-height: var(--header-h);
      background: linear-gradient(180deg, #160e2f 0%, #100a22 100%);
      border-bottom: 1px solid rgba(255, 45, 149, 0.35);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

    .top .wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 0 15px;
      margin: 0 auto;
      min-height: calc(var(--header-h) - 20px);
    }

    .header-spacer {
      height: var(--header-h);
      width: 100%;
      flex-shrink: 0;
    }

    a.logo {
      display: flex;
      align-items: center;
      flex: 0 1 auto;
      min-width: 0;
      max-width: 42%;
      margin-right: auto;
      line-height: 0;
    }

    a.logo img {
      display: block;
      width: auto;
      height: 68px;
      max-width: 100%;
      object-fit: contain;
      aspect-ratio: 255 / 218;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }

    .top .btn {
      margin: 0;
      font-size: 0.95em;
      padding: 10px 14px;
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .hamburger-box {
      position: relative;
      margin: 0 4px 0 0;
      flex: 0 0 auto;
    }

    .checkbox {
      position: absolute;
      width: 42px;
      height: 42px;
      margin: 0;
      opacity: 0;
      cursor: pointer;
      z-index: 5;
      display: none;
    }

    .hamburger {
      display: none;
      position: relative;
      z-index: 3;
      width: 42px;
      height: 42px;
      align-items: center;
      justify-content: center;
    }

    .hamburger-lines {
      height: 22px;
      width: 28px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .hamburger-lines .line {
      display: block;
      height: 3px;
      width: 100%;
      border-radius: 10px;
      background: var(--accent);
    }

    .hamburger-lines .line1 { transform-origin: 0% 0%; transition: transform 0.3s ease; }
    .hamburger-lines .line2 { transition: opacity 0.2s ease; }
    .hamburger-lines .line3 { transform-origin: 0% 100%; transition: transform 0.3s ease; }

    .top-menu {
      display: none;
    }

    .top-menu a {
      color: var(--muted);
      margin-right: 1em;
      font-size: 1em;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      text-decoration: none !important;
    }

    .top-menu a:hover { color: #fff; }

    @media (min-width: 981px) {
      .top-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 4px 14px;
        margin: 0 12px;
        flex: 1 1 auto;
      }
      .top-menu a { margin-right: 0; font-size: 0.92em; }
      a.logo { max-width: 240px; }
    }

    @media (max-width: 980px) {
      :root { --header-h: 72px; }

      .checkbox { display: block; }
      .hamburger { display: flex; }

      .top-menu {
        display: none;
        text-align: left;
      }

      .hamburger-box input:checked ~ .top-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(var(--header-h) - 10px);
        left: 0;
        width: min(100vw, 360px);
        background: rgba(8, 6, 22, 0.97);
        padding: 20px 24px 28px;
        border: 1px solid var(--border);
        border-radius: 0 0 12px 0;
        gap: 12px;
        z-index: 20;
        box-shadow: 8px 12px 30px rgba(0, 0, 0, 0.45);
      }

      .hamburger-box input:checked ~ .top-menu a {
        display: block;
        line-height: 1.6;
        font-size: 1.15em;
        margin: 0;
      }

      .hamburger-box input:checked ~ .hamburger .line1 {
        transform: rotate(45deg);
      }
      .hamburger-box input:checked ~ .hamburger .line2 {
        opacity: 0;
      }
      .hamburger-box input:checked ~ .hamburger .line3 {
        transform: rotate(-45deg);
      }
    }

    @media (max-width: 520px) {
      :root { --header-h: 66px; }

      .top { padding: 8px 0; }
      .top .wrapper { padding: 0 10px; gap: 6px; }

      a.logo { max-width: 46%; }
      a.logo img { height: 50px; }

      .header-actions { gap: 6px; }

      .top .btn {
        font-size: 0.78em;
        padding: 8px 10px;
        min-height: 36px;
        border-radius: 6px;
      }

      .hamburger,
      .checkbox {
        width: 36px;
        height: 36px;
      }

      .hamburger-lines {
        width: 24px;
        height: 18px;
      }
    }

    @media (max-width: 360px) {
      .top .btn-login { display: none; }
      a.logo { max-width: 48%; }
      a.logo img { height: 44px; }
      .top .btn { font-size: 0.75em; padding: 8px 9px; }
    }

    /* —— Banner (CLS-safe) —— */
    .banner {
      margin: 8px 0 18px;
    }

    .banner > a {
      display: block;
      position: relative;
      line-height: 0;
    }

    .banner picture {
      display: block;
      width: 100%;
      aspect-ratio: 1920 / 600;
      background: var(--surface);
      border-radius: 14px;
      overflow: hidden;
      contain: layout paint;
    }

    .banner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      border-radius: 14px;
      max-width: 100%;
    }

    @media (max-width: 719px) {
      .banner picture {
        aspect-ratio: 800 / 1000;
      }
    }

    /* —— Content —— */
    .content-intro-cta {
      margin: 1.2em 0 0.4em;
    }

    .content-table {
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px 0;
      background: var(--surface);
      margin: 8px 0 20px;
    }

    .content-table-title {
      display: flex;
      align-items: center;
      cursor: pointer;
      padding-bottom: 12px;
      min-height: 1.5em;
      gap: 8px;
      user-select: none;
    }

    .content-table-title p {
      margin: 0;
      font-size: 1.2em;
      font-weight: 600;
      font-family: var(--font-ui);
    }

    .menu-icon, .menu-arrow {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }

    .menu-arrow { margin-left: auto; transition: transform 0.25s ease; }
    .content-table.active .menu-arrow { transform: rotate(180deg); }

    .content-table nav {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
    }

    .content-table ul {
      padding-inline-start: 0;
      margin: 0 0 8px;
      font-size: 1em;
    }

    .content-table li {
      list-style: none;
      margin-bottom: 12px;
      font-size: 1.05em;
      font-weight: 500;
      font-family: var(--font-ui);
    }

    .content-table a {
      color: var(--text);
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    .blocks > .block-row:nth-child(odd) {
      background: var(--surface);
    }

    .blocks > .block-row:nth-child(even) {
      background: transparent;
    }

    .block-row {
      padding: 4px 0 18px;
    }

    .html-block img {
      display: block;
      max-width: 100%;
      height: auto;
      margin-top: 20px;
      border-radius: 12px;
    }

    .faq-question {
      padding: 8px 0 10px;
      border-bottom: 1px solid var(--border);
      font-weight: 600;
    }

    .faq-question p {
      margin: 8px 0 0;
      font-family: var(--font-ui);
      font-size: 1.15em;
    }

    .faq-answer p {
      margin: 0.6em 0 1em;
      color: var(--muted);
    }

    /* —— Footer —— */
    .bottom {
      background: linear-gradient(180deg, var(--surface) 0%, #0c0a18 100%);
      border-top: 1px solid var(--border);
      padding: 20px 0 28px;
      margin-top: 10px;
    }

    .bottom .wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .bottom-menu {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      justify-content: center;
      font-size: 0.95em;
    }

    .bottom-menu a {
      color: var(--muted);
      text-decoration: none;
    }

    .bottom-menu a:hover { color: #fff; }

    .bottom .copy {
      margin: 12px auto 0;
      text-align: center;
      color: var(--muted);
      font-size: 0.95em;
      font-family: var(--font-ui);
    }

    @media (max-width: 900px) {
      table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      th, td {
        min-width: 140px;
      }

      .wrapper { padding: 10px 16px; }
    }

    @media (max-width: 520px) {
      h1 { font-size: 1.45em; }
      h2 { font-size: 1.28em; }
      h3 { font-size: 1.1em; }
      p { font-size: 1.05em; }

      .btn {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        padding: 14px 16px;
      }

      .content-intro-cta .btn {
        display: flex;
        justify-content: center;
      }
    }
