:root {
  --bg-1: #1f1f1f;
  --bg-2: #2b2b2b;
  --card-bg: #ffffff;
  --text-main: #1f1f1f;
  --text-muted: #646464;
  --accent: #d2a100;
  --accent-bright: #ffc803;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 200, 3, 0.18), transparent 38%),
    radial-gradient(circle at 85% 85%, rgba(210, 161, 0, 0.18), transparent 42%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text-main);
}

.card-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(560px, 100%);
  background: var(--card-bg);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 200, 3, 0.08), transparent 35%);
}

.share-trigger {
  position: absolute;
  top: 34px;
  right: 30px;
  width: 40px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #8a8a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.share-trigger:hover,
.share-trigger:focus-visible {
  background: #ffffff;
  color: #a17e00;
  border-color: var(--accent);
}

.share-trigger svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.logo {
  width: 100%;
  max-width: 340px;
  display: block;
}

.divider {
  height: 3px;
  width: 84px;
  margin: 20px 0 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.name {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
}

.role {
  margin: 10px 0 30px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-list {
  margin-top: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.contact-row + .contact-row {
  margin-top: 6px;
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.contact-row-phone .contact-text {
  color: var(--text-main);
  font-size: clamp(26px, 4.6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-row-email .contact-text {
  color: var(--text-muted);
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 500;
}

.contact-row:hover .contact-text,
.contact-row:focus-visible .contact-text {
  color: #a17e00;
}

.actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: #a17e00;
  box-shadow: 0 6px 20px rgba(210, 161, 0, 0.2);
}

.action-split .action-btn:hover,
.action-split .action-btn:focus-visible {
  transform: none;
  box-shadow: none;
}

.action-btn-accent {
  background: linear-gradient(90deg, #f8df75, #ffc803);
  border-color: #edbe0f;
}

.action-btn-wide {
  grid-column: 1 / -1;
}

.action-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 0;
  border: 1px solid #dddddd;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.action-btn-main {
  min-width: 0;
  border: 0;
  border-radius: 0;
  height: 40px;
  min-height: 40px;
  padding-inline: 10px;
  box-shadow: none;
  font-size: 14px;
}

.action-btn-qr {
  padding: 8px;
  border: 0;
  border-left: 1px solid #dddddd;
  border-radius: 0;
  height: 40px;
  min-height: 40px;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.action-btn-qr svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.action-split:hover,
.action-split:focus-within {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(210, 161, 0, 0.2);
}

.action-btn-qr:focus,
.action-btn-qr:focus-visible {
  outline: none;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.qr-modal-dialog {
  position: relative;
  width: min(360px, calc(100% - 28px));
  margin: 60px auto;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.qr-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #6d6d6d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal-title {
  margin: 2px 0 12px;
  font-size: 20px;
}

.qr-modal-image {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #f3f3f3;
}

.qr-modal-link {
  margin-top: 12px;
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #dddddd;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.qr-modal-share {
  margin-top: 8px;
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 520px) {
  .card {
    padding: 26px 22px;
    border-radius: 18px;
  }

  .share-trigger {
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    width: 36px;
    height: 32px;
  }

  .logo {
    max-width: calc(100% - 60px);
  }

  .role {
    margin-bottom: 24px;
  }

  .contact-row-phone .contact-text {
    font-size: clamp(24px, 7vw, 32px);
  }

  .contact-row-email .contact-text {
    font-size: clamp(12px, 3.5vw, 15px);
  }

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

  .qr-modal-dialog {
    margin: 40px auto;
  }
}
