:root {
  --ink: #101820;
  --graphite: #17232c;
  --navy: #07384d;
  --deep: #052737;
  --blue: #309be8;
  --sky: #a8d8ff;
  --yellow: #f4bd16;
  --paper: #f8fbfc;
  --mist: #eaf2f5;
  --white: #ffffff;
  --muted: #667782;
  --line: rgba(8, 48, 67, .14);
  --line-dark: rgba(255, 255, 255, .18);
  --shadow: 0 26px 80px rgba(4, 28, 40, .18);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 80;
  transform: translateY(-150%);
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 28px;
  padding: 18px 56px;
  color: var(--white);
  transition: background .32s ease, color .32s ease, border-color .32s ease, transform .32s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 251, 252, .92);
  color: var(--deep);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 800;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .24));
}

.site-header.is-scrolled .brand img {
  filter: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--yellow);
  transition: transform .24s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .94rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform .24s ease, background .24s ease, color .24s ease, border-color .24s ease;
}

.btn--small {
  min-height: 42px;
  padding: 11px 15px;
  border-color: currentColor;
  color: inherit;
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 16px 44px rgba(244, 189, 22, .28);
}

.btn--wide {
  width: 100%;
  max-width: 780px;
  justify-content: center;
}

.btn--outline {
  border-color: rgba(8, 48, 67, .34);
  background: transparent;
  color: var(--navy);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .48);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Кнопка кабінету має бути читабельною на темному hero навіть без наведення. */
.site-header .auth-user-chip {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.site-header.is-scrolled .auth-user-chip {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  gap: 40px;
  overflow: hidden;
  padding: 150px 56px 76px;
  background: var(--deep);
  color: var(--white);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: .96;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}


.hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 39, 55, .92) 0%, rgba(5, 39, 55, .66) 42%, rgba(5, 39, 55, .2) 100%),
    linear-gradient(0deg, rgba(5, 39, 55, .86), rgba(5, 39, 55, .04) 58%);
}

.motion-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 74px 74px;
  animation: grid-slide 14s linear infinite;
}

.signal {
  position: absolute;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--yellow), transparent);
  opacity: .7;
  filter: blur(.2px);
}

.signal--one {
  left: 8%;
  top: 28%;
  animation: signal-one 5.8s ease-in-out infinite;
}

.signal--two {
  right: 6%;
  bottom: 22%;
  animation: signal-two 7s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero__meta span {
  padding: 9px 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .08);
  font-family: var(--mono);
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  max-width: 980px;
  font-family: var(--display);
  font-size: 8rem;
  line-height: .92;
  font-weight: 800;
}

h2 {
  font-family: var(--display);
  font-size: 3.35rem;
  line-height: 1.02;
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  font-size: 1.38rem;
  line-height: 1.16;
  text-wrap: balance;
}

.word {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s ease, transform .72s ease;
  transition-delay: calc(var(--word-index, 0) * 42ms);
}

.is-visible .word,
[data-split].is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

.hero__lead {
  max-width: 780px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.42rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__panel {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero__panel dl {
  display: grid;
  gap: 32px;
  margin: 0;
}

.hero__panel dt {
  margin-bottom: 7px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__panel dd {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.35rem;
  line-height: 1.45;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 188px;
  padding: 36px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  padding: 110px 56px;
}

.section-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto 56px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-section {
  background: var(--paper);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.audience-card,
.value-item,
.program-card,
.format-card,
.tariff-card,
.person-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.audience-card {
  min-height: 320px;
  padding: 28px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.audience-card:hover,
.format-card:hover,
.tariff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(48, 155, 232, .42);
  box-shadow: var(--shadow);
}

.audience-card span,
.format-card span,
.person-card span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.audience-card h3,
.format-card h3 {
  margin: 18px 0 14px;
}

.audience-card p,
.format-card p,
.value-item p,
.program-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.program-heart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 15px;
  border: 1px solid rgba(244, 189, 22, .55);
  border-radius: 999px;
  background: rgba(244, 189, 22, .08);
  color: #12384a;
  font: 700 18px/1.2 "Manrope", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.program-heart > span:first-child {
  color: #f4bd16;
  font-size: 26px;
  line-height: 1;
}

.program-heart:hover:not(:disabled) {
  border-color: #f4bd16;
  background: rgba(244, 189, 22, .17);
}

.program-heart:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.program-heart:disabled {
  cursor: wait;
  opacity: .68;
}

.program-heart-count {
  min-width: 1ch;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.program-heart-status {
  flex: 1 1 100%;
  color: #ffd3c9;
  font-size: 14px;
  line-height: 1.4;
}

.program-heart-status[hidden] {
  display: none;
}

.value-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  background: var(--deep);
  color: var(--white);
}

.value-copy {
  min-width: 0;
  max-width: 850px;
}

.value-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(2.6rem, 4.2vw, 3.35rem);
  overflow-wrap: anywhere;
}

.value-list {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.value-item {
  padding: 20px 24px;
  background: rgba(255, 255, 255, .08);
  border-color: var(--line-dark);
}

.value-item b {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .9rem;
}

.value-item h3 {
  margin: 8px 0 6px;
}

.value-item p {
  color: rgba(255, 255, 255, .74);
}

.history-section {
  overflow: hidden;
  padding: 92px 0 96px;
  background: var(--white);
}

.history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 56px 38px;
}

.history-head h2 {
  margin: 12px 0 0;
}

.history-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-left: 56px;
}

.history-carousel::-webkit-scrollbar {
  display: none;
}

.history-track {
  display: flex;
  width: max-content;
  gap: 18px;
}

.carousel-arrows {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.carousel-arrow:hover {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.08);
}

.history-group {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
}

.history-slide {
  position: relative;
  width: 460px;
  height: 315px;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--mist);
}

.history-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.history-slide--portrait img {
  object-position: center 24%;
}

.history-slide:hover img {
  transform: scale(1.025);
}

@keyframes history-scroll {
  to { transform: translateX(calc(-50% - 9px)); }
}

.program-section {
  position: relative;
  background: var(--mist);
}

.program-intro {
  display: grid;
  grid-template-columns: 1fr 190px;
  column-gap: 30px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto 34px;
}

.program-intro .eyebrow { grid-column: 1 / -1; }

.program-intro > h2 {
  grid-column: 1;
  margin: 12px 0 18px;
}

.program-intro > p:not(.eyebrow) {
  grid-column: 1;
  max-width: 700px;
  color: var(--muted);
}

.program-experience {
  max-width: 1280px;
  margin: 0 auto;
}

.program-main {
  min-width: 0;
}

.program-clock {
  grid-column: 2;
  grid-row: 2 / span 2;
  position: sticky;
  top: 112px;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: 0;
}

.clock-face {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  border: 1px solid rgba(7, 56, 77, .24);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, rgba(7, 56, 77, .62) 0 2deg, transparent 2deg 30deg),
    var(--white);
  box-shadow: 0 22px 54px rgba(4, 28, 40, .14);
}

