.portal-main,
.portal-header,
.portal-footer,
.portal-tabbar,
.portal-mobile-menu,
.portal-more-sheet {
  --portal-green: #163e31;
  --portal-green-soft: #245746;
  --portal-coral: #f06455;
  --portal-sand: #f5efe3;
  --portal-ink: #17342b;
  --portal-muted: #66766f;
  --portal-surface: #ffffff;
  --portal-border: rgba(22, 62, 49, 0.13);
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] .portal-main,
[data-theme="dark"] .portal-header,
[data-theme="dark"] .portal-footer,
[data-theme="dark"] .portal-tabbar,
[data-theme="dark"] .portal-mobile-menu,
[data-theme="dark"] .portal-more-sheet {
  --portal-green: #4c9d7e;
  --portal-green-soft: #2f7259;
  --portal-coral: #ff7768;
  --portal-sand: #202923;
  --portal-ink: #f3f6f4;
  --portal-muted: #aebdb6;
  --portal-surface: #151c18;
  --portal-border: rgba(255, 255, 255, 0.12);
}

.portal-main {
  overflow: hidden;
  color: var(--portal-ink);
  background: var(--portal-surface);
}

.portal-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.portal-header {
  position: relative;
  z-index: 1035;
  border-bottom: 1px solid var(--portal-border);
  color: var(--portal-ink);
  background: var(--portal-surface);
  background: color-mix(in srgb, var(--portal-surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.portal-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--portal-ink);
  text-decoration: none;
}

.portal-brand:hover,
.portal-brand:focus {
  color: var(--portal-ink);
  text-decoration: none;
}

.portal-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(22, 62, 49, 0.18);
}

.portal-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.portal-brand__text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-brand__text small {
  margin-top: 5px;
  color: var(--portal-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.portal-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: var(--portal-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.portal-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--portal-coral);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.portal-nav a:hover::after,
.portal-nav a:focus::after,
.portal-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-button {
  min-height: 50px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--portal-green);
  border-radius: 13px;
  color: #fff;
  background: var(--portal-green);
  box-shadow: 0 10px 24px rgba(22, 62, 49, 0.16);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.portal-button:hover,
.portal-button:focus {
  color: #fff;
  background: var(--portal-green-soft);
  box-shadow: 0 14px 30px rgba(22, 62, 49, 0.22);
  text-decoration: none;
  transform: translateY(-2px);
}

.portal-button--small {
  min-height: 42px;
  padding: 10px 18px;
  border-color: var(--portal-coral);
  background: var(--portal-coral);
  box-shadow: none;
}

.portal-button--small:hover,
.portal-button--small:focus {
  background: #db5043;
}

.portal-button--ghost {
  color: var(--portal-green);
  background: transparent;
  box-shadow: none;
}

.portal-button--ghost:hover,
.portal-button--ghost:focus {
  color: #fff;
}

.portal-button--light {
  border-color: #fff;
  color: var(--portal-green);
  background: #fff;
}

.portal-button--light:hover,
.portal-button--light:focus {
  color: var(--portal-green);
  background: var(--portal-sand);
}

.portal-menu-button {
  width: 44px;
  height: 44px;
  padding: 11px;
  display: none;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: transparent;
}

.portal-menu-button span {
  height: 2px;
  margin: 4px 0;
  display: block;
  border-radius: 2px;
  background: var(--portal-ink);
}

.portal-hero {
  padding: 46px 0 64px;
  background: var(--portal-sand);
  background:
    radial-gradient(circle at 4% 5%, rgba(240, 100, 85, 0.12), transparent 34%),
    linear-gradient(180deg, var(--portal-surface), color-mix(in srgb, var(--portal-sand) 45%, var(--portal-surface)));
}

.portal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.25fr);
  align-items: center;
  gap: 46px;
}

