@import url("https://fonts.googleapis.com/css2?family=Istok+Web:wght@400;700&display=swap");

:root {
  --green-950: #00314a;
  --green-900: #004b76;
  --green-800: #005d8e;
  --green-700: #0077b6;
  --green-600: #007194;
  --green-500: #00818b;
  --green-100: #cce4f0;
  --ink-1000: #000000;
  --ink-900: #111111;
  --ink-700: #354b5f;
  --ink-500: #5c6f82;
  --ink-300: #99c9e2;
  --ink-200: #cce4f0;
  --ink-100: #e6f5fb;
  --paper: #ffffff;
  --paper-2: #f3f7fa;
  --white: #ffffff;
  --sand: #fad68b;
  --sand-2: #fce4b1;
  --terra: #00854a;
  --danger: #b42318;
  --display: "Istok Web", system-ui, sans-serif;
  --sans: "Istok Web", system-ui, sans-serif;
  --mono: "Istok Web", system-ui, sans-serif;
  --r-md: 0;
  --r-lg: 0;
  --r-full: 0;
  --shadow-xs: 0 1px 0 rgba(0, 75, 118, 0.12);
  --shadow-md: 0 3px 0 rgba(0, 75, 118, 0.16);
  --shadow-lg: 0 8px 0 rgba(0, 75, 118, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(24px, 5vw, 72px);
  background: var(--white);
  backdrop-filter: none;
  border-bottom: 4px solid var(--green-900);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 0;
  box-shadow: none;
}
.brand span {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-1000);
  letter-spacing: 0;
}
nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 700; color: var(--green-900); }
nav a:not(.nav-cta) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.button, .nav-cta, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--green-900);
  border-radius: var(--r-full);
  background: var(--green-900);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover, .nav-cta:hover, button:hover { background: var(--green-700); border-color: var(--green-700); box-shadow: none; }
.button:active, button:active { box-shadow: none; }
.button.secondary, button.secondary {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--green-900);
}
.button.secondary:hover, button.secondary:hover { background: var(--ink-100); border-color: var(--green-900); }
.button.danger, button.danger { background: var(--danger); }
.link-button {
  background: transparent;
  color: var(--green-900);
  min-height: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link-button:hover { background: transparent; color: var(--green-700); box-shadow: none; }

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  padding: 80px clamp(24px, 6vw, 72px) 104px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--white) 0 64%, var(--ink-100) 64% 100%);
}
.hero::before {
  display: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--green-900);
  margin-bottom: 24px;
  max-width: 760px;
}
.hero h1 em { color: var(--green-700); font-style: normal; font-weight: 400; }
.hero p {
  color: var(--ink-700);
  font-size: 20px;
  line-height: 1.6;
  max-width: 640px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.trust span {
  border: 1px solid var(--green-100);
  background: rgba(255,255,255,.6);
  border-radius: var(--r-full);
  padding: 6px 10px;
}
.product-shot {
  background: var(--white);
  border: 2px solid var(--green-900);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: none;
}
.shot-top {
  padding: 18px 22px;
  background: var(--green-900);
  color: var(--white);
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
}
.shot-body { padding: 26px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric {
  border: 2px solid var(--ink-200);
  border-radius: 0;
  padding: 18px;
  background: var(--white);
}
.metric strong { display: block; color: var(--green-900); font-size: 32px; font-family: var(--mono); }
.progress {
  height: 160px;
  margin-top: 20px;
  border-radius: 0;
  background: repeating-linear-gradient(135deg, var(--ink-100), var(--ink-100) 10px, var(--white) 10px, var(--white) 20px);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink-200);
}
.progress:after {
  content: "";
  position: absolute;
  inset: 52px 20px 42px;
  border-bottom: 6px solid var(--green-700);
  transform: skewY(-8deg);
}

.section { padding: 86px clamp(24px, 6vw, 72px); }
.section.alt { background: var(--paper-2); }
.section h2, .page-head h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--green-900);
  margin-bottom: 12px;
}
.section > p, .page-head p { color: var(--ink-700); max-width: 820px; line-height: 1.6; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.card {
  border: 2px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: none;
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: 0; color: var(--green-900); }
.card p, .muted { color: var(--ink-500); line-height: 1.5; }

.page { padding: 38px clamp(24px, 6vw, 72px) 84px; }
.page > h2 { font-family: var(--display); font-size: 34px; color: var(--green-900); margin: 38px 0 18px; }
.page-head { padding: 52px clamp(24px, 6vw, 72px) 12px; border-bottom: 1px solid var(--ink-100); }
.form {
  max-width: 760px;
  display: grid;
  gap: 18px;
  background: var(--white);
  border: 2px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: none;
}
.form + table { margin-top: 34px; }
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--green-900);
}
input, select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink-900);
  outline: none;
}
input:focus, select:focus { border-color: var(--green-900); box-shadow: 0 0 0 3px var(--green-100); }
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.upload-card {
  min-height: 168px;
  align-content: start;
  gap: 12px;
  border: 2px dashed var(--green-700);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: 20px;
  color: var(--green-900);
  cursor: pointer;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.upload-card:hover {
  border-color: var(--green-900);
  background: var(--ink-100);
  box-shadow: none;
}
.upload-card input[type="file"] {
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  border-radius: var(--r-full);
  background: var(--green-900);
  color: var(--white);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.upload-hint {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}
.upload-status {
  display: block;
  border-left: 3px solid var(--ink-300);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  padding-left: 10px;
  text-transform: none;
}
.upload-status.is-uploaded {
  border-left-color: var(--green-600);
  color: var(--green-800);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 2px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: none;
}
th, td { padding: 16px 18px; border-bottom: 1px solid var(--ink-100); text-align: left; vertical-align: middle; }
th {
  background: var(--green-900);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--white);
}
tbody tr:nth-child(even) { background: #f8fbfd; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions.compact { gap: 8px; }
.inline-form { display: inline; margin: 0; }
.inline-form button { min-height: 36px; padding: 0 12px; }
.notice, .error {
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 2px solid transparent;
}
.notice { background: var(--green-100); color: var(--green-900); border-color: var(--green-700); }
.error { background: #fef3f2; color: var(--danger); border-color: #fecdca; }
.status {
  display: inline-flex;
  border-radius: var(--r-full);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--green-100);
  color: var(--green-900);
}

.status-panel {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--white);
  border: 2px solid var(--ink-200);
  border-radius: var(--r-lg);
  box-shadow: none;
  padding: 24px;
  margin-bottom: 24px;
}
.status-panel h2 {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
  margin: 4px 0 8px;
}
.status-panel p { color: var(--ink-700); }
.status-orb {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--green-100);
  border: 2px solid var(--green-700);
  position: relative;
}
.status-orb.is-live::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 0;
  background: var(--green-700);
  animation: pulse 1.2s ease-in-out infinite;
}
.status-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.status-step {
  border-radius: var(--r-full);
  border: 2px solid var(--ink-200);
  color: var(--ink-500);
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
}
.status-step.active { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); }
.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--green-900);
  font-weight: 800;
}
@keyframes pulse {
  0%, 100% { transform: scale(.72); opacity: .65; }
  50% { transform: scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .topbar { padding: 14px 22px; }
  nav { gap: 10px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; background: var(--white); }
  .grid, .metric-grid, .upload-grid { grid-template-columns: 1fr; }
  .product-shot { transform: none; }
  .hero h1 { font-size: 46px; }
}
