:root {
  --blue: #2563eb;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-700: #1d4ed8;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --danger-200: #fecaca;
  --danger-800: #991b1b;
  --green-50: #ecfdf5;
  --green-200: #a7f3d0;
  --green-800: #166534;
  --orange: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
}

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

body {
  min-height: 100vh;
  background: #ffffff;
  color: var(--slate-900);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.qr-page {
  width: min(100%, 520px);
  min-height: 100vh;
  margin-inline: auto;
  padding: 82px 20px 118px;
  background: #ffffff;
}

.qr-app-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(100%, 560px);
  height: 54px;
  align-items: center;
  gap: 10px;
  padding-inline: 20px;
  border-bottom: 1px solid #eef2f7;
  background: rgba(255, 255, 255, .96);
  color: var(--slate-500);
  font-size: .96rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.qr-app-header__icon,
.qr-signal-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-app-header__icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.qr-app-header__icon svg {
  width: 18px;
  height: 18px;
}

.qr-signal-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 101px;
  padding: 20px 26px;
  border-radius: 18px;
  background: var(--danger);
  color: #ffffff;
}

.qr-signal-card__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.qr-signal-card__icon svg {
  width: 44px;
  height: 44px;
}

.qr-signal-word {
  font-size: 1.85rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.qr-signal-label {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
}

.qr-product {
  padding-top: 22px;
}

.qr-product h1 {
  color: var(--slate-900);
  font-size: clamp(1.85rem, 7.2vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.qr-supplier {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 1.2rem;
  font-weight: 750;
}

.qr-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.qr-meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: .94rem;
  font-weight: 850;
}

.qr-meta-pills span:nth-child(2) {
  background: #cffafe;
  color: #0e7490;
}

.qr-section,
.qr-info-card {
  margin-top: 24px;
}

.qr-section h2,
.qr-info-card h2 {
  margin-bottom: 12px;
  color: var(--slate-400);
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.qr-pictogram-grid {
  display: grid;
  grid-template-columns: repeat(2, 160px);
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.qr-pictogram {
  display: flex;
  width: 160px;
  min-height: 152px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--slate-200);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.ghs-pictogram-card__svg {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
}

.ghs-pictogram-svg {
  width: 86px;
  height: 86px;
}

.ghs-pictogram-card__label {
  display: grid;
  gap: 4px;
  color: var(--slate-500);
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.2;
}

.ghs-pictogram-card__code {
  color: var(--slate-500);
  font-size: .8rem;
  font-weight: 950;
}

.qr-info-card {
  padding: 18px 19px 20px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
}

.qr-info-card--danger {
  border-color: var(--danger-200);
  background: var(--danger-50);
}

.qr-info-card--danger h2,
.qr-statement--danger {
  color: var(--danger-800);
}

.qr-info-card--blue {
  border-color: var(--blue-200);
  background: var(--blue-50);
}

.qr-info-card--blue h2,
.qr-info-card--blue .qr-statement {
  color: #1e40af;
}

.qr-info-card--green {
  border-color: var(--green-200);
  background: var(--green-50);
}

.qr-info-card--green h2,
.qr-info-card--green .qr-statement {
  color: #166534;
}

.qr-statement {
  color: var(--slate-700);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

.qr-statement--first-aid {
  white-space: normal;
}

.qr-first-aid__p {
  margin: 0 0 0.65em;
}

.qr-first-aid__p:last-child {
  margin-bottom: 0;
}

.qr-first-aid__p strong {
  font-weight: 950;
  color: inherit;
}

.qr-empty-state {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--slate-200);
  border-radius: 14px;
  color: var(--slate-400);
  font-size: .98rem;
  font-weight: 750;
}

.qr-note {
  margin-top: 24px;
  padding: 15px 18px;
  border: 1px solid var(--blue-200);
  border-radius: 14px;
  background: var(--blue-50);
  color: #1d4ed8;
  font-size: .93rem;
  line-height: 1.5;
}

.qr-note strong {
  font-weight: 950;
}

.qr-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 22px 4px 6px;
  color: var(--slate-400);
  font-size: .82rem;
  font-weight: 750;
}

.qr-legal-links a {
  text-decoration: none;
}

.qr-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 12px 20px 8px;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}

.qr-call-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 520px);
  margin-inline: auto;
}

.qr-call-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  color: #ffffff;
  font-size: 1.07rem;
  font-weight: 950;
  text-decoration: none;
}

.qr-call-button--danger {
  background: var(--danger);
}

.qr-call-button--poison {
  background: var(--orange);
}

.qr-call-button__icon {
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.qr-call-button__icon svg {
  width: 18px;
  height: 18px;
}

.qr-footer p {
  margin-top: 7px;
  color: var(--slate-400);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 360px) {
  .qr-page,
  .qr-footer {
    padding-inline: 14px;
  }

  .qr-call-actions {
    gap: 10px;
  }

  .qr-call-button {
    font-size: .98rem;
  }
}