.portal-eyebrow {
  display: inline-block;
  color: var(--portal-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-hero h1,
.portal-page-hero h1 {
  margin: 14px 0 20px;
  color: var(--portal-ink);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.portal-hero h1 em {
  color: var(--portal-coral);
  font-style: normal;
}

.portal-hero__lead {
  max-width: 610px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 18px;
  line-height: 1.65;
}

.portal-hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-hero__visual {
  position: relative;
  min-height: 510px;
}

.portal-hero__slides {
  position: relative;
  width: 100%;
  height: 510px;
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(22, 62, 49, 0.2);
  overflow: hidden;
}

.portal-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.portal-hero__slide.is-active {
  opacity: 1;
}

.portal-hero__facts {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.portal-hero__facts > div {
  min-width: 0;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #17342b;
}

.portal-hero__facts > div + div {
  border-left: 1px solid rgba(22, 62, 49, 0.13);
}

.portal-hero__facts strong,
.portal-hero__facts i {
  color: #163e31;
  font-size: 24px;
}

.portal-hero__facts span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.portal-section {
  padding: 88px 0;
  scroll-margin-top: 20px;
}

.portal-section--sand {
  background: var(--portal-sand);
}

.portal-section__heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.portal-section h2,
.portal-final-cta h2 {
  margin: 8px 0 0;
  color: var(--portal-ink);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.portal-section__heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 16px;
  line-height: 1.55;
}

.portal-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portal-format-card {
  position: relative;
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--portal-border);
  border-radius: 22px;
  color: var(--portal-ink);
  background: var(--portal-surface);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.portal-format-card:hover,
.portal-format-card:focus {
  border-color: var(--portal-green);
  border-color: color-mix(in srgb, var(--portal-green) 48%, transparent);
  color: var(--portal-ink);
  box-shadow: 0 18px 44px rgba(22, 62, 49, 0.12);
  text-decoration: none;
  transform: translateY(-4px);
}

.portal-format-card--wide {
  grid-column: span 2;
}

.portal-format-card--accent {
  color: #fff;
  background: var(--portal-coral);
}

.portal-format-card--accent:hover,
.portal-format-card--accent:focus {
  color: #fff;
}

.portal-format-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--portal-green);
  font-size: 20px;
}

.portal-format-card--accent .portal-format-card__icon {
  color: var(--portal-coral);
  background: #fff;
}

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

.portal-format-card strong {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.25;
}

.portal-format-card small {
  margin-top: 7px;
  max-width: 260px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.45;
}

.portal-format-card--accent small {
  color: rgba(255, 255, 255, 0.84);
}

.portal-format-card__arrow {
  position: absolute;
  right: 24px;
  bottom: 27px;
}

.portal-format-card--image {
  color: #fff;
}

.portal-format-card--image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-format-card--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 24, 0.06), rgba(10, 31, 24, 0.86));
}

.portal-format-card--image > span,
.portal-format-card--image .portal-format-card__arrow {
  position: relative;
  z-index: 1;
}

.portal-format-card--image > span {
  margin-top: auto;
}

.portal-format-card--image strong {
  margin-top: 0;
}

.portal-format-card--image small {
  color: rgba(255, 255, 255, 0.84);
}

.portal-team-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.portal-team-copy > p {
  margin: 20px 0 0;
  color: var(--portal-muted);
  font-size: 16px;
  line-height: 1.65;
}

.portal-team-count {
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-team-count strong {
  color: var(--portal-coral);
  font-size: 36px;
}

.portal-team-count span {
  max-width: 180px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.35;
}

.portal-text-link,
.portal-coach-card a {
  color: var(--portal-green);
  font-weight: 800;
  text-decoration: none;
}

.portal-text-link:hover,
.portal-text-link:focus,
.portal-coach-card a:hover,
.portal-coach-card a:focus {
  color: var(--portal-coral);
  text-decoration: none;
}

.portal-featured-coach {
  min-height: 360px;
  padding: 38px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 30%),
    #163e31;
  box-shadow: 0 24px 50px rgba(22, 62, 49, 0.2);
}

.portal-featured-coach--empty {
  grid-template-columns: 1fr;
}

.portal-featured-coach h3 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}

.portal-featured-coach p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.portal-featured-coach a {
  color: #fff;
  font-weight: 800;
}

.portal-coach-avatar {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--portal-green-soft), var(--portal-coral));
  font-size: 28px;
  font-weight: 800;
  overflow: hidden;
}

.portal-coach-avatar--large {
  width: 190px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, #286c53, #d67a55);
  font-size: 44px;
}

.portal-coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.portal-steps li {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--portal-border);
  border-radius: 22px;
  background: var(--portal-surface);
}

.portal-steps li > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--portal-green);
  background: var(--portal-sand);
  font-weight: 800;
}