.clock-face::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--white);
}

.clock-number {
  position: absolute;
  z-index: 1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
}

.clock-number--12 { top: 15px; left: 50%; transform: translateX(-50%); }
.clock-number--3 { right: 17px; top: 50%; transform: translateY(-50%); }
.clock-number--6 { bottom: 14px; left: 50%; transform: translateX(-50%); }
.clock-number--9 { left: 17px; top: 50%; transform: translateY(-50%); }

.clock-hand {
  position: absolute;
  z-index: 2;
  left: calc(50% - 2px);
  bottom: 50%;
  width: 4px;
  border-radius: 4px;
  transform-origin: 50% 100%;
  transition: transform .24s ease-out;
}

.clock-hand--hour {
  height: 44px;
  background: var(--navy);
  transform: rotate(285deg);
}

.clock-hand--minute {
  left: calc(50% - 1px);
  width: 2px;
  height: 58px;
  background: var(--yellow);
  transform: rotate(180deg);
}

.clock-pin {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--navy);
  transform: translate(-50%, -50%);
}

.clock-readout {
  display: none;
}

.clock-readout span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.clock-readout strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.7rem;
}

.program-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  cursor: grab;
}

.program-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.program-card {
  min-height: 270px;
  padding: 28px;
  scroll-snap-align: start;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  background:
    linear-gradient(135deg, rgba(48, 155, 232, .12), rgba(244, 189, 22, .12)),
    var(--white);
}

.program-card.is-current {
  transform: translateY(-5px);
  border-color: rgba(48, 155, 232, .58);
  box-shadow: 0 22px 48px rgba(4, 28, 40, .13);
}

.program-card__day {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.program-card time {
  display: block;
  margin-bottom: 28px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
}

.slider-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 0 0;
}

.slider-actions button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--deep);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.slider-actions button:hover {
  transform: translateY(-2px);
  background: var(--deep);
  color: var(--white);
}

.expert-banner {
  position: relative;
  scroll-margin-top: 88px;
  width: 100%;
  min-height: clamp(680px, 52vw, 900px);
  max-height: 1040px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.expert-banner__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.expert-banner__grid figure {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-right: 1px solid rgba(255, 255, 255, .28);
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.expert-banner__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--expert-focus-x, 50%) var(--expert-focus-y, 18%);
  filter: saturate(.92);
  transform-origin: center;
}

.expert-banner__grid figure:nth-child(1) {
  --expert-focus-y: 12%;
}

.expert-banner__grid figure:nth-child(2) {
  --expert-focus-y: 18%;
}

.expert-photo--zastavnyi img {
  --expert-focus-x: 50%;
  --expert-focus-y: 18%;
}

.expert-photo-placeholder {
  background: #858d91;
}

.expert-photo--vus img {
  --expert-focus-x: 50%;
  --expert-focus-y: 20%;
}

.expert-photo--lapii img {
  --expert-focus-x: 50%;
  --expert-focus-y: 34%;
}

.expert-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 39, 55, .92), rgba(5, 39, 55, .34) 62%, rgba(5, 39, 55, .1)),
    linear-gradient(0deg, rgba(5, 39, 55, .92), rgba(5, 39, 55, .02) 58%);
}

.expert-banner__caption {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  padding: 0 56px 74px;
}

.expert-banner__caption h2 {
  margin: 12px 0 0;
  color: var(--white);
  font-size: 4.6rem;
}

.people-section {
  scroll-margin-top: 88px;
  background: var(--white);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.person-card {
  height: 500px;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--white);
  box-shadow: none;
  cursor: pointer;
  perspective: 1200px;
}

.person-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.person-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  transform-style: preserve-3d;
  transition: transform .68s cubic-bezier(.2, .7, .2, 1);
}

.person-card:hover .person-card__inner,
.person-card:focus-visible .person-card__inner,
.person-card.is-flipped .person-card__inner {
  transform: rotateY(180deg);
}

.person-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: var(--shadow);
}

.person-card__front {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 140px;
  overflow: hidden;
  background: var(--deep);
}

.person-card__media {
  min-height: 0;
  overflow: hidden;
}

.person-card__front img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center var(--card-focus-y, 20%);
  transform: none;
  transform-origin: center;
  transition: transform .45s ease, filter .45s ease;
}

.person-card--voloshyna .person-card__front img {
  --card-focus-y: 18%;
}

.person-card--zastavnyi .person-card__front img {
  --card-focus-y: 20%;
}

