:root {
  color-scheme: light;
  --bg: #f7f1e7;
  --bg-soft: #fffaf3;
  --panel: rgba(255, 251, 245, 0.96);
  --panel-soft: rgba(255, 248, 238, 0.88);
  --line: rgba(128, 92, 54, 0.15);
  --line-strong: rgba(128, 92, 54, 0.24);
  --text: #3e2a1f;
  --muted: #7d6755;
  --accent: #b9904b;
  --accent-deep: #6f4c2f;
  --accent-soft: #efe0bf;
  --shadow: 0 18px 45px rgba(89, 61, 35, 0.10);
  --shadow-soft: 0 10px 30px rgba(89, 61, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 165, 92, 0.20), transparent 22%),
    radial-gradient(circle at bottom right, rgba(140, 105, 70, 0.10), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #f8f1e7 46%, #f3e8db 100%);
}

img {
  max-width: 100%;
}

.site-lang-corner {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.lang-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.lang-switcher button.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 96px 20px 40px;
}

.hero-card,
.card,
.directory-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(248, 239, 224, 0.98));
  border-top: 5px solid var(--accent);
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(185, 144, 75, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-card h1,
.card h1 {
  margin: 18px 0 10px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--accent-deep);
}

.subtitle {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
}

.summary {
  margin: 22px 0 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.72;
  color: #705847;
}

.directory-card {
  margin-top: 26px;
  padding: 28px 28px 32px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.user-tile {
  display: grid;
  gap: 16px;
  padding: 24px;
  text-decoration: none;
  background: linear-gradient(180deg, #fffefb 0%, #fbf3e7 100%);
  border: 1px solid rgba(128, 92, 54, 0.12);
  border-top: 4px solid var(--accent);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
  align-content: start;
}

.user-tile:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(89, 61, 35, 0.12);
  border-color: var(--line-strong);
}

.tile-badge-row {
  display: flex;
  justify-content: flex-start;
}

.user-tile-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.directory-avatar,
.profile-avatar {
  object-fit: cover;
  background: #fff;
}

.directory-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 3px solid rgba(185, 144, 75, 0.24);
  box-shadow: 0 12px 28px rgba(89, 61, 35, 0.10);
}

.profile-avatar {
  width: 118px;
  height: 118px;
  border-radius: 30px;
  display: block;
  margin: 0 auto 18px;
  border: 3px solid rgba(185, 144, 75, 0.24);
  box-shadow: 0 14px 30px rgba(89, 61, 35, 0.10);
}

.user-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--accent-deep);
}

.user-company,
.user-contact,
.user-url,
.tile-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.actions,
.quick-facts,
.tile-links,
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.actions {
  margin-top: 30px;
  gap: 14px;
}

.quick-facts {
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  color: var(--accent-deep);
  font-size: 13px;
  text-decoration: none;
}

.quick-facts .chip,
.qr-actions .chip {
  background: var(--accent-soft);
  border-color: rgba(185, 144, 75, 0.22);
}

.tile-links {
  margin-top: 4px;
}

.tile-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 8px 18px rgba(89, 61, 35, 0.06);
}

.button.primary {
  background: linear-gradient(135deg, #c9a45c 0%, #b38846 100%);
  color: #fffaf2;
  border-color: rgba(151, 111, 51, 0.32);
}

.card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.card-pane {
  padding: 38px;
}

.card-pane.left {
  border-right: 1px solid var(--line);
}

.meta {
  display: grid;
  gap: 16px;
}

.meta-item,
.qr-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.value a,
.muted-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 92, 54, 0.22);
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
}

.qr-wrap img {
  width: min(100%, 240px);
  height: auto;
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(89, 61, 35, 0.10);
}

.qr-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .site-lang-corner { top: 12px; right: 12px; }
  .lang-switcher { gap: 4px; padding: 6px 8px; }
  .lang-switcher button { padding: 6px 8px; }
  .page-shell { padding: 82px 16px 28px; }
  .hero-card,
  .directory-card,
  .card-pane { padding: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-pane.left { border-right: 0; border-bottom: 1px solid var(--line); }
  .button,
  .tile-links a,
  .qr-actions a,
  .qr-actions button { width: 100%; min-width: 0; justify-content: center; }
  .directory-avatar { width: 80px; height: 80px; border-radius: 20px; }
}
