:root {
  --primary: #302870;
  --primary-deep: #241d5d;
  --secondary: #45a1da;
  --secondary-soft: #eaf5fc;
  --ink: #212121;
  --muted: #666978;
  --surface: #ffffff;
  --border: #e7e8f0;
  --background: #f6f7fb;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgb(69 161 218 / 16%), transparent 28rem),
    radial-gradient(circle at 92% 85%, rgb(48 40 112 / 11%), transparent 30rem),
    var(--background);
  font-family:
    Inter, Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px 24px;
}

.contact-card {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  min-height: 510px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border: 1px solid rgb(48 40 112 / 8%);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgb(48 40 112 / 13%);
}

.brand-panel {
  position: relative;
  min-width: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 54px 44px;
  color: var(--surface);
  background:
    linear-gradient(145deg, rgb(69 161 218 / 22%), transparent 44%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.brand-panel::before {
  position: absolute;
  z-index: -1;
  top: -100px;
  left: -100px;
  width: 240px;
  height: 240px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  content: "";
}

.brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.brand-logo {
  display: block;
  width: min(100%, 310px);
  height: auto;
  margin-inline: auto;
}

.brand-mark {
  position: absolute;
  right: -54px;
  bottom: -50px;
  width: 220px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.info-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 52px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--secondary);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2.25rem, 5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.intro-text {
  max-width: 42ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.contact-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
}

.contact-item > div {
  min-width: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--secondary);
  background: var(--secondary-soft);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.label {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item address {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.55;
  text-decoration: none;
}

.contact-item a {
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
}

.contact-item a:focus-visible {
  outline: 3px solid rgb(69 161 218 / 25%);
  outline-offset: 5px;
  border-radius: 2px;
}

.legal {
  margin: 0;
  color: #858793;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 760px) {
  .page-shell {
    justify-content: flex-start;
    padding: 20px 16px;
  }

  .contact-card {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .brand-panel {
    min-height: 210px;
    padding: 42px 34px;
  }

  .brand-logo {
    width: min(100%, 280px);
  }

  .brand-mark {
    right: -40px;
    bottom: -72px;
    width: 190px;
  }

  .info-panel {
    padding: 40px 30px 44px;
  }

  .intro-text {
    margin-top: 18px;
  }

  .contact-list {
    margin-top: 28px;
    padding-top: 26px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 12px;
  }

  .brand-panel {
    min-height: 180px;
    padding: 34px 28px;
  }

  .info-panel {
    padding: 34px 24px 38px;
  }

  .contact-item {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
}

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