.tariff-test-note {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.person-card--vus .person-card__front img {
  --card-focus-y: 18%;
}

.person-card--lapii .person-card__front img {
  --card-focus-y: 18%;
}

.person-card--moloda .person-card__front img {
  --card-focus-y: 24%;
}

.person-card--kulenych .person-card__front img {
  --card-focus-y: 15%;
}

.person-card:hover .person-card__front img {
  filter: saturate(1.05);
}

.person-card--dense .person-card__back {
  padding: 28px;
}

.person-card--dense .person-card__back p {
  font-size: .88rem;
  line-height: 1.45;
}

.person-card__identity {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 18px;
  background: linear-gradient(90deg, var(--deep), var(--navy));
}

.person-card__identity span {
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.person-card__identity h3 {
  margin: 7px 0 0;
  font-size: 1.4rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.person-card__identity small {
  margin-top: 7px;
  color: #dce8ee;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.person-card__back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(48, 155, 232, .18), transparent 54%),
    var(--deep);
  transform: rotateY(180deg);
}

.person-card__back span {
  color: var(--yellow);
}

.person-card__back h3 {
  margin: 18px 0 18px;
  font-family: var(--display);
  font-size: 1.55rem;
}

.person-card__back p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .98rem;
}

.partnership-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 56px;
  background: var(--paper);
}

.partnership-copy h2 {
  margin-top: 12px;
}

.partnership-copy > p:not(.eyebrow) {
  max-width: 320px;
  margin: 22px 0 0;
  color: var(--muted);
}

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

.tariff-card {
  display: flex;
  min-width: 0;
  min-height: 520px;
  flex-direction: column;
  padding: 30px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.tariff-card--featured {
  border-top: 4px solid var(--yellow);
}

.tariff-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 22px 58px rgba(8, 48, 67, .14);
}

.tariff-tag,
.tariff-includes {
  color: var(--blue);
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.tariff-tag {
  font-size: .95rem;
}

.tariff-card h3 {
  margin: 18px 0 8px;
  font-size: 1.55rem;
}

.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--navy);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.tariff-price strong {
  font-family: var(--display);
  font-size: 3.15rem;
  line-height: 1;
}

.tariff-includes {
  margin: 32px 0 14px;
}

.tariff-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.tariff-list li {
  display: grid;
  grid-template-columns: 1.25em minmax(0, 1fr);
  gap: .35em;
  color: var(--muted);
  line-height: 1.45;
}

.tariff-list li::before {
  content: "✓";
  position: static;
  display: block;
  color: var(--blue);
  font-weight: 800;
}

.partnership-copy .eyebrow {
  font-size: 1rem;
  line-height: 1.4;
}

.tariff-select {
  width: 100%;
  margin-top: auto;
}

.partner-fit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 64px;
  padding: 98px 56px;
  background: var(--graphite);
  color: var(--white);
}

.fit-copy h2 {
  margin: 12px 0 0;
}

.fit-copy,
.fit-points {
  min-width: 0;
}

.fit-points {
  display: grid;
  gap: 18px;
  align-content: start;
}

.fit-points p {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
}

.fit-points .btn {
  justify-self: start;
  margin-top: 4px;
}

.marquee-section {
  overflow: hidden;
  padding: 34px 0;
  background: var(--yellow);
  color: var(--ink);
}

.marquee-row {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-row + .marquee-row {
  margin-top: 16px;
}

.marquee-row--reverse {
  animation-direction: reverse;
  animation-duration: 44s;
}

.marquee-row span {
  padding: 11px 16px;
  border: 1px solid rgba(16, 24, 32, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .34);
  font-family: var(--mono);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: 56px;
  background: var(--white);
}

.contact-copy h2 {
  max-width: 920px;
  margin: 12px 0 18px;
}

.contact-copy {
  min-width: 0;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.06rem;
}

.registration-panel {
  min-width: 0;
}

.registration-prompt,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.registration-prompt {
  display: grid;
  min-height: 320px;
  align-content: center;
  justify-items: start;
  padding: 32px;
}

.registration-prompt > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.registration-prompt h3 {
  margin: 18px 0 10px;
}

.registration-prompt p {
  max-width: 390px;
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  animation: form-enter .36s ease both;
}

.contact-form[hidden],
.registration-prompt[hidden] {
  display: none !important;
}

.selected-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.selected-plan > div:first-child {
  display: grid;
  gap: 5px;
}

.selected-plan span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.selected-plan strong {
  color: var(--navy);
}

.selected-plan__price {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.selected-plan__price strong {
  font-family: var(--display);
  font-size: 1.65rem;
}

.selected-plan__price s {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
  opacity: .45;
  text-decoration: line-through;
}

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

.form-field--wide {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label > span {
  color: var(--navy);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(8, 48, 67, .22);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
}

.promo-label {
  display: grid;
  gap: 7px;
  width: 100%;
}

.promo-input-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.promo-input-wrap input {
  flex: 1;
}

.promo-apply {
  flex: 0 0 auto;
  min-height: 50px;
  white-space: nowrap;
}

.promo-note {
  margin: 6px 0 0;
  font-size: .82rem;
  color: var(--blue);
}

.form-note {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.modal-open {
  overflow: hidden;
}

.registration-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.registration-modal[hidden] {
  display: none;
}

.registration-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 39, 55, .76);
  backdrop-filter: blur(8px);
}

.registration-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: var(--mist);
  box-shadow: 0 28px 90px rgba(4, 28, 40, .36);
}

.registration-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(8, 48, 67, .24);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.registration-modal__intro {
  padding-right: 56px;
}

.registration-modal__intro h2 {
  margin: 8px 0 10px;
  font-size: 2.3rem;
}

.registration-modal__intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.registration-modal .contact-form {
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
}

.registration-success[hidden] {
  display: none;
}

.registration-success {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid rgba(8, 48, 67, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
}

.registration-success h3 {
  margin: 8px 0 10px;
  color: var(--navy);
}

.registration-success p:not(.eyebrow) {
  color: var(--muted);
}

.registration-success__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.thank-you-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(39, 119, 159, .42), transparent 36rem),
    linear-gradient(135deg, var(--navy) 0%, #0b3b56 100%);
}

.thank-you-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.thank-you-card {
  width: min(100%, 680px);
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  background: rgba(8, 48, 67, .72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
  color: var(--white);
  text-align: center;
}

.thank-you-card .eyebrow {
  color: var(--yellow);
}

.thank-you-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 24px auto;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 2.4rem;
  font-weight: 800;
}

.thank-you-card h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
}

