* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: #f3f8f8;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: #143b57;
  background: #f3f8f8;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

.is-hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(249, 252, 252, 0.98) 0%, rgba(239, 248, 248, 0.92) 48%, rgba(222, 241, 244, 0.52) 100%),
    url("./medical-background.png") center / cover no-repeat fixed;
}

.site-header,
.hero-layout,
.site-footer {
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 72px;
  padding: 0 48px;
  border-bottom: 1px solid #bdd4d9;
  background: rgba(255, 255, 255, 0.88);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  margin-right: 12px;
  overflow: hidden;
  background: #ffffff;
}

.brand-mark img {
  width: 44px;
  height: 44px;
  display: block;
}

.brand-name {
  color: #0d4382;
  font-size: 18px;
  font-weight: 800;
}

.header-note {
  margin: 0;
  color: #4c6878;
  font-size: 13px;
}

.hero-layout {
  min-height: calc(100vh - 132px);
  min-height: calc(100dvh - 132px);
  display: flex;
  align-items: stretch;
  flex: 1 0 auto;
}

.hero-copy {
  width: 60%;
  align-self: center;
  flex: 1 1 auto;
  padding: 64px 72px 64px 48px;
}

.eyebrow {
  margin: 0 0 24px;
  color: #0d5e78;
  font-size: 15px;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #143b57;
  font-size: 88px;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin: 34px 0 0;
  color: #4c6878;
  font-size: 20px;
  line-height: 1.55;
}

.channel-panel {
  width: 40%;
  align-self: flex-end;
  flex: 0 0 40%;
  margin: 48px 48px 48px 0;
  border: 1px solid #bdd4d9;
  background: #ffffff;
  box-shadow: 0 6px 8px rgba(37, 81, 96, 0.08);
}

.channel-header {
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #bdd4d9;
}

.channel-header h2 {
  margin: 0;
  color: #143b57;
  font-size: 24px;
  line-height: 1.1;
}

.channel-header span {
  margin-left: 24px;
  color: #4c6878;
  font-size: 12px;
  text-align: right;
}

.channel-link {
  min-height: 112px;
  display: flex;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid #bdd4d9;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.channel-link:last-child {
  border-bottom: 0;
}

.channel-link:hover {
  color: #143b57;
  background: #e3f1f2;
}

.channel-link:active {
  transform: translateY(1px);
}

.channel-link:focus {
  position: relative;
  z-index: 1;
  outline: 3px solid #0e7892;
  outline-offset: -4px;
}

.channel-link:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #0e7892;
  outline-offset: -4px;
}

.channel-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  margin-right: 18px;
  border: 1px solid #bdd4d9;
  background: #e9f4f4;
}

.channel-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.channel-link--whatsapp .channel-icon {
  border-color: #bdebcf;
  background: #eafbf0;
}

.channel-link--telegram .channel-icon {
  border-color: #badff1;
  background: #eaf6fc;
}

.channel-logo {
  border-color: #c8dfe2;
  background: #ffffff;
}

.channel-logo img {
  width: 48px;
  height: 48px;
}

.channel-copy {
  min-width: 0;
  display: block;
  flex: 1 1 auto;
}

.channel-copy strong,
.channel-copy small {
  display: block;
}

.channel-copy strong {
  color: #143b57;
  font-size: 20px;
  line-height: 1.2;
}

.channel-copy small,
.channel-type {
  color: #4c6878;
  font-size: 12px;
  line-height: 1.35;
}

.channel-copy small {
  margin-top: 7px;
}

.channel-type {
  flex: 0 0 auto;
  margin-left: 18px;
  white-space: nowrap;
}

.channel-arrow {
  width: 38px;
  flex: 0 0 38px;
  margin-left: 18px;
  color: #0d5e78;
  font-size: 25px;
  line-height: 1;
  text-align: right;
  transition: transform 220ms ease;
}

.channel-link:hover .channel-arrow {
  transform: translate(3px, -3px);
}

.site-footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 60px;
  padding: 14px 48px;
  border-top: 1px solid #bdd4d9;
  color: #4c6878;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@supports (display: grid) {
  .page-shell {
    display: grid;
    grid-template-rows: 72px minmax(0, 1fr) auto;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(480px, 0.72fr);
  }

  .hero-copy,
  .channel-panel {
    width: auto;
    flex: none;
  }

  .channel-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto 38px;
    column-gap: 18px;
  }

  .channel-icon,
  .channel-type,
  .channel-arrow {
    margin-right: 0;
    margin-left: 0;
  }

  .channel-copy {
    display: grid;
    row-gap: 7px;
  }

  .channel-copy small {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    animation: reveal-up 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-copy h1 {
    animation-delay: 80ms;
  }

  .hero-copy .lead {
    animation-delay: 150ms;
  }

  .channel-panel {
    opacity: 0;
    animation: reveal-up 680ms 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .page-shell {
    display: flex;
    flex-direction: column;
    background-position: 34% center;
    background-attachment: scroll;
  }

  .site-header {
    min-height: 68px;
    flex-basis: 68px;
    padding: 0 28px;
  }

  .hero-layout {
    min-height: auto;
    display: block;
  }

  .hero-copy {
    width: 100%;
    min-height: 440px;
    padding: 72px 28px 52px;
  }

  .hero-copy h1 {
    font-size: 72px;
  }

  .channel-panel {
    width: auto;
    margin: 0 28px 48px;
  }

  .site-footer {
    padding: 18px 28px;
  }
}

@media (max-width: 639px) {
  .page-shell {
    background:
      linear-gradient(180deg, rgba(247, 252, 252, 0.88) 0%, rgba(239, 248, 248, 0.94) 48%, #f3f8f8 100%),
      url("./medical-background.png") 28% center / cover no-repeat scroll;
  }

  .site-header {
    min-height: 64px;
    flex-basis: 64px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    margin-right: 9px;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-note {
    max-width: 128px;
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
  }

  .hero-copy {
    min-height: 390px;
    padding: 64px 18px 44px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 54px;
    line-height: 0.94;
  }

  .lead {
    max-width: 340px;
    margin-top: 24px;
    font-size: 17px;
  }

  .channel-panel {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .channel-header {
    min-height: 82px;
    padding: 20px 18px;
  }

  .channel-header h2 {
    font-size: 21px;
  }

  .channel-link {
    min-height: 104px;
    padding: 18px;
  }

  .channel-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    margin-right: 14px;
  }

  .channel-icon img {
    width: 25px;
    height: 25px;
  }

  .channel-logo img {
    width: 42px;
    height: 42px;
  }

  .channel-copy strong {
    font-size: 17px;
  }

  .channel-type {
    display: none;
  }

  .channel-arrow {
    width: 30px;
    flex-basis: 30px;
    margin-left: 14px;
    font-size: 22px;
  }

  .site-footer {
    min-height: 76px;
    display: block;
    flex-basis: 76px;
    padding: 18px;
  }

  .site-footer p + p {
    margin-top: 4px;
  }
}

@supports (display: grid) {
  @media (max-width: 639px) {
    .channel-link {
      grid-template-columns: 46px minmax(0, 1fr) 30px;
      column-gap: 14px;
    }

    .channel-icon,
    .channel-arrow {
      margin-right: 0;
      margin-left: 0;
    }
  }
}

@media (max-width: 359px) {
  .channel-header span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