.portal-steps li > i {
  position: absolute;
  top: 34px;
  right: 30px;
  color: var(--portal-green);
  font-size: 28px;
}

.portal-steps h3 {
  margin: 56px 0 10px;
  color: var(--portal-ink);
  font-size: 20px;
  font-weight: 800;
}

.portal-steps p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-final-cta {
  padding: 64px 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(240, 100, 85, 0.4), transparent 34%),
    #163e31;
}

.portal-final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.portal-final-cta h2 {
  color: #fff;
}

.portal-final-cta p {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

.portal-page-hero {
  padding: 74px 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(240, 100, 85, 0.16), transparent 28%),
    var(--portal-sand);
}

.portal-page-hero h1 {
  max-width: 880px;
  font-size: clamp(42px, 5vw, 66px);
}

.portal-page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 18px;
  line-height: 1.65;
}

.portal-page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 54px;
}

.portal-page-hero__grid img {
  width: 100%;
  height: 330px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 22px 48px rgba(22, 62, 49, 0.16);
}

.portal-coaches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.portal-coach-card {
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  background: var(--portal-surface);
}

.portal-coach-card--featured {
  grid-column: 1 / -1;
  padding: 34px;
  border-color: transparent;
  color: #fff;
  background: #163e31;
}

.portal-coach-card__content > span {
  color: var(--portal-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-coach-card h2 {
  margin: 5px 0 10px;
  font-size: 24px;
}

.portal-coach-card p {
  margin: 0 0 14px;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-coach-card h2 a {
  color: inherit;
  text-decoration: none;
}

.portal-coach-card h2 a:hover,
.portal-coach-card h2 a:focus {
  color: var(--portal-coral);
  text-decoration: none;
}

.portal-coach-card--featured h2 a:hover,
.portal-coach-card--featured h2 a:focus {
  color: #ffc4bc;
}

.portal-coach-avatar[href] {
  text-decoration: none;
}

.portal-coach-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.portal-coach-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

.portal-coach-avatar--profile {
  width: 220px;
  height: 300px;
  font-size: 42px;
}

.portal-coach-profile__content h1 {
  margin: 10px 0 16px;
}

.portal-coach-profile__content > p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--portal-muted);
  font-size: 18px;
  line-height: 1.65;
}

.portal-coach-credentials--page {
  display: grid;
  gap: 28px;
}

.portal-coach-credentials--page .portal-coach-credentials__section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.portal-coach-credentials--page .portal-coach-credentials__group h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.portal-coach-card--featured h2,
.portal-coach-card--featured a {
  color: #fff;
}

.portal-coach-card--featured p {
  color: rgba(255, 255, 255, 0.75);
}

.portal-coach-card--detailed {
  align-items: start;
}

.portal-coach-card--detailed .portal-coach-card__content {
  min-width: 0;
}

.portal-coach-credentials {
  margin: 0 0 18px;
  display: grid;
  gap: 16px;
}

.portal-coach-credentials__section h3 {
  margin: 0 0 8px;
  color: var(--portal-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-coach-credentials__group + .portal-coach-credentials__group {
  margin-top: 10px;
}

.portal-coach-credentials__group h4 {
  margin: 0 0 6px;
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 700;
}

.portal-coach-credentials ul {
  margin: 0;
  padding-left: 18px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.5;
}

.portal-coach-credentials li + li {
  margin-top: 4px;
}

.portal-coach-card--featured .portal-coach-credentials__section h3 {
  color: #ffc4bc;
}

.portal-coach-card--featured .portal-coach-credentials__group h4,
.portal-coach-card--featured .portal-coach-credentials ul {
  color: rgba(255, 255, 255, 0.78);
}

.portal-levels,
.portal-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.portal-levels > div:first-child p,
.portal-story p {
  color: var(--portal-muted);
  font-size: 16px;
  line-height: 1.7;
}

.portal-levels__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.portal-levels__list span {
  min-height: 90px;
  padding: 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  font-weight: 800;
}

.portal-levels-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(240, 100, 85, 0.1), transparent 28%),
    var(--portal-surface);
}

.portal-level-table {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  background: var(--portal-surface);
  box-shadow: 0 16px 38px rgba(22, 62, 49, 0.08);
  overflow: hidden;
}

.portal-level-table article {
  min-width: 0;
  padding: 24px 20px 28px;
}

.portal-level-table article + article {
  border-left: 1px solid var(--portal-border);
}

.portal-level-table__header {
  min-height: 132px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  border-bottom: 1px solid var(--portal-border);
}

.portal-level-table__header > span {
  color: var(--portal-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-level-table__header > i {
  color: var(--portal-green);
  font-size: 34px;
}

.portal-level-table h3 {
  margin: 28px 0 0;
  grid-column: 1 / -1;
  color: var(--portal-green);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-level-table ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.portal-level-table li {
  position: relative;
  margin-top: 14px;
  padding-left: 15px;
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.55;
}

.portal-level-table li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--portal-coral);
}

.portal-location__map > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 13px;
  border-radius: 12px;
  color: #fff;
  background: rgba(22, 62, 49, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.portal-location {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 48px;
}

.portal-location__content > p {
  margin: 20px 0 0;
  color: var(--portal-muted);
  font-size: 16px;
  line-height: 1.65;
}

.portal-location__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-location__maps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-location__map {
  position: relative;
  display: block;
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(22, 62, 49, 0.13);
  overflow: hidden;
}

.portal-location__map img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portal-directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portal-directions a {
  min-height: 190px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--portal-border);
  border-radius: 22px;
  color: var(--portal-ink);
  background: var(--portal-surface);
  text-decoration: none;
}

.portal-directions a:hover,
.portal-directions a:focus {
  border-color: var(--portal-green);
  text-decoration: none;
}

.portal-directions i {
  color: var(--portal-coral);
  font-size: 26px;
}

.portal-directions strong {
  margin: auto 0 7px;
  font-size: 19px;
}

.portal-directions span {
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.45;
}

.portal-contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.portal-contact-cards {
  display: grid;
  gap: 12px;
}

.portal-contact-cards > a,
.portal-contact-cards > div {
  min-height: 90px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  color: var(--portal-ink);
  background: var(--portal-surface);
  text-decoration: none;
}

.portal-contact-cards > a:hover,
.portal-contact-cards > a:focus {
  border-color: var(--portal-green);
  text-decoration: none;
}

.portal-contact-cards > a > i:first-child,
.portal-contact-cards > div > i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--portal-green);
}

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