.thank-you-lead {
  max-width: 520px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.15rem;
  line-height: 1.6;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.thank-you-back {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cab-site-link {
  border-color: rgba(244, 189, 22, .9);
  background: var(--yellow);
  color: var(--ink);
}

.cab-site-link:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

@media (min-width: 1600px) {
  body {
    font-size: 1.12rem;
  }

  .site-header {
    padding: 22px 72px;
  }

  .brand {
    font-size: 1rem;
  }

  .main-nav {
    gap: 38px;
  }

  .main-nav a {
    font-size: .88rem;
  }

  h1 {
    font-size: 9.6rem;
  }

  .hero__lead {
    font-size: 1.62rem;
  }

  .hero__panel dd {
    font-size: 1.52rem;
  }
}

@keyframes form-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 56px;
  background: var(--deep);
  color: rgba(255, 255, 255, .74);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.reveal,
[data-split] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .72s ease, transform .72s ease;
}

.reveal.is-visible,
[data-split].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(-10px, -8px, 0); }
  to { transform: scale(1.09) translate3d(16px, 10px, 0); }
}

@keyframes grid-slide {
  from { background-position: 0 0; }
  to { background-position: 148px 74px; }
}

@keyframes signal-one {
  0%, 100% { transform: translateX(-18%) scaleX(.7); opacity: .05; }
  45% { transform: translateX(58%) scaleX(1.1); opacity: .7; }
}

