:root {
  --blue-night: #071f4a;
  --blue-action: #2f73e0;
  --cyan: #22bfd4;
  --green: #33b86c;
  --orange: #f0b44d;
  --surface: #ffffff;
  --bg: #f7fafc;
  --text: #0f1f3a;
  --muted: #64748b;
  --border: #d8e5f2;
  color-scheme: light;
  font-family:
    Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
select,
textarea {
  font: inherit;
}

button,
.button-link,
.action-card {
  min-height: 56px;
  border-radius: 22px;
  border: 1px solid var(--border);
}

button {
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px);
  background: linear-gradient(135deg, var(--blue-night), #144b8f);
  color: white;
}

.hero__icon {
  border-radius: 24px;
  background: white;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

.app-shell {
  display: grid;
  gap: 18px;
  width: min(1120px, calc(100% - 28px));
  margin: 22px auto 48px;
}

.panel {
  padding: clamp(18px, 4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(7, 31, 74, 0.08);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  background: #eef6ff;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--blue-action);
  box-shadow: 0 16px 32px rgba(47, 115, 224, 0.18);
  outline: none;
}

.action-card--primary {
  background: linear-gradient(135deg, var(--blue-night), #155ca8);
  color: white;
}

.action-card span {
  font-size: 1.1rem;
  font-weight: 900;
}

.action-card small,
.note {
  color: var(--muted);
}

.action-card--primary small {
  color: #dbeafe;
}

.status-panel {
  border-left: 8px solid var(--green);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  color: var(--text);
}

select {
  max-width: 360px;
  padding: 14px 16px;
}

textarea {
  margin-top: 12px;
  padding: 14px;
  resize: vertical;
}

.tabs,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab,
.button-row button,
.button-link {
  padding: 12px 18px;
  background: #eef6ff;
  color: var(--text);
  font-weight: 800;
}

.tab.is-active,
.button-row button:first-child,
.button-link {
  background: var(--blue-action);
  color: white;
}

.button-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.card-list {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fbfdff;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
}

.result-box {
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: #0f1f3a;
  color: #dbeafe;
}

.qr-video {
  width: 100%;
  max-height: 340px;
  border-radius: 20px;
  background: #0f1f3a;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  select {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}
