*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg-deep:    #060E1E;
    --bg-dark:    #0A1628;
    --bg-card:    #0F1F3A;
    --bg-card2:   #132240;
    --border:     #1E3358;
    --border-lt:  #2A4470;
    --blue:       #2563EB;
    --blue-lt:    #3B82F6;
    --blue-glow:  rgba(37,99,235,0.25);
    --gold:       #C9A84C;
    --gold-lt:    #E2C97E;
    --text-white: #F0F4FF;
    --text-dim:   #94A8C8;
    --text-muted: #5A7299;
    --success:    #10B981;
    --danger:     #EF4444;
    --font-head:  'Tenor Sans', serif;
    --font-body:  'Noto Serif', serif;
    --font-ui:    'Inter', sans-serif;
    --r:          8px;
    --r-lg:       14px;
  }

  html, body, #root {
    height: 100%;
    background: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-ui);
  }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg-dark); }
  ::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 3px; }

  /* ── Utility ── */
  .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .fade-in { animation: fadeIn .4s ease both; }
  @keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── Buttons ── */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--r); border: none;
    font-family: var(--font-ui); font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all .2s; white-space: nowrap;
    text-decoration: none;
  }
  .btn-primary {
    background: var(--blue); color: #fff;
    box-shadow: 0 0 20px var(--blue-glow);
  }
  .btn-primary:hover { background: var(--blue-lt); box-shadow: 0 0 32px var(--blue-glow); transform: translateY(-1px); }
  .btn-ghost {
    background: transparent; color: var(--text-dim);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover { border-color: var(--border-lt); color: var(--text-white); background: rgba(255,255,255,.03); }
  .btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-lt));
    color: #0A1628; font-weight: 600;
  }
  .btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
  .btn-sm { padding: 8px 16px; font-size: 13px; }
  .btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 10px; }

  /* ── Badge ── */
  .badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
  }
  .badge-blue { background: rgba(37,99,235,.15); color: var(--blue-lt); border: 1px solid rgba(37,99,235,.3); }
  .badge-gold { background: rgba(201,168,76,.15); color: var(--gold-lt); border: 1px solid rgba(201,168,76,.3); }
  .badge-green { background: rgba(16,185,129,.15); color: #34D399; border: 1px solid rgba(16,185,129,.3); }
  .badge-muted { background: rgba(255,255,255,.06); color: var(--text-dim); border: 1px solid var(--border); }

  /* ── Card ── */
  .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
  }

  /* ── Input ── */
  .inp {
    width: 100%; padding: 12px 14px;
    background: var(--bg-deep); border: 1px solid var(--border);
    border-radius: var(--r); color: var(--text-white);
    font-family: var(--font-ui); font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
  }
  .inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
  .inp::placeholder { color: var(--text-muted); }

  /* ── Label ── */
  .lbl { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }

  /* ── Divider ── */
  .divider { height: 1px; background: var(--border); margin: 20px 0; }

  /* ── Page transitions ── */
  .page-wrap { min-height: 100vh; }

  /* ── Noise overlay ── */
  .noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ── Navbar ── */
  .navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 64px;
    background: rgba(6,14,30,.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: var(--font-head); font-size: 19px; color: #ffffff;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    text-decoration: none; letter-spacing: -.01em;
    background: none; border: none; padding: 0; outline: none;
    white-space: nowrap;
  }
  .nav-logo .logo-text-main { color: #ffffff; }
  .nav-logo .logo-text-dot { color: #60A5FA; }
  .nav-links { display: flex; align-items: center; gap: 4px; }
  .nav-link {
    padding: 8px 14px; border-radius: var(--r); font-size: 14px;
    color: var(--text-dim); cursor: pointer; background: none; border: none;
    font-family: var(--font-ui); transition: all .15s;
  }
  .nav-link:hover { color: var(--text-white); background: rgba(255,255,255,.05); }
  .nav-link.active { color: var(--text-white); }
  .nav-actions { display: flex; align-items: center; gap: 10px; }

  /* ── Hero ── */
  .hero {
    position: relative; overflow: hidden;
    min-height: calc(100vh - 64px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 80px 40px;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.18) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,168,76,.06) 0%, transparent 60%);
  }
  .hero-grid {
    position: absolute; inset: 0; opacity: .04;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  .hero-tag { margin-bottom: 24px; position: relative; }
  .hero-title {
    font-family: var(--font-head);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.1; letter-spacing: -.02em;
    color: var(--text-white);
    max-width: 800px; position: relative;
    text-wrap: pretty;
  }
  .hero-title .accent { color: var(--blue-lt); }
  .hero-subtitle {
    font-family: var(--font-body);
    font-size: 19px; line-height: 1.7;
    color: var(--text-dim); max-width: 560px;
    margin: 24px auto 40px; position: relative;
    text-wrap: pretty;
  }
  .hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
  .hero-stats {
    display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
    margin-top: 72px; position: relative;
  }
  .stat-item { text-align: center; }
  .stat-num {
    font-family: var(--font-head); font-size: 36px;
    color: var(--text-white); display: block;
  }
  .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

  /* ── How it works ── */
  .section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }
  .section-label {
    font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
    color: var(--blue-lt); font-weight: 600; margin-bottom: 16px;
  }
  .section-title {
    font-family: var(--font-head); font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15; color: var(--text-white); text-wrap: pretty;
  }
  .section-sub {
    font-family: var(--font-body); font-size: 17px; line-height: 1.7;
    color: var(--text-dim); margin-top: 14px; max-width: 600px; text-wrap: pretty;
  }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 48px; }
  .step {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden;
    transition: border-color .2s, transform .2s;
  }
  .step:hover { border-color: var(--border-lt); transform: translateY(-3px); }
  .step-num {
    font-family: var(--font-head); font-size: 14px; color: var(--blue-lt);
    display: inline-block; padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    width: 100%; letter-spacing: .14em;
  }
  .step-icon { display:none; }
  .step-title { font-size: 17px; font-weight: 600; color: var(--text-white); margin-bottom: 10px; letter-spacing: -.005em; }
  .step-desc { font-size: 14px; line-height: 1.65; color: var(--text-dim); }

  /* Features */
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
  .feature {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px;
    display: flex; flex-direction: column; gap: 10px;
    transition: border-color .2s;
  }
  .feature:hover { border-color: var(--border-lt); }
  .feature-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(37,99,235,.05));
    border: 1px solid rgba(37,99,235,.3);
    color: var(--blue-lt); font-family: var(--font-head); font-size: 17px;
    flex-shrink: 0; margin-bottom: 6px;
  }
  .feature-title { font-size: 16px; font-weight: 600; color: var(--text-white); letter-spacing: -.005em; }
  .feature-desc { font-size: 14px; line-height: 1.65; color: var(--text-dim); }

  /* Trust bar */
  .trust-bar {
    background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 36px 40px;
    display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap;
  }
  .trust-item { display: flex; align-items: center; gap: 14px; }
  .trust-mark {
    width: 40px; height: 40px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(37,99,235,.05));
    border: 1px solid rgba(37,99,235,.3);
    color: var(--blue-lt); font-family: var(--font-head);
    font-size: 20px; display:flex; align-items:center; justify-content:center;
    flex-shrink: 0;
  }
  .trust-icon { font-size: 22px; }
  .trust-text { font-size: 13px; color: var(--text-muted); }
  .trust-text strong { color: var(--text-white); display: block; font-size: 14px; font-weight: 600; letter-spacing: -.005em; margin-bottom: 2px; }

  /* Pull-quote */
  .pull-quote {
    font-family: var(--font-body); font-size: 22px; line-height: 1.5;
    color: var(--text-white); text-wrap: pretty;
    border-left: 3px solid var(--gold); padding: 8px 0 8px 24px;
    max-width: 720px;
  }
  .pull-quote-cite { font-size: 13px; color: var(--text-muted); margin-top: 14px; font-family: var(--font-ui); }

  /* Comparison table */
  .vs-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--border); margin-top: 40px;
  }
  .vs-col { padding: 32px; background: var(--bg-card); }
  .vs-col + .vs-col { border-left: 1px solid var(--border); }
  .vs-col.vs-us {
    background: linear-gradient(180deg, rgba(37,99,235,.08), var(--bg-card));
    position: relative;
  }
  .vs-col.vs-us::before {
    content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--blue);
  }
  .vs-head {
    font-family: var(--font-head); font-size: 22px; color: var(--text-white);
    margin-bottom: 4px; display:flex; align-items:center; gap:10px;
  }
  .vs-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 22px; letter-spacing: .04em; text-transform: uppercase; font-weight:600; }
  .vs-row { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.04); font-size:14px; color: var(--text-dim); display:flex; gap:10px; align-items:flex-start; line-height:1.55; }
  .vs-row:first-of-type { border-top:0; }
  .vs-row .ck { color: var(--success); font-weight:700; flex-shrink:0; width:14px; }
  .vs-row .xk { color: #6B7E9F; flex-shrink:0; width:14px; }
  @media (max-width: 720px) { .vs-grid { grid-template-columns: 1fr; } .vs-col + .vs-col { border-left:0; border-top:1px solid var(--border); } }

  /* Specialist card */
  .specialist-card {
    display: grid; grid-template-columns: 240px 1fr; gap: 36px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 32px;
    align-items: start;
  }
  .specialist-portrait {
    width: 240px; height: 320px; border-radius: var(--r);
    background: #0d1b2e;
    border: 1px solid var(--border-lt);
    overflow: hidden; position: relative;
    box-shadow: 0 6px 30px rgba(0,0,0,.35);
  }
  .specialist-portrait img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
    display:block;
    filter: saturate(.95) contrast(1.02);
  }
  .specialist-portrait::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(180deg, transparent 55%, rgba(10,22,40,.55) 100%);
    pointer-events: none;
  }
  .spec-name { font-family: var(--font-head); font-size: 26px; color: var(--text-white); letter-spacing: -.005em; }
  .spec-role { font-size: 13px; color: var(--blue-lt); margin-top: 4px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
  .spec-creds { margin-top: 18px; display:flex; flex-direction:column; gap: 8px; }
  .spec-cred { font-size: 13px; color: var(--text-dim); display:flex; gap:10px; line-height:1.6; }
  .spec-cred .lbl { color: var(--text-muted); min-width: 130px; font-size: 12px; padding-top:1px; }
  @media (max-width: 720px) { .specialist-card { grid-template-columns: 1fr; } .specialist-portrait { width:100%; height:380px; } .specialist-portrait img { object-position: 50% 18%; } }

  /* CTA Section */
  .cta-section {
    padding: 80px 40px; text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,.06) 50%, transparent 100%);
  }

  /* ── Auth ── */
  .auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px; background: var(--bg-deep);
    position: relative; overflow: hidden;
  }
  .auth-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37,99,235,.08) 0%, transparent 70%);
  }
  .auth-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 44px; width: 100%; max-width: 440px;
    position: relative; z-index: 1;
    box-shadow: 0 32px 80px rgba(0,0,0,.4);
  }
  .auth-logo { text-align: center; margin-bottom: 32px; }
  .auth-title { font-family: var(--font-head); font-size: 26px; text-align: center; margin-bottom: 8px; }
  .auth-sub { font-size: 14px; color: var(--text-dim); text-align: center; margin-bottom: 28px; }
  .auth-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 28px; }
  .auth-tab {
    flex: 1; padding: 10px; text-align: center; font-size: 14px; font-weight: 500;
    cursor: pointer; background: transparent; border: none; color: var(--text-muted);
    font-family: var(--font-ui); transition: all .15s;
  }
  .auth-tab.active { background: var(--blue); color: #fff; }
  .auth-form { display: flex; flex-direction: column; gap: 18px; }
  .form-group { display: flex; flex-direction: column; }
  .auth-divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 4px 0; }

  /* ── Dashboard ── */
  .dash-layout { display: flex; min-height: calc(100vh - 64px); }
  .sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--bg-card); border-right: 1px solid var(--border);
    padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
  }
  .sidebar-section { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 12px 12px 6px; font-weight: 600; }
  .sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--r); font-size: 14px;
    color: var(--text-dim); cursor: pointer; background: none; border: none;
    font-family: var(--font-ui); width: 100%; text-align: left;
    transition: all .15s;
  }
  .sidebar-item:hover { background: rgba(255,255,255,.05); color: var(--text-white); }
  .sidebar-item.active { background: var(--blue-glow); color: var(--blue-lt); border: 1px solid rgba(37,99,235,.2); }
  .sidebar-item .si-icon { font-size: 16px; width: 20px; text-align: center; }
  .dash-main { flex: 1; padding: 32px; overflow-y: auto; }
  .dash-header { margin-bottom: 28px; }
  .dash-title { font-family: var(--font-head); font-size: 28px; color: var(--text-white); }
  .dash-sub { font-size: 14px; color: var(--text-dim); margin-top: 6px; }

  /* Stats row */
  .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
  .stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 20px;
  }
  .stat-card-val { font-family: var(--font-head); font-size: 32px; color: var(--text-white); }
  .stat-card-lbl { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
  .stat-card-delta { font-size: 12px; color: var(--success); margin-top: 8px; }

  /* Table */
  .table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
  .table-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .table-head-title { font-size: 15px; font-weight: 600; color: var(--text-white); }
  table { width: 100%; border-collapse: collapse; }
  thead th {
    padding: 12px 20px; text-align: left; font-size: 12px;
    letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
    border-bottom: 1px solid var(--border); font-weight: 500;
  }
  tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s; cursor: pointer; }
  tbody tr:last-child { border-bottom: none; }
  tbody tr:hover { background: rgba(255,255,255,.03); }
  tbody td { padding: 14px 20px; font-size: 14px; color: var(--text-dim); }
  tbody td.strong { color: var(--text-white); font-weight: 500; }

  /* ── Create Request ── */
  .wizard-wrap { max-width: 720px; margin: 0 auto; }
  .wizard-steps { display: flex; gap: 0; margin-bottom: 32px; }
  .wizard-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
  .wizard-step::after {
    content: ''; position: absolute; top: 16px; left: 50%; right: -50%;
    height: 2px; background: var(--border);
    z-index: 0;
  }
  .wizard-step:last-child::after { display: none; }
  .wizard-step.done::after { background: var(--blue); }
  .ws-circle {
    width: 32px; height: 32px; border-radius: 50%; background: var(--bg-card);
    border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--text-muted); position: relative; z-index: 1;
    transition: all .2s;
  }
  .wizard-step.active .ws-circle { border-color: var(--blue); background: var(--blue); color: #fff; }
  .wizard-step.done .ws-circle { border-color: var(--blue); background: var(--blue); color: #fff; }
  .ws-label { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: center; }
  .wizard-step.active .ws-label { color: var(--blue-lt); }

  .upload-zone {
    border: 2px dashed var(--border); border-radius: var(--r-lg);
    padding: 48px; text-align: center; cursor: pointer;
    transition: all .2s; position: relative;
  }
  .upload-zone:hover { border-color: var(--blue); background: var(--blue-glow); }
  .upload-icon { font-size: 40px; margin-bottom: 16px; }
  .upload-title { font-size: 16px; font-weight: 600; color: var(--text-white); margin-bottom: 8px; }
  .upload-sub { font-size: 14px; color: var(--text-dim); }

  /* Protocol */
  .protocol-doc {
    background: #fff; color: #1a1a2e; border-radius: var(--r-lg);
    padding: 56px 64px; max-width: 760px; margin: 0 auto;
    font-family: 'Noto Serif', serif; font-size: 13px;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    position: relative;
  }
  .protocol-doc::before {
    content: ''; position:absolute; top:0; left:0; right:0; height:4px;
    background: linear-gradient(90deg, #1a3a6e 0%, #2563EB 50%, #1a3a6e 100%);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .proto-header { text-align: center; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid #c8d8f0; }
  .proto-seal {
    width: 84px; height: 84px; border-radius: 50%;
    border: 3px double #1a3a6e; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; background: #f0f4ff;
    font-family: 'Tenor Sans', serif; font-size: 11px;
    letter-spacing: .12em; color: #1a3a6e; text-align: center;
    line-height: 1.2; padding: 6px;
  }
  .proto-org { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #5a7299; font-weight: 600; margin-bottom: 16px; }
  .proto-title { font-size: 18px; font-weight: 700; color: #0A1628; line-height: 1.3; margin-bottom: 10px; font-family: 'Tenor Sans', serif; letter-spacing: -.005em; }
  .proto-sub-title { font-size: 13px; color: #5a7299; font-style: italic; }
  .proto-num { font-size: 13px; color: #1a1a2e; margin-top: 14px; font-weight: 600; font-family: monospace; letter-spacing: .03em; }
  .proto-place { font-size: 12px; color: #5a7299; margin-top: 6px; }
  .proto-section { margin-bottom: 24px; }
  .proto-section h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
    color: #1a3a6e; margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0; font-weight: 700;
  }
  .proto-row { display: flex; gap: 14px; margin-bottom: 6px; font-size: 13px; line-height: 1.6; }
  .proto-key { color: #5a7299; min-width: 180px; flex-shrink: 0; }
  .proto-val { color: #1a1a2e; }
  .proto-prose { font-size: 13px; line-height: 1.75; color: #1a1a2e; text-align: justify; }
  .proto-prose p { margin-bottom: 8px; }
  .proto-list { margin: 8px 0 8px 24px; font-size: 13px; line-height: 1.75; color: #1a1a2e; }
  .proto-list li { margin-bottom: 4px; }
  .proto-question {
    background: #f0f4ff; border-left: 3px solid #1a3a6e;
    padding: 10px 14px; margin: 8px 0; font-size: 13px; color: #1a1a2e;
    font-style: italic; line-height: 1.55;
  }
  .proto-conclusion {
    background: #fffbea; border: 1px solid #d4b75c; border-left: 4px solid #d4b75c;
    padding: 14px 18px; margin-top: 6px; font-size: 13px; line-height: 1.7; color: #1a1a2e;
  }
  .proto-conclusion strong { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8a6b1c; margin-bottom: 6px; }
  .proto-screenshot {
    background: #f7f9fc; border: 1px solid #d8e0ed; border-radius: 4px;
    padding: 12px 14px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 14px;
  }
  .proto-screen-num { font-size: 11px; font-weight: 700; color: #1a3a6e; min-width: 28px; font-family: monospace; }
  .proto-screen-thumb {
    width: 44px; height: 64px; background:
      repeating-linear-gradient(135deg, #d8e0ed 0 6px, #e8eef5 6px 12px);
    border-radius: 3px; flex-shrink: 0;
  }
  .proto-screen-meta { flex: 1; font-size: 12px; }
  .proto-screen-meta strong { display: block; color: #1a1a2e; margin-bottom: 2px; font-weight: 600; }
  .proto-screen-meta .ts { font-size: 11px; color: #5a7299; margin-bottom: 2px; }
  .proto-screen-hash { font-family: monospace; font-size: 10px; color: #5a7299; word-break: break-all; }
  .proto-sign { margin-top: 36px; padding-top: 28px; border-top: 1px solid #c8d8f0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: end; }
  .proto-sign-block { font-size: 12px; line-height: 1.5; }
  .proto-sign-block .role { font-size: 11px; color: #5a7299; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
  .proto-sign-block .sig-wrap { display:flex; align-items:center; gap: 14px; margin-bottom: 10px; }
  .proto-sign-block .sig-photo {
    width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
    border: 2px solid #1a3a6e; flex-shrink: 0; background: #f0f4ff;
  }
  .proto-sign-block .sig-photo img { width:100%; height:100%; object-fit: cover; object-position: 50% 22%; display:block; }
  .proto-sign-block .sig {
    font-family: 'Tenor Sans', serif; font-size: 22px; color: #1a3a6e;
    border-bottom: 1px solid #1a1a2e; padding-bottom: 4px; margin-bottom: 6px;
    font-style: italic;
  }
  .proto-sign-block .name { color: #1a1a2e; font-weight: 600; font-size: 12px; }
  .proto-sign-block .caption { font-size: 10px; color: #5a7299; margin-top: 2px; }
  .proto-stamp {
    width: 92px; height: 92px; border-radius: 50%;
    border: 2px solid #1a3a6e; outline: 1px solid #1a3a6e; outline-offset: 3px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #1a3a6e; font-family: 'Tenor Sans', serif; transform: rotate(-8deg);
    text-align: center; font-size: 8px; letter-spacing: .1em; line-height: 1.3;
    padding: 6px; opacity: .85;
  }
  .proto-stamp .stamp-mid { font-size: 16px; letter-spacing: 0; margin: 2px 0; }
  .proto-footer-note {
    margin-top: 24px; padding-top: 18px; border-top: 1px dashed #c8d8f0;
    font-size: 10px; line-height: 1.6; color: #8a9ab0; text-align: center;
  }
  @media (max-width: 720px) { .protocol-doc { padding: 32px 24px; } .proto-sign { grid-template-columns: 1fr; gap: 24px; } .proto-key { min-width: 130px; } }

  /* Pricing */
  .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
  .pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 32px; position: relative;
    transition: transform .2s;
  }
  .pricing-card:hover { transform: translateY(-4px); }
  .pricing-card.featured {
    border-color: var(--blue); background: linear-gradient(180deg, rgba(37,99,235,.08) 0%, var(--bg-card) 100%);
  }
  .pricing-card .pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .pricing-name { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
  .pricing-price { font-family: var(--font-head); font-size: 44px; color: var(--text-white); line-height: 1; }
  .pricing-price span { font-size: 16px; color: var(--text-dim); font-family: var(--font-ui); margin-left: 4px; }
  .pricing-desc { font-size: 14px; color: var(--text-dim); margin-top: 8px; margin-bottom: 24px; min-height: 40px; }
  .pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .pricing-features li { font-size: 14px; color: var(--text-dim); display: flex; gap: 10px; align-items: flex-start; }
  .pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
  .pricing-features li.no { color: var(--text-muted); }
  .pricing-features li.no::before { content: '—'; color: var(--text-muted); font-weight: 400; }

  /* FAQ */
  .faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 40px; }
  .faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
  .faq-q {
    width: 100%; text-align: left; padding: 18px 22px; background: none; border: none;
    color: var(--text-white); font-size: 15px; font-weight: 500; cursor: pointer;
    font-family: var(--font-ui); display: flex; justify-content: space-between; align-items: center; gap: 16px;
    transition: background .15s;
  }
  .faq-q:hover { background: rgba(255,255,255,.03); }
  .faq-chevron { font-size: 18px; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
  .faq-a { padding: 0 22px 18px; font-size: 14px; line-height: 1.7; color: var(--text-dim); font-family: var(--font-body); }

  /* Footer */
  .footer {
    border-top: 1px solid var(--border); padding: 40px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  }
  .footer-copy { font-size: 13px; color: var(--text-muted); }
  .footer-links { display: flex; gap: 20px; }
  .footer-link { font-size: 13px; color: var(--text-muted); cursor: pointer; text-decoration: none; transition: color .15s; }
  .footer-link:hover { color: var(--text-dim); }

/* ════════════════════════════════════════════
   RESPONSIVE — мобильная адаптация
   ════════════════════════════════════════════ */

/* Планшеты и меньше */
@media (max-width: 900px) {
  .section { padding: 64px 24px; }
  .hero { padding: 64px 24px; min-height: auto; }
  .navbar { padding: 0 20px; }
}

/* Телефоны */
@media (max-width: 720px) {
  /* Навигация: прячем центральные ссылки + вторичную кнопку, оставляем лого + 1 действие */
  .navbar { padding: 0 14px; height: 58px; gap: 8px; }
  .nav-links { display: none; }
  .nav-logo { font-size: 15px; gap: 7px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  .nav-actions .btn-ghost { display: none; }   /* «Войти» — в hero есть свои CTA */

  /* Hero */
  .hero { padding: 52px 18px 64px; }
  .hero-subtitle { font-size: 16px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 28px; margin-top: 48px; }
  .stat-num { font-size: 28px; }

  /* Секции */
  .section { padding: 48px 18px; }
  .steps, .features, .pricing-grid { gap: 14px; margin-top: 32px; }
  .trust-bar { gap: 24px; padding: 28px 18px; }
  .pull-quote { font-size: 18px; padding-left: 18px; }

  /* Кнопки крупнее для тача */
  .btn-lg { padding: 14px 26px; font-size: 16px; }

  /* Дашборд: сайдбар сверху, горизонтальная прокрутка пунктов */
  .dash-layout { flex-direction: column; }
  .sidebar {
    width: 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 12px; gap: 6px; align-items: center;
  }
  .sidebar > div:first-child { display: none; }      /* блок «вы вошли как» */
  .sidebar-section { display: none; }
  .sidebar > div:last-child { margin-top: 0; padding-top: 0; border-top: none; margin-left: auto; }
  .sidebar-item { white-space: nowrap; width: auto; padding: 8px 12px; }
  .dash-main { padding: 20px 16px; }
  .dash-title { font-size: 22px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Таблицы заявок: горизонтальный скролл, чтобы не ломать вёрстку */
  .table-wrap { overflow-x: auto; }
  table { min-width: 560px; }

  /* Мастер заявки */
  .wizard-wrap { padding: 0; }
  .ws-label { font-size: 11px; }
  .platform-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .upload-zone { padding: 32px 18px; }

  /* Образец заключения */
  .protocol-doc { padding: 28px 18px; font-size: 12px; }
  .proto-key { min-width: 110px; }

  /* Auth */
  .auth-card { padding: 32px 22px; }

  /* Footer */
  .footer { padding: 28px 18px; flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}

/* Footer headings (контакты/реквизиты) */
.footer-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.site-footer .footer-link { cursor: pointer; }
@media (max-width: 720px) {
  .site-footer > div:first-child { flex-direction: column; gap: 20px; }
}

/* Legal documents (Условия / Политика) */
.legal .section-sub { max-width: 720px; }
.legal-sec { margin-bottom: 26px; }
.legal-sec h2 { font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--text-white); margin-bottom: 10px; }
.legal-sec p { font-size: 14.5px; line-height: 1.75; color: var(--text-dim); font-family: var(--font-body); margin-bottom: 8px; }
.legal-sec p b { color: var(--text-white); font-weight: 600; }
.legal .lnk { color: var(--blue-lt); cursor: pointer; }
.legal .lnk:hover { text-decoration: underline; }
.legal-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.7; color: var(--text-muted); }

/* Navbar: авторизованный пользователь */
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user-name {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); color: var(--text-white); font-size: 14px;
  padding: 4px 6px; border-radius: var(--r); transition: background .15s;
}
.nav-user-name:hover { background: rgba(255,255,255,.05); }
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  color: #fff; font-size: 13px; font-weight: 600;
}
.nav-user-fio { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .nav-user-fio { display: none; }   /* на телефоне оставляем только аватар + «Выйти» */
  .nav-user { gap: 6px; }
}

/* Поле пароля с «глазиком» */
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 44px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); border-radius: 6px; transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--text-white); background: rgba(255,255,255,.06); }

/* ── Navbar: бургер-меню + активная ссылка + доступность ── */
.nav-link.active { color: var(--text-white); background: rgba(255,255,255,.06); }
.nav-burger {
  display: none; width: 38px; height: 38px; padding: 0;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: var(--r);
  color: var(--text-white); font-size: 18px; cursor: pointer; line-height: 1;
}
.nav-burger:hover { border-color: var(--border-lt); background: rgba(255,255,255,.04); }
.nav-mobile {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(6,14,30,.98); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 8px;
  animation: fadeIn .2s ease both;
}
.nav-mobile-link {
  text-align: left; padding: 13px 14px; border-radius: var(--r);
  background: none; border: none; color: var(--text-dim);
  font-family: var(--font-ui); font-size: 15px; cursor: pointer;
}
.nav-mobile-link:hover, .nav-mobile-link.active { background: rgba(255,255,255,.05); color: var(--text-white); }

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-desktop-only { display: none; }
}
@media (min-width: 721px) {
  .nav-mobile { display: none; }
}

/* ── Доступность: видимый фокус для клавиатуры ── */
:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 2px; border-radius: 4px; }
button, a, input { -webkit-tap-highlight-color: transparent; }

/* плавная прокрутка по якорям */
html { scroll-behavior: smooth; }