@keyframes signal-two {
  0%, 100% { transform: translateX(24%) scaleX(.62); opacity: .08; }
  52% { transform: translateX(-62%) scaleX(1.08); opacity: .62; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1180px) {
  .site-header {
    padding: 16px 28px;
    grid-template-columns: auto auto;
  }

  /* Маленька кнопка входу праворуч зверху; зникає при скролі (auth.js). */
  .auth-user-chip {
    position: fixed;
    top: 68px;
    right: 10px;
    z-index: 60;
    max-width: 96px;
    font-size: 11px;
    padding: 6px 12px;
    background: rgba(5, 39, 55, .82);
    color: #f8fbfc;
    border-color: rgba(255, 255, 255, .3);
    backdrop-filter: blur(6px);
  }

  .main-nav {
    font-size: .72rem;
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 140px 28px 62px;
  }

  h1 {
    font-size: 5.1rem;
  }

  h2 {
    font-size: 2.75rem;
  }

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

  .metric {
    border-bottom: 1px solid var(--line);
  }

  .section,
  .partner-fit {
    padding: 84px 28px;
  }

  .history-head {
    padding-right: 28px;
    padding-left: 28px;
  }

  .history-carousel {
    padding-left: 28px;
  }

  .section-head,
  .value-section,
  .partnership-section,
  .partner-fit,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-intro {
    grid-template-columns: 1fr 150px;
    column-gap: 24px;
  }

  .clock-face {
    width: 138px;
  }

  .expert-banner__caption {
    padding: 0 28px 58px;
  }

  .expert-banner__caption h2 {
    font-size: 3.25rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .btn--small {
    display: none;
  }

  .cab-site-link {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    align-content: start;
    padding: 116px 16px 42px;
  }

  .hero__meta span {
    font-size: .76rem;
    padding: 8px 10px;
  }

  h1 {
    font-size: clamp(3.9rem, 15vw, 5.2rem);
  }

  h2 {
    font-size: 2.15rem;
  }

  .contact-copy h2 {
    font-size: 1.95rem;
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero__lead {
    font-size: 1.16rem;
    line-height: 1.42;
  }

  .hero__panel {
    margin-top: 24px;
    padding: 20px;
  }

  .hero__panel dl {
    gap: 20px;
  }

  .hero__panel dt {
    font-size: .86rem;
  }

  .hero__panel dd {
    font-size: 1.08rem;
  }

  .hero__actions {
    display: grid;
  }

  .metrics-band,
  .audience-grid,
  .people-grid,
  .format-grid,
  .tariff-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 142px;
    padding: 26px 18px;
    border-right: 0;
  }

  .metric strong {
    font-size: 3rem;
  }

  .section,
  .partner-fit {
    padding: 68px 16px;
  }

  .history-section {
    padding: 68px 0 72px;
  }

  .history-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 0 16px 28px;
  }

  .history-carousel {
    padding-left: 16px;
  }

  .history-slide {
    width: 82vw;
    height: 230px;
  }

  .section-head {
    gap: 18px;
    margin-bottom: 30px;
  }

  .audience-card,
  .format-card,
  .tariff-card,
  .value-item {
    min-height: auto;
    padding: 22px;
  }

  .form-field--wide {
    grid-column: auto;
  }

  .program-track {
    grid-auto-columns: 86%;
  }

  .program-intro {
    grid-template-columns: 1fr auto;
    column-gap: 14px;
  }

  .program-clock {
    grid-column: 2;
    grid-row: 3;
    position: static;
    display: grid;
    justify-items: center;
    gap: 0;
    padding: 0;
    align-self: start;
  }

  .clock-readout {
    display: none;
  }

  .clock-face {
    width: 86px;
  }

  .clock-hand--hour {
    height: 22px;
  }

  .clock-hand--minute {
    height: 30px;
  }

  .program-card {
    min-height: 246px;
    padding: 22px;
  }

  .person-card {
    height: 460px;
  }

  .person-card__back {
    padding: 28px;
  }

  .expert-banner {
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    display: block;
  }

  .expert-banner__grid {
    position: relative;
    inset: auto;
    height: clamp(480px, 133vw, 540px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .expert-banner__grid img {
    object-position: var(--expert-focus-x, 50%) var(--expert-focus-y, 18%);
  }

  .expert-photo--zastavnyi img {
    --expert-focus-x: 50%;
    --expert-focus-y: 23%;
  }

  .expert-banner::after {
    inset: 0 0 auto;
    height: clamp(480px, 133vw, 540px);
    background: linear-gradient(0deg, rgba(5, 39, 55, .42), rgba(5, 39, 55, .04) 58%);
    pointer-events: none;
  }

  .expert-banner__caption {
    padding: 28px 16px 34px;
    background: var(--deep);
  }

  .expert-banner__caption h2 {
    max-width: 100%;
    font-size: 1.9rem;
    overflow-wrap: break-word;
  }

  .selected-plan {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .selected-plan__price {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-start;
  }

  .registration-prompt,
  .contact-form {
    padding: 22px;
  }

  .registration-modal {
    align-items: end;
    padding: 0;
  }

  .registration-modal__dialog {
    width: 100%;
    max-height: 94svh;
    padding: 24px 18px 18px;
    border-radius: 8px 8px 0 0;
  }

  .registration-modal__intro {
    padding-right: 48px;
  }

  .registration-modal__close {
    top: 14px;
    right: 14px;
  }

  .registration-modal__intro h2 {
    font-size: 1.8rem;
  }

  .registration-modal .contact-form {
    padding: 0;
    margin-top: 16px;
    gap: 12px;
  }

  .registration-modal .selected-plan {
    align-items: center;
    padding-bottom: 14px;
  }

  .registration-modal .selected-plan span {
    font-size: 14px;
  }

  .registration-modal .selected-plan > div:first-child strong {
    font-size: 16px;
    line-height: 1.3;
  }

  .registration-modal .selected-plan__price strong {
    font-size: 1.35rem;
  }

  .registration-modal .contact-form label > span {
    font-size: 14px;
  }

  .registration-modal .contact-form input,
  .registration-modal .contact-form select {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
  }

  .registration-modal .promo-input-wrap {
    flex-direction: column;
  }

  .registration-modal .promo-input-wrap input,
  .registration-modal .promo-apply {
    width: 100%;
    min-width: 0;
  }

  .registration-modal .promo-apply {
    justify-content: center;
  }

  .site-footer {
    display: grid;
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .history-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .history-track {
    animation: none !important;
    transform: none !important;
  }

  .history-group[aria-hidden="true"] {
    display: none;
  }

  .history-slide {
    scroll-snap-align: start;
  }
}

/* --- Кнопка «Скачати додаток» у шапці + підказка при наведенні --- */
.app-dl { position: relative; display: inline-flex; }
.app-dl__tip {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80;
  display: flex; flex-direction: column; gap: 6px;
  width: 280px; padding: 14px 16px;
  background: #07384d; color: #dce8ee;
  border: 1px solid rgba(244, 189, 22, .45); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(5, 39, 55, .5);
  font-size: 12.5px; line-height: 1.45;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
}
.app-dl__tip strong { color: #f4bd16; font-size: 13px; }
.app-dl:hover .app-dl__tip, .app-dl:focus-within .app-dl__tip {
  opacity: 1; visibility: visible; transform: translateY(0);
}
@media (max-width: 1180px) {
  .app-dl__tip { display: none; } /* на тачскрінах наведення немає */
}

/* Читабельність основного тексту та помітна навігація на вузьких екранах. */
body { font-size: 20px; }
#main :is(p, li, dt, dd) {
  font-size: max(20px, 1em);
  line-height: 1.65;
}
#main small { font-size: max(17px, 1em); }
.main-nav {
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
}
.main-nav a { font-size: 16px; }
.main-nav .auth-user-chip {
  position: static;
  z-index: auto;
  display: inline-flex !important;
  flex: 0 0 auto;
  max-width: 180px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: none;
}

@media (max-width: 1180px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand account app" "nav nav nav";
    align-items: center;
    gap: 8px 14px;
    padding: 10px 18px;
  }
  .site-header > .brand { grid-area: brand; }
  .site-header > .main-nav { grid-area: nav; min-width: 0; }
  .site-header > .auth-user-chip { grid-area: account; justify-self: end; }
  .site-header > .app-dl { grid-area: app; justify-self: end; }
  .main-nav { justify-content: flex-end; }
  .site-header > .auth-user-chip {
    max-width: 180px;
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    font-size: 16px;
    color: inherit;
    background: transparent;
    border-color: currentColor;
    backdrop-filter: none;
  }
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 1180px) {
  html { scroll-padding-top: 148px; }
  body { font-size: 20px; }
  #main :is(p, li, dt, dd) {
    font-size: max(19px, 1em);
    line-height: 1.6;
  }
  #main small { font-size: max(17px, 1em); }
  .site-header {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-areas: "brand account app" "nav nav nav";
    gap: 7px 8px;
    padding: 8px 10px;
  }
  .site-header > .brand { grid-area: brand; }
  .site-header > .main-nav {
    grid-area: nav;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 4px;
  }
  .site-header > .auth-user-chip { grid-area: account; justify-self: end; }
  .site-header > .app-dl { grid-area: app; justify-self: end; }
  .site-header > .brand img { width: 34px; height: 34px; }
  .site-header > .main-nav { gap: 4px 6px; }
  .main-nav a {
    flex: 0 0 auto;
    padding: 4px 0;
    font-size: clamp(14px, 3.6vw, 17px);
    white-space: nowrap;
  }
  .site-header > .auth-user-chip {
    display: inline-flex;
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0 !important;
  }
  .site-header > .auth-user-chip::before {
    content: "👤";
    font-size: 22px;
    line-height: 1;
  }
  .site-header > .app-dl .app-dl__btn {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0 !important;
  }
  .site-header > .app-dl .app-dl__icon {
    font-size: 22px;
    line-height: 1;
  }
  .site-header > .app-dl .app-dl__label {
    display: none;
  }
  .hero { padding-top: 150px; }
}

/* Android's "desktop site" keeps a wide CSS viewport but scales it onto a
   phone. Scale text and touch targets together, then keep the fixed header
   from covering the first section. */
html.handheld-desktop-viewport body,
html.handheld-desktop-viewport #main :is(p, li, dt, dd, small, label),
html.handheld-desktop-viewport :is(
  button, a, input, textarea, select, option, summary, figcaption,
  .eyebrow, .hero__meta span, .audience-card span, .metric span,
  .cab-wrap, .trainer-wrap, .app-dl__tip, .app-dl__tip strong
) {
  font-size: var(--handheld-body-font) !important;
  line-height: 1.5 !important;
}

html.handheld-desktop-viewport :is(
  .cab-wrap p, .cab-wrap li, .cab-wrap dt, .cab-wrap dd, .cab-wrap small,
  .cab-wrap label, .cab-wrap .hint, .cab-wrap .points-rows,
  .cab-wrap .ref-link input, .cab-wrap .chip-btn, .cab-wrap .status-tag,
  .cab-wrap .cab-empty, .cab-wrap .cab-list,
  .trainer-wrap p, .trainer-wrap li, .trainer-wrap small, .trainer-wrap label,
  .trainer-wrap .trainer-muted, .trainer-wrap .trainer-kicker,
  .trainer-wrap .trainer-stage, .trainer-wrap .trainer-option,
  .trainer-wrap .trainer-present, .trainer-wrap .trainer-debrief,
  .trainer-wrap .trainer-note, .trainer-wrap .trainer-history-item,
  .trainer-wrap .trainer-message, .trainer-wrap .trainer-completion__reward,
  .trainer-wrap .trainer-completion__eyebrow
) {
  font-size: var(--handheld-body-font) !important;
  line-height: 1.5 !important;
}

html.handheld-desktop-viewport :is(
  .cab-wrap h1, .cab-wrap h2, .trainer-wrap h1, .trainer-wrap h2
) {
  font-size: var(--handheld-heading-font) !important;
  line-height: 1.3 !important;
}

html.handheld-desktop-viewport :is(
  .cab-wrap h3, .cab-wrap h4, .trainer-wrap h3, .trainer-wrap h4,
  .trainer-wrap .trainer-case h3
) {
  font-size: var(--handheld-subheading-font) !important;
  line-height: 1.35 !important;
}

html.handheld-desktop-viewport :is(.brand span, .hero__meta span, .audience-card > span, .metric > span, .eyebrow) {
  font-size: var(--handheld-caption-font) !important;
}

html.handheld-desktop-viewport :is(.audience-grid, .people-grid, .format-grid, .tariff-grid, .form-grid, .cab-grid, .cab-form) {
  grid-template-columns: 1fr !important;
}

html.handheld-desktop-viewport .hero {
  min-height: auto;
  padding-top: var(--handheld-hero-top, 300px) !important;
}

html.handheld-desktop-viewport {
  scroll-padding-top: var(--handheld-hero-top, 300px);
}

html.handheld-desktop-viewport .site-header > .main-nav {
  grid-area: nav;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: calc(4px * var(--handheld-font-scale)) calc(10px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .site-header > .main-nav a {
  font-size: var(--handheld-caption-font) !important;
  padding: calc(4px * var(--handheld-font-scale)) 0;
}

html.handheld-desktop-viewport .site-header {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand account app" "nav nav nav";
  gap: calc(6px * var(--handheld-font-scale));
  padding: calc(8px * var(--handheld-font-scale)) calc(12px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .site-header > .brand {
  grid-area: brand;
  gap: calc(8px * var(--handheld-font-scale));
  font-size: var(--handheld-caption-font) !important;
}

html.handheld-desktop-viewport .site-header > .brand img {
  width: calc(34px * var(--handheld-font-scale));
  height: calc(34px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .site-header > .app-dl {
  grid-area: app;
}

html.handheld-desktop-viewport .site-header > .auth-user-chip {
  grid-area: account;
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  width: calc(44px * var(--handheld-font-scale));
  min-width: calc(44px * var(--handheld-font-scale));
  height: calc(44px * var(--handheld-font-scale));
  min-height: calc(44px * var(--handheld-font-scale));
  justify-content: center;
  padding: 0;
  font-size: 0 !important;
}

html.handheld-desktop-viewport .site-header > .auth-user-chip::before {
  content: "👤";
  font-size: calc(22px * var(--handheld-font-scale));
  line-height: 1;
}

html.handheld-desktop-viewport .site-header > .app-dl .app-dl__btn {
  min-height: calc(40px * var(--handheld-font-scale));
  padding: calc(7px * var(--handheld-font-scale)) calc(12px * var(--handheld-font-scale));
  font-size: var(--handheld-caption-font) !important;
  white-space: nowrap;
}

html.handheld-desktop-viewport .site-header > .app-dl .app-dl__btn {
  display: inline-flex;
  align-items: center;
  width: calc(44px * var(--handheld-font-scale));
  min-width: calc(44px * var(--handheld-font-scale));
  height: calc(44px * var(--handheld-font-scale));
  min-height: calc(44px * var(--handheld-font-scale));
  justify-content: center;
  padding: 0;
  font-size: 0 !important;
}

html.handheld-desktop-viewport .site-header > .app-dl .app-dl__icon {
  font-size: calc(22px * var(--handheld-font-scale));
  line-height: 1;
}

html.handheld-desktop-viewport .site-header > .app-dl .app-dl__label {
  display: none;
}

html.handheld-desktop-viewport .partnership-copy .eyebrow {
  font-size: max(16px, var(--handheld-caption-font)) !important;
  line-height: 1.4 !important;
}

html.handheld-desktop-viewport .tariff-list li {
  grid-template-columns: 1.35em minmax(0, 1fr);
  gap: .45em;
  padding-left: 0;
}

html.handheld-desktop-viewport .tariff-list li::before {
  position: static;
  font-size: 1.05em;
}

html.handheld-desktop-viewport .tariff-tag,
html.handheld-desktop-viewport .tariff-includes {
  font-size: max(14px, calc(var(--handheld-caption-font) * .92)) !important;
  line-height: 1.35 !important;
}

html.handheld-desktop-viewport .person-card {
  height: calc(500px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .person-card__front {
  grid-template-rows: minmax(0, 1fr) calc(140px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .person-card__identity {
  padding: calc(14px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .person-card__identity span,
html.handheld-desktop-viewport .person-card__identity small {
  font-size: calc(14px * var(--handheld-font-scale)) !important;
  line-height: 1.25 !important;
}

html.handheld-desktop-viewport #main .person-card__identity span,
html.handheld-desktop-viewport #main .person-card__identity small {
  font-size: calc(14px * var(--handheld-font-scale)) !important;
}

html.handheld-desktop-viewport .person-card__identity h3 {
  font-size: calc(22px * var(--handheld-font-scale)) !important;
  line-height: 1.2 !important;
}

html.handheld-desktop-viewport .site-header--account {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand nav";
}

html.handheld-desktop-viewport .site-header--account > .main-nav {
  justify-content: flex-end;
}

html.handheld-desktop-viewport .site-header--account > .main-nav .btn {
  min-height: calc(40px * var(--handheld-font-scale));
  padding: calc(7px * var(--handheld-font-scale)) calc(12px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .site-header--account > .main-nav a::after {
  display: none;
}

html.handheld-desktop-viewport .program-track {
  grid-auto-columns: 86%;
}

html.handheld-desktop-viewport .program-card {
  min-height: 0;
  padding: calc(22px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .program-card time {
  font-size: var(--handheld-time-font) !important;
}

html.handheld-desktop-viewport .program-heart {
  min-height: calc(44px * var(--handheld-font-scale));
  gap: calc(8px * var(--handheld-font-scale));
  padding: calc(7px * var(--handheld-font-scale)) calc(14px * var(--handheld-font-scale));
  font-size: var(--handheld-body-font) !important;
}

html.handheld-desktop-viewport .program-heart > span:first-child {
  font-size: var(--handheld-heart-font) !important;
}

html.handheld-desktop-viewport .program-heart-count {
  font-size: var(--handheld-body-font) !important;
}

html.handheld-desktop-viewport .program-heart-status {
  font-size: var(--handheld-caption-font) !important;
}

html.handheld-desktop-viewport .cab-card--wide {
  grid-column: auto;
}

html.handheld-desktop-viewport .cab-wrap {
  padding: var(--handheld-hero-top, 300px) calc(16px * var(--handheld-font-scale)) calc(40px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .cab-wrap .cab-grid,
html.handheld-desktop-viewport .cab-wrap .cab-form {
  grid-template-columns: minmax(0, 1fr);
  gap: calc(12px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .cab-wrap .cab-card {
  padding: calc(20px * var(--handheld-font-scale)) calc(16px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .cab-wrap .ref-link {
  flex-wrap: wrap;
}

html.handheld-desktop-viewport .cab-wrap .ref-link input {
  flex: 1 1 100%;
  min-width: 0;
  min-height: calc(48px * var(--handheld-font-scale));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.handheld-desktop-viewport .trainer-wrap {
  width: auto;
  max-width: none;
  margin: 0;
  padding: var(--handheld-hero-top, 300px) calc(16px * var(--handheld-font-scale)) calc(38px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .trainer-top,
html.handheld-desktop-viewport .trainer-toolbar {
  align-items: stretch;
  flex-direction: column;
  gap: calc(8px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .trainer-grid {
  gap: calc(8px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .trainer-case {
  align-items: stretch;
  flex-direction: column;
  gap: calc(10px * var(--handheld-font-scale));
  padding: calc(14px * var(--handheld-font-scale)) calc(14px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .trainer-case h3 {
  width: 100%;
}

html.handheld-desktop-viewport .trainer-case .btn,
html.handheld-desktop-viewport .trainer-toolbar > .btn,
html.handheld-desktop-viewport .trainer-wrap .btn {
  min-height: calc(48px * var(--handheld-font-scale));
  padding: calc(10px * var(--handheld-font-scale)) calc(14px * var(--handheld-font-scale));
  line-height: 1.3 !important;
}

html.handheld-desktop-viewport .trainer-case .btn {
  align-self: stretch;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.trainer-wrap .trainer-present {
  margin: 10px 0 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: rgba(48, 155, 232, .09);
}

.trainer-wrap .trainer-present__label {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.trainer-wrap .trainer-present p {
  margin: 0;
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 1180px) {
  .tariff-tag,
  .tariff-includes {
    font-size: 14px;
    line-height: 1.4;
  }

  .partnership-copy .eyebrow {
    font-size: 16px;
  }

  .tariff-list li {
    grid-template-columns: 1.35em minmax(0, 1fr);
    gap: .45em;
  }

  .tariff-list li::before {
    font-size: 1.05em;
  }

  .person-card {
    height: 500px;
  }

  .person-card__front {
    grid-template-rows: minmax(0, 1fr) 140px;
  }

  .person-card__identity {
    padding: 14px;
  }

  .person-card__identity span,
  .person-card__identity small {
    font-size: 14px;
    line-height: 1.25;
  }

  .person-card__identity h3 {
    font-size: 22px;
    line-height: 1.2;
  }
}

.site-header--account {
  background: rgba(5, 39, 55, .97);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.site-header--account .main-nav .btn--outline,
.cab-wrap .btn--outline,
.cab-login .btn--outline,
.trainer-wrap .btn--outline {
  border-color: rgba(255, 255, 255, .46);
  background: rgba(255, 255, 255, .07);
  color: #f8fbfc;
}

.site-header--account .main-nav .btn--outline:hover,
.cab-wrap .btn--outline:hover,
.cab-login .btn--outline:hover,
.trainer-wrap .btn--outline:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.cab-wrap #refCopy {
  min-height: 48px;
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.cab-wrap #refCopy:hover {
  border-color: #ffd34c;
  background: #ffd34c;
  color: var(--ink);
}

.cab-wrap button:disabled,
.trainer-wrap button:disabled {
  opacity: 1;
  border-color: rgba(255, 255, 255, .38);
  background: #24495b;
  color: #dce8ee;
  cursor: not-allowed;
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 1180px) {
  .site-header > .brand span {
    display: inline;
  }

  .site-header--account {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand nav";
    gap: 8px;
    padding: 8px 12px;
  }

  .site-header--account .main-nav .btn--small {
    display: inline-flex;
  }
}

html.handheld-desktop-viewport .cab-wrap,
html.handheld-desktop-viewport .trainer-wrap {
  padding-top: calc(var(--handheld-hero-top, 300px) + 16px * var(--handheld-font-scale));
}

html.handheld-desktop-viewport .cab-wrap #refCopy {
  min-height: calc(48px * var(--handheld-font-scale));
  width: 100%;
}

.trainer-wrap .trainer-option {
  align-items: flex-start;
  padding: 14px 16px;
  border: 2px solid rgba(174, 207, 220, .42);
  background: #0a3548;
  color: #f7fbfc;
  font-size: 18px;
  line-height: 1.5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .14);
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.trainer-wrap .trainer-option:hover {
  border-color: #a8d8ff;
  background: #10435a;
}

.trainer-wrap .trainer-option:focus-within {
  outline: 3px solid #a8d8ff;
  outline-offset: 2px;
}

.trainer-wrap .trainer-option:has(input:checked) {
  border-color: #f4bd16;
  background: #164656;
  box-shadow: inset 0 0 0 1px #f4bd16, 0 5px 14px rgba(0, 0, 0, .18);
}

.trainer-wrap .trainer-option input {
  margin-top: 4px;
}

.trainer-wrap .trainer-option:has(input:disabled) {
  cursor: progress;
}

.trainer-wrap .trainer-note-details {
  margin: 12px 0;
}

.trainer-wrap .trainer-note-details > summary {
  width: fit-content;
  color: #b8d4df;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.trainer-wrap .trainer-note-details[open] > summary {
  margin-bottom: 10px;
  color: #a8d8ff;
}

.trainer-wrap .trainer-present {
  border-left-color: #76c9f4;
  background: linear-gradient(115deg, rgba(16, 74, 98, .9), rgba(8, 47, 65, .96));
  color: #f5fbff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.trainer-wrap .trainer-present p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-style: italic;
  line-height: 1.65;
}

.trainer-wrap .trainer-history-step {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(168, 216, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.trainer-wrap .trainer-action-choice {
  display: block;
  color: #f7fbfc;
  font-weight: 700;
  line-height: 1.55;
}

.trainer-wrap .trainer-action-note {
  margin: 8px 0 0;
  color: #b8d4df;
  font-size: .92em;
}

.trainer-wrap .trainer-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 4px solid #76c9f4;
  border-radius: 8px;
  background: rgba(32, 108, 140, .2);
  color: #d7eff9;
  font-size: .94em;
  line-height: 1.55;
}

.trainer-wrap .trainer-feedback__label {
  display: block;
  margin-bottom: 4px;
  color: #a8d8ff;
  font: 700 .8em/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trainer-wrap .trainer-feedback p {
  margin: 0;
}

.trainer-wrap .trainer-feedback--warning {
  border-left-color: #ff9a84;
  background: rgba(140, 50, 40, .3);
  color: #ffe1d9;
}

.trainer-wrap .trainer-feedback--warning .trainer-feedback__label {
  color: #ffad99;
}

@media (max-width: 700px) {
  .trainer-wrap .trainer-option {
    padding: 13px 12px;
    font-size: 17px;
  }

  .trainer-wrap .trainer-history-step {
    padding: 12px;
  }
}

.hero-venue-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--yellow);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.venue-section {
  background: var(--deep);
  color: var(--white);
}

.venue-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.venue-section__head h2 {
  max-width: 900px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.venue-section__head > p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 1.15rem;
}

.venue-layout {
  max-width: 1200px;
  margin-inline: auto;
}

.venue-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.venue-card__photo {
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--graphite);
}

.venue-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.venue-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.venue-card__eyebrow {
  margin-bottom: 10px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.venue-card__body h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.5rem;
}

.venue-card__body address {
  color: var(--white);
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1.6;
}

.venue-card__description {
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, .75);
  font-size: 1.05rem;
}

.venue-card__cta-copy {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.venue-actions .btn {
  min-height: 50px;
}

.venue-actions .btn--outline {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.venue-actions .btn--outline:hover {
  border-color: var(--yellow);
  background: rgba(244, 189, 22, .12);
  color: var(--yellow);
}

@media (max-width: 960px) {
  .venue-card {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 760px) {
  .venue-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .venue-card__photo {
    max-height: 300px;
  }

  .hero-venue-link {
    font-size: 1rem;
  }

  .venue-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .venue-section__head > div {
    width: 100%;
    min-width: 0;
  }

  .venue-section__head h2 {
    width: 100%;
  }

  .venue-section__head > p {
    font-size: 1.05rem;
  }

  .venue-card__body {
    padding: 22px 18px;
  }

  .venue-card__body address {
    font-size: 1.1rem;
  }

  .venue-actions {
    width: 100%;
  }

  .venue-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

html.handheld-desktop-viewport .venue-card {
  grid-template-columns: minmax(0, 1fr);
}
