:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  background: #f8fafc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f8fafc;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 105%, rgba(176, 207, 240, 0.2), transparent 34rem),
    #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

.vcard {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  min-height: 385px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 24px 76px;
  overflow: hidden;
  background: linear-gradient(164deg, #829fd7 0%, #b8cdec 54%, #e9f2f7 100%);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -55%;
  width: 70%;
  height: 85%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  content: "";
  filter: blur(4px);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(1px);
}

.hero__glow--one {
  top: -120px;
  left: -110px;
  width: 290px;
  height: 290px;
}

.hero__glow--two {
  top: 45px;
  right: 8%;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.09);
}

.logo-wrap {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 38px rgba(50, 79, 130, 0.19);
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
}

.identity {
  margin-top: 27px;
  text-align: center;
}

.identity__company {
  margin: 0 0 5px;
  color: #31588f;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.identity h1 {
  margin: 0;
  color: #0d1727;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.identity__role {
  margin: 9px 0 0;
  color: #526985;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.3;
}

.content {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 20px 32px;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  height: 49px;
}

.quick-action {
  display: flex;
  width: 76px;
  min-height: 76px;
  padding: 0;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(221, 230, 240, 0.76);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px rgba(36, 60, 93, 0.12);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.quick-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-action span {
  color: #617088;
  font-size: 9px;
  font-weight: 600;
}

.quick-action:hover,
.quick-action:focus-visible {
  color: #315e9f;
  outline: none;
  box-shadow: 0 15px 34px rgba(36, 72, 122, 0.2);
  transform: translateY(calc(-50% - 3px));
}

.contact-card {
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid #edf1f6;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(32, 59, 95, 0.09);
}

.contact-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 15px;
  min-height: 96px;
  margin: 0 22px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f3;
  transition: color 160ms ease;
}

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

.contact-row--address {
  align-items: start;
  padding-top: 22px;
}

.contact-row__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  color: #6b7890;
  background: #f5f7f9;
  transition: color 160ms ease, background 160ms ease;
}

.contact-row__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.contact-row__text,
.contact-row__label,
.contact-row__value {
  display: block;
}

.contact-row__label {
  margin-bottom: 5px;
  color: #8490a2;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.contact-row__value {
  overflow-wrap: anywhere;
  color: #162032;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.45;
}

.contact-row__arrow {
  align-self: center;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #bdc5d0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.map-link {
  display: inline-block;
  margin-top: 11px;
  padding: 7px 11px;
  border-radius: 8px;
  color: #547bb0;
  background: #f1f6fb;
  font-size: 11px;
  font-weight: 600;
}

.contact-row:hover .contact-row__icon,
.contact-row:focus-visible .contact-row__icon {
  color: #315e9f;
  background: #eaf1f9;
}

.contact-row:focus-visible {
  outline: 2px solid #7196c9;
  outline-offset: -2px;
}

.save-contact {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #cedff0;
  border-radius: 15px;
  color: #17365f;
  background: linear-gradient(135deg, #e3f0f9 0%, #d4e5f5 100%);
  box-shadow: 0 10px 26px rgba(55, 92, 132, 0.1);
  font-size: 16px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.save-contact svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.save-contact:hover,
.save-contact:focus-visible {
  outline: none;
  background: linear-gradient(135deg, #d8eaf8 0%, #c9def2 100%);
  box-shadow: 0 13px 30px rgba(55, 92, 132, 0.17);
  transform: translateY(-2px);
}

.footer-note {
  margin: 23px 0 0;
  color: #9ba5b5;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
}

.share-status {
  position: fixed;
  z-index: 10;
  bottom: 22px;
  left: 50%;
  margin: 0;
  padding: 10px 16px;
  transform: translate(-50%, 18px);
  border-radius: 999px;
  opacity: 0;
  color: #fff;
  background: #17365f;
  box-shadow: 0 8px 24px rgba(23, 54, 95, 0.24);
  font-size: 13px;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.share-status.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 700px) {
  .hero {
    min-height: 350px;
    padding-top: 38px;
    padding-bottom: 65px;
  }

  .logo-wrap {
    width: 156px;
    height: 156px;
  }

  .identity {
    margin-top: 20px;
  }

  .identity h1 {
    font-size: 34px;
  }

  .content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .contact-card {
    margin-top: 25px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 365px;
    padding-bottom: 70px;
  }

  .logo-wrap {
    width: 164px;
    height: 164px;
  }

  .content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .quick-actions {
    gap: 8px;
  }

  .quick-action {
    width: 68px;
    min-height: 68px;
  }

  .contact-card {
    margin-top: 22px;
    border-radius: 18px;
  }

  .contact-row {
    grid-template-columns: 44px minmax(0, 1fr) 15px;
    gap: 12px;
    min-height: 91px;
    margin: 0 17px;
  }

  .contact-row--address {
    min-height: 149px;
  }

  .contact-row__icon {
    width: 44px;
    height: 44px;
  }

  .contact-row__value {
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
