:root {
      --hero-stack-gap: 18px;
      --bg: #121315;
      --panel: #1b1d20;
      --soft: #31353b;
      --line: #484d54;
      --text: #f2f2f0;
      --muted: #c9c8c2;
      --brand-red: #ff4b2b;
      --brand-orange: #ff9a3d;
      --brand-warm: #ffb46a;
      --shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at top right, rgba(255, 154, 61, 0.07), transparent 24%),
        radial-gradient(circle at left top, rgba(255, 75, 43, 0.08), transparent 22%),
        linear-gradient(180deg, #0e1012 0%, #14171b 100%);
      color: var(--text);
      line-height: 1.55;
      transition: background 0.3s ease, color 0.3s ease;
    }

    body.light-mode {
      --text: #17191c;
      --muted: #5d646d;
      --panel: #ffffff;
      --soft: #e9edf1;
      --line: #d8dde4;
      --shadow: 0 18px 36px rgba(17, 19, 21, 0.08);
      background:
        radial-gradient(circle at top right, rgba(255, 179, 71, 0.18), transparent 26%),
        radial-gradient(circle at left top, rgba(255, 75, 43, 0.14), transparent 24%),
        linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
      color: var(--text);
    }

    body.light-mode .topbar {
      background: rgba(255,255,255,0.86);
      border-bottom: 1px solid rgba(17,19,21,0.08);
    }

    body.light-mode .hero-card,
    body.light-mode .panel,
    body.light-mode .form-card,
    body.light-mode .mini,
    body.light-mode .stat,
    body.light-mode .card,
    body.light-mode .ref-card,
    body.light-mode .contact-row,
    body.light-mode ul.clean li,
    body.light-mode .inline-note,
    body.light-mode .success-box {
      background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,250,252,0.92));
      border-color: rgba(17,19,21,0.08);
      box-shadow: var(--shadow);
    }

    .captcha-wrap {
      display: grid;
      gap: 10px;
      margin-top: 16px;
      padding: 16px;
      border-radius: 16px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .captcha-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .captcha-code {
      min-width: 94px;
      padding: 11px 14px;
      border-radius: 12px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: var(--brand-warm);
      font-weight: 800;
      letter-spacing: 0.22em;
      text-align: center;
      user-select: none;
    }

    .captcha-refresh {
      padding: 11px 14px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      font: inherit;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .captcha-refresh:hover {
      border-color: rgba(255,154,61,0.3);
      color: var(--brand-orange);
    }

    .captcha-error {
      display: none;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,75,43,0.08);
      border: 1px solid rgba(255,75,43,0.22);
      color: #ffb7aa;
      font-size: 0.92rem;
    }

    .post-submit-note {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,0.08);
      display: grid;
      gap: 10px;
      color: var(--muted);
    }

    .post-submit-note p {
      margin: 0;
      line-height: 1.6;
    }

    body.light-mode .logo-svg {
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(17,19,21,0.08);
    }

    body.light-mode .logo-box {
      background: linear-gradient(180deg, #ffffff, #f5f7fa);
    }

    body.light-mode .btn-secondary {
      color: var(--text);
      border-color: rgba(17,19,21,0.12);
      background: rgba(255,255,255,0.76);
    }

    body.light-mode .btn-secondary:hover {
      border-color: rgba(255,154,61,0.42);
      color: var(--brand-red);
    }

    body.light-mode .top-nav a { color: #5d646d; }
    body.light-mode .top-nav a:hover { color: var(--brand-red); }

    body.light-mode input,
    body.light-mode select,
    body.light-mode textarea {
      background: #ffffff;
      color: var(--text);
      border-color: rgba(17,19,21,0.12);
    }

    body.light-mode option {
      background: #ffffff;
      color: #17191c;
    }

    body.light-mode .ref-image {
      color: #22262b;
      background:
        linear-gradient(135deg, rgba(255,75,43,0.12), rgba(255,179,71,0.16)),
        repeating-linear-gradient(135deg, rgba(17,19,21,0.03), rgba(17,19,21,0.03) 12px, transparent 12px, transparent 24px);
    }

    body.light-mode .hero-card::after {
      background: radial-gradient(circle, rgba(255,154,61,0.16), transparent 60%);
    }

    body.light-mode .captcha-wrap,
    body.light-mode .captcha-code,
    body.light-mode .captcha-refresh {
      background: rgba(17,19,21,0.03);
      border-color: rgba(17,19,21,0.10);
      color: var(--text);
    }

    body.light-mode .captcha-error {
      background: rgba(255,75,43,0.06);
      border-color: rgba(255,75,43,0.18);
      color: #b83b23;
    }

    body.light-mode .post-submit-note {
      border-top-color: rgba(17,19,21,0.08);
    }

    body.light-mode .footer-inner {
      border-top-color: rgba(17,19,21,0.08);
    }

    a { color: inherit; text-decoration: none; }
    .container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(14px);
      background: rgba(18, 19, 21, 0.86);
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .topbar-inner {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 24px;
      padding: 14px 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 18px;
    }
    .brand-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      padding-left: 4px;
    }
    .brand-mark {
      letter-spacing: 0.22em;
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--brand-orange);
      text-transform: uppercase;
    }
    .brand-name { font-size: 1.08rem; font-weight: 800; color: var(--text); }

    .logo-svg {
      display: block;
      background: rgba(255,255,255,0.96);
      border-radius: 14px;
      box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    }

    .brand .logo-svg {
      width: 82px;
      height: 62px;
      padding: 4px 6px;
      object-fit: contain;
      object-position: center;
      flex-shrink: 0;
    }

    .top-nav {
      display: flex;
      gap: 16px;
      flex-wrap: nowrap;
      white-space: nowrap;
      align-items: center;
      justify-content: center;
      justify-self: center;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .top-nav::-webkit-scrollbar { display: none; }

    .hero-left-stack {
      display: flex;
      flex-direction: column;
      gap: var(--hero-stack-gap);
      min-height: 0;
      height: auto;
      align-self: start;
      align-content: start;
    }

    .hero-left-stack .hero-main {
      flex: 0 0 auto;
    }

    .seo-teaser-card {
      margin-top: 44px;
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: 28px;
      box-shadow: var(--shadow);
      padding: 22px 28px;
      display: grid;
      gap: 10px;
      min-height: 0;
      align-content: start;
      position: relative;
      overflow: hidden;
    }

    .seo-teaser-card::before {
      display: none;
    }

    .seo-teaser-card::after {
      content: "";
      position: absolute;
      inset: auto -110px -110px auto;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,154,61,0.12), transparent 60%);
      pointer-events: none;
    }

    .seo-teaser-intro {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      max-width: 760px;
    }

    .seo-teaser-meta {
      color: var(--brand-orange);
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .seo-teaser-topic {
      display: grid;
      gap: 10px;
      min-height: 0;
    }

    .seo-teaser-card h3 {
      margin: 0;
      font-size: clamp(1.18rem, 1.65vw, 1.52rem);
      line-height: 1.16;
    }

    .seo-teaser-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.68;
      max-width: 760px;
    }

    .seo-teaser-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      padding-top: 6px;
    }

    .seo-teaser-note {
      color: var(--brand-warm);
      font-size: 0.9rem;
      font-weight: 700;
    }

    body.light-mode .seo-teaser-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,250,252,0.92));
      border-color: rgba(17,19,21,0.08);
      box-shadow: var(--shadow);
    }

    body.light-mode .seo-teaser-card::before {
      display: none;
    }

    body.light-mode .seo-teaser-card::after {
      background: radial-gradient(circle, rgba(255,154,61,0.16), transparent 60%);
    }

    .theme-switch-wrap {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: var(--muted);
      font: inherit;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: 0.25s ease;
      min-width: auto;
      justify-content: center;
    }

    .theme-toggle:hover {
      border-color: rgba(255,154,61,0.30);
      color: var(--text);
      background: rgba(255,255,255,0.06);
    }

    .theme-toggle-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      font-size: 0.9rem;
      line-height: 1;
    }

    .theme-toggle-label {
      line-height: 1;
      white-space: nowrap;
    }

    body.light-mode .theme-toggle {
      border-color: rgba(17,19,21,0.12);
      background: rgba(17,19,21,0.04);
      color: #4e545d;
    }

    body.light-mode .theme-toggle:hover {
      border-color: rgba(255,154,61,0.28);
      background: rgba(17,19,21,0.06);
      color: #17191c;
    }
    .top-nav a { color: var(--muted); font-size: 0.95rem; }
    .top-nav a:hover { color: var(--brand-orange); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-radius: 999px;
      padding: 14px 20px;
      font-weight: 800;
      transition: 0.2s ease;
      border: 1px solid transparent;
      cursor: pointer;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--brand-red), #ff6d2b 55%, var(--brand-orange));
      color: #131416;
      box-shadow: var(--shadow);
    }

    .btn-primary:hover { transform: translateY(-1px); }
    .btn-secondary {
      background: transparent;
      color: var(--text);
      border-color: rgba(255,255,255,0.18);
    }
    .btn-secondary:hover { border-color: rgba(255,154,61,0.4); color: var(--brand-orange); }