.portal-contact-cards small {
  margin-bottom: 4px;
  color: var(--portal-muted);
}

.portal-contact-cards strong {
  font-size: 15px;
}

.portal-map-card {
  min-height: 396px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(rgba(22, 62, 49, 0.88), rgba(22, 62, 49, 0.95)),
    url("../img/img-banner-2.jpg") center / cover;
}

.portal-map-card__pin {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--portal-coral);
  background: #fff;
  font-size: 25px;
}

.portal-map-card h2 {
  margin: 5px 0 10px;
  color: #fff;
}

.portal-map-card p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.75);
}

.portal-contact-maps {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-route-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}

.portal-route-steps li {
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
}

.portal-route-steps span {
  color: var(--portal-coral);
  font-size: 24px;
  font-weight: 800;
}

.portal-route-steps p {
  margin: 18px 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-empty {
  padding: 60px 30px;
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  text-align: center;
}

.portal-empty p {
  margin: 12px 0 24px;
  color: var(--portal-muted);
}

.portal-footer {
  padding: 62px 0 24px;
  color: rgba(255, 255, 255, 0.76);
  background: #102a22;
}

.portal-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}

.portal-footer__brand {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.portal-footer p {
  max-width: 250px;
  margin-top: 12px;
  line-height: 1.55;
}

.portal-footer a,
.portal-footer__grid span {
  margin: 8px 0;
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: none;
}

.portal-footer a:hover,
.portal-footer a:focus {
  color: #fff;
}

.portal-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.portal-theme-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: transparent;
}

