/* TerraZ portal visual system
   Dark, compact and game-first. Keeps the atmosphere of terraz.ru while
   matching the denser controls used by WebWorldMap. */

:root {
  --tz-bg: #0a0d11;
  --tz-bg-deep: #06080b;
  --tz-panel: rgba(18, 21, 27, 0.94);
  --tz-panel-solid: #12151b;
  --tz-panel-soft: rgba(255, 255, 255, 0.045);
  --tz-text: #f4f5f7;
  --tz-text-soft: rgba(244, 245, 247, 0.78);
  --tz-muted: rgba(244, 245, 247, 0.5);
  --tz-line: rgba(255, 255, 255, 0.1);
  --tz-line-strong: rgba(113, 231, 223, 0.3);
  --tz-primary: #71e7df;
  --tz-primary-deep: #1fb8b2;
  --tz-yellow: #ffe269;
  --tz-yellow-deep: #ffc143;
  --tz-radius-sm: 6px;
  --tz-radius: 8px;
  --tz-radius-lg: 10px;
  --tz-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

html {
  background: var(--tz-bg-deep);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 184, 178, 0.07), transparent 30rem),
    linear-gradient(180deg, #0d1116 0%, var(--tz-bg) 36%, var(--tz-bg-deep) 100%);
}

/* Header */
.portal-header {
  top: 10px;
  width: min(var(--tz-container), calc(100% - 20px));
}

.portal-header__inner {
  min-height: 56px;
  gap: 12px;
  padding: 3px 5px 3px 9px;
  border-color: var(--tz-line);
  border-radius: 9px;
  background: rgba(12, 15, 20, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

.portal-brand {
  width: 90px;
  height: 46px;
  border-radius: 6px;
}

.portal-brand img {
  width: 74px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.portal-nav__link {
  min-height: 38px;
  padding-inline: 10px;
  border-radius: 6px;
  font-size: 12px;
}

.portal-mobile-menu__button {
  min-height: 40px;
  border-radius: 7px;
}

.portal-mobile-menu__panel {
  width: min(286px, calc(100vw - 20px));
  padding: 6px;
  border-radius: 8px;
  background: rgba(18, 21, 27, 0.985);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portal-mobile-menu__link {
  min-height: 46px;
  border-radius: 6px;
}

/* Homepage */
body.terraz-home-page {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--tz-bg-deep);
}

body.terraz-home-page .initial-content {
  min-height: 100vh;
}

body.terraz-home-page #footer {
  display: none;
}

.portal-home {
  min-height: 100vh;
  background: var(--tz-bg-deep);
}

.portal-hero {
  position: relative;
  display: grid;
  min-height: 720px;
  height: 100svh;
  max-height: 900px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--tz-line);
}

.portal-hero__media,
.portal-hero__video,
.portal-hero__shade,
.portal-hero__grain {
  position: absolute;
  inset: 0;
}

.portal-hero__media {
  z-index: -2;
  overflow: hidden;
  background: #071819;
}

.portal-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  filter: saturate(0.7) contrast(1.09) brightness(0.8);
  transform: scale(1.015);
}

.portal-hero__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 7, 10, 0.86) 0%, rgba(4, 7, 10, 0.48) 44%, rgba(4, 7, 10, 0.38) 68%, rgba(4, 7, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 7, 10, 0.18) 0%, rgba(4, 7, 10, 0.16) 50%, rgba(4, 7, 10, 0.88) 100%);
}

.portal-hero__grain {
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.portal-hero__frame {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(var(--tz-container), calc(100% - 40px));
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: end;
  align-self: end;
  margin: 0 auto;
  padding: 118px 0 42px;
}

.portal-hero__identity {
  min-width: 0;
}

.portal-hero__logo {
  width: 176px;
  max-width: 42vw;
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 9px 26px rgba(0, 0, 0, 0.3));
}

.portal-eyebrow {
  margin: 0 0 12px;
  color: rgba(244, 245, 247, 0.62);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

.portal-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 6.7vw, 84px);
  font-weight: 760;
  line-height: 0.89;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.48);
}

.portal-hero__lead {
  max-width: 510px;
  margin: 20px 0 0;
  color: rgba(244, 245, 247, 0.72);
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Connection panel */
.portal-connect {
  position: relative;
  display: grid;
  width: 100%;
  gap: 9px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--tz-line);
  border-radius: 9px;
  background: rgba(12, 15, 20, 0.86);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portal-connect__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 8px;
}

