:root {
  color-scheme: light;
  --ink: #132841;
  --muted: #566a83;
  --blue: #075bc2;
  --blue-dark: #074d9f;
  --pale: #eaf3ff;
  --line: #dbe5f0;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body {
  display: flow-root;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #e0edfd, #f4f7fb 68%);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page { width: min(calc(100% - 36px), 600px); margin: 30px auto 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.25px;
}
.wordmark > span { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.languages {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.languages button {
  min-width: 36px;
  min-height: 35px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.languages button[aria-pressed="true"] { background: var(--pale); color: var(--blue-dark); }
.contact-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: 0 22px 50px #17385813;
}
.brand {
  position: relative;
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 36px 30px;
  background: linear-gradient(135deg, #fff 34%, #edf5ff);
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 292 / 191;
  mix-blend-mode: multiply;
}
.category {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(35px, 7vw, 53px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.048em;
}
.brand-nfc { position: absolute; top: 19px; right: 19px; color: var(--blue); }
.card-body { padding: 25px 26px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.action-primary { color: #fff; background: var(--blue); }
.action-primary:hover { background: var(--blue-dark); }
.action-secondary, .save-contact { color: var(--blue-dark); background: var(--pale); border-color: #d5e6fa; }
.action-secondary:hover, .save-contact:hover { background: #dcecff; }
.details { list-style: none; padding: 0; margin: 15px 0; }
.details li + li { border-top: 1px solid var(--line); }
.detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 3px;
}
a.detail:hover .detail-text strong { color: var(--blue-dark); }
.detail-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: var(--pale);
  color: var(--blue-dark);
}
.detail-icon .icon { width: 18px; height: 18px; }
.detail-text { flex: 1; min-width: 0; }
.detail-text small {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
}
.detail-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.detail-arrow { width: 16px; height: 16px; color: var(--blue-dark); }
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 17px 0 24px;
  color: var(--muted);
  font-size: 11px;
}
.footer .icon { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .page { width: calc(100% - 28px); margin-top: 15px; }
  .topbar { margin-bottom: 12px; }
  .contact-card { border-radius: 18px; }
  .brand {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding: 21px 19px 24px;
  }
  .brand-logo { width: 105px; }
  .brand h1 { font-size: clamp(35px, 10vw, 47px); }
  .brand-nfc { top: 17px; right: 16px; }
  .card-body { padding: 17px 15px; }
  .action { min-height: 50px; font-size: 13px; }
  .detail { gap: 9px; }
  .detail-text strong { font-size: 14px; }
}
