/* e-imzatr incident — static site styles. Original code, dark/cinematic mood. */
:root {
  --bg: #1c1f24;
  --bg-2: #22262c;
  --surface: #282c33;
  --surface-2: #30353d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #ece8e1;
  --muted: #aeaaa2;
  --faint: #868279;
  --accent: #e3a35b;
  --accent-soft: rgba(227, 163, 91, 0.12);
  --danger: #e2735a;
  --danger-soft: rgba(226, 115, 90, 0.12);
  --ok: #7cc49a;
  --ok-soft: rgba(124, 196, 154, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1160px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #111; padding: 10px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 31, 36, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--text); display: grid; place-items: center; position: relative; }
.logo-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.logo b { font-weight: 600; }
.logo span { color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; font-family: var(--mono); font-size: 12px; }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 9px; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 980px) { .nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 520px) { .logo span { display: none; } .header-actions .btn { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(227, 163, 91, 0.22), rgba(227, 163, 91, 0.05) 55%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -40% -20%; width: 800px; height: 600px;
  background: radial-gradient(closest-side, rgba(90, 120, 170, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: end; }
@media (max-width: 980px) { .hero { padding: 64px 0 48px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(36px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .line { display: block; }
.hero h1 .dim { color: var(--muted); }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; margin: 26px 0 34px; }
.hero .sub strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Status card */
.status-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.status-head .label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.2s infinite; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.wait { background: var(--accent-soft); color: var(--accent); }
.pill.plan { background: rgba(255,255,255,.06); color: var(--muted); }
.pill.plan::before, .pill.ok::before { animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill::before { animation: none; } html { scroll-behavior: auto; } }
.counter { display: flex; align-items: baseline; gap: 12px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.counter b { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { text-align: right; font-weight: 600; }
.kv .v.bad { color: var(--danger); }
.kv .v.mono { font-family: var(--mono); font-weight: 500; font-size: 13.5px; }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { section.block { padding: 64px 0; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); }
.section-head .lead { color: var(--muted); margin: 0; max-width: 520px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; } }
.section-head .eyebrow { margin-bottom: 16px; }

/* Numbered cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 40px; display: block; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card p strong { color: var(--text); font-weight: 600; }

/* Teams band */
.teams { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team { padding: 30px; border-right: 1px solid var(--line); }
.team:last-child { border-right: 0; }
.team .tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.team .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.team h3 { font-size: 21px; margin-bottom: 10px; }
.team p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } .team { border-right: 0; border-bottom: 1px solid var(--line); } .team:last-child { border-bottom: 0; } }

/* Route (what happened to the parcel) */
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 18px; position: relative; }
.route-step { position: relative; padding: 0 18px 0 0; }
.route-step .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-strong); position: relative; z-index: 1; margin-bottom: 18px; }
.route-step::before { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--line-strong); }
.route-step:last-child::before { display: none; }
.route-step.ok .dot { color: var(--ok); border-color: rgba(124,196,154,.45); }
.route-step.wait .dot { color: var(--accent); border-color: rgba(227,163,91,.45); }
.route-step.bad .dot { color: var(--danger); border-color: rgba(226,115,90,.5); background: var(--danger-soft); }
.route-step.back .dot { color: var(--accent); border-color: rgba(227,163,91,.45); }
.route-step.bad::before { background: repeating-linear-gradient(90deg, var(--danger) 0 6px, transparent 6px 12px); opacity: .7; }
.route-step .date { font-family: var(--mono); font-size: 12.5px; color: var(--faint); display: block; margin-bottom: 4px; }
.route-step h4 { margin: 0 0 6px; font-size: 17px; }
.route-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 26px; }
  .route-step { padding: 0 0 0 64px; min-height: 44px; }
  .route-step .dot { position: absolute; left: 0; top: 0; margin: 0; }
  .route-step::before { top: 44px; left: 22px; right: auto; width: 1px; height: calc(100% - 18px); }
  .route-step.bad::before { background: repeating-linear-gradient(180deg, var(--danger) 0 6px, transparent 6px 12px); }
}
.route-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 18px; }
@media (max-width: 640px) { .route-panel { padding: 24px 20px; } }
.route-panel .caption { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 26px; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.quote.wide { grid-column: 1 / -1; }
.quote .meta { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.quote .meta .date { color: var(--accent); }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -0.005em; }
.quote blockquote::before { content: "«"; color: var(--accent); }
.quote blockquote::after { content: "»"; color: var(--accent); }
.quote .tr { color: var(--muted); font-size: 15px; margin: 0; padding-left: 14px; border-left: 2px solid var(--line-strong); }

/* Contract clauses */
.clauses { display: grid; gap: 0; border-top: 1px solid var(--line); }
.clause { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.clause .ref { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.clause .ref small { display: block; color: var(--faint); margin-top: 6px; font-size: 12px; line-height: 1.4; }
.clause .orig { font-weight: 600; font-size: 16.5px; }
.clause .orig em { font-style: normal; background: var(--accent-soft); border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.clause .orig .tr { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 10px; }
.clause .note { color: var(--muted); font-size: 15px; }
.clause .note strong { color: var(--text); }
@media (max-width: 860px) { .clause { grid-template-columns: 1fr; gap: 10px; } }

/* Demand */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }
.option { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; background: radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.option .letter { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 18px; display: block; }
.option h3 { font-size: 24px; margin-bottom: 10px; }
.option p { color: var(--muted); margin: 0; }
.demand-note { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* Recipients */
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rgrid { grid-template-columns: 1fr; } }
.rgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.rgroup h3 { font-size: 18px; margin-bottom: 14px; }
.rgroup ul { list-style: none; margin: 0; padding: 0; }
.rgroup li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.rgroup li b { color: var(--text); font-weight: 600; display: block; }

/* Opinion */
.opinion { position: relative; overflow: hidden; }
.opinion::before { content: ""; position: absolute; right: -200px; top: -100px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(227,163,91,.12), transparent 70%); pointer-events: none; }
.opinion .wrap { position: relative; }
.opinion-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; }
@media (max-width: 860px) { .opinion-body { grid-template-columns: 1fr; gap: 24px; } }
.opinion h2 { font-size: clamp(30px, 4vw, 48px); }
.opinion .flag { display: inline-block; margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px 12px; }
.opinion .text p { font-size: 18.5px; line-height: 1.65; color: #d4d0c8; }
.opinion .text p:first-child::first-letter { color: var(--accent); }
.opinion .text p.last { color: var(--text); font-weight: 600; }

/* Right of reply */
.reply-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 36px; background: var(--surface); }
.reply-box h3 { font-size: 26px; margin-bottom: 8px; }
.reply-box p { color: var(--muted); margin: 0; max-width: 640px; }
@media (max-width: 760px) { .reply-box { flex-direction: column; align-items: flex-start; padding: 26px 22px; } }
.placeholder { font-family: var(--mono); background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 40px 24px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--muted); padding: 0 0 26px; max-width: 820px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Timeline page ---------- */
.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
@media (max-width: 980px) { .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; position: relative; overflow: hidden; }
.stage::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--line-strong); }
.stage.ok::before { background: var(--ok); }
.stage.bad::before { background: var(--danger); }
.stage.wait::before { background: var(--accent); }
.stage .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.stage h3 { font-size: 15.5px; margin: 8px 0 10px; letter-spacing: -0.01em; }
.stage .st { font-size: 12.5px; font-weight: 600; }
.stage.ok .st { color: var(--ok); }
.stage.bad .st { color: var(--danger); }
.stage.wait .st { color: var(--accent); }
.stage.plan .st { color: var(--muted); }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 164px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 140px 48px minmax(0, 1fr); align-items: start; padding: 0 0 34px; position: relative; }
.tl-date { font-family: var(--mono); font-size: 13.5px; color: var(--text); padding-top: 2px; text-align: right; padding-right: 0; }
.tl-date small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.tl-node { justify-self: center; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); margin-top: 6px; position: relative; z-index: 1; }
.tl-item.ok .tl-node { border-color: var(--ok); }
.tl-item.bad .tl-node { border-color: var(--danger); background: var(--danger); }
.tl-item.wait .tl-node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-item.plan .tl-node { border-style: dashed; }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.tl-item.plan .tl-body { background: transparent; border-style: dashed; }
.tl-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.tl-item.bad .tl-tag { color: var(--danger); }
.tl-item.ok .tl-tag { color: var(--ok); }
.tl-item.plan .tl-tag { color: var(--muted); }
.tl-body h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -0.01em; }
.tl-body p { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.tl-body p:last-child { margin: 0; }
.tl-body q { color: var(--text); font-weight: 600; quotes: "«" "»"; }
.tl-src { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 10px; display: block; }
@media (max-width: 720px) {
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 30px; gap: 8px; }
  .tl-date { text-align: left; order: 0; }
  .tl-date small { display: inline; margin-left: 8px; }
  .tl-node { position: absolute; left: 0; top: 0; margin-top: 4px; }
}

.docs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc .t { font-weight: 600; }
.doc .t small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 3px; }
@media (max-width: 600px) { .doc { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
.site-footer p { margin: 0 0 10px; max-width: 640px; }
.site-footer .links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer .links a { text-decoration: none; }
.site-footer .links a:hover { color: var(--text); }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--faint); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Draft banner (mockup only) */
.draft-banner { background: var(--accent); color: #1a1208; font-size: 13px; font-weight: 600; text-align: center; padding: 7px 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
