@font-face {
  font-family: "System Sans";
  src: local("Inter"), local("Segoe UI"), local("Arial");
}

:root {
  --bg: #f3f0eb;
  --paper: #ffffff;
  --paper-soft: #fbfcfe;
  --text: #172238;
  --muted: #6d7688;
  --line: #e9edf4;
  --blue: #4f85c7;
  --blue-dark: #3f73b6;
  --blue-soft: #eef5ff;
  --shadow: 0 28px 70px rgba(42, 54, 78, 0.16);
  --inner-shadow: 0 12px 34px rgba(42, 54, 78, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "System Sans", Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.98), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(231, 225, 215, 0.96), transparent 30%),
    linear-gradient(135deg, #efe9df 0%, #f8f6f2 42%, #e9e0d5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 42%, transparent 58%),
    radial-gradient(circle at 8% 78%, rgba(122, 143, 110, 0.18), transparent 16%);
  opacity: 0.9;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.card {
  width: min(100%, 392px);
  min-height: min(760px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  padding: 26px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.91)),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.logo {
  max-width: 178px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-fallback {
  display: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo:not([src]),
.logo[src=""] {
  display: none;
}

.logo:not([src]) + .logo-fallback,
.logo[src=""] + .logo-fallback {
  display: block;
}

.menu-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(42, 54, 78, 0.10);
  text-decoration: none;
}

.menu-button span {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: #a2aabc;
}

.profile {
  margin: 2px 0 18px;
  padding: 24px 16px 18px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 11vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.role {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--blue);
}

.company {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.accent-line {
  width: 45px;
  height: 2px;
  margin: 16px auto 0;
  border-radius: 99px;
  background: var(--blue);
}

.contact-panel {
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--inner-shadow);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 71px;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease;
}

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

.contact-row:active {
  transform: scale(0.99);
}

.contact-row:hover {
  background: var(--paper-soft);
}

.icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.contact-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.label {
  font-size: 13px;
  color: var(--muted);
}

.value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:active {
  transform: scale(0.99);
}

.button-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.button-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #6fa0d8, #4d7fbd);
  box-shadow: 0 14px 28px rgba(79, 133, 199, 0.28);
}

.button.primary:hover {
  background: linear-gradient(135deg, #5d91cc, #3f73b6);
}

.button.secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(42, 54, 78, 0.08);
}

.footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
}

.footer a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 650;
}

.footer a:hover {
  text-decoration: underline;
}

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

.legal-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 22px 16px;
}

.legal-card {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 26px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-card h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 9vw, 48px);
}

.legal-card h2 {
  margin: 28px 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.68;
  font-size: 15px;
}

.legal-card a {
  color: var(--blue-dark);
  font-weight: 750;
}

.legal-footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (min-width: 860px) {
  .site-shell {
    padding: 48px;
  }

  .card {
    width: min(100%, 980px);
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.05fr);
    grid-template-areas:
      "brand contact"
      "profile contact"
      "actions contact"
      "footer footer";
    column-gap: 42px;
    row-gap: 18px;
    align-items: start;
    padding: 42px;
    border-radius: 30px;
  }

  .brand-bar {
    grid-area: brand;
    margin-bottom: 0;
  }

  .profile {
    grid-area: profile;
    margin: 0;
    padding: 28px 0 8px;
    text-align: left;
    background: transparent;
  }

  h1 {
    font-size: clamp(48px, 5vw, 72px);
    line-height: 0.95;
  }

  .role {
    margin-top: 18px;
    font-size: 17px;
  }

  .company {
    font-size: 14px;
  }

  .accent-line {
    margin: 22px 0 0;
  }

  .contact-panel {
    grid-area: contact;
    margin: 0;
    border-radius: 24px;
    background: rgba(255,255,255,0.86);
  }

  .contact-row {
    min-height: 88px;
    padding: 18px 20px;
  }

  .icon {
    width: 48px;
    height: 48px;
  }

  .icon svg {
    width: 23px;
    height: 23px;
  }

  .label {
    font-size: 14px;
  }

  .value {
    font-size: 17px;
  }

  .actions {
    grid-area: actions;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0;
  }

  .button {
    min-height: 54px;
  }

  .button.primary {
    grid-column: 1 / -1;
  }

  .footer {
    grid-area: footer;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 390px) {
  .site-shell {
    padding: 10px;
  }

  .card {
    min-height: calc(100vh - 20px);
    border-radius: 28px;
    padding: 22px 14px 18px;
  }

  .profile {
    padding-left: 10px;
    padding-right: 10px;
  }

  .contact-row {
    padding-left: 12px;
    padding-right: 12px;
  }
}
