:root {
  --blue: #003057;
  --blue-deep: #001f39;
  --blue-soft: #0c466f;
  --white: #ffffff;
  --text: #f7fbff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --shadow: 0 32px 80px rgba(0, 18, 33, 0.34);
  --radius-xl: 34px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--blue);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family: "Roboto Flex", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(145deg, #003057 0%, #002744 55%, #001c32 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.vcard {
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%);
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .5;
  pointer-events: none;
}

.ambient-one {
  width: 210px;
  height: 210px;
  top: -90px;
  right: -70px;
  background: rgba(255, 255, 255, .10);
}

.ambient-two {
  width: 160px;
  height: 160px;
  bottom: 80px;
  left: -100px;
  background: rgba(111, 181, 223, .12);
}


.language-switcher {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 31, 57, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.language-switcher > span {
  width: 1px;
  height: 15px;
  background: rgba(255,255,255,.14);
}

.lang-btn {
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.58);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .06em;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lang-btn.active {
  color: var(--blue-deep);
  background: var(--white);
  box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

.profile {
  text-align: center;
}

.brand-mark {
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.brand-mark img {
  display: block;
  width: 124px;
  max-height: 42px;
  object-fit: contain;
}

.photo-wrap {
  position: relative;
  width: 166px;
  height: 166px;
  margin: 0 auto 22px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.photo-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 48px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 680;
  font-variation-settings: "opsz" 80;
}

.mobile-break {
  display: none;
}

.subtitle {
  max-width: 390px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 10px;
  margin-top: 24px;
}

.btn,
.social-card,
.contact-item {
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 0 17px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 660;
}

.btn svg,
.contact-icon svg,
.social-card svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  color: var(--blue-deep);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.btn-ghost {
  color: var(--white);
  background: var(--glass);
  border-color: var(--line);
}

.contact-list {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

.contact-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 21, 38, .16);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255,255,255,.09);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.contact-copy small {
  color: rgba(255,255,255,.53);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: .03em;
}

.contact-copy strong {
  overflow: hidden;
  color: rgba(255,255,255,.95);
  font-size: 14px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: rgba(255,255,255,.52);
  font-size: 19px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.social-card {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  cursor: pointer;
}

.social-card svg {
  width: 22px;
  height: 22px;
}

.social-card svg .filled {
  fill: currentColor;
  stroke: none;
}

.social-card span {
  font-size: 12px;
  font-weight: 590;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255,255,255,.34);
}

.card-footer p {
  flex: 0 0 auto;
  margin: 0;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 20;
  max-width: calc(100vw - 36px);
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: hover) {
  .btn:hover,
  .contact-item:hover,
  .social-card:hover {
    transform: translateY(-2px);
  }

  .btn-primary:hover {
    box-shadow: 0 15px 32px rgba(0,0,0,.17);
  }

  .btn-ghost:hover,
  .social-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255,255,255,.22);
  }

  .contact-item:hover {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.22);
  }
}

@media (max-width: 520px) {
  .page-shell {
    place-items: start center;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .vcard {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    padding: max(26px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom));
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .language-switcher {
    top: max(18px, env(safe-area-inset-top));
    right: 16px;
  }

  .brand-mark {
    margin-bottom: 18px;
    padding-right: 86px;
    padding-left: 86px;
  }

  .photo-wrap {
    width: 148px;
    height: 148px;
    margin-bottom: 20px;
  }

  .mobile-break {
    display: initial;
  }

  h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

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

  .btn {
    min-height: 54px;
  }

  .social-card {
    min-height: 78px;
  }
}

@media (max-width: 365px) {
  .vcard {
    padding-left: 15px;
    padding-right: 15px;
  }

  .language-switcher {
    right: 12px;
  }

  .lang-btn {
    min-width: 32px;
    padding: 0 7px;
  }

  .contact-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-copy strong {
    font-size: 13px;
  }

  .social-card span {
    font-size: 11px;
  }
}

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