.portal-connect__pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tz-primary);
  box-shadow: 0 0 0 4px rgba(113, 231, 223, 0.08), 0 0 16px rgba(113, 231, 223, 0.34);
}

.portal-connect__heading small,
.portal-connect__heading strong {
  display: block;
}

.portal-connect__heading small {
  margin-bottom: 2px;
  color: var(--tz-muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-connect__heading strong {
  color: var(--tz-text);
  font-size: 13px;
  font-weight: 690;
}

.portal-address {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: #102223;
  border: 1px solid rgba(255, 233, 149, 0.9);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--tz-yellow), var(--tz-yellow-deep));
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.portal-address:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.portal-address.is-copied {
  color: #efffff;
  border-color: rgba(113, 231, 223, 0.94);
  background: linear-gradient(135deg, #24bdb6, #13817d);
}

.portal-address__value {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  padding: 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.portal-address__action {
  display: inline-flex;
  min-width: 112px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-left: 1px solid rgba(16, 34, 35, 0.16);
  background: rgba(255, 255, 255, 0.14);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.portal-address__action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.portal-steam {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 13px;
  color: var(--tz-text-soft);
  border: 1px solid var(--tz-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.portal-steam:hover,
.portal-steam:focus-visible {
  color: var(--tz-text);
  border-color: var(--tz-line-strong);
  background: rgba(113, 231, 223, 0.06);
}

.portal-steam svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.portal-copy-status {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  min-height: 14px;
  margin: 0;
  color: rgba(244, 245, 247, 0.6);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* Hero launcher rail */
.portal-hero__rail {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(var(--tz-container), calc(100% - 40px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid var(--tz-line);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portal-hero__rail a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-content: center;
  padding: 10px 14px;
  color: var(--tz-text-soft);
  border-right: 1px solid var(--tz-line);
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.portal-hero__rail a:last-child {
  border-right: 0;
}

.portal-hero__rail a:hover,
.portal-hero__rail a:focus-visible {
  color: var(--tz-text);
  background: rgba(113, 231, 223, 0.065);
}

.portal-hero__rail span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--tz-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.portal-hero__rail strong,
.portal-hero__rail small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-hero__rail strong {
  font-size: 12px;
  font-weight: 720;
}

.portal-hero__rail small {
  margin-top: 2px;
  color: var(--tz-muted);
  font-size: 10px;
}

/* Services section */
.portal-hub {
  position: relative;
  padding: 68px 0 82px;
  background:
    radial-gradient(circle at 80% 4%, rgba(31, 184, 178, 0.055), transparent 28rem),
    #080b0f;
}

.portal-hub__container {
  width: min(var(--tz-container), calc(100% - 40px));
  margin-inline: auto;
}

.portal-hub__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--tz-line);
}

.portal-hub__kicker {
  margin: 0 0 9px;
  color: var(--tz-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-hub__intro h2 {
  margin: 0;
  color: var(--tz-text);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 740;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.portal-hub__intro > p {
  margin: 0;
  color: var(--tz-muted);
  font-size: 13px;
  line-height: 1.7;
}

.portal-hub__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 22px;
  margin-top: 24px;
}

/* Map feature */
.portal-map-feature {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-template-rows: minmax(310px, 1fr) auto;
  overflow: hidden;
  color: var(--tz-text);
  border: 1px solid var(--tz-line);
  border-radius: 9px;
  background: #10141a;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.portal-map-feature:hover,
.portal-map-feature:focus-visible {
  color: var(--tz-text);
  border-color: var(--tz-line-strong);
  transform: translateY(-1px);
}

.portal-map-feature__visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 26%, rgba(113, 231, 223, 0.16), transparent 18rem),
    linear-gradient(180deg, #112128 0%, #13242b 48%, #0e161b 100%);
}

.portal-map-feature__visual::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.portal-map-feature__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(6, 8, 11, 0.08) 55%, rgba(6, 8, 11, 0.76) 100%);
}

.portal-map-feature__label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 6px 8px;
  color: rgba(244, 245, 247, 0.68);
  border: 1px solid var(--tz-line);
  border-radius: 5px;
  background: rgba(18, 21, 27, 0.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-map-feature__sun {
  position: absolute;
  top: 56px;
  right: 16%;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: rgba(255, 226, 105, 0.72);
  box-shadow: 0 0 34px rgba(255, 226, 105, 0.18);
}

.portal-map-feature__terrain {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  transform-origin: bottom center;
}

.portal-map-feature__terrain--far {
  height: 62%;
  opacity: 0.62;
  background: #244449;
  clip-path: polygon(
    0 58%, 8% 58%, 8% 49%, 16% 49%, 16% 63%, 25% 63%, 25% 42%,
    34% 42%, 34% 54%, 44% 54%, 44% 34%, 53% 34%, 53% 50%, 63% 50%,
    63% 39%, 72% 39%, 72% 58%, 81% 58%, 81% 46%, 91% 46%, 91% 60%,
    100% 60%, 100% 100%, 0 100%
  );
}

.portal-map-feature__terrain--near {
  height: 46%;
  z-index: 3;
  background:
    linear-gradient(180deg, #365b39 0 9px, #273a28 9px 18px, #202d24 18px 100%);
  clip-path: polygon(
    0 42%, 9% 42%, 9% 30%, 19% 30%, 19% 48%, 29% 48%, 29% 20%,
    39% 20%, 39% 34%, 48% 34%, 48% 12%, 59% 12%, 59% 28%, 69% 28%,
    69% 42%, 79% 42%, 79% 24%, 89% 24%, 89% 38%, 100% 38%, 100% 100%, 0 100%
  );
}

.portal-map-feature__marker {
  position: absolute;
  z-index: 4;
  width: 2px;
  height: 22px;
  background: rgba(244, 245, 247, 0.92);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.portal-map-feature__marker::after {
  position: absolute;
  top: 1px;
  left: 2px;
  width: 11px;
  height: 7px;
  border-radius: 1px;
  background: #ef4444;
  content: "";
}

.portal-map-feature__marker--one {
  left: 37%;
  bottom: 37%;
}

.portal-map-feature__marker--two {
  right: 24%;
  bottom: 29%;
  transform: scale(0.82);
  opacity: 0.76;
}

.portal-map-feature__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border-top: 1px solid var(--tz-line);
  background: rgba(18, 21, 27, 0.98);
}

.portal-map-feature__copy small,
.portal-map-feature__copy strong,
.portal-map-feature__copy em {
  display: block;
}

.portal-map-feature__copy small {
  margin-bottom: 4px;
  color: var(--tz-primary);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-map-feature__copy strong {
  font-size: 18px;
  font-weight: 720;
}

.portal-map-feature__copy em {
  margin-top: 4px;
  color: var(--tz-muted);
  font-size: 11px;
  font-style: normal;
}

.portal-map-feature__arrow {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--tz-text-soft);
  border: 1px solid var(--tz-line);
  border-radius: 6px;
}

.portal-map-feature__arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* Service list */
.portal-service-list {
  align-self: stretch;
  border-top: 1px solid var(--tz-line);
}

.portal-service-list__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  border-bottom: 1px solid var(--tz-line);
}

.portal-service-list__title,
.portal-service-list__heading span {
  margin: 0;
  color: var(--tz-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-service-list__heading span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.05em;
}

.portal-service-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 10px 2px;
  color: var(--tz-text-soft);
  border-bottom: 1px solid var(--tz-line);
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.portal-service-link:hover,
.portal-service-link:focus-visible {
  color: var(--tz-text);
  background: linear-gradient(90deg, rgba(113, 231, 223, 0.055), transparent 74%);
}

.portal-service-link__index {
  color: var(--tz-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

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

.portal-service-link strong {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.portal-service-link small {
  margin-top: 4px;
  color: var(--tz-muted);
  font-size: 11px;
}

.portal-service-link__arrow {
  width: 15px;
  height: 15px;
  color: rgba(244, 245, 247, 0.3);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

/* Internal pages */
.tz-page {
  padding: 114px 0 72px;
}

.tz-page-header {
  margin-bottom: 28px;
}

.tz-page-header h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.tz-page-lead {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.62;
}

.tz-guide-grid {
  gap: 0;
  border-top: 1px solid var(--tz-line);
}

.tz-guide-card {
  min-height: 74px;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  gap: 13px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--tz-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tz-guide-card:hover {
  background: linear-gradient(90deg, rgba(113, 231, 223, 0.05), transparent 76%);
  transform: none;
}

.tz-guide-card__icon,
.tz-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.tz-guide-card__body strong {
  font-size: 14px;
}

.tz-guide-card__body small {
  margin-top: 3px;
  font-size: 11px;
}

.tz-notice,
.tz-rule-section,
.tz-news-panel {
  border-radius: 7px;
  box-shadow: none;
}

.tz-notice {
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.026);
}

.tz-anchor-nav {
  gap: 6px;
}

.tz-anchor-nav a {
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.026);
}

.tz-rule-section {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 15px;
  padding: 18px;
  background: rgba(18, 21, 27, 0.72);
}

.tz-rule-section__number {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.tz-news-panel {
  background: rgba(18, 21, 27, 0.72);
}

.page__footer {
  border-color: var(--tz-line);
  background: #080a0d;
}

/* Responsive */
@media (max-width: 960px) {
  .portal-hero {
    min-height: 760px;
    height: auto;
    max-height: none;
  }

  .portal-hero__frame {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 112px;
  }

  .portal-hero__identity {
    max-width: 700px;
  }

  .portal-connect {
    width: min(390px, 100%);
  }

  .portal-hero__rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portal-hero__rail::-webkit-scrollbar {
    display: none;
  }

  .portal-hero__rail a {
    min-width: 180px;
    flex: 1 0 180px;
  }

  .portal-hub__intro,
  .portal-hub__layout {
    grid-template-columns: 1fr;
  }

  .portal-hub__intro {
    gap: 14px;
  }

  .portal-service-link {
    min-height: 70px;
  }
}

@media (max-width: 720px) {
  .portal-header {
    top: 7px;
    width: calc(100% - 14px);
  }

  .portal-header__inner {
    min-height: 52px;
    border-radius: 8px;
  }

  .portal-brand {
    width: 80px;
    height: 44px;
  }

  .portal-brand img {
    width: 66px;
  }

  .portal-hero {
    min-height: 100svh;
  }

  .portal-hero__shade {
    background:
      linear-gradient(180deg, rgba(4, 7, 10, 0.4) 0%, rgba(4, 7, 10, 0.58) 46%, rgba(4, 7, 10, 0.94) 100%),
      linear-gradient(90deg, rgba(4, 7, 10, 0.54), rgba(4, 7, 10, 0.34));
  }

  .portal-hero__frame {
    width: calc(100% - 24px);
    gap: 22px;
    padding: 94px 0 26px;
  }

  .portal-hero__logo {
    width: 145px;
    margin-bottom: 14px;
  }

  .portal-hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .portal-hero__lead {
    max-width: 440px;
    margin-top: 15px;
    font-size: 13px;
  }

  .portal-connect {
    width: 100%;
    padding: 12px;
  }

  .portal-address__action {
    min-width: 52px;
  }

  .portal-address__action span {
    display: none;
  }

  .portal-hero__rail {
    width: calc(100% - 24px);
    margin-bottom: 10px;
  }

  .portal-hero__rail a {
    min-height: 60px;
    min-width: 160px;
    flex-basis: 160px;
    padding-inline: 11px;
  }

  .portal-hub {
    padding: 48px 0 60px;
  }

  .portal-hub__container {
    width: calc(100% - 24px);
  }

  .portal-hub__intro {
    padding-bottom: 22px;
  }

  .portal-map-feature {
    min-height: 340px;
    grid-template-rows: minmax(235px, 1fr) auto;
  }

  .portal-map-feature__visual {
    min-height: 235px;
  }

  .portal-map-feature__copy {
    padding: 16px;
  }

  .portal-map-feature__copy em {
    display: none;
  }

  .tz-page {
    padding-top: 94px;
  }
}

@media (max-width: 480px) {
  .portal-hero__frame {
    padding-top: 88px;
  }

  .portal-hero__logo {
    width: 128px;
  }

  .portal-eyebrow {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .portal-hero h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .portal-hero__lead {
    line-height: 1.5;
  }

  .portal-connect__heading {
    padding-bottom: 5px;
  }

  .portal-address__value {
    padding-inline: 13px;
    font-size: 14px;
  }

  .portal-hub__intro h2 {
    font-size: 36px;
  }

  .portal-map-feature {
    border-radius: 7px;
  }

  .portal-map-feature__sun {
    right: 12%;
  }

  .portal-service-link {
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    gap: 10px;
  }

  .tz-rule-section {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) and (min-width: 961px) {
  .portal-hero {
    min-height: 720px;
    height: 100svh;
  }

  .portal-hero__frame {
    padding-top: 92px;
    padding-bottom: 28px;
  }

  .portal-hero__logo {
    width: 145px;
    margin-bottom: 10px;
  }

  .portal-hero h1 {
    font-size: clamp(46px, 6vw, 70px);
  }

  .portal-hero__lead {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-address,
  .portal-map-feature,
  .portal-service-link,
  .portal-hero__rail a {
    transition: none;
  }
}
