:root {
  --orange: #f26a21;
  --orange-deep: #dd4f1b;
  --orange-soft: #fff1e6;
  --red: #c52530;
  --blue: #198fca;
  --navy: #16375b;
  --ink: #25354a;
  --muted: #718096;
  --line: #e8edf3;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #fbfcfe; font-family: "Be Vietnam Pro", sans-serif; }
a { color: inherit; }

.portal {
  isolation: isolate;
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #fffaf6;
}

.portal::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.72) 0%, rgba(255,255,255,.42) 34%, transparent 69%);
}

.portal::after {
  content: none;
}

.medical-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("srv-portal-background.png") center center / cover no-repeat;
}

.portal__content {
  width: min(1180px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.portal__header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(221, 229, 237, .72);
}

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo-wrap { width: 130px; height: 70px; display: grid; place-items: center; overflow: hidden; }
.brand__logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.brand__divider { width: 1px; height: 38px; background: linear-gradient(transparent, #d8e0e8 18%, #d8e0e8 82%, transparent); }
.brand__name { display: flex; flex-direction: column; gap: 4px; color: #8895a5; font-size: .6rem; font-weight: 700; line-height: 1; letter-spacing: .15em; }
.brand__name strong { color: var(--navy); font: 800 1rem/1 "Manrope", sans-serif; letter-spacing: .14em; }
.support-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: #39b86b; box-shadow: 0 0 0 5px rgba(57,184,107,.12); }

.portal__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2.4vh, 24px) 0 14px;
}

.access-panel {
  width: min(930px, 100%);
  padding: clamp(18px, 2.2vw, 25px);
  border: 1px solid rgba(222, 229, 237, .94);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 24px 60px rgba(39, 64, 92, .13), 0 2px 8px rgba(39, 64, 92, .05);
  backdrop-filter: blur(18px);
}

.access-panel__heading { display: flex; justify-content: center; align-items: center; margin-bottom: 16px; }
.access-panel h2 { margin: 0; color: var(--navy); font: 800 clamp(1.22rem, 2.2vw, 1.52rem)/1.25 "Manrope", sans-serif; text-align: center; }

.hq-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 14px;
  color: white;
  text-decoration: none;
  background: linear-gradient(110deg, #d94721, #f26a21 52%, #f69b26);
  box-shadow: 0 10px 22px rgba(226, 91, 27, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hq-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -84px; top: -145px; border: 24px solid rgba(255,255,255,.13); border-radius: 50%; }
.hq-card:hover, .hq-card:focus-visible, .branch-card:hover, .branch-card:focus-visible { transform: translateY(-3px); outline: none; }
.hq-card:hover { box-shadow: 0 15px 28px rgba(226, 91, 27, .28); }
.hq-card__mark, .branch-card__icon { position: relative; z-index: 1; display: grid; flex: none; place-items: center; border-radius: 10px; }
.hq-card__mark { width: 46px; height: 40px; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.12); font: 800 .67rem "Manrope", sans-serif; letter-spacing: .06em; }
.hq-card__body { position: relative; z-index: 1; flex: 1; }
.hq-card__name { margin: 0; font: 800 clamp(.95rem, 1.65vw, 1.1rem) "Manrope", sans-serif; letter-spacing: .01em; }
.hq-card__cta { position: relative; z-index: 1; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.hq-card__cta b { display: inline-block; margin-left: 5px; font-size: 1rem; transition: transform .2s ease; }
.hq-card:hover .hq-card__cta b { transform: translateX(4px); }

.centers-heading { display: flex; align-items: center; gap: 14px; margin: 21px 0 13px; }
.centers-heading h3 { margin: 0; color: var(--navy); text-align: center; font: 800 clamp(.76rem, 1.35vw, .96rem)/1.35 "Manrope", sans-serif; letter-spacing: .055em; }
.centers-heading__line { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #f6c7a5); }
.centers-heading__line:last-child { background: linear-gradient(90deg, #f6c7a5, transparent); }
.branches-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }

.branch-card {
  position: relative;
  display: block;
  min-height: 124px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #e5eaf0;
  border-radius: 13px;
  color: var(--navy);
  text-decoration: none;
  background: rgba(255,255,255,.92);
  box-shadow: 0 5px 15px rgba(56, 77, 102, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.branch-card::after { content: ""; position: absolute; width: 75px; height: 75px; right: -46px; bottom: -48px; border: 11px solid rgba(242,106,33,.08); border-radius: 50%; }
.branch-card:hover { border-color: #ffc89f; box-shadow: 0 12px 23px rgba(56, 77, 102, .12); }
.branch-card__icon { position: absolute; top: 12px; left: 12px; width: 29px; height: 29px; color: white; background: linear-gradient(135deg, var(--orange), #ff9a31); font-size: .78rem; }
.branch-card__label { position: relative; z-index: 1; min-height: 29px; margin: 0 0 6px 38px; padding-top: 8px; color: var(--orange); font-size: .53rem; font-weight: 800; letter-spacing: .13em; }
.branch-card__name { position: relative; z-index: 1; display: -webkit-box; margin: 0; overflow: hidden; color: var(--navy); font: 800 .77rem/1.36 "Manrope", sans-serif; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.branch-card__location { position: relative; z-index: 1; display: block; margin-top: 6px; color: #8492a2; font-size: .63rem; font-weight: 600; }
.branch-card__location::before { content: "●"; margin-right: 5px; color: var(--orange); font-size: .48rem; vertical-align: 1px; }

.portal__footer { display: flex; align-items: center; justify-content: center; padding: 14px 0; border-top: 1px solid rgba(232,237,242,.76); color: #8b98a8; font-size: .63rem; }
.support-chip { position: fixed; z-index: 4; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid #e4eaf0; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(40,63,89,.1); backdrop-filter: blur(10px); color: #8794a4; font-size: .67rem; }
.support-chip button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.support-chip button:hover { color: var(--orange); }
.support-chip__number { display: none; color: var(--orange); font-weight: 800; text-decoration: none; }
.support-chip.is-open .support-chip__number { display: inline; }
.support-chip__dot { width: 6px; height: 6px; }
.toast { position: fixed; z-index: 8; left: 50%; bottom: 27px; max-width: calc(100% - 32px); padding: 11px 17px; border-radius: 11px; background: var(--navy); color: #fff; font-size: .76rem; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 920px) {
  .medical-visual { opacity: .72; }
  .portal::before { background: rgba(255,255,255,.28); }
}

@media (max-width: 720px) {
  .portal { overflow: auto; }
  .portal__content { width: min(100% - 26px, 1180px); }
  .portal__header { min-height: 84px; }
  .medical-visual { opacity: .42; background-position: 62% center; }
  .portal__main { justify-content: flex-start; padding-top: 24px; }
  .access-panel { width: 100%; }
  .branches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal__footer { padding-bottom: 65px; }
  .support-chip { right: auto; left: 50%; bottom: 11px; transform: translateX(-50%); white-space: nowrap; }
  .support-chip button { pointer-events: none; }
  .support-chip__number { display: inline; }
}

@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand__logo-wrap { width: 100px; height: 56px; }
  .brand__divider { height: 32px; }
  .brand__name { font-size: .5rem; letter-spacing: .11em; }
  .brand__name strong { font-size: .82rem; }
  .access-panel { padding: 17px 13px; border-radius: 18px; }
  .hq-card { align-items: flex-start; padding: 13px; }
  .hq-card__cta { position: absolute; right: 13px; bottom: 12px; }
  .hq-card__body { padding-bottom: 13px; }
  .centers-heading { gap: 7px; }
  .centers-heading h3 { line-height: 1.45; }
  .branch-card { min-height: 118px; padding: 10px; }
  .branch-card__icon { top: 10px; left: 10px; width: 28px; height: 28px; }
  .branch-card__label { min-height: 28px; margin-left: 36px; padding-top: 7px; }
  .branch-card__name { font-size: .7rem; }
}

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