:root {
  color-scheme: light;
  --ink: #132018;
  --body: #4c5851;
  --muted: #7b857e;
  --line: #e3e9e4;
  --page: #eef5f0;
  --card: #ffffff;
  --green: #08743f;
  --green-dark: #034a2a;
  --green-soft: #e8f5ee;
  --purple: #65507c;
  --red: #d21f2f;
  --blue: #1767ad;
  --gold: #b89a52;
  --shadow: 0 28px 80px rgba(15, 35, 26, 0.22);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }

  html,
  body {
    background:
      radial-gradient(circle at 10% 20%, rgba(210, 31, 47, 0.13), transparent 18rem),
      radial-gradient(circle at 90% 12%, rgba(23, 103, 173, 0.13), transparent 16rem),
      linear-gradient(135deg, #f7faf8 0%, #e7f3ed 48%, #f7f2ec 100%);
    color: var(--ink);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #101512;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 20%, rgba(210, 31, 47, 0.13), transparent 18rem),
    radial-gradient(circle at 90% 12%, rgba(23, 103, 173, 0.13), transparent 16rem),
    linear-gradient(135deg, #f7faf8 0%, #e7f3ed 48%, #f7f2ec 100%);
  color: var(--ink);
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 12px;
  display: grid;
  align-items: center;
}

.name-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #f8fbf8 0%, #e9f4ed 100%);
  box-shadow: var(--shadow);
}

.name-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.name-card::before {
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0 42%, var(--purple) 42% 68%, var(--red) 68% 100%);
}

.card-header {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 136px;
  padding: 24px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 35, 26, 0.06);
}

.company-logo {
  display: block;
  width: min(100%, 250px);
  height: auto;
}

.identity-section {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 62px 24px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 35, 26, 0.06);
  text-align: center;
}

.profile-photo {
  position: absolute;
  left: 50%;
  top: -50px;
  width: 104px;
  height: 104px;
  margin: 0;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #eef0f2;
  box-shadow:
    0 0 0 3px var(--red),
    0 14px 28px rgba(15, 35, 26, 0.18);
  transform: translateX(-50%);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 16%;
}

.profile-photo--initials {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(8, 116, 63, 0.12), rgba(101, 80, 124, 0.12)),
    #ffffff;
}

.profile-photo--initials span {
  color: var(--green-dark);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.identity-copy {
  min-width: 0;
}

.identity-copy p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.identity-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.05rem, 11vw, 3rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
}

.identity-copy strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.8rem;
  line-height: 1.2;
}

.identity-copy span {
  display: block;
  margin-top: 10px;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.42;
}

.action-row {
  position: relative;
  z-index: 1;
  padding: 18px 10px 18px;
}

.secondary-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  padding: 0 10px 18px;
}

.action {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #13a05c, var(--green));
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(8, 116, 63, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action:hover {
  box-shadow: 0 16px 28px rgba(8, 116, 63, 0.24);
  transform: translateY(-2px);
}

.action--primary {
  min-height: 48px;
  background: linear-gradient(135deg, var(--red), #f04b55);
  box-shadow: 0 14px 28px rgba(210, 31, 47, 0.2);
  font-size: 0.9rem;
}

.action svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.contact-panel,
.company-panel {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 22px 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 35, 26, 0.06);
}

.company-panel {
  margin-top: 16px;
}

.contact-panel h2,
.company-panel h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.detail-row {
  width: 100%;
  min-height: 64px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}

.detail-icon--red {
  background: #fff0f2;
  color: var(--red);
}

.detail-icon--neutral {
  background: #f3eff7;
  color: var(--purple);
}

.detail-icon svg {
  width: 18px;
  height: 18px;
}

.detail-row span:not(.detail-icon) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.detail-row small,
.service-block h2 {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.detail-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.service-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.service-block:first-of-type {
  padding-top: 6px;
}

.service-block div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-block svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.service-block--red svg {
  color: var(--red);
}

.service-block h2 {
  margin: 0;
  color: var(--green-dark);
  text-align: left;
}

.service-block--red h2 {
  color: #8f1420;
}

.service-block ul {
  margin: 13px 0 0 16px;
  padding-left: 18px;
  border-left: 2px solid rgba(184, 154, 82, 0.46);
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.75;
}

.service-block--red ul {
  border-left-color: rgba(210, 31, 47, 0.22);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid rgba(184, 154, 82, 0.44);
  border-radius: 999px;
  background: #fffaf0;
  color: #715817;
  font-size: 0.72rem;
  font-weight: 850;
}

.card-footer {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding: 16px 6px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0;
    align-items: stretch;
  }

  .name-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 390px) {
  .name-card {
    padding: 14px;
  }

  .card-header {
    min-height: 122px;
    padding: 22px 18px;
  }

  .company-logo {
    width: min(100%, 230px);
  }

  .identity-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .identity-copy h1 {
    font-size: 2rem;
  }

  .contact-panel,
  .company-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
}