.portal-mobile-menu {
  position: fixed;
  z-index: 1060;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  background: #fff;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

[data-theme="dark"] .portal-mobile-menu {
  background: #151c18;
}

.portal-mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.portal-mobile-menu__panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 74px 26px calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

[data-theme="dark"] .portal-mobile-menu__panel {
  background: #151c18;
}

.portal-mobile-menu.is-open .portal-mobile-menu__panel {
  transform: translateX(0);
}

.portal-mobile-menu__panel > a {
  width: min(100%, 620px);
  margin-right: auto;
  margin-left: auto;
  padding: 14px 4px;
  border-bottom: 1px solid var(--portal-border);
  color: var(--portal-ink);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.portal-mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--portal-border);
  border-radius: 50%;
  color: var(--portal-ink);
  background: var(--portal-surface);
  font-size: 27px;
  line-height: 1;
}

.portal-tabbar {
  display: none;
}

.portal-more-sheet {
  position: fixed;
  z-index: 1065;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.portal-more-sheet.is-open {
  visibility: visible;
  opacity: 1;
}

.portal-more-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(5, 20, 14, 0.78);
}

.portal-more-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(82vh - env(safe-area-inset-bottom));
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  color: var(--portal-ink);
  background: #fff;
  box-shadow: 0 -20px 54px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 220ms ease;
}

[data-theme="dark"] .portal-more-sheet__panel {
  background: #151c18;
}

.portal-more-sheet.is-open .portal-more-sheet__panel {
  transform: translateY(0);
}

.portal-more-sheet__handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 5px;
  background: var(--portal-border);
}

.portal-more-sheet__header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-more-sheet__header strong {
  font-size: 21px;
}

.portal-more-sheet__header button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--portal-border);
  border-radius: 50%;
  color: var(--portal-ink);
  background: var(--portal-surface);
  font-size: 24px;
  line-height: 1;
}

.portal-more-sheet nav {
  display: grid;
  gap: 8px;
}

.portal-more-sheet nav a {
  min-height: 58px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 15px;
  color: var(--portal-ink);
  background: var(--portal-surface);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.portal-more-sheet nav a:hover,
.portal-more-sheet nav a:focus {
  border-color: var(--portal-green);
  color: var(--portal-ink);
  text-decoration: none;
}

.portal-more-sheet nav a > i:first-child {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--portal-green);
}

.portal-more-sheet nav a > i:last-child {
  color: var(--portal-muted);
  font-size: 11px;
}

