.site-header {
  display: flex;
  position: sticky;
  z-index: 20;
  top: 0;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgb(229 224 212 / 80%);
  background: rgb(251 250 247 / 90%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  letter-spacing: 0.06em;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.passport-link {
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 1.03rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.passport-link:hover {
  background: #000;
  transform: translateY(-1px);
}

.portal-shell {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px) 0 50px;
}

.portal-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.services-panel {
  padding: clamp(22px, 3vw, 34px);
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 90px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  border-color: #cbc3b1;
  box-shadow: 0 12px 30px rgb(44 38 26 / 9%);
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #f7f8fa;
}

.service-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.service-card strong,
.service-card small {
  display: block;
}

.service-card strong {
  font-size: 0.98rem;
}

.service-card small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 40px rgb(0 0 0 / 20%);
  font-size: 0.86rem;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 68px;
  }

  .header-actions {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .demo-member-context {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .passport-link {
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .passport-link {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .portal-shell {
    width: min(100% - 24px, 1440px);
    padding-top: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }
}
