:root {
  --page: #e7e7e7;
  --surface: #ffffff;
  --ink: #333333;
  --muted: #666666;
  --line: #d7d7d7;
  --button-top: #ffffff;
  --button-bottom: #e4e4e4;
  --button-border: #bdbdbd;
  --accent: #176a9a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(23, 106, 154, 0.35);
  outline-offset: 2px;
}

.vcard-page {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
}

.vcard-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
}

.vcard-header h1 {
  margin: 0;
}

.vcard-header a {
  display: block;
}

.vcard-header img {
  width: 100%;
  height: auto;
}

.vcard-content {
  padding: 14px;
}

.banner {
  margin-bottom: 35px;
}

.legacy-slider__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: #111111;
}

.legacy-slider__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(3%);
  transition: opacity 360ms ease, transform 360ms ease;
}

.legacy-slider__stage img.is-active {
  opacity: 1;
  transform: translateX(0);
}

.legacy-slider__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.legacy-slider__thumbs button {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #dddddd;
  cursor: pointer;
}

.legacy-slider__thumbs button.is-active {
  border-color: var(--accent);
}

.legacy-slider__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-text h2,
.ui-block-b h2 {
  margin: 0 0 12px;
  color: #333333;
  font-size: 1.32rem;
  line-height: 1.2;
  font-weight: 400;
}

.normal {
  font-weight: 400;
}

.welcome-text p {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: justify;
}

hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--line);
}

.ui-grid-a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ui-block-a img {
  width: 100%;
  height: auto;
}

.legacy-actions p {
  margin: 0 0 10px;
}

.legacy-actions a {
  display: block;
  text-decoration: none;
}

.legacy-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--button-border);
  border-radius: 4px;
  background: linear-gradient(var(--button-top), var(--button-bottom));
  color: #333333;
  font: 700 1rem Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 0 #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.legacy-actions button:active {
  background: linear-gradient(#d8d8d8, #f7f7f7);
}

.legacy-icon::before {
  display: inline-block;
  width: 1.15em;
  font-weight: 700;
  text-align: center;
}

.legacy-icon--phone::before {
  content: "\260E";
}

.legacy-icon--mail::before {
  content: "\2709";
}

.legacy-icon--map::before {
  content: "\25CE";
}

.legacy-icon--video::before {
  content: "\25B6";
}

.legacy-icon--desktop::before {
  content: "\25A3";
}

.footer {
  margin-top: 24px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 520px) {
  .vcard-content {
    padding: 18px;
  }

  .ui-grid-a {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
