:root {
    --bg-1: #f7f1eb;
    --bg-2: #efe2d8;
    --ink: #1c1916;
    --muted: #7a6f66;
    --accent: #c62828;
    --accent-strong: #9b1e25;
    --card: #ffffff;
    --line: #e4d5cb;
    --shadow: 0 24px 60px rgba(24, 18, 12, 0.12);
    --radius: 16px;
    --radius-sm: 12px;
    --font-body: "Lato", sans-serif;
    --font-display: "Raleway", sans-serif;
    --font-accent: "Crete Round", serif;
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: radial-gradient(circle at top left, #fff8f1 0%, transparent 55%),
      linear-gradient(180deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
  }

  .page {
    position: relative;
    overflow: hidden;
  }

  .page::before {
    content: "";
    position: absolute;
    inset: -120px 0 auto 0;
    height: 420px;
    background: radial-gradient(circle at 20% 20%, rgba(198, 40, 40, 0.12), transparent 60%),
      radial-gradient(circle at 80% 0%, rgba(155, 30, 37, 0.12), transparent 55%);
    z-index: 0;
  }

  a {
    color: var(--accent);
    text-decoration: none;
  }

  .container {
    width: min(1120px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 16px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 20px;
    letter-spacing: 1px;
  }

  .brand-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.4px;
  }

  .brand-sub {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
  }

  .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .page-title {
    padding: 44px 0 24px;
  }

  .title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 11px;
    color: var(--muted);
    margin: 0;
  }

  h1 {
    font-family: var(--font-display);
    font-size: 32px;
    margin: 8px 0 6px;
  }

  .subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
  }

  .title-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    min-width: 190px;
  }

  .title-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .title-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 6px;
  }

  .breadcrumb {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 14px 0 0;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
  }

  .breadcrumb li::after {
    content: "/";
    margin-left: 10px;
    color: #c0b2a8;
  }

  .breadcrumb li:last-child::after {
    content: "";
  }

  .breadcrumb a {
    color: var(--muted);
  }

  .breadcrumb .active {
    color: var(--ink);
  }

  .content {
    padding: 24px 0 64px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    position: relative;
    overflow: hidden;
  }

  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  }

  .card-header h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 22px;
  }

  .card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }

  .form {
    margin-top: 18px;
    display: grid;
    gap: 16px;
  }

  label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
  }

  input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2d3c8;
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: #fffaf6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
    background: #fff;
  }

  .captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .captcha-img {
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .link-button {
    border: none;
    background: none;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
  }

  .btn-primary {
    margin-top: 4px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(198, 40, 40, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(198, 40, 40, 0.25);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
  }

  .hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }
  .download-frame {
    display: none;
  }
  .alert {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
  }

  .alert-error {
    background: #fde7e7;
    color: #b42323;
    border: 1px solid #f4b6b6;
  }

  .alert-success {
    background: #e8f5ed;
    color: #1f6f3e;
    border: 1px solid #bde2c9;
  }

  .empty-state {
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #fffaf7;
    color: var(--muted);
    margin-top: 12px;
  }

  .badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #efe1d7;
    color: #6f5e51;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .site-footer {
    background: #16120f;
    color: #c8b7aa;
    padding: 24px 0;
  }

  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .footer-links a {
    color: #d2c1b4;
    margin-left: 12px;
  }

  .footer-links a:hover {
    color: #fff;
  }

  .animate {
    animation: rise 0.7s ease both;
  }

  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 980px) {
    .grid {
      grid-template-columns: 1fr;
    }

    .header-inner {
      flex-direction: column;
      align-items: flex-start;
    }

    .title-card {
      width: 100%;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .animate {
      animation: none;
    }
  }