body.portal-menu-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .portal-nav {
    display: none;
  }

  .portal-header__actions {
    margin-left: auto;
  }

  .portal-menu-button {
    display: block;
  }

  .portal-hero__grid {
    grid-template-columns: 1fr;
  }

  .portal-hero__content {
    max-width: 720px;
  }

  .portal-hero__visual,
  .portal-hero__slides {
    min-height: 0;
    height: 480px;
  }

  .portal-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-team-layout,
  .portal-page-hero__grid,
  .portal-levels,
  .portal-story,
  .portal-location {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .portal-location__maps {
    max-width: 760px;
  }

  .portal-level-table {
    grid-template-columns: 1fr;
  }

  .portal-level-table article + article {
    border-top: 1px solid var(--portal-border);
    border-left: 0;
  }

  .portal-level-table__header {
    min-height: 0;
  }

  .portal-directions {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-contacts-layout {
    grid-template-columns: 1fr;
  }

  .portal-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .portal-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .portal-container {
    width: min(calc(100% - 28px), 620px);
  }

  .portal-header__inner {
    min-height: 66px;
  }

  .portal-brand__logo {
    width: 42px;
    height: 42px;
  }

  .portal-brand__text strong {
    font-size: 17px;
  }

  .portal-brand__text small {
    font-size: 8px;
  }

  .portal-header__actions > .portal-button {
    display: none;
  }

  .portal-hero {
    padding: 18px 0 46px;
  }

  .portal-hero__grid {
    gap: 26px;
  }

  .portal-hero__content {
    position: static;
    width: auto;
    margin: 0;
    padding: 12px 2px 0;
    color: var(--portal-ink);
  }

  .portal-hero__content::before {
    content: none;
  }

  .portal-hero .portal-eyebrow {
    color: var(--portal-coral);
  }

  .portal-hero h1 {
    margin: 12px 0 16px;
    color: var(--portal-ink);
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: 1.02;
  }

  .portal-hero__lead {
    color: var(--portal-muted);
    font-size: 15px;
    line-height: 1.55;
  }

  .portal-hero__actions {
    margin-top: 22px;
  }

  .portal-hero__actions .portal-button {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .portal-hero__actions .portal-button--ghost {
    border-color: var(--portal-green);
    color: var(--portal-green);
  }

  .portal-hero__visual,
  .portal-hero__slides {
    height: 280px;
  }

  .portal-hero__slides {
    border-radius: 24px;
  }

  .portal-hero__facts {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 12px 5px;
    border-radius: 16px;
  }

  .portal-hero__facts > div {
    padding: 0 7px;
    gap: 6px;
  }

  .portal-hero__facts strong,
  .portal-hero__facts i {
    font-size: 18px;
  }

  .portal-hero__facts span {
    font-size: 9px;
  }

  .portal-section {
    padding: 60px 0;
  }

  .portal-section__heading {
    margin-bottom: 24px;
    display: block;
  }

  .portal-section__heading > p {
    margin-top: 13px;
  }

  .portal-section h2,
  .portal-final-cta h2 {
    font-size: 32px;
  }

  .portal-bento {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  .portal-format-card,
  .portal-format-card--wide {
    min-height: 170px;
    padding: 18px;
    grid-column: auto;
  }

  .portal-format-card--wide,
  .portal-format-card--image {
    grid-column: 1 / -1;
  }

  .portal-format-card__icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .portal-format-card strong {
    margin-top: 18px;
    padding-right: 14px;
    font-size: 15px;
  }

  .portal-format-card small {
    font-size: 11px;
  }

  .portal-format-card__arrow {
    right: 17px;
    bottom: 19px;
    font-size: 11px;
  }

  .portal-team-layout {
    gap: 28px;
  }

  .portal-featured-coach {
    min-height: 0;
    padding: 26px;
    grid-template-columns: 90px 1fr;
    gap: 18px;
  }

  .portal-coach-avatar--large {
    width: 90px;
    height: 130px;
    font-size: 25px;
  }

  .portal-featured-coach h3 {
    font-size: 23px;
  }

  .portal-featured-coach p {
    font-size: 12px;
  }

  .portal-steps,
  .portal-route-steps {
    grid-template-columns: 1fr;
  }

  .portal-steps li {
    min-height: 190px;
  }

  .portal-final-cta {
    padding: 48px 0;
  }

  .portal-final-cta__inner {
    display: block;
  }

  .portal-final-cta .portal-button {
    width: 100%;
    margin-top: 24px;
  }

  .portal-page-hero {
    padding: 50px 0;
  }

  .portal-page-hero h1 {
    font-size: 40px;
  }

  .portal-page-hero p {
    font-size: 15px;
  }

  .portal-page-hero__grid img {
    height: 220px;
  }

  .portal-coaches-grid {
    grid-template-columns: 1fr;
  }

  .portal-coach-card,
  .portal-coach-card--featured {
    padding: 22px;
    grid-column: auto;
    align-items: flex-start;
  }

  .portal-coach-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 19px;
  }

  .portal-coach-profile {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portal-coach-avatar--profile {
    width: 100%;
    max-width: 220px;
    height: 280px;
  }

  .portal-coach-profile__content > p {
    font-size: 15px;
  }

  .portal-coach-card h2 {
    font-size: 19px;
  }

  .portal-coach-card p {
    font-size: 12px;
  }

  .portal-levels__list,
  .portal-directions {
    grid-template-columns: 1fr;
  }

  .portal-level-table {
    border-radius: 17px;
  }

  .portal-level-table article {
    padding: 22px 20px;
  }

  .portal-level-table h3 {
    margin-top: 18px;
  }

  .portal-location__map {
    border-radius: 17px;
  }

  .portal-location__maps {
    grid-template-columns: 1fr;
  }

  .portal-location__map > span {
    right: 8px;
    bottom: 8px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .portal-location__actions {
    display: grid;
  }

  .portal-directions a {
    min-height: 150px;
  }

  .portal-contact-cards > a,
  .portal-contact-cards > div {
    padding: 16px;
  }

  .portal-contact-cards strong {
    font-size: 13px;
  }

  .portal-map-card {
    min-height: 360px;
    padding: 26px;
  }

  .portal-contact-maps {
    grid-template-columns: 1fr;
  }

  .portal-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .portal-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .portal-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }

  .portal-tabbar {
    position: fixed;
    z-index: 1040;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #163e31;
    box-shadow: 0 -8px 28px rgba(6, 29, 21, 0.2);
  }

  .portal-tabbar a,
  .portal-tabbar button {
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    font-size: 9px;
    text-decoration: none;
  }

  .portal-tabbar i {
    font-size: 17px;
  }

  .portal-tabbar a:hover,
  .portal-tabbar a:focus,
  .portal-tabbar button:hover,
  .portal-tabbar button:focus {
    color: #fff;
    text-decoration: none;
  }
}

@media (max-width: 410px) {
  .portal-brand__text small {
    display: none;
  }

  .portal-hero__content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .portal-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .portal-coach-card,
  .portal-coach-card--featured {
    display: block;
  }

  .portal-coach-card .portal-coach-avatar {
    margin-bottom: 18px;
  }

  .portal-prices-grid {
    grid-template-columns: 1fr;
  }

  .portal-price-card {
    padding: 20px 18px;
  }

  .portal-price-row__value {
    font-size: 30px !important;
  }

  .portal-main .portal-price-card .portal-price-table td.portal-price-table__num {
    font-size: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-main *,
  .portal-header *,
  .portal-mobile-menu *,
  .portal-more-sheet * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Страница «Цены и абонементы» */
.portal-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.portal-price-card {
    background: #fff;
    border: 1px solid rgba(45, 73, 61, 0.12);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-price-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem !important;
}
.portal-price-card--wide { margin-top: 20px; }

.portal-price-rows {
  display: grid;
  gap: 0;
  margin: 8px 0 2px;
}

.portal-price-card--trial .portal-price-rows {
  margin-top: 46px;
}

.portal-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(45, 73, 61, 0.1);
}

.portal-price-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.portal-price-row__label {
  font-size: 16px !important;
  color: #4d5e57 !important;
  line-height: 1.35;
}

.portal-price-row__value {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #163e31 !important;
  white-space: nowrap;
  letter-spacing: -0.03em;
  line-height: 1;
}

.portal-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px !important;
}
.portal-price-table th {
  text-align: left;
  font-weight: 600;
  color: #6b7a72;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid rgba(45, 73, 61, 0.12);
  font-size: 14px !important;
}
.portal-price-table td {
  padding: 16px 8px 16px 0;
  border-bottom: 1px solid rgba(45, 73, 61, 0.08);
  font-size: 16px !important;
  vertical-align: middle;
}
.portal-price-table tr:last-child td { border-bottom: none; }
.portal-main .portal-price-card .portal-price-table td.portal-price-table__num {
  font-weight: 800 !important;
  white-space: nowrap;
  color: #163e31 !important;
  font-size: 28px !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: right;
}
.portal-price-card__note {
  color: #6b7a72;
  font-size: 0.95rem !important;
  margin: 0;
}
.portal-price-card .portal-button { margin-top: auto; align-self: flex-start; }
.portal-price-rules { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Перебиваем глобальный patch.css с !important для заголовков портала */
.portal-main h1,
.portal-main h2,
.portal-main h3,
.portal-main h4,
.portal-main h5,
.portal-main h6,
.portal-footer h1,
.portal-footer h2,
.portal-footer h3 {
  color: var(--portal-ink) !important;
}

.portal-main .portal-final-cta h1,
.portal-main .portal-final-cta h2,
.portal-main .portal-final-cta h3,
.portal-main .portal-final-cta h4,
.portal-main .portal-map-card h1,
.portal-main .portal-map-card h2,
.portal-main .portal-map-card h3,
.portal-main .portal-map-card h4,
.portal-main .portal-featured-coach h1,
.portal-main .portal-featured-coach h2,
.portal-main .portal-featured-coach h3,
.portal-main .portal-featured-coach h4,
.portal-main .portal-coach-card--featured h1,
.portal-main .portal-coach-card--featured h2,
.portal-main .portal-coach-card--featured h3,
.portal-main .portal-coach-card--featured h4,
.portal-footer h1,
.portal-footer h2,
.portal-footer h3 {
  color: #fff !important;
}

.portal-main .portal-coach-card--featured h2 a,
.portal-main .portal-coach-card--featured a {
  color: #fff !important;
}

.portal-main .portal-coach-card--featured h2 a:hover,
.portal-main .portal-coach-card--featured h2 a:focus {
  color: #ffc4bc !important;
}
